From 6052666fd29c3e114f5fefb67df182549798a4c9 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Tue, 29 Mar 2016 18:20:09 -0700 Subject: [PATCH 1/4] Fix batch client for optional overload null checks --- azure-batch/pom.xml | 4 + .../azure/batch/CertificateOperations.java | 16 +- .../batch/protocol/ApplicationOperations.java | 20 +- .../protocol/ApplicationOperationsImpl.java | 166 +- .../protocol/BatchCredentialsInterceptor.java | 26 +- .../batch/protocol/BatchServiceClient.java | 20 +- .../protocol/BatchServiceClientImpl.java | 20 +- .../batch/protocol/CertificateOperations.java | 20 +- .../protocol/CertificateOperationsImpl.java | 310 +--- .../batch/protocol/ComputeNodeOperations.java | 20 +- .../protocol/ComputeNodeOperationsImpl.java | 562 +----- .../azure/batch/protocol/FileOperations.java | 20 +- .../batch/protocol/FileOperationsImpl.java | 704 +------- .../azure/batch/protocol/JobOperations.java | 20 +- .../batch/protocol/JobOperationsImpl.java | 1192 ++----------- .../batch/protocol/JobScheduleOperations.java | 20 +- .../protocol/JobScheduleOperationsImpl.java | 1052 +----------- .../azure/batch/protocol/PoolOperations.java | 20 +- .../batch/protocol/PoolOperationsImpl.java | 1500 ++--------------- .../azure/batch/protocol/TaskOperations.java | 20 +- .../batch/protocol/TaskOperationsImpl.java | 676 +------- .../protocol/models/AffinityInformation.java | 20 +- .../protocol/models/AllocationState.java | 20 +- .../models/ApplicationGetHeaders.java | 20 +- .../models/ApplicationGetOptions.java | 20 +- .../models/ApplicationListHeaders.java | 20 +- .../models/ApplicationListNextOptions.java | 20 +- .../models/ApplicationListOptions.java | 20 +- .../models/ApplicationPackageReference.java | 20 +- .../protocol/models/ApplicationSummary.java | 20 +- .../models/AutoPoolSpecification.java | 20 +- .../batch/protocol/models/AutoScaleRun.java | 20 +- .../protocol/models/AutoScaleRunError.java | 20 +- .../batch/protocol/models/BatchError.java | 20 +- .../protocol/models/BatchErrorDetail.java | 20 +- .../protocol/models/BatchErrorException.java | 20 +- .../batch/protocol/models/Certificate.java | 20 +- .../models/CertificateAddHeaders.java | 20 +- .../models/CertificateAddOptions.java | 20 +- .../models/CertificateAddParameter.java | 20 +- .../CertificateCancelDeletionHeaders.java | 20 +- .../CertificateCancelDeletionOptions.java | 20 +- .../models/CertificateDeleteHeaders.java | 20 +- .../models/CertificateDeleteOptions.java | 20 +- .../protocol/models/CertificateFormat.java | 20 +- .../models/CertificateGetHeaders.java | 20 +- .../models/CertificateGetOptions.java | 20 +- .../models/CertificateListHeaders.java | 20 +- .../models/CertificateListNextOptions.java | 20 +- .../models/CertificateListOptions.java | 20 +- .../protocol/models/CertificateReference.java | 20 +- .../protocol/models/CertificateState.java | 20 +- .../models/CertificateStoreLocation.java | 20 +- .../azure/batch/protocol/models/CloudJob.java | 20 +- .../protocol/models/CloudJobSchedule.java | 20 +- .../batch/protocol/models/CloudPool.java | 20 +- .../batch/protocol/models/CloudTask.java | 20 +- .../models/CloudTaskListSubtasksResult.java | 20 +- .../batch/protocol/models/ComputeNode.java | 20 +- .../models/ComputeNodeAddUserHeaders.java | 20 +- .../models/ComputeNodeAddUserOptions.java | 20 +- .../models/ComputeNodeDeallocationOption.java | 20 +- .../models/ComputeNodeDeleteUserHeaders.java | 20 +- .../models/ComputeNodeDeleteUserOptions.java | 20 +- .../ComputeNodeDisableSchedulingHeaders.java | 20 +- .../ComputeNodeDisableSchedulingOptions.java | 20 +- .../ComputeNodeEnableSchedulingHeaders.java | 20 +- .../ComputeNodeEnableSchedulingOptions.java | 20 +- .../protocol/models/ComputeNodeError.java | 20 +- .../protocol/models/ComputeNodeFillType.java | 20 +- .../models/ComputeNodeGetHeaders.java | 20 +- .../models/ComputeNodeGetOptions.java | 20 +- .../ComputeNodeGetRemoteDesktopHeaders.java | 20 +- .../ComputeNodeGetRemoteDesktopOptions.java | 20 +- .../models/ComputeNodeInformation.java | 20 +- .../models/ComputeNodeListHeaders.java | 20 +- .../models/ComputeNodeListNextOptions.java | 20 +- .../models/ComputeNodeListOptions.java | 20 +- .../models/ComputeNodeRebootHeaders.java | 20 +- .../models/ComputeNodeRebootOption.java | 20 +- .../models/ComputeNodeRebootOptions.java | 20 +- .../models/ComputeNodeReimageHeaders.java | 20 +- .../models/ComputeNodeReimageOption.java | 20 +- .../models/ComputeNodeReimageOptions.java | 20 +- .../protocol/models/ComputeNodeState.java | 20 +- .../models/ComputeNodeUpdateUserHeaders.java | 20 +- .../models/ComputeNodeUpdateUserOptions.java | 20 +- .../protocol/models/ComputeNodeUser.java | 20 +- .../models/DeleteCertificateError.java | 20 +- .../DisableComputeNodeSchedulingOption.java | 20 +- .../protocol/models/DisableJobOption.java | 20 +- .../protocol/models/EnvironmentSetting.java | 20 +- .../batch/protocol/models/ErrorMessage.java | 20 +- .../FileDeleteFromComputeNodeHeaders.java | 20 +- .../FileDeleteFromComputeNodeOptions.java | 20 +- .../models/FileDeleteFromTaskHeaders.java | 20 +- .../models/FileDeleteFromTaskOptions.java | 20 +- .../models/FileGetFromComputeNodeHeaders.java | 20 +- .../models/FileGetFromComputeNodeOptions.java | 20 +- .../models/FileGetFromTaskHeaders.java | 20 +- .../models/FileGetFromTaskOptions.java | 20 +- ...eFilePropertiesFromComputeNodeHeaders.java | 20 +- ...eFilePropertiesFromComputeNodeOptions.java | 20 +- ...eGetNodeFilePropertiesFromTaskHeaders.java | 20 +- ...eGetNodeFilePropertiesFromTaskOptions.java | 20 +- .../FileListFromComputeNodeHeaders.java | 20 +- .../FileListFromComputeNodeNextOptions.java | 20 +- .../FileListFromComputeNodeOptions.java | 20 +- .../models/FileListFromTaskHeaders.java | 20 +- .../models/FileListFromTaskNextOptions.java | 20 +- .../models/FileListFromTaskOptions.java | 20 +- .../batch/protocol/models/FileProperties.java | 20 +- .../batch/protocol/models/JobAddHeaders.java | 20 +- .../batch/protocol/models/JobAddOptions.java | 20 +- .../protocol/models/JobAddParameter.java | 20 +- .../batch/protocol/models/JobConstraints.java | 20 +- .../protocol/models/JobDeleteHeaders.java | 20 +- .../protocol/models/JobDeleteOptions.java | 20 +- .../protocol/models/JobDisableHeaders.java | 20 +- .../protocol/models/JobDisableOptions.java | 20 +- .../protocol/models/JobDisableParameter.java | 20 +- .../protocol/models/JobEnableHeaders.java | 20 +- .../protocol/models/JobEnableOptions.java | 20 +- .../models/JobExecutionInformation.java | 20 +- ...obGetAllJobsLifetimeStatisticsHeaders.java | 20 +- ...obGetAllJobsLifetimeStatisticsOptions.java | 20 +- .../batch/protocol/models/JobGetHeaders.java | 20 +- .../batch/protocol/models/JobGetOptions.java | 20 +- .../models/JobListFromJobScheduleHeaders.java | 20 +- .../JobListFromJobScheduleNextOptions.java | 20 +- .../models/JobListFromJobScheduleOptions.java | 20 +- .../batch/protocol/models/JobListHeaders.java | 20 +- .../protocol/models/JobListNextOptions.java | 20 +- .../batch/protocol/models/JobListOptions.java | 20 +- ...reparationAndReleaseTaskStatusHeaders.java | 20 +- ...rationAndReleaseTaskStatusNextOptions.java | 20 +- ...reparationAndReleaseTaskStatusOptions.java | 20 +- .../batch/protocol/models/JobManagerTask.java | 20 +- .../protocol/models/JobPatchHeaders.java | 20 +- .../protocol/models/JobPatchOptions.java | 20 +- .../protocol/models/JobPatchParameter.java | 20 +- ...ionAndReleaseTaskExecutionInformation.java | 20 +- .../protocol/models/JobPreparationTask.java | 20 +- ...obPreparationTaskExecutionInformation.java | 20 +- .../models/JobPreparationTaskState.java | 20 +- .../batch/protocol/models/JobReleaseTask.java | 20 +- .../JobReleaseTaskExecutionInformation.java | 20 +- .../protocol/models/JobReleaseTaskState.java | 20 +- .../models/JobScheduleAddHeaders.java | 20 +- .../models/JobScheduleAddOptions.java | 20 +- .../models/JobScheduleAddParameter.java | 20 +- .../models/JobScheduleDeleteHeaders.java | 20 +- .../models/JobScheduleDeleteOptions.java | 20 +- .../models/JobScheduleDisableHeaders.java | 20 +- .../models/JobScheduleDisableOptions.java | 20 +- .../models/JobScheduleEnableHeaders.java | 20 +- .../models/JobScheduleEnableOptions.java | 20 +- .../JobScheduleExecutionInformation.java | 20 +- .../models/JobScheduleExistsHeaders.java | 20 +- .../models/JobScheduleExistsOptions.java | 20 +- .../models/JobScheduleGetHeaders.java | 20 +- .../models/JobScheduleGetOptions.java | 20 +- .../models/JobScheduleListHeaders.java | 20 +- .../models/JobScheduleListNextOptions.java | 20 +- .../models/JobScheduleListOptions.java | 20 +- .../models/JobSchedulePatchHeaders.java | 20 +- .../models/JobSchedulePatchOptions.java | 20 +- .../models/JobSchedulePatchParameter.java | 20 +- .../protocol/models/JobScheduleState.java | 20 +- .../models/JobScheduleStatistics.java | 20 +- .../models/JobScheduleTerminateHeaders.java | 20 +- .../models/JobScheduleTerminateOptions.java | 20 +- .../models/JobScheduleUpdateHeaders.java | 20 +- .../models/JobScheduleUpdateOptions.java | 20 +- .../models/JobScheduleUpdateParameter.java | 20 +- .../protocol/models/JobSchedulingError.java | 20 +- .../protocol/models/JobSpecification.java | 20 +- .../azure/batch/protocol/models/JobState.java | 20 +- .../batch/protocol/models/JobStatistics.java | 20 +- .../protocol/models/JobTerminateHeaders.java | 20 +- .../protocol/models/JobTerminateOptions.java | 20 +- .../models/JobTerminateParameter.java | 20 +- .../protocol/models/JobUpdateHeaders.java | 20 +- .../protocol/models/JobUpdateOptions.java | 20 +- .../protocol/models/JobUpdateParameter.java | 20 +- .../batch/protocol/models/MetadataItem.java | 20 +- .../models/MultiInstanceSettings.java | 20 +- .../batch/protocol/models/NameValuePair.java | 20 +- .../NodeDisableSchedulingParameter.java | 20 +- .../azure/batch/protocol/models/NodeFile.java | 20 +- .../protocol/models/NodeRebootParameter.java | 20 +- .../protocol/models/NodeReimageParameter.java | 20 +- .../protocol/models/NodeRemoveParameter.java | 20 +- .../models/NodeUpdateUserParameter.java | 20 +- .../azure/batch/protocol/models/PageImpl.java | 20 +- .../batch/protocol/models/PoolAddHeaders.java | 20 +- .../batch/protocol/models/PoolAddOptions.java | 20 +- .../protocol/models/PoolAddParameter.java | 20 +- .../protocol/models/PoolDeleteHeaders.java | 20 +- .../protocol/models/PoolDeleteOptions.java | 20 +- .../models/PoolDisableAutoScaleHeaders.java | 20 +- .../models/PoolDisableAutoScaleOptions.java | 20 +- .../models/PoolEnableAutoScaleHeaders.java | 20 +- .../models/PoolEnableAutoScaleOptions.java | 20 +- .../models/PoolEnableAutoScaleParameter.java | 20 +- .../models/PoolEvaluateAutoScaleHeaders.java | 20 +- .../models/PoolEvaluateAutoScaleOptions.java | 20 +- .../PoolEvaluateAutoScaleParameter.java | 20 +- .../protocol/models/PoolExistsHeaders.java | 20 +- .../protocol/models/PoolExistsOptions.java | 20 +- ...lGetAllPoolsLifetimeStatisticsHeaders.java | 20 +- ...lGetAllPoolsLifetimeStatisticsOptions.java | 20 +- .../batch/protocol/models/PoolGetHeaders.java | 20 +- .../batch/protocol/models/PoolGetOptions.java | 20 +- .../protocol/models/PoolInformation.java | 20 +- .../protocol/models/PoolLifetimeOption.java | 20 +- .../protocol/models/PoolListHeaders.java | 20 +- .../protocol/models/PoolListNextOptions.java | 20 +- .../protocol/models/PoolListOptions.java | 20 +- .../PoolListPoolUsageMetricsHeaders.java | 20 +- .../PoolListPoolUsageMetricsNextOptions.java | 20 +- .../PoolListPoolUsageMetricsOptions.java | 20 +- .../protocol/models/PoolPatchHeaders.java | 20 +- .../protocol/models/PoolPatchOptions.java | 20 +- .../protocol/models/PoolPatchParameter.java | 20 +- .../models/PoolRemoveNodesHeaders.java | 20 +- .../models/PoolRemoveNodesOptions.java | 20 +- .../protocol/models/PoolResizeHeaders.java | 20 +- .../protocol/models/PoolResizeOptions.java | 20 +- .../protocol/models/PoolResizeParameter.java | 20 +- .../protocol/models/PoolSpecification.java | 20 +- .../batch/protocol/models/PoolState.java | 20 +- .../batch/protocol/models/PoolStatistics.java | 20 +- .../models/PoolStopResizeHeaders.java | 20 +- .../models/PoolStopResizeOptions.java | 20 +- .../models/PoolUpdatePropertiesHeaders.java | 20 +- .../models/PoolUpdatePropertiesOptions.java | 20 +- .../models/PoolUpdatePropertiesParameter.java | 20 +- .../protocol/models/PoolUpgradeOSHeaders.java | 20 +- .../protocol/models/PoolUpgradeOSOptions.java | 20 +- .../models/PoolUpgradeOSParameter.java | 20 +- .../protocol/models/PoolUsageMetrics.java | 20 +- .../batch/protocol/models/RecentJob.java | 20 +- .../batch/protocol/models/ResizeError.java | 20 +- .../batch/protocol/models/ResourceFile.java | 20 +- .../protocol/models/ResourceStatistics.java | 20 +- .../azure/batch/protocol/models/Schedule.java | 20 +- .../models/SchedulingErrorCategory.java | 20 +- .../protocol/models/SchedulingState.java | 20 +- .../batch/protocol/models/StartTask.java | 20 +- .../protocol/models/StartTaskInformation.java | 20 +- .../batch/protocol/models/StartTaskState.java | 20 +- .../protocol/models/SubtaskInformation.java | 20 +- .../batch/protocol/models/TaskAddHeaders.java | 20 +- .../batch/protocol/models/TaskAddOptions.java | 20 +- .../protocol/models/TaskAddParameter.java | 20 +- .../protocol/models/TaskConstraints.java | 20 +- .../protocol/models/TaskDeleteHeaders.java | 20 +- .../protocol/models/TaskDeleteOptions.java | 20 +- .../protocol/models/TaskDependencies.java | 20 +- .../models/TaskExecutionInformation.java | 20 +- .../batch/protocol/models/TaskGetHeaders.java | 20 +- .../batch/protocol/models/TaskGetOptions.java | 20 +- .../batch/protocol/models/TaskIdRange.java | 20 +- .../protocol/models/TaskInformation.java | 20 +- .../protocol/models/TaskListHeaders.java | 20 +- .../protocol/models/TaskListNextOptions.java | 20 +- .../protocol/models/TaskListOptions.java | 20 +- .../models/TaskListSubtasksHeaders.java | 20 +- .../models/TaskListSubtasksOptions.java | 20 +- .../protocol/models/TaskSchedulingError.java | 20 +- .../protocol/models/TaskSchedulingPolicy.java | 20 +- .../batch/protocol/models/TaskState.java | 20 +- .../batch/protocol/models/TaskStatistics.java | 20 +- .../protocol/models/TaskTerminateHeaders.java | 20 +- .../protocol/models/TaskTerminateOptions.java | 20 +- .../protocol/models/TaskUpdateHeaders.java | 20 +- .../protocol/models/TaskUpdateOptions.java | 20 +- .../protocol/models/TaskUpdateParameter.java | 20 +- .../protocol/models/UsageStatistics.java | 20 +- .../batch/protocol/models/package-info.java | 20 +- .../azure/batch/protocol/package-info.java | 20 +- azure/pom.xml | 6 + 283 files changed, 1314 insertions(+), 10320 deletions(-) diff --git a/azure-batch/pom.xml b/azure-batch/pom.xml index fa9c3b3cfb77..d59faffd6f84 100644 --- a/azure-batch/pom.xml +++ b/azure-batch/pom.xml @@ -50,6 +50,10 @@ com.microsoft.azure azure-client-runtime + + commons-codec + commons-codec + junit junit diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/CertificateOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/CertificateOperations.java index 795b41f42146..2301c8554753 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/CertificateOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/CertificateOperations.java @@ -7,8 +7,19 @@ package com.microsoft.azure.batch; import com.microsoft.azure.PagedList; -import com.microsoft.azure.batch.protocol.models.*; +import com.microsoft.azure.batch.protocol.models.BatchErrorException; +import com.microsoft.azure.batch.protocol.models.Certificate; +import com.microsoft.azure.batch.protocol.models.CertificateAddOptions; +import com.microsoft.azure.batch.protocol.models.CertificateAddParameter; +import com.microsoft.azure.batch.protocol.models.CertificateCancelDeletionOptions; +import com.microsoft.azure.batch.protocol.models.CertificateDeleteOptions; +import com.microsoft.azure.batch.protocol.models.CertificateFormat; +import com.microsoft.azure.batch.protocol.models.CertificateGetHeaders; +import com.microsoft.azure.batch.protocol.models.CertificateGetOptions; +import com.microsoft.azure.batch.protocol.models.CertificateListHeaders; +import com.microsoft.azure.batch.protocol.models.CertificateListOptions; import com.microsoft.rest.ServiceResponseWithHeaders; +import org.apache.commons.codec.binary.Base64; import java.io.IOException; import java.io.InputStream; @@ -18,7 +29,6 @@ import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; -import java.util.Base64; import java.util.Collection; import java.util.List; @@ -80,7 +90,7 @@ public void createCertificate(InputStream certStream, Iterable, ApplicationList } final ApplicationListOptions applicationListOptions = null; Integer maxResults = null; - if (applicationListOptions != null) { - maxResults = applicationListOptions.getMaxResults(); - } Integer timeout = null; - if (applicationListOptions != null) { - timeout = applicationListOptions.getTimeout(); - } String clientRequestId = null; - if (applicationListOptions != null) { - clientRequestId = applicationListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (applicationListOptions != null) { - returnClientRequestId = applicationListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (applicationListOptions != null) { - ocpDate = applicationListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, ApplicationListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - ApplicationListNextOptions applicationListNextOptions = null; - if (applicationListOptions != null) { - applicationListNextOptions = new ApplicationListNextOptions(); - applicationListNextOptions.setClientRequestId(applicationListOptions.getClientRequestId()); - applicationListNextOptions.setReturnClientRequestId(applicationListOptions.getReturnClientRequestId()); - applicationListNextOptions.setOcpDate(applicationListOptions.getOcpDate()); - } - return listNext(nextPageLink, applicationListNextOptions).getBody(); + return listNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -165,29 +125,10 @@ public ServiceCall listAsync(final ListOperationCallback ser } final ApplicationListOptions applicationListOptions = null; Integer maxResults = null; - if (applicationListOptions != null) { - maxResults = applicationListOptions.getMaxResults(); - } Integer timeout = null; - if (applicationListOptions != null) { - timeout = applicationListOptions.getTimeout(); - } String clientRequestId = null; - if (applicationListOptions != null) { - clientRequestId = applicationListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (applicationListOptions != null) { - returnClientRequestId = applicationListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (applicationListOptions != null) { - ocpDate = applicationListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -198,14 +139,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - ApplicationListNextOptions applicationListNextOptions = null; - if (applicationListOptions != null) { - applicationListNextOptions = new ApplicationListNextOptions(); - applicationListNextOptions.setClientRequestId(applicationListOptions.getClientRequestId()); - applicationListNextOptions.setReturnClientRequestId(applicationListOptions.getReturnClientRequestId()); - applicationListNextOptions.setOcpDate(applicationListOptions.getOcpDate()); - } - listNextAsync(result.getBody().getNextPageLink(), applicationListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -251,10 +185,7 @@ public ServiceResponseWithHeaders, ApplicationList if (applicationListOptions != null) { ocpDate = applicationListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, ApplicationListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -310,10 +241,7 @@ public ServiceCall listAsync(final ApplicationListOptions applicationListOptions if (applicationListOptions != null) { ocpDate = applicationListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -368,25 +296,9 @@ public ServiceResponseWithHeaders get } final ApplicationGetOptions applicationGetOptions = null; Integer timeout = null; - if (applicationGetOptions != null) { - timeout = applicationGetOptions.getTimeout(); - } String clientRequestId = null; - if (applicationGetOptions != null) { - clientRequestId = applicationGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (applicationGetOptions != null) { - returnClientRequestId = applicationGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (applicationGetOptions != null) { - ocpDate = applicationGetOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.get(applicationId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -413,25 +325,9 @@ public ServiceCall getAsync(String applicationId, final ServiceCallback call = service.get(applicationId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -481,10 +377,7 @@ public ServiceResponseWithHeaders get if (applicationGetOptions != null) { ocpDate = applicationGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(applicationId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -527,10 +420,7 @@ public ServiceCall getAsync(String applicationId, ApplicationGetOptions applicat if (applicationGetOptions != null) { ocpDate = applicationGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(applicationId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -568,21 +458,8 @@ public ServiceResponseWithHeaders, ApplicationListH } final ApplicationListNextOptions applicationListNextOptions = null; String clientRequestId = null; - if (applicationListNextOptions != null) { - clientRequestId = applicationListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (applicationListNextOptions != null) { - returnClientRequestId = applicationListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (applicationListNextOptions != null) { - ocpDate = applicationListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -606,21 +483,8 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } final ApplicationListNextOptions applicationListNextOptions = null; String clientRequestId = null; - if (applicationListNextOptions != null) { - clientRequestId = applicationListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (applicationListNextOptions != null) { - returnClientRequestId = applicationListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (applicationListNextOptions != null) { - ocpDate = applicationListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -631,7 +495,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listNextAsync(result.getBody().getNextPageLink(), applicationListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -670,10 +534,7 @@ public ServiceResponseWithHeaders, ApplicationListH if (applicationListNextOptions != null) { ocpDate = applicationListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -709,10 +570,7 @@ public ServiceCall listNextAsync(final String nextPageLink, final ApplicationLis if (applicationListNextOptions != null) { ocpDate = applicationListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchCredentialsInterceptor.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchCredentialsInterceptor.java index 2adb931d72c0..8989458d5dee 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchCredentialsInterceptor.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchCredentialsInterceptor.java @@ -6,26 +6,24 @@ package com.microsoft.azure.batch.protocol; +import com.microsoft.rest.DateTimeRfc1123; +import okhttp3.Interceptor; +import okhttp3.MediaType; +import okhttp3.Request; +import okhttp3.Response; +import org.apache.commons.codec.binary.Base64; +import org.joda.time.DateTime; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; import java.io.IOException; import java.net.URLDecoder; import java.util.ArrayList; -import java.util.Base64; import java.util.Collections; import java.util.Locale; import java.util.Map; import java.util.TreeMap; -import javax.crypto.Mac; -import javax.crypto.spec.SecretKeySpec; - -import okhttp3.Interceptor; -import okhttp3.MediaType; -import okhttp3.Request; -import okhttp3.Response; -import org.joda.time.DateTime; - -import com.microsoft.rest.DateTimeRfc1123; - public class BatchCredentialsInterceptor implements Interceptor { /** @@ -62,10 +60,10 @@ private String sign(String accessKey, String stringToSign) { // Encoding the Signature // Signature=Base64(HMAC-SHA256(UTF8(StringToSign))) Mac hmac = Mac.getInstance("hmacSHA256"); - hmac.init(new SecretKeySpec(Base64.getDecoder().decode(accessKey), + hmac.init(new SecretKeySpec(Base64.decodeBase64(accessKey), "hmacSHA256")); byte[] digest = hmac.doFinal(stringToSign.getBytes("UTF-8")); - return new String(Base64.getEncoder().encode(digest), "UTF-8"); + return Base64.encodeBase64String(digest); } catch (Exception e) { throw new IllegalArgumentException("accessKey", e); } diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClient.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClient.java index c3c0a6bdc7be..1d2a2e5e561c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClient.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClient.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClientImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClientImpl.java index 5aba979736a8..b45318c05040 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClientImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/BatchServiceClientImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperations.java index ba2dd56cd42a..f48122895ab9 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperations.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java index cff320e62b20..b6b53689e23c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; @@ -134,25 +120,9 @@ public ServiceResponseWithHeaders add(CertificateAd Validator.validate(certificate); final CertificateAddOptions certificateAddOptions = null; Integer timeout = null; - if (certificateAddOptions != null) { - timeout = certificateAddOptions.getTimeout(); - } String clientRequestId = null; - if (certificateAddOptions != null) { - clientRequestId = certificateAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateAddOptions != null) { - returnClientRequestId = certificateAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateAddOptions != null) { - ocpDate = certificateAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(certificate, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -180,25 +150,9 @@ public ServiceCall addAsync(CertificateAddParameter certificate, final ServiceCa Validator.validate(certificate, serviceCallback); final CertificateAddOptions certificateAddOptions = null; Integer timeout = null; - if (certificateAddOptions != null) { - timeout = certificateAddOptions.getTimeout(); - } String clientRequestId = null; - if (certificateAddOptions != null) { - clientRequestId = certificateAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateAddOptions != null) { - returnClientRequestId = certificateAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateAddOptions != null) { - ocpDate = certificateAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(certificate, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -249,10 +203,7 @@ public ServiceResponseWithHeaders add(CertificateAd if (certificateAddOptions != null) { ocpDate = certificateAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(certificate, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -296,10 +247,7 @@ public ServiceCall addAsync(CertificateAddParameter certificate, CertificateAddO if (certificateAddOptions != null) { ocpDate = certificateAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(certificate, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -336,50 +284,18 @@ public ServiceResponseWithHeaders, CertificateListHeaders } final CertificateListOptions certificateListOptions = null; String filter = null; - if (certificateListOptions != null) { - filter = certificateListOptions.getFilter(); - } String select = null; - if (certificateListOptions != null) { - select = certificateListOptions.getSelect(); - } Integer maxResults = null; - if (certificateListOptions != null) { - maxResults = certificateListOptions.getMaxResults(); - } Integer timeout = null; - if (certificateListOptions != null) { - timeout = certificateListOptions.getTimeout(); - } String clientRequestId = null; - if (certificateListOptions != null) { - clientRequestId = certificateListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateListOptions != null) { - returnClientRequestId = certificateListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateListOptions != null) { - ocpDate = certificateListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, CertificateListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - CertificateListNextOptions certificateListNextOptions = null; - if (certificateListOptions != null) { - certificateListNextOptions = new CertificateListNextOptions(); - certificateListNextOptions.setClientRequestId(certificateListOptions.getClientRequestId()); - certificateListNextOptions.setReturnClientRequestId(certificateListOptions.getReturnClientRequestId()); - certificateListNextOptions.setOcpDate(certificateListOptions.getOcpDate()); - } - return listNext(nextPageLink, certificateListNextOptions).getBody(); + return listNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -402,37 +318,12 @@ public ServiceCall listAsync(final ListOperationCallback serviceCal } final CertificateListOptions certificateListOptions = null; String filter = null; - if (certificateListOptions != null) { - filter = certificateListOptions.getFilter(); - } String select = null; - if (certificateListOptions != null) { - select = certificateListOptions.getSelect(); - } Integer maxResults = null; - if (certificateListOptions != null) { - maxResults = certificateListOptions.getMaxResults(); - } Integer timeout = null; - if (certificateListOptions != null) { - timeout = certificateListOptions.getTimeout(); - } String clientRequestId = null; - if (certificateListOptions != null) { - clientRequestId = certificateListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateListOptions != null) { - returnClientRequestId = certificateListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateListOptions != null) { - ocpDate = certificateListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -443,14 +334,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - CertificateListNextOptions certificateListNextOptions = null; - if (certificateListOptions != null) { - certificateListNextOptions = new CertificateListNextOptions(); - certificateListNextOptions.setClientRequestId(certificateListOptions.getClientRequestId()); - certificateListNextOptions.setReturnClientRequestId(certificateListOptions.getReturnClientRequestId()); - certificateListNextOptions.setOcpDate(certificateListOptions.getOcpDate()); - } - listNextAsync(result.getBody().getNextPageLink(), certificateListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -504,10 +388,7 @@ public ServiceResponseWithHeaders, CertificateListHeaders if (certificateListOptions != null) { ocpDate = certificateListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, CertificateListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -571,10 +452,7 @@ public ServiceCall listAsync(final CertificateListOptions certificateListOptions if (certificateListOptions != null) { ocpDate = certificateListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -633,25 +511,9 @@ public ServiceResponseWithHeaders cancel } final CertificateCancelDeletionOptions certificateCancelDeletionOptions = null; Integer timeout = null; - if (certificateCancelDeletionOptions != null) { - timeout = certificateCancelDeletionOptions.getTimeout(); - } String clientRequestId = null; - if (certificateCancelDeletionOptions != null) { - clientRequestId = certificateCancelDeletionOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateCancelDeletionOptions != null) { - returnClientRequestId = certificateCancelDeletionOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateCancelDeletionOptions != null) { - ocpDate = certificateCancelDeletionOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.cancelDeletion(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return cancelDeletionDelegate(call.execute()); } @@ -683,25 +545,9 @@ public ServiceCall cancelDeletionAsync(String thumbprintAlgorithm, String thumbp } final CertificateCancelDeletionOptions certificateCancelDeletionOptions = null; Integer timeout = null; - if (certificateCancelDeletionOptions != null) { - timeout = certificateCancelDeletionOptions.getTimeout(); - } String clientRequestId = null; - if (certificateCancelDeletionOptions != null) { - clientRequestId = certificateCancelDeletionOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateCancelDeletionOptions != null) { - returnClientRequestId = certificateCancelDeletionOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateCancelDeletionOptions != null) { - ocpDate = certificateCancelDeletionOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.cancelDeletion(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -755,10 +601,7 @@ public ServiceResponseWithHeaders cancel if (certificateCancelDeletionOptions != null) { ocpDate = certificateCancelDeletionOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.cancelDeletion(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return cancelDeletionDelegate(call.execute()); } @@ -806,10 +649,7 @@ public ServiceCall cancelDeletionAsync(String thumbprintAlgorithm, String thumbp if (certificateCancelDeletionOptions != null) { ocpDate = certificateCancelDeletionOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.cancelDeletion(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -854,25 +694,9 @@ public ServiceResponseWithHeaders delete(String } final CertificateDeleteOptions certificateDeleteOptions = null; Integer timeout = null; - if (certificateDeleteOptions != null) { - timeout = certificateDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (certificateDeleteOptions != null) { - clientRequestId = certificateDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateDeleteOptions != null) { - returnClientRequestId = certificateDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateDeleteOptions != null) { - ocpDate = certificateDeleteOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.delete(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteDelegate(call.execute()); } @@ -904,25 +728,9 @@ public ServiceCall deleteAsync(String thumbprintAlgorithm, String thumbprint, fi } final CertificateDeleteOptions certificateDeleteOptions = null; Integer timeout = null; - if (certificateDeleteOptions != null) { - timeout = certificateDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (certificateDeleteOptions != null) { - clientRequestId = certificateDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateDeleteOptions != null) { - returnClientRequestId = certificateDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateDeleteOptions != null) { - ocpDate = certificateDeleteOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.delete(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -976,10 +784,7 @@ public ServiceResponseWithHeaders delete(String if (certificateDeleteOptions != null) { ocpDate = certificateDeleteOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.delete(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteDelegate(call.execute()); } @@ -1027,10 +832,7 @@ public ServiceCall deleteAsync(String thumbprintAlgorithm, String thumbprint, Ce if (certificateDeleteOptions != null) { ocpDate = certificateDeleteOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.delete(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1075,29 +877,10 @@ public ServiceResponseWithHeaders get(String } final CertificateGetOptions certificateGetOptions = null; String select = null; - if (certificateGetOptions != null) { - select = certificateGetOptions.getSelect(); - } Integer timeout = null; - if (certificateGetOptions != null) { - timeout = certificateGetOptions.getTimeout(); - } String clientRequestId = null; - if (certificateGetOptions != null) { - clientRequestId = certificateGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateGetOptions != null) { - returnClientRequestId = certificateGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateGetOptions != null) { - ocpDate = certificateGetOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.get(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -1129,29 +912,10 @@ public ServiceCall getAsync(String thumbprintAlgorithm, String thumbprint, final } final CertificateGetOptions certificateGetOptions = null; String select = null; - if (certificateGetOptions != null) { - select = certificateGetOptions.getSelect(); - } Integer timeout = null; - if (certificateGetOptions != null) { - timeout = certificateGetOptions.getTimeout(); - } String clientRequestId = null; - if (certificateGetOptions != null) { - clientRequestId = certificateGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateGetOptions != null) { - returnClientRequestId = certificateGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateGetOptions != null) { - ocpDate = certificateGetOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.get(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1209,10 +973,7 @@ public ServiceResponseWithHeaders get(String if (certificateGetOptions != null) { ocpDate = certificateGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -1264,10 +1025,7 @@ public ServiceCall getAsync(String thumbprintAlgorithm, String thumbprint, Certi if (certificateGetOptions != null) { ocpDate = certificateGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1305,21 +1063,8 @@ public ServiceResponseWithHeaders, CertificateListHeaders> } final CertificateListNextOptions certificateListNextOptions = null; String clientRequestId = null; - if (certificateListNextOptions != null) { - clientRequestId = certificateListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateListNextOptions != null) { - returnClientRequestId = certificateListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateListNextOptions != null) { - ocpDate = certificateListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -1343,21 +1088,8 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } final CertificateListNextOptions certificateListNextOptions = null; String clientRequestId = null; - if (certificateListNextOptions != null) { - clientRequestId = certificateListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (certificateListNextOptions != null) { - returnClientRequestId = certificateListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (certificateListNextOptions != null) { - ocpDate = certificateListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -1368,7 +1100,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listNextAsync(result.getBody().getNextPageLink(), certificateListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -1407,10 +1139,7 @@ public ServiceResponseWithHeaders, CertificateListHeaders> if (certificateListNextOptions != null) { ocpDate = certificateListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -1446,10 +1175,7 @@ public ServiceCall listNextAsync(final String nextPageLink, final CertificateLis if (certificateListNextOptions != null) { ocpDate = certificateListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperations.java index b848af6db4e7..03969f7e1659 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperations.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java index a4395f5c9424..e1d7e5eb58b5 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; @@ -183,25 +169,9 @@ public ServiceResponseWithHeaders addUser(Strin Validator.validate(user); final ComputeNodeAddUserOptions computeNodeAddUserOptions = null; Integer timeout = null; - if (computeNodeAddUserOptions != null) { - timeout = computeNodeAddUserOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeAddUserOptions != null) { - clientRequestId = computeNodeAddUserOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeAddUserOptions != null) { - returnClientRequestId = computeNodeAddUserOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeAddUserOptions != null) { - ocpDate = computeNodeAddUserOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.addUser(poolId, nodeId, user, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addUserDelegate(call.execute()); } @@ -239,25 +209,9 @@ public ServiceCall addUserAsync(String poolId, String nodeId, ComputeNodeUser us Validator.validate(user, serviceCallback); final ComputeNodeAddUserOptions computeNodeAddUserOptions = null; Integer timeout = null; - if (computeNodeAddUserOptions != null) { - timeout = computeNodeAddUserOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeAddUserOptions != null) { - clientRequestId = computeNodeAddUserOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeAddUserOptions != null) { - returnClientRequestId = computeNodeAddUserOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeAddUserOptions != null) { - ocpDate = computeNodeAddUserOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.addUser(poolId, nodeId, user, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -316,10 +270,7 @@ public ServiceResponseWithHeaders addUser(Strin if (computeNodeAddUserOptions != null) { ocpDate = computeNodeAddUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.addUser(poolId, nodeId, user, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addUserDelegate(call.execute()); } @@ -373,10 +324,7 @@ public ServiceCall addUserAsync(String poolId, String nodeId, ComputeNodeUser us if (computeNodeAddUserOptions != null) { ocpDate = computeNodeAddUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.addUser(poolId, nodeId, user, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -425,25 +373,9 @@ public ServiceResponseWithHeaders deleteUser } final ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions = null; Integer timeout = null; - if (computeNodeDeleteUserOptions != null) { - timeout = computeNodeDeleteUserOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeDeleteUserOptions != null) { - clientRequestId = computeNodeDeleteUserOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeDeleteUserOptions != null) { - returnClientRequestId = computeNodeDeleteUserOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeDeleteUserOptions != null) { - ocpDate = computeNodeDeleteUserOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.deleteUser(poolId, nodeId, userName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteUserDelegate(call.execute()); } @@ -480,25 +412,9 @@ public ServiceCall deleteUserAsync(String poolId, String nodeId, String userName } final ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions = null; Integer timeout = null; - if (computeNodeDeleteUserOptions != null) { - timeout = computeNodeDeleteUserOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeDeleteUserOptions != null) { - clientRequestId = computeNodeDeleteUserOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeDeleteUserOptions != null) { - returnClientRequestId = computeNodeDeleteUserOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeDeleteUserOptions != null) { - ocpDate = computeNodeDeleteUserOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.deleteUser(poolId, nodeId, userName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -556,10 +472,7 @@ public ServiceResponseWithHeaders deleteUser if (computeNodeDeleteUserOptions != null) { ocpDate = computeNodeDeleteUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.deleteUser(poolId, nodeId, userName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteUserDelegate(call.execute()); } @@ -612,10 +525,7 @@ public ServiceCall deleteUserAsync(String poolId, String nodeId, String userName if (computeNodeDeleteUserOptions != null) { ocpDate = computeNodeDeleteUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.deleteUser(poolId, nodeId, userName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -669,25 +579,9 @@ public ServiceResponseWithHeaders updateUser Validator.validate(nodeUpdateUserParameter); final ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = null; Integer timeout = null; - if (computeNodeUpdateUserOptions != null) { - timeout = computeNodeUpdateUserOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeUpdateUserOptions != null) { - clientRequestId = computeNodeUpdateUserOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeUpdateUserOptions != null) { - returnClientRequestId = computeNodeUpdateUserOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeUpdateUserOptions != null) { - ocpDate = computeNodeUpdateUserOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return updateUserDelegate(call.execute()); } @@ -730,25 +624,9 @@ public ServiceCall updateUserAsync(String poolId, String nodeId, String userName Validator.validate(nodeUpdateUserParameter, serviceCallback); final ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = null; Integer timeout = null; - if (computeNodeUpdateUserOptions != null) { - timeout = computeNodeUpdateUserOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeUpdateUserOptions != null) { - clientRequestId = computeNodeUpdateUserOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeUpdateUserOptions != null) { - returnClientRequestId = computeNodeUpdateUserOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeUpdateUserOptions != null) { - ocpDate = computeNodeUpdateUserOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -811,10 +689,7 @@ public ServiceResponseWithHeaders updateUser if (computeNodeUpdateUserOptions != null) { ocpDate = computeNodeUpdateUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return updateUserDelegate(call.execute()); } @@ -873,10 +748,7 @@ public ServiceCall updateUserAsync(String poolId, String nodeId, String userName if (computeNodeUpdateUserOptions != null) { ocpDate = computeNodeUpdateUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -921,29 +793,10 @@ public ServiceResponseWithHeaders get(String } final ComputeNodeGetOptions computeNodeGetOptions = null; String select = null; - if (computeNodeGetOptions != null) { - select = computeNodeGetOptions.getSelect(); - } Integer timeout = null; - if (computeNodeGetOptions != null) { - timeout = computeNodeGetOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeGetOptions != null) { - clientRequestId = computeNodeGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeGetOptions != null) { - returnClientRequestId = computeNodeGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeGetOptions != null) { - ocpDate = computeNodeGetOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.get(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -975,29 +828,10 @@ public ServiceCall getAsync(String poolId, String nodeId, final ServiceCallback< } final ComputeNodeGetOptions computeNodeGetOptions = null; String select = null; - if (computeNodeGetOptions != null) { - select = computeNodeGetOptions.getSelect(); - } Integer timeout = null; - if (computeNodeGetOptions != null) { - timeout = computeNodeGetOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeGetOptions != null) { - clientRequestId = computeNodeGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeGetOptions != null) { - returnClientRequestId = computeNodeGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeGetOptions != null) { - ocpDate = computeNodeGetOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.get(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1055,10 +889,7 @@ public ServiceResponseWithHeaders get(String if (computeNodeGetOptions != null) { ocpDate = computeNodeGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -1110,10 +941,7 @@ public ServiceCall getAsync(String poolId, String nodeId, ComputeNodeGetOptions if (computeNodeGetOptions != null) { ocpDate = computeNodeGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1159,30 +987,11 @@ public ServiceResponseWithHeaders reboot(String final ComputeNodeRebootOption nodeRebootOption = null; final ComputeNodeRebootOptions computeNodeRebootOptions = null; Integer timeout = null; - if (computeNodeRebootOptions != null) { - timeout = computeNodeRebootOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeRebootOptions != null) { - clientRequestId = computeNodeRebootOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeRebootOptions != null) { - returnClientRequestId = computeNodeRebootOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeRebootOptions != null) { - ocpDate = computeNodeRebootOptions.getOcpDate(); - } - NodeRebootParameter nodeRebootParameter = null; - if (nodeRebootOption != null) { - nodeRebootParameter = new NodeRebootParameter(); - nodeRebootParameter.setNodeRebootOption(nodeRebootOption); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + NodeRebootParameter nodeRebootParameter = new NodeRebootParameter(); + nodeRebootParameter = null; Call call = service.reboot(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeRebootParameter); return rebootDelegate(call.execute()); } @@ -1215,30 +1024,11 @@ public ServiceCall rebootAsync(String poolId, String nodeId, final ServiceCallba final ComputeNodeRebootOption nodeRebootOption = null; final ComputeNodeRebootOptions computeNodeRebootOptions = null; Integer timeout = null; - if (computeNodeRebootOptions != null) { - timeout = computeNodeRebootOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeRebootOptions != null) { - clientRequestId = computeNodeRebootOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeRebootOptions != null) { - returnClientRequestId = computeNodeRebootOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeRebootOptions != null) { - ocpDate = computeNodeRebootOptions.getOcpDate(); - } - NodeRebootParameter nodeRebootParameter = null; - if (nodeRebootOption != null) { - nodeRebootParameter = new NodeRebootParameter(); - nodeRebootParameter.setNodeRebootOption(nodeRebootOption); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + NodeRebootParameter nodeRebootParameter = new NodeRebootParameter(); + nodeRebootParameter = null; Call call = service.reboot(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeRebootParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1298,10 +1088,7 @@ public ServiceResponseWithHeaders reboot(String nodeRebootParameter = new NodeRebootParameter(); nodeRebootParameter.setNodeRebootOption(nodeRebootOption); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.reboot(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeRebootParameter); return rebootDelegate(call.execute()); } @@ -1355,10 +1142,7 @@ public ServiceCall rebootAsync(String poolId, String nodeId, ComputeNodeRebootOp nodeRebootParameter = new NodeRebootParameter(); nodeRebootParameter.setNodeRebootOption(nodeRebootOption); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.reboot(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeRebootParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1404,30 +1188,11 @@ public ServiceResponseWithHeaders reimage(Strin final ComputeNodeReimageOption nodeReimageOption = null; final ComputeNodeReimageOptions computeNodeReimageOptions = null; Integer timeout = null; - if (computeNodeReimageOptions != null) { - timeout = computeNodeReimageOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeReimageOptions != null) { - clientRequestId = computeNodeReimageOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeReimageOptions != null) { - returnClientRequestId = computeNodeReimageOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeReimageOptions != null) { - ocpDate = computeNodeReimageOptions.getOcpDate(); - } - NodeReimageParameter nodeReimageParameter = null; - if (nodeReimageOption != null) { - nodeReimageParameter = new NodeReimageParameter(); - nodeReimageParameter.setNodeReimageOption(nodeReimageOption); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + NodeReimageParameter nodeReimageParameter = new NodeReimageParameter(); + nodeReimageParameter = null; Call call = service.reimage(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeReimageParameter); return reimageDelegate(call.execute()); } @@ -1460,30 +1225,11 @@ public ServiceCall reimageAsync(String poolId, String nodeId, final ServiceCallb final ComputeNodeReimageOption nodeReimageOption = null; final ComputeNodeReimageOptions computeNodeReimageOptions = null; Integer timeout = null; - if (computeNodeReimageOptions != null) { - timeout = computeNodeReimageOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeReimageOptions != null) { - clientRequestId = computeNodeReimageOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeReimageOptions != null) { - returnClientRequestId = computeNodeReimageOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeReimageOptions != null) { - ocpDate = computeNodeReimageOptions.getOcpDate(); - } - NodeReimageParameter nodeReimageParameter = null; - if (nodeReimageOption != null) { - nodeReimageParameter = new NodeReimageParameter(); - nodeReimageParameter.setNodeReimageOption(nodeReimageOption); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + NodeReimageParameter nodeReimageParameter = new NodeReimageParameter(); + nodeReimageParameter = null; Call call = service.reimage(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeReimageParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1543,10 +1289,7 @@ public ServiceResponseWithHeaders reimage(Strin nodeReimageParameter = new NodeReimageParameter(); nodeReimageParameter.setNodeReimageOption(nodeReimageOption); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.reimage(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeReimageParameter); return reimageDelegate(call.execute()); } @@ -1600,10 +1343,7 @@ public ServiceCall reimageAsync(String poolId, String nodeId, ComputeNodeReimage nodeReimageParameter = new NodeReimageParameter(); nodeReimageParameter.setNodeReimageOption(nodeReimageOption); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.reimage(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeReimageParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1649,30 +1389,11 @@ public ServiceResponseWithHeaders dis final DisableComputeNodeSchedulingOption nodeDisableSchedulingOption = null; final ComputeNodeDisableSchedulingOptions computeNodeDisableSchedulingOptions = null; Integer timeout = null; - if (computeNodeDisableSchedulingOptions != null) { - timeout = computeNodeDisableSchedulingOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeDisableSchedulingOptions != null) { - clientRequestId = computeNodeDisableSchedulingOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeDisableSchedulingOptions != null) { - returnClientRequestId = computeNodeDisableSchedulingOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeDisableSchedulingOptions != null) { - ocpDate = computeNodeDisableSchedulingOptions.getOcpDate(); - } - NodeDisableSchedulingParameter nodeDisableSchedulingParameter = null; - if (nodeDisableSchedulingOption != null) { - nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); - nodeDisableSchedulingParameter.setNodeDisableSchedulingOption(nodeDisableSchedulingOption); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + NodeDisableSchedulingParameter nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); + nodeDisableSchedulingParameter = null; Call call = service.disableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeDisableSchedulingParameter); return disableSchedulingDelegate(call.execute()); } @@ -1705,30 +1426,11 @@ public ServiceCall disableSchedulingAsync(String poolId, String nodeId, final Se final DisableComputeNodeSchedulingOption nodeDisableSchedulingOption = null; final ComputeNodeDisableSchedulingOptions computeNodeDisableSchedulingOptions = null; Integer timeout = null; - if (computeNodeDisableSchedulingOptions != null) { - timeout = computeNodeDisableSchedulingOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeDisableSchedulingOptions != null) { - clientRequestId = computeNodeDisableSchedulingOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeDisableSchedulingOptions != null) { - returnClientRequestId = computeNodeDisableSchedulingOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeDisableSchedulingOptions != null) { - ocpDate = computeNodeDisableSchedulingOptions.getOcpDate(); - } - NodeDisableSchedulingParameter nodeDisableSchedulingParameter = null; - if (nodeDisableSchedulingOption != null) { - nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); - nodeDisableSchedulingParameter.setNodeDisableSchedulingOption(nodeDisableSchedulingOption); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + NodeDisableSchedulingParameter nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); + nodeDisableSchedulingParameter = null; Call call = service.disableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeDisableSchedulingParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1788,10 +1490,7 @@ public ServiceResponseWithHeaders dis nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); nodeDisableSchedulingParameter.setNodeDisableSchedulingOption(nodeDisableSchedulingOption); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.disableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeDisableSchedulingParameter); return disableSchedulingDelegate(call.execute()); } @@ -1845,10 +1544,7 @@ public ServiceCall disableSchedulingAsync(String poolId, String nodeId, DisableC nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); nodeDisableSchedulingParameter.setNodeDisableSchedulingOption(nodeDisableSchedulingOption); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.disableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeDisableSchedulingParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1893,25 +1589,9 @@ public ServiceResponseWithHeaders enab } final ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions = null; Integer timeout = null; - if (computeNodeEnableSchedulingOptions != null) { - timeout = computeNodeEnableSchedulingOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeEnableSchedulingOptions != null) { - clientRequestId = computeNodeEnableSchedulingOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeEnableSchedulingOptions != null) { - returnClientRequestId = computeNodeEnableSchedulingOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeEnableSchedulingOptions != null) { - ocpDate = computeNodeEnableSchedulingOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.enableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return enableSchedulingDelegate(call.execute()); } @@ -1943,25 +1623,9 @@ public ServiceCall enableSchedulingAsync(String poolId, String nodeId, final Ser } final ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions = null; Integer timeout = null; - if (computeNodeEnableSchedulingOptions != null) { - timeout = computeNodeEnableSchedulingOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeEnableSchedulingOptions != null) { - clientRequestId = computeNodeEnableSchedulingOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeEnableSchedulingOptions != null) { - returnClientRequestId = computeNodeEnableSchedulingOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeEnableSchedulingOptions != null) { - ocpDate = computeNodeEnableSchedulingOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.enableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2015,10 +1679,7 @@ public ServiceResponseWithHeaders enab if (computeNodeEnableSchedulingOptions != null) { ocpDate = computeNodeEnableSchedulingOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.enableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return enableSchedulingDelegate(call.execute()); } @@ -2066,10 +1727,7 @@ public ServiceCall enableSchedulingAsync(String poolId, String nodeId, ComputeNo if (computeNodeEnableSchedulingOptions != null) { ocpDate = computeNodeEnableSchedulingOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.enableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2114,25 +1772,9 @@ public ServiceResponseWithHeaders call = service.getRemoteDesktop(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getRemoteDesktopDelegate(call.execute()); } @@ -2164,25 +1806,9 @@ public ServiceCall getRemoteDesktopAsync(String poolId, String nodeId, final Ser } final ComputeNodeGetRemoteDesktopOptions computeNodeGetRemoteDesktopOptions = null; Integer timeout = null; - if (computeNodeGetRemoteDesktopOptions != null) { - timeout = computeNodeGetRemoteDesktopOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeGetRemoteDesktopOptions != null) { - clientRequestId = computeNodeGetRemoteDesktopOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeGetRemoteDesktopOptions != null) { - returnClientRequestId = computeNodeGetRemoteDesktopOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeGetRemoteDesktopOptions != null) { - ocpDate = computeNodeGetRemoteDesktopOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.getRemoteDesktop(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2236,10 +1862,7 @@ public ServiceResponseWithHeaders call = service.getRemoteDesktop(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getRemoteDesktopDelegate(call.execute()); } @@ -2287,10 +1910,7 @@ public ServiceCall getRemoteDesktopAsync(String poolId, String nodeId, ComputeNo if (computeNodeGetRemoteDesktopOptions != null) { ocpDate = computeNodeGetRemoteDesktopOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.getRemoteDesktop(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2331,50 +1951,18 @@ public ServiceResponseWithHeaders, ComputeNodeListHeaders } final ComputeNodeListOptions computeNodeListOptions = null; String filter = null; - if (computeNodeListOptions != null) { - filter = computeNodeListOptions.getFilter(); - } String select = null; - if (computeNodeListOptions != null) { - select = computeNodeListOptions.getSelect(); - } Integer maxResults = null; - if (computeNodeListOptions != null) { - maxResults = computeNodeListOptions.getMaxResults(); - } Integer timeout = null; - if (computeNodeListOptions != null) { - timeout = computeNodeListOptions.getTimeout(); - } String clientRequestId = null; - if (computeNodeListOptions != null) { - clientRequestId = computeNodeListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeListOptions != null) { - returnClientRequestId = computeNodeListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeListOptions != null) { - ocpDate = computeNodeListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, ComputeNodeListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - ComputeNodeListNextOptions computeNodeListNextOptions = null; - if (computeNodeListOptions != null) { - computeNodeListNextOptions = new ComputeNodeListNextOptions(); - computeNodeListNextOptions.setClientRequestId(computeNodeListOptions.getClientRequestId()); - computeNodeListNextOptions.setReturnClientRequestId(computeNodeListOptions.getReturnClientRequestId()); - computeNodeListNextOptions.setOcpDate(computeNodeListOptions.getOcpDate()); - } - return listNext(nextPageLink, computeNodeListNextOptions).getBody(); + return listNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -2402,37 +1990,12 @@ public ServiceCall listAsync(final String poolId, final ListOperationCallback call = service.list(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2443,14 +2006,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - ComputeNodeListNextOptions computeNodeListNextOptions = null; - if (computeNodeListOptions != null) { - computeNodeListNextOptions = new ComputeNodeListNextOptions(); - computeNodeListNextOptions.setClientRequestId(computeNodeListOptions.getClientRequestId()); - computeNodeListNextOptions.setReturnClientRequestId(computeNodeListOptions.getReturnClientRequestId()); - computeNodeListNextOptions.setOcpDate(computeNodeListOptions.getOcpDate()); - } - listNextAsync(result.getBody().getNextPageLink(), computeNodeListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2508,10 +2064,7 @@ public ServiceResponseWithHeaders, ComputeNodeListHeaders if (computeNodeListOptions != null) { ocpDate = computeNodeListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, ComputeNodeListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2580,10 +2133,7 @@ public ServiceCall listAsync(final String poolId, final ComputeNodeListOptions c if (computeNodeListOptions != null) { ocpDate = computeNodeListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2635,21 +2185,8 @@ public ServiceResponseWithHeaders, ComputeNodeListHeaders> } final ComputeNodeListNextOptions computeNodeListNextOptions = null; String clientRequestId = null; - if (computeNodeListNextOptions != null) { - clientRequestId = computeNodeListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeListNextOptions != null) { - returnClientRequestId = computeNodeListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeListNextOptions != null) { - ocpDate = computeNodeListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -2673,21 +2210,8 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } final ComputeNodeListNextOptions computeNodeListNextOptions = null; String clientRequestId = null; - if (computeNodeListNextOptions != null) { - clientRequestId = computeNodeListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (computeNodeListNextOptions != null) { - returnClientRequestId = computeNodeListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (computeNodeListNextOptions != null) { - ocpDate = computeNodeListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2698,7 +2222,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listNextAsync(result.getBody().getNextPageLink(), computeNodeListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2737,10 +2261,7 @@ public ServiceResponseWithHeaders, ComputeNodeListHeaders> if (computeNodeListNextOptions != null) { ocpDate = computeNodeListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -2776,10 +2297,7 @@ public ServiceCall listNextAsync(final String nextPageLink, final ComputeNodeLis if (computeNodeListNextOptions != null) { ocpDate = computeNodeListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperations.java index 51172099b5b6..fbb56e77502b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperations.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java index 01966cfce7ef..7a85acc70cb3 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; @@ -168,25 +154,9 @@ public ServiceResponseWithHeaders deleteFromTas final Boolean recursive = null; final FileDeleteFromTaskOptions fileDeleteFromTaskOptions = null; Integer timeout = null; - if (fileDeleteFromTaskOptions != null) { - timeout = fileDeleteFromTaskOptions.getTimeout(); - } String clientRequestId = null; - if (fileDeleteFromTaskOptions != null) { - clientRequestId = fileDeleteFromTaskOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileDeleteFromTaskOptions != null) { - returnClientRequestId = fileDeleteFromTaskOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileDeleteFromTaskOptions != null) { - ocpDate = fileDeleteFromTaskOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.deleteFromTask(jobId, taskId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteFromTaskDelegate(call.execute()); } @@ -224,25 +194,9 @@ public ServiceCall deleteFromTaskAsync(String jobId, String taskId, String fileN final Boolean recursive = null; final FileDeleteFromTaskOptions fileDeleteFromTaskOptions = null; Integer timeout = null; - if (fileDeleteFromTaskOptions != null) { - timeout = fileDeleteFromTaskOptions.getTimeout(); - } String clientRequestId = null; - if (fileDeleteFromTaskOptions != null) { - clientRequestId = fileDeleteFromTaskOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileDeleteFromTaskOptions != null) { - returnClientRequestId = fileDeleteFromTaskOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileDeleteFromTaskOptions != null) { - ocpDate = fileDeleteFromTaskOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.deleteFromTask(jobId, taskId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -301,10 +255,7 @@ public ServiceResponseWithHeaders deleteFromTas if (fileDeleteFromTaskOptions != null) { ocpDate = fileDeleteFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.deleteFromTask(jobId, taskId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteFromTaskDelegate(call.execute()); } @@ -358,10 +309,7 @@ public ServiceCall deleteFromTaskAsync(String jobId, String taskId, String fileN if (fileDeleteFromTaskOptions != null) { ocpDate = fileDeleteFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.deleteFromTask(jobId, taskId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -410,45 +358,12 @@ public ServiceResponseWithHeaders getFromTa } final FileGetFromTaskOptions fileGetFromTaskOptions = null; Integer timeout = null; - if (fileGetFromTaskOptions != null) { - timeout = fileGetFromTaskOptions.getTimeout(); - } String clientRequestId = null; - if (fileGetFromTaskOptions != null) { - clientRequestId = fileGetFromTaskOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileGetFromTaskOptions != null) { - returnClientRequestId = fileGetFromTaskOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileGetFromTaskOptions != null) { - ocpDate = fileGetFromTaskOptions.getOcpDate(); - } - String ocpRange = null; - if (fileGetFromTaskOptions != null) { - ocpRange = fileGetFromTaskOptions.getOcpRange(); - } - DateTime ifModifiedSince = null; - if (fileGetFromTaskOptions != null) { - ifModifiedSince = fileGetFromTaskOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (fileGetFromTaskOptions != null) { - ifUnmodifiedSince = fileGetFromTaskOptions.getIfUnmodifiedSince(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + String ocpRange = null; DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.getFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getFromTaskDelegate(call.execute()); } @@ -485,45 +400,12 @@ public ServiceCall getFromTaskAsync(String jobId, String taskId, String fileName } final FileGetFromTaskOptions fileGetFromTaskOptions = null; Integer timeout = null; - if (fileGetFromTaskOptions != null) { - timeout = fileGetFromTaskOptions.getTimeout(); - } String clientRequestId = null; - if (fileGetFromTaskOptions != null) { - clientRequestId = fileGetFromTaskOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileGetFromTaskOptions != null) { - returnClientRequestId = fileGetFromTaskOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileGetFromTaskOptions != null) { - ocpDate = fileGetFromTaskOptions.getOcpDate(); - } - String ocpRange = null; - if (fileGetFromTaskOptions != null) { - ocpRange = fileGetFromTaskOptions.getOcpRange(); - } - DateTime ifModifiedSince = null; - if (fileGetFromTaskOptions != null) { - ifModifiedSince = fileGetFromTaskOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (fileGetFromTaskOptions != null) { - ifUnmodifiedSince = fileGetFromTaskOptions.getIfUnmodifiedSince(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + String ocpRange = null; DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.getFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -593,18 +475,9 @@ public ServiceResponseWithHeaders getFromTa if (fileGetFromTaskOptions != null) { ifUnmodifiedSince = fileGetFromTaskOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.getFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getFromTaskDelegate(call.execute()); } @@ -669,18 +542,9 @@ public ServiceCall getFromTaskAsync(String jobId, String taskId, String fileName if (fileGetFromTaskOptions != null) { ifUnmodifiedSince = fileGetFromTaskOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.getFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -729,41 +593,11 @@ public ServiceResponseWithHeaders call = service.getNodeFilePropertiesFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getNodeFilePropertiesFromTaskDelegate(call.execute()); } @@ -800,41 +634,11 @@ public ServiceCall getNodeFilePropertiesFromTaskAsync(String jobId, String taskI } final FileGetNodeFilePropertiesFromTaskOptions fileGetNodeFilePropertiesFromTaskOptions = null; Integer timeout = null; - if (fileGetNodeFilePropertiesFromTaskOptions != null) { - timeout = fileGetNodeFilePropertiesFromTaskOptions.getTimeout(); - } String clientRequestId = null; - if (fileGetNodeFilePropertiesFromTaskOptions != null) { - clientRequestId = fileGetNodeFilePropertiesFromTaskOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileGetNodeFilePropertiesFromTaskOptions != null) { - returnClientRequestId = fileGetNodeFilePropertiesFromTaskOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileGetNodeFilePropertiesFromTaskOptions != null) { - ocpDate = fileGetNodeFilePropertiesFromTaskOptions.getOcpDate(); - } - DateTime ifModifiedSince = null; - if (fileGetNodeFilePropertiesFromTaskOptions != null) { - ifModifiedSince = fileGetNodeFilePropertiesFromTaskOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (fileGetNodeFilePropertiesFromTaskOptions != null) { - ifUnmodifiedSince = fileGetNodeFilePropertiesFromTaskOptions.getIfUnmodifiedSince(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.getNodeFilePropertiesFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -900,18 +704,9 @@ public ServiceResponseWithHeaders call = service.getNodeFilePropertiesFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getNodeFilePropertiesFromTaskDelegate(call.execute()); } @@ -972,18 +767,9 @@ public ServiceCall getNodeFilePropertiesFromTaskAsync(String jobId, String taskI if (fileGetNodeFilePropertiesFromTaskOptions != null) { ifUnmodifiedSince = fileGetNodeFilePropertiesFromTaskOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.getNodeFilePropertiesFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -1033,25 +819,9 @@ public ServiceResponseWithHeaders delete final Boolean recursive = null; final FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions = null; Integer timeout = null; - if (fileDeleteFromComputeNodeOptions != null) { - timeout = fileDeleteFromComputeNodeOptions.getTimeout(); - } String clientRequestId = null; - if (fileDeleteFromComputeNodeOptions != null) { - clientRequestId = fileDeleteFromComputeNodeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileDeleteFromComputeNodeOptions != null) { - returnClientRequestId = fileDeleteFromComputeNodeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileDeleteFromComputeNodeOptions != null) { - ocpDate = fileDeleteFromComputeNodeOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.deleteFromComputeNode(poolId, nodeId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteFromComputeNodeDelegate(call.execute()); } @@ -1089,25 +859,9 @@ public ServiceCall deleteFromComputeNodeAsync(String poolId, String nodeId, Stri final Boolean recursive = null; final FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions = null; Integer timeout = null; - if (fileDeleteFromComputeNodeOptions != null) { - timeout = fileDeleteFromComputeNodeOptions.getTimeout(); - } String clientRequestId = null; - if (fileDeleteFromComputeNodeOptions != null) { - clientRequestId = fileDeleteFromComputeNodeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileDeleteFromComputeNodeOptions != null) { - returnClientRequestId = fileDeleteFromComputeNodeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileDeleteFromComputeNodeOptions != null) { - ocpDate = fileDeleteFromComputeNodeOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.deleteFromComputeNode(poolId, nodeId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1166,10 +920,7 @@ public ServiceResponseWithHeaders delete if (fileDeleteFromComputeNodeOptions != null) { ocpDate = fileDeleteFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.deleteFromComputeNode(poolId, nodeId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteFromComputeNodeDelegate(call.execute()); } @@ -1223,10 +974,7 @@ public ServiceCall deleteFromComputeNodeAsync(String poolId, String nodeId, Stri if (fileDeleteFromComputeNodeOptions != null) { ocpDate = fileDeleteFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.deleteFromComputeNode(poolId, nodeId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1275,45 +1023,12 @@ public ServiceResponseWithHeaders ge } final FileGetFromComputeNodeOptions fileGetFromComputeNodeOptions = null; Integer timeout = null; - if (fileGetFromComputeNodeOptions != null) { - timeout = fileGetFromComputeNodeOptions.getTimeout(); - } String clientRequestId = null; - if (fileGetFromComputeNodeOptions != null) { - clientRequestId = fileGetFromComputeNodeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileGetFromComputeNodeOptions != null) { - returnClientRequestId = fileGetFromComputeNodeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileGetFromComputeNodeOptions != null) { - ocpDate = fileGetFromComputeNodeOptions.getOcpDate(); - } - String ocpRange = null; - if (fileGetFromComputeNodeOptions != null) { - ocpRange = fileGetFromComputeNodeOptions.getOcpRange(); - } - DateTime ifModifiedSince = null; - if (fileGetFromComputeNodeOptions != null) { - ifModifiedSince = fileGetFromComputeNodeOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (fileGetFromComputeNodeOptions != null) { - ifUnmodifiedSince = fileGetFromComputeNodeOptions.getIfUnmodifiedSince(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + String ocpRange = null; DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.getFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getFromComputeNodeDelegate(call.execute()); } @@ -1350,45 +1065,12 @@ public ServiceCall getFromComputeNodeAsync(String poolId, String nodeId, String } final FileGetFromComputeNodeOptions fileGetFromComputeNodeOptions = null; Integer timeout = null; - if (fileGetFromComputeNodeOptions != null) { - timeout = fileGetFromComputeNodeOptions.getTimeout(); - } String clientRequestId = null; - if (fileGetFromComputeNodeOptions != null) { - clientRequestId = fileGetFromComputeNodeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileGetFromComputeNodeOptions != null) { - returnClientRequestId = fileGetFromComputeNodeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileGetFromComputeNodeOptions != null) { - ocpDate = fileGetFromComputeNodeOptions.getOcpDate(); - } - String ocpRange = null; - if (fileGetFromComputeNodeOptions != null) { - ocpRange = fileGetFromComputeNodeOptions.getOcpRange(); - } - DateTime ifModifiedSince = null; - if (fileGetFromComputeNodeOptions != null) { - ifModifiedSince = fileGetFromComputeNodeOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (fileGetFromComputeNodeOptions != null) { - ifUnmodifiedSince = fileGetFromComputeNodeOptions.getIfUnmodifiedSince(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + String ocpRange = null; DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.getFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1458,18 +1140,9 @@ public ServiceResponseWithHeaders ge if (fileGetFromComputeNodeOptions != null) { ifUnmodifiedSince = fileGetFromComputeNodeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.getFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getFromComputeNodeDelegate(call.execute()); } @@ -1534,18 +1207,9 @@ public ServiceCall getFromComputeNodeAsync(String poolId, String nodeId, String if (fileGetFromComputeNodeOptions != null) { ifUnmodifiedSince = fileGetFromComputeNodeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.getFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1594,41 +1258,11 @@ public ServiceResponseWithHeaders call = service.getNodeFilePropertiesFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getNodeFilePropertiesFromComputeNodeDelegate(call.execute()); } @@ -1665,41 +1299,11 @@ public ServiceCall getNodeFilePropertiesFromComputeNodeAsync(String poolId, Stri } final FileGetNodeFilePropertiesFromComputeNodeOptions fileGetNodeFilePropertiesFromComputeNodeOptions = null; Integer timeout = null; - if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { - timeout = fileGetNodeFilePropertiesFromComputeNodeOptions.getTimeout(); - } String clientRequestId = null; - if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { - clientRequestId = fileGetNodeFilePropertiesFromComputeNodeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { - returnClientRequestId = fileGetNodeFilePropertiesFromComputeNodeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { - ocpDate = fileGetNodeFilePropertiesFromComputeNodeOptions.getOcpDate(); - } - DateTime ifModifiedSince = null; - if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { - ifModifiedSince = fileGetNodeFilePropertiesFromComputeNodeOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { - ifUnmodifiedSince = fileGetNodeFilePropertiesFromComputeNodeOptions.getIfUnmodifiedSince(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.getNodeFilePropertiesFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -1765,18 +1369,9 @@ public ServiceResponseWithHeaders call = service.getNodeFilePropertiesFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getNodeFilePropertiesFromComputeNodeDelegate(call.execute()); } @@ -1837,18 +1432,9 @@ public ServiceCall getNodeFilePropertiesFromComputeNodeAsync(String poolId, Stri if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { ifUnmodifiedSince = fileGetNodeFilePropertiesFromComputeNodeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.getNodeFilePropertiesFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -1894,46 +1480,17 @@ public ServiceResponseWithHeaders, FileListFromTaskHeaders> final Boolean recursive = null; final FileListFromTaskOptions fileListFromTaskOptions = null; String filter = null; - if (fileListFromTaskOptions != null) { - filter = fileListFromTaskOptions.getFilter(); - } Integer maxResults = null; - if (fileListFromTaskOptions != null) { - maxResults = fileListFromTaskOptions.getMaxResults(); - } Integer timeout = null; - if (fileListFromTaskOptions != null) { - timeout = fileListFromTaskOptions.getTimeout(); - } String clientRequestId = null; - if (fileListFromTaskOptions != null) { - clientRequestId = fileListFromTaskOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromTaskOptions != null) { - returnClientRequestId = fileListFromTaskOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromTaskOptions != null) { - ocpDate = fileListFromTaskOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromTask(jobId, taskId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, FileListFromTaskHeaders> response = listFromTaskDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - FileListFromTaskNextOptions fileListFromTaskNextOptions = null; - if (fileListFromTaskOptions != null) { - fileListFromTaskNextOptions = new FileListFromTaskNextOptions(); - fileListFromTaskNextOptions.setClientRequestId(fileListFromTaskOptions.getClientRequestId()); - fileListFromTaskNextOptions.setReturnClientRequestId(fileListFromTaskOptions.getReturnClientRequestId()); - fileListFromTaskNextOptions.setOcpDate(fileListFromTaskOptions.getOcpDate()); - } - return listFromTaskNext(nextPageLink, fileListFromTaskNextOptions).getBody(); + return listFromTaskNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -1967,33 +1524,11 @@ public ServiceCall listFromTaskAsync(final String jobId, final String taskId, fi final Boolean recursive = null; final FileListFromTaskOptions fileListFromTaskOptions = null; String filter = null; - if (fileListFromTaskOptions != null) { - filter = fileListFromTaskOptions.getFilter(); - } Integer maxResults = null; - if (fileListFromTaskOptions != null) { - maxResults = fileListFromTaskOptions.getMaxResults(); - } Integer timeout = null; - if (fileListFromTaskOptions != null) { - timeout = fileListFromTaskOptions.getTimeout(); - } String clientRequestId = null; - if (fileListFromTaskOptions != null) { - clientRequestId = fileListFromTaskOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromTaskOptions != null) { - returnClientRequestId = fileListFromTaskOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromTaskOptions != null) { - ocpDate = fileListFromTaskOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromTask(jobId, taskId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2004,14 +1539,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - FileListFromTaskNextOptions fileListFromTaskNextOptions = null; - if (fileListFromTaskOptions != null) { - fileListFromTaskNextOptions = new FileListFromTaskNextOptions(); - fileListFromTaskNextOptions.setClientRequestId(fileListFromTaskOptions.getClientRequestId()); - fileListFromTaskNextOptions.setReturnClientRequestId(fileListFromTaskOptions.getReturnClientRequestId()); - fileListFromTaskNextOptions.setOcpDate(fileListFromTaskOptions.getOcpDate()); - } - listFromTaskNextAsync(result.getBody().getNextPageLink(), fileListFromTaskNextOptions, serviceCall, serviceCallback); + listFromTaskNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2070,10 +1598,7 @@ public ServiceResponseWithHeaders, FileListFromTaskHeaders> if (fileListFromTaskOptions != null) { ocpDate = fileListFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromTask(jobId, taskId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, FileListFromTaskHeaders> response = listFromTaskDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2144,10 +1669,7 @@ public ServiceCall listFromTaskAsync(final String jobId, final String taskId, fi if (fileListFromTaskOptions != null) { ocpDate = fileListFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromTask(jobId, taskId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2207,46 +1729,17 @@ public ServiceResponseWithHeaders, FileListFromComputeNodeHe final Boolean recursive = null; final FileListFromComputeNodeOptions fileListFromComputeNodeOptions = null; String filter = null; - if (fileListFromComputeNodeOptions != null) { - filter = fileListFromComputeNodeOptions.getFilter(); - } Integer maxResults = null; - if (fileListFromComputeNodeOptions != null) { - maxResults = fileListFromComputeNodeOptions.getMaxResults(); - } Integer timeout = null; - if (fileListFromComputeNodeOptions != null) { - timeout = fileListFromComputeNodeOptions.getTimeout(); - } String clientRequestId = null; - if (fileListFromComputeNodeOptions != null) { - clientRequestId = fileListFromComputeNodeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromComputeNodeOptions != null) { - returnClientRequestId = fileListFromComputeNodeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromComputeNodeOptions != null) { - ocpDate = fileListFromComputeNodeOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromComputeNode(poolId, nodeId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, FileListFromComputeNodeHeaders> response = listFromComputeNodeDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - FileListFromComputeNodeNextOptions fileListFromComputeNodeNextOptions = null; - if (fileListFromComputeNodeOptions != null) { - fileListFromComputeNodeNextOptions = new FileListFromComputeNodeNextOptions(); - fileListFromComputeNodeNextOptions.setClientRequestId(fileListFromComputeNodeOptions.getClientRequestId()); - fileListFromComputeNodeNextOptions.setReturnClientRequestId(fileListFromComputeNodeOptions.getReturnClientRequestId()); - fileListFromComputeNodeNextOptions.setOcpDate(fileListFromComputeNodeOptions.getOcpDate()); - } - return listFromComputeNodeNext(nextPageLink, fileListFromComputeNodeNextOptions).getBody(); + return listFromComputeNodeNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -2280,33 +1773,11 @@ public ServiceCall listFromComputeNodeAsync(final String poolId, final String no final Boolean recursive = null; final FileListFromComputeNodeOptions fileListFromComputeNodeOptions = null; String filter = null; - if (fileListFromComputeNodeOptions != null) { - filter = fileListFromComputeNodeOptions.getFilter(); - } Integer maxResults = null; - if (fileListFromComputeNodeOptions != null) { - maxResults = fileListFromComputeNodeOptions.getMaxResults(); - } Integer timeout = null; - if (fileListFromComputeNodeOptions != null) { - timeout = fileListFromComputeNodeOptions.getTimeout(); - } String clientRequestId = null; - if (fileListFromComputeNodeOptions != null) { - clientRequestId = fileListFromComputeNodeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromComputeNodeOptions != null) { - returnClientRequestId = fileListFromComputeNodeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromComputeNodeOptions != null) { - ocpDate = fileListFromComputeNodeOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromComputeNode(poolId, nodeId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2317,14 +1788,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - FileListFromComputeNodeNextOptions fileListFromComputeNodeNextOptions = null; - if (fileListFromComputeNodeOptions != null) { - fileListFromComputeNodeNextOptions = new FileListFromComputeNodeNextOptions(); - fileListFromComputeNodeNextOptions.setClientRequestId(fileListFromComputeNodeOptions.getClientRequestId()); - fileListFromComputeNodeNextOptions.setReturnClientRequestId(fileListFromComputeNodeOptions.getReturnClientRequestId()); - fileListFromComputeNodeNextOptions.setOcpDate(fileListFromComputeNodeOptions.getOcpDate()); - } - listFromComputeNodeNextAsync(result.getBody().getNextPageLink(), fileListFromComputeNodeNextOptions, serviceCall, serviceCallback); + listFromComputeNodeNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2383,10 +1847,7 @@ public ServiceResponseWithHeaders, FileListFromComputeNodeHe if (fileListFromComputeNodeOptions != null) { ocpDate = fileListFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromComputeNode(poolId, nodeId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, FileListFromComputeNodeHeaders> response = listFromComputeNodeDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2457,10 +1918,7 @@ public ServiceCall listFromComputeNodeAsync(final String poolId, final String no if (fileListFromComputeNodeOptions != null) { ocpDate = fileListFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromComputeNode(poolId, nodeId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2512,21 +1970,8 @@ public ServiceResponseWithHeaders, FileListFromTaskHeaders> l } final FileListFromTaskNextOptions fileListFromTaskNextOptions = null; String clientRequestId = null; - if (fileListFromTaskNextOptions != null) { - clientRequestId = fileListFromTaskNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromTaskNextOptions != null) { - returnClientRequestId = fileListFromTaskNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromTaskNextOptions != null) { - ocpDate = fileListFromTaskNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromTaskNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromTaskNextDelegate(call.execute()); } @@ -2550,21 +1995,8 @@ public ServiceCall listFromTaskNextAsync(final String nextPageLink, final Servic } final FileListFromTaskNextOptions fileListFromTaskNextOptions = null; String clientRequestId = null; - if (fileListFromTaskNextOptions != null) { - clientRequestId = fileListFromTaskNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromTaskNextOptions != null) { - returnClientRequestId = fileListFromTaskNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromTaskNextOptions != null) { - ocpDate = fileListFromTaskNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromTaskNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2575,7 +2007,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listFromTaskNextAsync(result.getBody().getNextPageLink(), fileListFromTaskNextOptions, serviceCall, serviceCallback); + listFromTaskNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2614,10 +2046,7 @@ public ServiceResponseWithHeaders, FileListFromTaskHeaders> l if (fileListFromTaskNextOptions != null) { ocpDate = fileListFromTaskNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromTaskNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromTaskNextDelegate(call.execute()); } @@ -2653,10 +2082,7 @@ public ServiceCall listFromTaskNextAsync(final String nextPageLink, final FileLi if (fileListFromTaskNextOptions != null) { ocpDate = fileListFromTaskNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromTaskNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2701,21 +2127,8 @@ public ServiceResponseWithHeaders, FileListFromComputeNodeHea } final FileListFromComputeNodeNextOptions fileListFromComputeNodeNextOptions = null; String clientRequestId = null; - if (fileListFromComputeNodeNextOptions != null) { - clientRequestId = fileListFromComputeNodeNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromComputeNodeNextOptions != null) { - returnClientRequestId = fileListFromComputeNodeNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromComputeNodeNextOptions != null) { - ocpDate = fileListFromComputeNodeNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromComputeNodeNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromComputeNodeNextDelegate(call.execute()); } @@ -2739,21 +2152,8 @@ public ServiceCall listFromComputeNodeNextAsync(final String nextPageLink, final } final FileListFromComputeNodeNextOptions fileListFromComputeNodeNextOptions = null; String clientRequestId = null; - if (fileListFromComputeNodeNextOptions != null) { - clientRequestId = fileListFromComputeNodeNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (fileListFromComputeNodeNextOptions != null) { - returnClientRequestId = fileListFromComputeNodeNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (fileListFromComputeNodeNextOptions != null) { - ocpDate = fileListFromComputeNodeNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromComputeNodeNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2764,7 +2164,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listFromComputeNodeNextAsync(result.getBody().getNextPageLink(), fileListFromComputeNodeNextOptions, serviceCall, serviceCallback); + listFromComputeNodeNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2803,10 +2203,7 @@ public ServiceResponseWithHeaders, FileListFromComputeNodeHea if (fileListFromComputeNodeNextOptions != null) { ocpDate = fileListFromComputeNodeNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromComputeNodeNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromComputeNodeNextDelegate(call.execute()); } @@ -2842,10 +2239,7 @@ public ServiceCall listFromComputeNodeNextAsync(final String nextPageLink, final if (fileListFromComputeNodeNextOptions != null) { ocpDate = fileListFromComputeNodeNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromComputeNodeNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperations.java index dd76fae0c248..ae325b4451a3 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperations.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java index f7db4f309725..3d41c25adfdf 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; @@ -190,25 +176,9 @@ public ServiceResponseWithHeaders call = service.getAllJobsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getAllJobsLifetimeStatisticsDelegate(call.execute()); } @@ -230,25 +200,9 @@ public ServiceCall getAllJobsLifetimeStatisticsAsync(final ServiceCallback call = service.getAllJobsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -294,10 +248,7 @@ public ServiceResponseWithHeaders call = service.getAllJobsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getAllJobsLifetimeStatisticsDelegate(call.execute()); } @@ -335,10 +286,7 @@ public ServiceCall getAllJobsLifetimeStatisticsAsync(JobGetAllJobsLifetimeStatis if (jobGetAllJobsLifetimeStatisticsOptions != null) { ocpDate = jobGetAllJobsLifetimeStatisticsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.getAllJobsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -379,49 +327,13 @@ public ServiceResponseWithHeaders delete(String jobId) t } final JobDeleteOptions jobDeleteOptions = null; Integer timeout = null; - if (jobDeleteOptions != null) { - timeout = jobDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (jobDeleteOptions != null) { - clientRequestId = jobDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobDeleteOptions != null) { - returnClientRequestId = jobDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobDeleteOptions != null) { - ocpDate = jobDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobDeleteOptions != null) { - ifMatch = jobDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobDeleteOptions != null) { - ifNoneMatch = jobDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobDeleteOptions != null) { - ifModifiedSince = jobDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobDeleteOptions != null) { - ifUnmodifiedSince = jobDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -448,49 +360,13 @@ public ServiceCall deleteAsync(String jobId, final ServiceCallback service } final JobDeleteOptions jobDeleteOptions = null; Integer timeout = null; - if (jobDeleteOptions != null) { - timeout = jobDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (jobDeleteOptions != null) { - clientRequestId = jobDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobDeleteOptions != null) { - returnClientRequestId = jobDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobDeleteOptions != null) { - ocpDate = jobDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobDeleteOptions != null) { - ifMatch = jobDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobDeleteOptions != null) { - ifNoneMatch = jobDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobDeleteOptions != null) { - ifModifiedSince = jobDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobDeleteOptions != null) { - ifUnmodifiedSince = jobDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -556,18 +432,9 @@ public ServiceResponseWithHeaders delete(String jobId, J if (jobDeleteOptions != null) { ifUnmodifiedSince = jobDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -626,18 +493,9 @@ public ServiceCall deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions, if (jobDeleteOptions != null) { ifUnmodifiedSince = jobDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -678,33 +536,11 @@ public ServiceResponseWithHeaders get(String jobId) thr } final JobGetOptions jobGetOptions = null; String select = null; - if (jobGetOptions != null) { - select = jobGetOptions.getSelect(); - } String expand = null; - if (jobGetOptions != null) { - expand = jobGetOptions.getExpand(); - } Integer timeout = null; - if (jobGetOptions != null) { - timeout = jobGetOptions.getTimeout(); - } String clientRequestId = null; - if (jobGetOptions != null) { - clientRequestId = jobGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobGetOptions != null) { - returnClientRequestId = jobGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobGetOptions != null) { - ocpDate = jobGetOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.get(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -731,33 +567,11 @@ public ServiceCall getAsync(String jobId, final ServiceCallback servic } final JobGetOptions jobGetOptions = null; String select = null; - if (jobGetOptions != null) { - select = jobGetOptions.getSelect(); - } String expand = null; - if (jobGetOptions != null) { - expand = jobGetOptions.getExpand(); - } Integer timeout = null; - if (jobGetOptions != null) { - timeout = jobGetOptions.getTimeout(); - } String clientRequestId = null; - if (jobGetOptions != null) { - clientRequestId = jobGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobGetOptions != null) { - returnClientRequestId = jobGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobGetOptions != null) { - ocpDate = jobGetOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.get(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -815,10 +629,7 @@ public ServiceResponseWithHeaders get(String jobId, Job if (jobGetOptions != null) { ocpDate = jobGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -869,10 +680,7 @@ public ServiceCall getAsync(String jobId, JobGetOptions jobGetOptions, final Ser if (jobGetOptions != null) { ocpDate = jobGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.get(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -918,49 +726,13 @@ public ServiceResponseWithHeaders patch(String jobId, Job Validator.validate(jobPatchParameter); final JobPatchOptions jobPatchOptions = null; Integer timeout = null; - if (jobPatchOptions != null) { - timeout = jobPatchOptions.getTimeout(); - } String clientRequestId = null; - if (jobPatchOptions != null) { - clientRequestId = jobPatchOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobPatchOptions != null) { - returnClientRequestId = jobPatchOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobPatchOptions != null) { - ocpDate = jobPatchOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobPatchOptions != null) { - ifMatch = jobPatchOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobPatchOptions != null) { - ifNoneMatch = jobPatchOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobPatchOptions != null) { - ifModifiedSince = jobPatchOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobPatchOptions != null) { - ifUnmodifiedSince = jobPatchOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.patch(jobId, jobPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -993,49 +765,13 @@ public ServiceCall patchAsync(String jobId, JobPatchParameter jobPatchParameter, Validator.validate(jobPatchParameter, serviceCallback); final JobPatchOptions jobPatchOptions = null; Integer timeout = null; - if (jobPatchOptions != null) { - timeout = jobPatchOptions.getTimeout(); - } String clientRequestId = null; - if (jobPatchOptions != null) { - clientRequestId = jobPatchOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobPatchOptions != null) { - returnClientRequestId = jobPatchOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobPatchOptions != null) { - ocpDate = jobPatchOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobPatchOptions != null) { - ifMatch = jobPatchOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobPatchOptions != null) { - ifNoneMatch = jobPatchOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobPatchOptions != null) { - ifModifiedSince = jobPatchOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobPatchOptions != null) { - ifUnmodifiedSince = jobPatchOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.patch(jobId, jobPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1106,18 +842,9 @@ public ServiceResponseWithHeaders patch(String jobId, Job if (jobPatchOptions != null) { ifUnmodifiedSince = jobPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.patch(jobId, jobPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -1182,18 +909,9 @@ public ServiceCall patchAsync(String jobId, JobPatchParameter jobPatchParameter, if (jobPatchOptions != null) { ifUnmodifiedSince = jobPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.patch(jobId, jobPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1239,49 +957,13 @@ public ServiceResponseWithHeaders update(String jobId, J Validator.validate(jobUpdateParameter); final JobUpdateOptions jobUpdateOptions = null; Integer timeout = null; - if (jobUpdateOptions != null) { - timeout = jobUpdateOptions.getTimeout(); - } String clientRequestId = null; - if (jobUpdateOptions != null) { - clientRequestId = jobUpdateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobUpdateOptions != null) { - returnClientRequestId = jobUpdateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobUpdateOptions != null) { - ocpDate = jobUpdateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobUpdateOptions != null) { - ifMatch = jobUpdateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobUpdateOptions != null) { - ifNoneMatch = jobUpdateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobUpdateOptions != null) { - ifModifiedSince = jobUpdateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobUpdateOptions != null) { - ifUnmodifiedSince = jobUpdateOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.update(jobId, jobUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return updateDelegate(call.execute()); } @@ -1314,49 +996,13 @@ public ServiceCall updateAsync(String jobId, JobUpdateParameter jobUpdateParamet Validator.validate(jobUpdateParameter, serviceCallback); final JobUpdateOptions jobUpdateOptions = null; Integer timeout = null; - if (jobUpdateOptions != null) { - timeout = jobUpdateOptions.getTimeout(); - } String clientRequestId = null; - if (jobUpdateOptions != null) { - clientRequestId = jobUpdateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobUpdateOptions != null) { - returnClientRequestId = jobUpdateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobUpdateOptions != null) { - ocpDate = jobUpdateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobUpdateOptions != null) { - ifMatch = jobUpdateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobUpdateOptions != null) { - ifNoneMatch = jobUpdateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobUpdateOptions != null) { - ifModifiedSince = jobUpdateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobUpdateOptions != null) { - ifUnmodifiedSince = jobUpdateOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.update(jobId, jobUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1427,18 +1073,9 @@ public ServiceResponseWithHeaders update(String jobId, J if (jobUpdateOptions != null) { ifUnmodifiedSince = jobUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.update(jobId, jobUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return updateDelegate(call.execute()); } @@ -1503,18 +1140,9 @@ public ServiceCall updateAsync(String jobId, JobUpdateParameter jobUpdateParamet if (jobUpdateOptions != null) { ifUnmodifiedSince = jobUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.update(jobId, jobUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1559,51 +1187,15 @@ public ServiceResponseWithHeaders disable(String jobId, } final JobDisableOptions jobDisableOptions = null; Integer timeout = null; - if (jobDisableOptions != null) { - timeout = jobDisableOptions.getTimeout(); - } String clientRequestId = null; - if (jobDisableOptions != null) { - clientRequestId = jobDisableOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobDisableOptions != null) { - returnClientRequestId = jobDisableOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobDisableOptions != null) { - ocpDate = jobDisableOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobDisableOptions != null) { - ifMatch = jobDisableOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobDisableOptions != null) { - ifNoneMatch = jobDisableOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobDisableOptions != null) { - ifModifiedSince = jobDisableOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobDisableOptions != null) { - ifUnmodifiedSince = jobDisableOptions.getIfUnmodifiedSince(); - } - JobDisableParameter jobDisableParameter = new JobDisableParameter(); - jobDisableParameter.setDisableTasks(disableTasks); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + JobDisableParameter jobDisableParameter = new JobDisableParameter(); + jobDisableParameter.setDisableTasks(disableTasks); Call call = service.disable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobDisableParameter); return disableDelegate(call.execute()); } @@ -1633,53 +1225,17 @@ public ServiceCall disableAsync(String jobId, DisableJobOption disableTasks, fin serviceCallback.failure(new IllegalArgumentException("Parameter disableTasks is required and cannot be null.")); return null; } - final JobDisableOptions jobDisableOptions = null; - Integer timeout = null; - if (jobDisableOptions != null) { - timeout = jobDisableOptions.getTimeout(); - } - String clientRequestId = null; - if (jobDisableOptions != null) { - clientRequestId = jobDisableOptions.getClientRequestId(); - } - Boolean returnClientRequestId = null; - if (jobDisableOptions != null) { - returnClientRequestId = jobDisableOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobDisableOptions != null) { - ocpDate = jobDisableOptions.getOcpDate(); - } - String ifMatch = null; - if (jobDisableOptions != null) { - ifMatch = jobDisableOptions.getIfMatch(); - } - String ifNoneMatch = null; - if (jobDisableOptions != null) { - ifNoneMatch = jobDisableOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobDisableOptions != null) { - ifModifiedSince = jobDisableOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobDisableOptions != null) { - ifUnmodifiedSince = jobDisableOptions.getIfUnmodifiedSince(); - } - JobDisableParameter jobDisableParameter = new JobDisableParameter(); - jobDisableParameter.setDisableTasks(disableTasks); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + final JobDisableOptions jobDisableOptions = null; + Integer timeout = null; + String clientRequestId = null; + Boolean returnClientRequestId = null; + DateTimeRfc1123 ocpDateConverted = null; + String ifMatch = null; + String ifNoneMatch = null; DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + JobDisableParameter jobDisableParameter = new JobDisableParameter(); + jobDisableParameter.setDisableTasks(disableTasks); Call call = service.disable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobDisableParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1751,18 +1307,9 @@ public ServiceResponseWithHeaders disable(String jobId, } JobDisableParameter jobDisableParameter = new JobDisableParameter(); jobDisableParameter.setDisableTasks(disableTasks); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.disable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobDisableParameter); return disableDelegate(call.execute()); } @@ -1828,18 +1375,9 @@ public ServiceCall disableAsync(String jobId, DisableJobOption disableTasks, Job } JobDisableParameter jobDisableParameter = new JobDisableParameter(); jobDisableParameter.setDisableTasks(disableTasks); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.disable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobDisableParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1880,49 +1418,13 @@ public ServiceResponseWithHeaders enable(String jobId) t } final JobEnableOptions jobEnableOptions = null; Integer timeout = null; - if (jobEnableOptions != null) { - timeout = jobEnableOptions.getTimeout(); - } String clientRequestId = null; - if (jobEnableOptions != null) { - clientRequestId = jobEnableOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobEnableOptions != null) { - returnClientRequestId = jobEnableOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobEnableOptions != null) { - ocpDate = jobEnableOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobEnableOptions != null) { - ifMatch = jobEnableOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobEnableOptions != null) { - ifNoneMatch = jobEnableOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobEnableOptions != null) { - ifModifiedSince = jobEnableOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobEnableOptions != null) { - ifUnmodifiedSince = jobEnableOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.enable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableDelegate(call.execute()); } @@ -1949,49 +1451,13 @@ public ServiceCall enableAsync(String jobId, final ServiceCallback service } final JobEnableOptions jobEnableOptions = null; Integer timeout = null; - if (jobEnableOptions != null) { - timeout = jobEnableOptions.getTimeout(); - } String clientRequestId = null; - if (jobEnableOptions != null) { - clientRequestId = jobEnableOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobEnableOptions != null) { - returnClientRequestId = jobEnableOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobEnableOptions != null) { - ocpDate = jobEnableOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobEnableOptions != null) { - ifMatch = jobEnableOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobEnableOptions != null) { - ifNoneMatch = jobEnableOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobEnableOptions != null) { - ifModifiedSince = jobEnableOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobEnableOptions != null) { - ifUnmodifiedSince = jobEnableOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.enable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2057,18 +1523,9 @@ public ServiceResponseWithHeaders enable(String jobId, J if (jobEnableOptions != null) { ifUnmodifiedSince = jobEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.enable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableDelegate(call.execute()); } @@ -2127,18 +1584,9 @@ public ServiceCall enableAsync(String jobId, JobEnableOptions jobEnableOptions, if (jobEnableOptions != null) { ifUnmodifiedSince = jobEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.enable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2180,54 +1628,15 @@ public ServiceResponseWithHeaders terminate(String jo final String terminateReason = null; final JobTerminateOptions jobTerminateOptions = null; Integer timeout = null; - if (jobTerminateOptions != null) { - timeout = jobTerminateOptions.getTimeout(); - } String clientRequestId = null; - if (jobTerminateOptions != null) { - clientRequestId = jobTerminateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobTerminateOptions != null) { - returnClientRequestId = jobTerminateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobTerminateOptions != null) { - ocpDate = jobTerminateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobTerminateOptions != null) { - ifMatch = jobTerminateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobTerminateOptions != null) { - ifNoneMatch = jobTerminateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobTerminateOptions != null) { - ifModifiedSince = jobTerminateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobTerminateOptions != null) { - ifUnmodifiedSince = jobTerminateOptions.getIfUnmodifiedSince(); - } - JobTerminateParameter jobTerminateParameter = null; - if (terminateReason != null) { - jobTerminateParameter = new JobTerminateParameter(); - jobTerminateParameter.setTerminateReason(terminateReason); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + JobTerminateParameter jobTerminateParameter = new JobTerminateParameter(); + jobTerminateParameter = null; Call call = service.terminate(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobTerminateParameter); return terminateDelegate(call.execute()); } @@ -2255,54 +1664,15 @@ public ServiceCall terminateAsync(String jobId, final ServiceCallback serv final String terminateReason = null; final JobTerminateOptions jobTerminateOptions = null; Integer timeout = null; - if (jobTerminateOptions != null) { - timeout = jobTerminateOptions.getTimeout(); - } String clientRequestId = null; - if (jobTerminateOptions != null) { - clientRequestId = jobTerminateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobTerminateOptions != null) { - returnClientRequestId = jobTerminateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobTerminateOptions != null) { - ocpDate = jobTerminateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobTerminateOptions != null) { - ifMatch = jobTerminateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobTerminateOptions != null) { - ifNoneMatch = jobTerminateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobTerminateOptions != null) { - ifModifiedSince = jobTerminateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobTerminateOptions != null) { - ifUnmodifiedSince = jobTerminateOptions.getIfUnmodifiedSince(); - } - JobTerminateParameter jobTerminateParameter = null; - if (terminateReason != null) { - jobTerminateParameter = new JobTerminateParameter(); - jobTerminateParameter.setTerminateReason(terminateReason); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + JobTerminateParameter jobTerminateParameter = new JobTerminateParameter(); + jobTerminateParameter = null; Call call = service.terminate(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobTerminateParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2374,18 +1744,9 @@ public ServiceResponseWithHeaders terminate(String jo jobTerminateParameter = new JobTerminateParameter(); jobTerminateParameter.setTerminateReason(terminateReason); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.terminate(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobTerminateParameter); return terminateDelegate(call.execute()); } @@ -2450,18 +1811,9 @@ public ServiceCall terminateAsync(String jobId, String terminateReason, JobTermi jobTerminateParameter = new JobTerminateParameter(); jobTerminateParameter.setTerminateReason(terminateReason); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.terminate(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobTerminateParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2503,25 +1855,9 @@ public ServiceResponseWithHeaders add(JobAddParameter job) Validator.validate(job); final JobAddOptions jobAddOptions = null; Integer timeout = null; - if (jobAddOptions != null) { - timeout = jobAddOptions.getTimeout(); - } String clientRequestId = null; - if (jobAddOptions != null) { - clientRequestId = jobAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobAddOptions != null) { - returnClientRequestId = jobAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobAddOptions != null) { - ocpDate = jobAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(job, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -2549,25 +1885,9 @@ public ServiceCall addAsync(JobAddParameter job, final ServiceCallback ser Validator.validate(job, serviceCallback); final JobAddOptions jobAddOptions = null; Integer timeout = null; - if (jobAddOptions != null) { - timeout = jobAddOptions.getTimeout(); - } String clientRequestId = null; - if (jobAddOptions != null) { - clientRequestId = jobAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobAddOptions != null) { - returnClientRequestId = jobAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobAddOptions != null) { - ocpDate = jobAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(job, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2618,10 +1938,7 @@ public ServiceResponseWithHeaders add(JobAddParameter job, if (jobAddOptions != null) { ocpDate = jobAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(job, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -2665,10 +1982,7 @@ public ServiceCall addAsync(JobAddParameter job, JobAddOptions jobAddOptions, fi if (jobAddOptions != null) { ocpDate = jobAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(job, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2705,54 +2019,19 @@ public ServiceResponseWithHeaders, JobListHeaders> list() th } final JobListOptions jobListOptions = null; String filter = null; - if (jobListOptions != null) { - filter = jobListOptions.getFilter(); - } String select = null; - if (jobListOptions != null) { - select = jobListOptions.getSelect(); - } String expand = null; - if (jobListOptions != null) { - expand = jobListOptions.getExpand(); - } Integer maxResults = null; - if (jobListOptions != null) { - maxResults = jobListOptions.getMaxResults(); - } Integer timeout = null; - if (jobListOptions != null) { - timeout = jobListOptions.getTimeout(); - } String clientRequestId = null; - if (jobListOptions != null) { - clientRequestId = jobListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListOptions != null) { - returnClientRequestId = jobListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListOptions != null) { - ocpDate = jobListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - JobListNextOptions jobListNextOptions = null; - if (jobListOptions != null) { - jobListNextOptions = new JobListNextOptions(); - jobListNextOptions.setClientRequestId(jobListOptions.getClientRequestId()); - jobListNextOptions.setReturnClientRequestId(jobListOptions.getReturnClientRequestId()); - jobListNextOptions.setOcpDate(jobListOptions.getOcpDate()); - } - return listNext(nextPageLink, jobListNextOptions).getBody(); + return listNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -2773,43 +2052,15 @@ public ServiceCall listAsync(final ListOperationCallback serviceCallba serviceCallback.failure(new IllegalArgumentException("Parameter this.client.getApiVersion() is required and cannot be null.")); return null; } - final JobListOptions jobListOptions = null; - String filter = null; - if (jobListOptions != null) { - filter = jobListOptions.getFilter(); - } + final JobListOptions jobListOptions = null; + String filter = null; String select = null; - if (jobListOptions != null) { - select = jobListOptions.getSelect(); - } String expand = null; - if (jobListOptions != null) { - expand = jobListOptions.getExpand(); - } Integer maxResults = null; - if (jobListOptions != null) { - maxResults = jobListOptions.getMaxResults(); - } Integer timeout = null; - if (jobListOptions != null) { - timeout = jobListOptions.getTimeout(); - } String clientRequestId = null; - if (jobListOptions != null) { - clientRequestId = jobListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListOptions != null) { - returnClientRequestId = jobListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListOptions != null) { - ocpDate = jobListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2820,14 +2071,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - JobListNextOptions jobListNextOptions = null; - if (jobListOptions != null) { - jobListNextOptions = new JobListNextOptions(); - jobListNextOptions.setClientRequestId(jobListOptions.getClientRequestId()); - jobListNextOptions.setReturnClientRequestId(jobListOptions.getReturnClientRequestId()); - jobListNextOptions.setOcpDate(jobListOptions.getOcpDate()); - } - listNextAsync(result.getBody().getNextPageLink(), jobListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2885,10 +2129,7 @@ public ServiceResponseWithHeaders, JobListHeaders> list(fina if (jobListOptions != null) { ocpDate = jobListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2956,10 +2197,7 @@ public ServiceCall listAsync(final JobListOptions jobListOptions, final ListOper if (jobListOptions != null) { ocpDate = jobListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3014,54 +2252,19 @@ public ServiceResponseWithHeaders, JobListFromJobScheduleHea } final JobListFromJobScheduleOptions jobListFromJobScheduleOptions = null; String filter = null; - if (jobListFromJobScheduleOptions != null) { - filter = jobListFromJobScheduleOptions.getFilter(); - } String select = null; - if (jobListFromJobScheduleOptions != null) { - select = jobListFromJobScheduleOptions.getSelect(); - } String expand = null; - if (jobListFromJobScheduleOptions != null) { - expand = jobListFromJobScheduleOptions.getExpand(); - } Integer maxResults = null; - if (jobListFromJobScheduleOptions != null) { - maxResults = jobListFromJobScheduleOptions.getMaxResults(); - } Integer timeout = null; - if (jobListFromJobScheduleOptions != null) { - timeout = jobListFromJobScheduleOptions.getTimeout(); - } String clientRequestId = null; - if (jobListFromJobScheduleOptions != null) { - clientRequestId = jobListFromJobScheduleOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListFromJobScheduleOptions != null) { - returnClientRequestId = jobListFromJobScheduleOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListFromJobScheduleOptions != null) { - ocpDate = jobListFromJobScheduleOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromJobSchedule(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListFromJobScheduleHeaders> response = listFromJobScheduleDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - JobListFromJobScheduleNextOptions jobListFromJobScheduleNextOptions = null; - if (jobListFromJobScheduleOptions != null) { - jobListFromJobScheduleNextOptions = new JobListFromJobScheduleNextOptions(); - jobListFromJobScheduleNextOptions.setClientRequestId(jobListFromJobScheduleOptions.getClientRequestId()); - jobListFromJobScheduleNextOptions.setReturnClientRequestId(jobListFromJobScheduleOptions.getReturnClientRequestId()); - jobListFromJobScheduleNextOptions.setOcpDate(jobListFromJobScheduleOptions.getOcpDate()); - } - return listFromJobScheduleNext(nextPageLink, jobListFromJobScheduleNextOptions).getBody(); + return listFromJobScheduleNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -3089,41 +2292,13 @@ public ServiceCall listFromJobScheduleAsync(final String jobScheduleId, final Li } final JobListFromJobScheduleOptions jobListFromJobScheduleOptions = null; String filter = null; - if (jobListFromJobScheduleOptions != null) { - filter = jobListFromJobScheduleOptions.getFilter(); - } String select = null; - if (jobListFromJobScheduleOptions != null) { - select = jobListFromJobScheduleOptions.getSelect(); - } String expand = null; - if (jobListFromJobScheduleOptions != null) { - expand = jobListFromJobScheduleOptions.getExpand(); - } Integer maxResults = null; - if (jobListFromJobScheduleOptions != null) { - maxResults = jobListFromJobScheduleOptions.getMaxResults(); - } Integer timeout = null; - if (jobListFromJobScheduleOptions != null) { - timeout = jobListFromJobScheduleOptions.getTimeout(); - } String clientRequestId = null; - if (jobListFromJobScheduleOptions != null) { - clientRequestId = jobListFromJobScheduleOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListFromJobScheduleOptions != null) { - returnClientRequestId = jobListFromJobScheduleOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListFromJobScheduleOptions != null) { - ocpDate = jobListFromJobScheduleOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromJobSchedule(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3134,14 +2309,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - JobListFromJobScheduleNextOptions jobListFromJobScheduleNextOptions = null; - if (jobListFromJobScheduleOptions != null) { - jobListFromJobScheduleNextOptions = new JobListFromJobScheduleNextOptions(); - jobListFromJobScheduleNextOptions.setClientRequestId(jobListFromJobScheduleOptions.getClientRequestId()); - jobListFromJobScheduleNextOptions.setReturnClientRequestId(jobListFromJobScheduleOptions.getReturnClientRequestId()); - jobListFromJobScheduleNextOptions.setOcpDate(jobListFromJobScheduleOptions.getOcpDate()); - } - listFromJobScheduleNextAsync(result.getBody().getNextPageLink(), jobListFromJobScheduleNextOptions, serviceCall, serviceCallback); + listFromJobScheduleNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -3203,10 +2371,7 @@ public ServiceResponseWithHeaders, JobListFromJobScheduleHea if (jobListFromJobScheduleOptions != null) { ocpDate = jobListFromJobScheduleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromJobSchedule(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListFromJobScheduleHeaders> response = listFromJobScheduleDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -3279,10 +2444,7 @@ public ServiceCall listFromJobScheduleAsync(final String jobScheduleId, final Jo if (jobListFromJobScheduleOptions != null) { ocpDate = jobListFromJobScheduleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromJobSchedule(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3337,50 +2499,18 @@ public ServiceResponseWithHeaders call = service.listPreparationAndReleaseTaskStatus(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListPreparationAndReleaseTaskStatusHeaders> response = listPreparationAndReleaseTaskStatusDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - JobListPreparationAndReleaseTaskStatusNextOptions jobListPreparationAndReleaseTaskStatusNextOptions = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - jobListPreparationAndReleaseTaskStatusNextOptions = new JobListPreparationAndReleaseTaskStatusNextOptions(); - jobListPreparationAndReleaseTaskStatusNextOptions.setClientRequestId(jobListPreparationAndReleaseTaskStatusOptions.getClientRequestId()); - jobListPreparationAndReleaseTaskStatusNextOptions.setReturnClientRequestId(jobListPreparationAndReleaseTaskStatusOptions.getReturnClientRequestId()); - jobListPreparationAndReleaseTaskStatusNextOptions.setOcpDate(jobListPreparationAndReleaseTaskStatusOptions.getOcpDate()); - } - return listPreparationAndReleaseTaskStatusNext(nextPageLink, jobListPreparationAndReleaseTaskStatusNextOptions).getBody(); + return listPreparationAndReleaseTaskStatusNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -3408,37 +2538,12 @@ public ServiceCall listPreparationAndReleaseTaskStatusAsync(final String jobId, } final JobListPreparationAndReleaseTaskStatusOptions jobListPreparationAndReleaseTaskStatusOptions = null; String filter = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - filter = jobListPreparationAndReleaseTaskStatusOptions.getFilter(); - } String select = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - select = jobListPreparationAndReleaseTaskStatusOptions.getSelect(); - } Integer maxResults = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - maxResults = jobListPreparationAndReleaseTaskStatusOptions.getMaxResults(); - } Integer timeout = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - timeout = jobListPreparationAndReleaseTaskStatusOptions.getTimeout(); - } String clientRequestId = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - clientRequestId = jobListPreparationAndReleaseTaskStatusOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - returnClientRequestId = jobListPreparationAndReleaseTaskStatusOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - ocpDate = jobListPreparationAndReleaseTaskStatusOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listPreparationAndReleaseTaskStatus(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3449,14 +2554,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - JobListPreparationAndReleaseTaskStatusNextOptions jobListPreparationAndReleaseTaskStatusNextOptions = null; - if (jobListPreparationAndReleaseTaskStatusOptions != null) { - jobListPreparationAndReleaseTaskStatusNextOptions = new JobListPreparationAndReleaseTaskStatusNextOptions(); - jobListPreparationAndReleaseTaskStatusNextOptions.setClientRequestId(jobListPreparationAndReleaseTaskStatusOptions.getClientRequestId()); - jobListPreparationAndReleaseTaskStatusNextOptions.setReturnClientRequestId(jobListPreparationAndReleaseTaskStatusOptions.getReturnClientRequestId()); - jobListPreparationAndReleaseTaskStatusNextOptions.setOcpDate(jobListPreparationAndReleaseTaskStatusOptions.getOcpDate()); - } - listPreparationAndReleaseTaskStatusNextAsync(result.getBody().getNextPageLink(), jobListPreparationAndReleaseTaskStatusNextOptions, serviceCall, serviceCallback); + listPreparationAndReleaseTaskStatusNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -3514,10 +2612,7 @@ public ServiceResponseWithHeaders call = service.listPreparationAndReleaseTaskStatus(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListPreparationAndReleaseTaskStatusHeaders> response = listPreparationAndReleaseTaskStatusDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -3586,10 +2681,7 @@ public ServiceCall listPreparationAndReleaseTaskStatusAsync(final String jobId, if (jobListPreparationAndReleaseTaskStatusOptions != null) { ocpDate = jobListPreparationAndReleaseTaskStatusOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listPreparationAndReleaseTaskStatus(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3641,21 +2733,8 @@ public ServiceResponseWithHeaders, JobListHeaders> listNext(f } final JobListNextOptions jobListNextOptions = null; String clientRequestId = null; - if (jobListNextOptions != null) { - clientRequestId = jobListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListNextOptions != null) { - returnClientRequestId = jobListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListNextOptions != null) { - ocpDate = jobListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -3679,21 +2758,8 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } final JobListNextOptions jobListNextOptions = null; String clientRequestId = null; - if (jobListNextOptions != null) { - clientRequestId = jobListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListNextOptions != null) { - returnClientRequestId = jobListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListNextOptions != null) { - ocpDate = jobListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3704,7 +2770,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listNextAsync(result.getBody().getNextPageLink(), jobListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -3743,10 +2809,7 @@ public ServiceResponseWithHeaders, JobListHeaders> listNext(f if (jobListNextOptions != null) { ocpDate = jobListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -3782,10 +2845,7 @@ public ServiceCall listNextAsync(final String nextPageLink, final JobListNextOpt if (jobListNextOptions != null) { ocpDate = jobListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3830,21 +2890,8 @@ public ServiceResponseWithHeaders, JobListFromJobScheduleHead } final JobListFromJobScheduleNextOptions jobListFromJobScheduleNextOptions = null; String clientRequestId = null; - if (jobListFromJobScheduleNextOptions != null) { - clientRequestId = jobListFromJobScheduleNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListFromJobScheduleNextOptions != null) { - returnClientRequestId = jobListFromJobScheduleNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListFromJobScheduleNextOptions != null) { - ocpDate = jobListFromJobScheduleNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromJobScheduleNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromJobScheduleNextDelegate(call.execute()); } @@ -3868,21 +2915,8 @@ public ServiceCall listFromJobScheduleNextAsync(final String nextPageLink, final } final JobListFromJobScheduleNextOptions jobListFromJobScheduleNextOptions = null; String clientRequestId = null; - if (jobListFromJobScheduleNextOptions != null) { - clientRequestId = jobListFromJobScheduleNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListFromJobScheduleNextOptions != null) { - returnClientRequestId = jobListFromJobScheduleNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListFromJobScheduleNextOptions != null) { - ocpDate = jobListFromJobScheduleNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listFromJobScheduleNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3893,7 +2927,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listFromJobScheduleNextAsync(result.getBody().getNextPageLink(), jobListFromJobScheduleNextOptions, serviceCall, serviceCallback); + listFromJobScheduleNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -3932,10 +2966,7 @@ public ServiceResponseWithHeaders, JobListFromJobScheduleHead if (jobListFromJobScheduleNextOptions != null) { ocpDate = jobListFromJobScheduleNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromJobScheduleNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromJobScheduleNextDelegate(call.execute()); } @@ -3971,10 +3002,7 @@ public ServiceCall listFromJobScheduleNextAsync(final String nextPageLink, final if (jobListFromJobScheduleNextOptions != null) { ocpDate = jobListFromJobScheduleNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listFromJobScheduleNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -4019,21 +3047,8 @@ public ServiceResponseWithHeaders call = service.listPreparationAndReleaseTaskStatusNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listPreparationAndReleaseTaskStatusNextDelegate(call.execute()); } @@ -4057,21 +3072,8 @@ public ServiceCall listPreparationAndReleaseTaskStatusNextAsync(final String nex } final JobListPreparationAndReleaseTaskStatusNextOptions jobListPreparationAndReleaseTaskStatusNextOptions = null; String clientRequestId = null; - if (jobListPreparationAndReleaseTaskStatusNextOptions != null) { - clientRequestId = jobListPreparationAndReleaseTaskStatusNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobListPreparationAndReleaseTaskStatusNextOptions != null) { - returnClientRequestId = jobListPreparationAndReleaseTaskStatusNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobListPreparationAndReleaseTaskStatusNextOptions != null) { - ocpDate = jobListPreparationAndReleaseTaskStatusNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listPreparationAndReleaseTaskStatusNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -4082,7 +3084,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listPreparationAndReleaseTaskStatusNextAsync(result.getBody().getNextPageLink(), jobListPreparationAndReleaseTaskStatusNextOptions, serviceCall, serviceCallback); + listPreparationAndReleaseTaskStatusNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -4121,10 +3123,7 @@ public ServiceResponseWithHeaders call = service.listPreparationAndReleaseTaskStatusNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listPreparationAndReleaseTaskStatusNextDelegate(call.execute()); } @@ -4160,10 +3159,7 @@ public ServiceCall listPreparationAndReleaseTaskStatusNextAsync(final String nex if (jobListPreparationAndReleaseTaskStatusNextOptions != null) { ocpDate = jobListPreparationAndReleaseTaskStatusNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listPreparationAndReleaseTaskStatusNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperations.java index 66a4a2e4afab..6cf676da2a75 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperations.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java index c26800bef438..8ec25d906bc5 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; @@ -169,53 +155,14 @@ public ServiceResponseWithHeaders exists(Stri } final JobScheduleExistsOptions jobScheduleExistsOptions = null; String select = null; - if (jobScheduleExistsOptions != null) { - select = jobScheduleExistsOptions.getSelect(); - } Integer timeout = null; - if (jobScheduleExistsOptions != null) { - timeout = jobScheduleExistsOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleExistsOptions != null) { - clientRequestId = jobScheduleExistsOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleExistsOptions != null) { - returnClientRequestId = jobScheduleExistsOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleExistsOptions != null) { - ocpDate = jobScheduleExistsOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleExistsOptions != null) { - ifMatch = jobScheduleExistsOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleExistsOptions != null) { - ifNoneMatch = jobScheduleExistsOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleExistsOptions != null) { - ifModifiedSince = jobScheduleExistsOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleExistsOptions != null) { - ifUnmodifiedSince = jobScheduleExistsOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.exists(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return existsDelegate(call.execute()); } @@ -242,53 +189,14 @@ public ServiceCall existsAsync(String jobScheduleId, final ServiceCallback call = service.exists(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -358,18 +266,9 @@ public ServiceResponseWithHeaders exists(Stri if (jobScheduleExistsOptions != null) { ifUnmodifiedSince = jobScheduleExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.exists(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return existsDelegate(call.execute()); } @@ -432,18 +331,9 @@ public ServiceCall existsAsync(String jobScheduleId, JobScheduleExistsOptions jo if (jobScheduleExistsOptions != null) { ifUnmodifiedSince = jobScheduleExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.exists(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -485,49 +375,13 @@ public ServiceResponseWithHeaders delete(String } final JobScheduleDeleteOptions jobScheduleDeleteOptions = null; Integer timeout = null; - if (jobScheduleDeleteOptions != null) { - timeout = jobScheduleDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleDeleteOptions != null) { - clientRequestId = jobScheduleDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleDeleteOptions != null) { - returnClientRequestId = jobScheduleDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleDeleteOptions != null) { - ocpDate = jobScheduleDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleDeleteOptions != null) { - ifMatch = jobScheduleDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleDeleteOptions != null) { - ifNoneMatch = jobScheduleDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleDeleteOptions != null) { - ifModifiedSince = jobScheduleDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleDeleteOptions != null) { - ifUnmodifiedSince = jobScheduleDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -554,49 +408,13 @@ public ServiceCall deleteAsync(String jobScheduleId, final ServiceCallback } final JobScheduleDeleteOptions jobScheduleDeleteOptions = null; Integer timeout = null; - if (jobScheduleDeleteOptions != null) { - timeout = jobScheduleDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleDeleteOptions != null) { - clientRequestId = jobScheduleDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleDeleteOptions != null) { - returnClientRequestId = jobScheduleDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleDeleteOptions != null) { - ocpDate = jobScheduleDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleDeleteOptions != null) { - ifMatch = jobScheduleDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleDeleteOptions != null) { - ifNoneMatch = jobScheduleDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleDeleteOptions != null) { - ifModifiedSince = jobScheduleDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleDeleteOptions != null) { - ifUnmodifiedSince = jobScheduleDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -662,18 +480,9 @@ public ServiceResponseWithHeaders delete(String if (jobScheduleDeleteOptions != null) { ifUnmodifiedSince = jobScheduleDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -732,18 +541,9 @@ public ServiceCall deleteAsync(String jobScheduleId, JobScheduleDeleteOptions jo if (jobScheduleDeleteOptions != null) { ifUnmodifiedSince = jobScheduleDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -784,57 +584,15 @@ public ServiceResponseWithHeaders get(S } final JobScheduleGetOptions jobScheduleGetOptions = null; String select = null; - if (jobScheduleGetOptions != null) { - select = jobScheduleGetOptions.getSelect(); - } String expand = null; - if (jobScheduleGetOptions != null) { - expand = jobScheduleGetOptions.getExpand(); - } Integer timeout = null; - if (jobScheduleGetOptions != null) { - timeout = jobScheduleGetOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleGetOptions != null) { - clientRequestId = jobScheduleGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleGetOptions != null) { - returnClientRequestId = jobScheduleGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleGetOptions != null) { - ocpDate = jobScheduleGetOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleGetOptions != null) { - ifMatch = jobScheduleGetOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleGetOptions != null) { - ifNoneMatch = jobScheduleGetOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleGetOptions != null) { - ifModifiedSince = jobScheduleGetOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleGetOptions != null) { - ifUnmodifiedSince = jobScheduleGetOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.get(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -861,57 +619,15 @@ public ServiceCall getAsync(String jobScheduleId, final ServiceCallback call = service.get(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -985,18 +701,9 @@ public ServiceResponseWithHeaders get(S if (jobScheduleGetOptions != null) { ifUnmodifiedSince = jobScheduleGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.get(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -1063,18 +770,9 @@ public ServiceCall getAsync(String jobScheduleId, JobScheduleGetOptions jobSched if (jobScheduleGetOptions != null) { ifUnmodifiedSince = jobScheduleGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.get(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1120,49 +818,13 @@ public ServiceResponseWithHeaders patch(String jo Validator.validate(jobSchedulePatchParameter); final JobSchedulePatchOptions jobSchedulePatchOptions = null; Integer timeout = null; - if (jobSchedulePatchOptions != null) { - timeout = jobSchedulePatchOptions.getTimeout(); - } String clientRequestId = null; - if (jobSchedulePatchOptions != null) { - clientRequestId = jobSchedulePatchOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobSchedulePatchOptions != null) { - returnClientRequestId = jobSchedulePatchOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobSchedulePatchOptions != null) { - ocpDate = jobSchedulePatchOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobSchedulePatchOptions != null) { - ifMatch = jobSchedulePatchOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobSchedulePatchOptions != null) { - ifNoneMatch = jobSchedulePatchOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobSchedulePatchOptions != null) { - ifModifiedSince = jobSchedulePatchOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobSchedulePatchOptions != null) { - ifUnmodifiedSince = jobSchedulePatchOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.patch(jobScheduleId, jobSchedulePatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -1195,49 +857,13 @@ public ServiceCall patchAsync(String jobScheduleId, JobSchedulePatchParameter jo Validator.validate(jobSchedulePatchParameter, serviceCallback); final JobSchedulePatchOptions jobSchedulePatchOptions = null; Integer timeout = null; - if (jobSchedulePatchOptions != null) { - timeout = jobSchedulePatchOptions.getTimeout(); - } String clientRequestId = null; - if (jobSchedulePatchOptions != null) { - clientRequestId = jobSchedulePatchOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobSchedulePatchOptions != null) { - returnClientRequestId = jobSchedulePatchOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobSchedulePatchOptions != null) { - ocpDate = jobSchedulePatchOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobSchedulePatchOptions != null) { - ifMatch = jobSchedulePatchOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobSchedulePatchOptions != null) { - ifNoneMatch = jobSchedulePatchOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobSchedulePatchOptions != null) { - ifModifiedSince = jobSchedulePatchOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobSchedulePatchOptions != null) { - ifUnmodifiedSince = jobSchedulePatchOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.patch(jobScheduleId, jobSchedulePatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1308,18 +934,9 @@ public ServiceResponseWithHeaders patch(String jo if (jobSchedulePatchOptions != null) { ifUnmodifiedSince = jobSchedulePatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.patch(jobScheduleId, jobSchedulePatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -1384,18 +1001,9 @@ public ServiceCall patchAsync(String jobScheduleId, JobSchedulePatchParameter jo if (jobSchedulePatchOptions != null) { ifUnmodifiedSince = jobSchedulePatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.patch(jobScheduleId, jobSchedulePatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1441,49 +1049,13 @@ public ServiceResponseWithHeaders update(String Validator.validate(jobScheduleUpdateParameter); final JobScheduleUpdateOptions jobScheduleUpdateOptions = null; Integer timeout = null; - if (jobScheduleUpdateOptions != null) { - timeout = jobScheduleUpdateOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleUpdateOptions != null) { - clientRequestId = jobScheduleUpdateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleUpdateOptions != null) { - returnClientRequestId = jobScheduleUpdateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleUpdateOptions != null) { - ocpDate = jobScheduleUpdateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleUpdateOptions != null) { - ifMatch = jobScheduleUpdateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleUpdateOptions != null) { - ifNoneMatch = jobScheduleUpdateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleUpdateOptions != null) { - ifModifiedSince = jobScheduleUpdateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleUpdateOptions != null) { - ifUnmodifiedSince = jobScheduleUpdateOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.update(jobScheduleId, jobScheduleUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return updateDelegate(call.execute()); } @@ -1516,49 +1088,13 @@ public ServiceCall updateAsync(String jobScheduleId, JobScheduleUpdateParameter Validator.validate(jobScheduleUpdateParameter, serviceCallback); final JobScheduleUpdateOptions jobScheduleUpdateOptions = null; Integer timeout = null; - if (jobScheduleUpdateOptions != null) { - timeout = jobScheduleUpdateOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleUpdateOptions != null) { - clientRequestId = jobScheduleUpdateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleUpdateOptions != null) { - returnClientRequestId = jobScheduleUpdateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleUpdateOptions != null) { - ocpDate = jobScheduleUpdateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleUpdateOptions != null) { - ifMatch = jobScheduleUpdateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleUpdateOptions != null) { - ifNoneMatch = jobScheduleUpdateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleUpdateOptions != null) { - ifModifiedSince = jobScheduleUpdateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleUpdateOptions != null) { - ifUnmodifiedSince = jobScheduleUpdateOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.update(jobScheduleId, jobScheduleUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1629,18 +1165,9 @@ public ServiceResponseWithHeaders update(String if (jobScheduleUpdateOptions != null) { ifUnmodifiedSince = jobScheduleUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.update(jobScheduleId, jobScheduleUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return updateDelegate(call.execute()); } @@ -1705,18 +1232,9 @@ public ServiceCall updateAsync(String jobScheduleId, JobScheduleUpdateParameter if (jobScheduleUpdateOptions != null) { ifUnmodifiedSince = jobScheduleUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.update(jobScheduleId, jobScheduleUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1757,49 +1275,13 @@ public ServiceResponseWithHeaders disable(Strin } final JobScheduleDisableOptions jobScheduleDisableOptions = null; Integer timeout = null; - if (jobScheduleDisableOptions != null) { - timeout = jobScheduleDisableOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleDisableOptions != null) { - clientRequestId = jobScheduleDisableOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleDisableOptions != null) { - returnClientRequestId = jobScheduleDisableOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleDisableOptions != null) { - ocpDate = jobScheduleDisableOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleDisableOptions != null) { - ifMatch = jobScheduleDisableOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleDisableOptions != null) { - ifNoneMatch = jobScheduleDisableOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleDisableOptions != null) { - ifModifiedSince = jobScheduleDisableOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleDisableOptions != null) { - ifUnmodifiedSince = jobScheduleDisableOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.disable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return disableDelegate(call.execute()); } @@ -1826,49 +1308,13 @@ public ServiceCall disableAsync(String jobScheduleId, final ServiceCallback call = service.disable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1934,18 +1380,9 @@ public ServiceResponseWithHeaders disable(Strin if (jobScheduleDisableOptions != null) { ifUnmodifiedSince = jobScheduleDisableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.disable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return disableDelegate(call.execute()); } @@ -2004,18 +1441,9 @@ public ServiceCall disableAsync(String jobScheduleId, JobScheduleDisableOptions if (jobScheduleDisableOptions != null) { ifUnmodifiedSince = jobScheduleDisableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.disable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2056,49 +1484,13 @@ public ServiceResponseWithHeaders enable(String } final JobScheduleEnableOptions jobScheduleEnableOptions = null; Integer timeout = null; - if (jobScheduleEnableOptions != null) { - timeout = jobScheduleEnableOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleEnableOptions != null) { - clientRequestId = jobScheduleEnableOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleEnableOptions != null) { - returnClientRequestId = jobScheduleEnableOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleEnableOptions != null) { - ocpDate = jobScheduleEnableOptions.getOcpDate(); - } - String ifMatch = null; - if (jobScheduleEnableOptions != null) { - ifMatch = jobScheduleEnableOptions.getIfMatch(); - } - String ifNoneMatch = null; - if (jobScheduleEnableOptions != null) { - ifNoneMatch = jobScheduleEnableOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleEnableOptions != null) { - ifModifiedSince = jobScheduleEnableOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleEnableOptions != null) { - ifUnmodifiedSince = jobScheduleEnableOptions.getIfUnmodifiedSince(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + String ifMatch = null; + String ifNoneMatch = null; DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.enable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableDelegate(call.execute()); } @@ -2125,49 +1517,13 @@ public ServiceCall enableAsync(String jobScheduleId, final ServiceCallback } final JobScheduleEnableOptions jobScheduleEnableOptions = null; Integer timeout = null; - if (jobScheduleEnableOptions != null) { - timeout = jobScheduleEnableOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleEnableOptions != null) { - clientRequestId = jobScheduleEnableOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleEnableOptions != null) { - returnClientRequestId = jobScheduleEnableOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleEnableOptions != null) { - ocpDate = jobScheduleEnableOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleEnableOptions != null) { - ifMatch = jobScheduleEnableOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleEnableOptions != null) { - ifNoneMatch = jobScheduleEnableOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleEnableOptions != null) { - ifModifiedSince = jobScheduleEnableOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleEnableOptions != null) { - ifUnmodifiedSince = jobScheduleEnableOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.enable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2233,18 +1589,9 @@ public ServiceResponseWithHeaders enable(String if (jobScheduleEnableOptions != null) { ifUnmodifiedSince = jobScheduleEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.enable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableDelegate(call.execute()); } @@ -2303,18 +1650,9 @@ public ServiceCall enableAsync(String jobScheduleId, JobScheduleEnableOptions jo if (jobScheduleEnableOptions != null) { ifUnmodifiedSince = jobScheduleEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.enable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2355,49 +1693,13 @@ public ServiceResponseWithHeaders terminate(S } final JobScheduleTerminateOptions jobScheduleTerminateOptions = null; Integer timeout = null; - if (jobScheduleTerminateOptions != null) { - timeout = jobScheduleTerminateOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleTerminateOptions != null) { - clientRequestId = jobScheduleTerminateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleTerminateOptions != null) { - returnClientRequestId = jobScheduleTerminateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleTerminateOptions != null) { - ocpDate = jobScheduleTerminateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (jobScheduleTerminateOptions != null) { - ifMatch = jobScheduleTerminateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (jobScheduleTerminateOptions != null) { - ifNoneMatch = jobScheduleTerminateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (jobScheduleTerminateOptions != null) { - ifModifiedSince = jobScheduleTerminateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (jobScheduleTerminateOptions != null) { - ifUnmodifiedSince = jobScheduleTerminateOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.terminate(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return terminateDelegate(call.execute()); } @@ -2424,49 +1726,13 @@ public ServiceCall terminateAsync(String jobScheduleId, final ServiceCallback call = service.terminate(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2532,18 +1798,9 @@ public ServiceResponseWithHeaders terminate(S if (jobScheduleTerminateOptions != null) { ifUnmodifiedSince = jobScheduleTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.terminate(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return terminateDelegate(call.execute()); } @@ -2602,18 +1859,9 @@ public ServiceCall terminateAsync(String jobScheduleId, JobScheduleTerminateOpti if (jobScheduleTerminateOptions != null) { ifUnmodifiedSince = jobScheduleTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.terminate(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2655,25 +1903,9 @@ public ServiceResponseWithHeaders add(JobScheduleAd Validator.validate(cloudJobSchedule); final JobScheduleAddOptions jobScheduleAddOptions = null; Integer timeout = null; - if (jobScheduleAddOptions != null) { - timeout = jobScheduleAddOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleAddOptions != null) { - clientRequestId = jobScheduleAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleAddOptions != null) { - returnClientRequestId = jobScheduleAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleAddOptions != null) { - ocpDate = jobScheduleAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(cloudJobSchedule, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -2701,25 +1933,9 @@ public ServiceCall addAsync(JobScheduleAddParameter cloudJobSchedule, final Serv Validator.validate(cloudJobSchedule, serviceCallback); final JobScheduleAddOptions jobScheduleAddOptions = null; Integer timeout = null; - if (jobScheduleAddOptions != null) { - timeout = jobScheduleAddOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleAddOptions != null) { - clientRequestId = jobScheduleAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleAddOptions != null) { - returnClientRequestId = jobScheduleAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleAddOptions != null) { - ocpDate = jobScheduleAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(cloudJobSchedule, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2770,10 +1986,7 @@ public ServiceResponseWithHeaders add(JobScheduleAd if (jobScheduleAddOptions != null) { ocpDate = jobScheduleAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(cloudJobSchedule, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -2817,10 +2030,7 @@ public ServiceCall addAsync(JobScheduleAddParameter cloudJobSchedule, JobSchedul if (jobScheduleAddOptions != null) { ocpDate = jobScheduleAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(cloudJobSchedule, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2857,54 +2067,19 @@ public ServiceResponseWithHeaders, JobScheduleListHe } final JobScheduleListOptions jobScheduleListOptions = null; String filter = null; - if (jobScheduleListOptions != null) { - filter = jobScheduleListOptions.getFilter(); - } String select = null; - if (jobScheduleListOptions != null) { - select = jobScheduleListOptions.getSelect(); - } String expand = null; - if (jobScheduleListOptions != null) { - expand = jobScheduleListOptions.getExpand(); - } Integer maxResults = null; - if (jobScheduleListOptions != null) { - maxResults = jobScheduleListOptions.getMaxResults(); - } Integer timeout = null; - if (jobScheduleListOptions != null) { - timeout = jobScheduleListOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleListOptions != null) { - clientRequestId = jobScheduleListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleListOptions != null) { - returnClientRequestId = jobScheduleListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleListOptions != null) { - ocpDate = jobScheduleListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobScheduleListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - JobScheduleListNextOptions jobScheduleListNextOptions = null; - if (jobScheduleListOptions != null) { - jobScheduleListNextOptions = new JobScheduleListNextOptions(); - jobScheduleListNextOptions.setClientRequestId(jobScheduleListOptions.getClientRequestId()); - jobScheduleListNextOptions.setReturnClientRequestId(jobScheduleListOptions.getReturnClientRequestId()); - jobScheduleListNextOptions.setOcpDate(jobScheduleListOptions.getOcpDate()); - } - return listNext(nextPageLink, jobScheduleListNextOptions).getBody(); + return listNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -2927,41 +2102,13 @@ public ServiceCall listAsync(final ListOperationCallback servi } final JobScheduleListOptions jobScheduleListOptions = null; String filter = null; - if (jobScheduleListOptions != null) { - filter = jobScheduleListOptions.getFilter(); - } String select = null; - if (jobScheduleListOptions != null) { - select = jobScheduleListOptions.getSelect(); - } String expand = null; - if (jobScheduleListOptions != null) { - expand = jobScheduleListOptions.getExpand(); - } Integer maxResults = null; - if (jobScheduleListOptions != null) { - maxResults = jobScheduleListOptions.getMaxResults(); - } Integer timeout = null; - if (jobScheduleListOptions != null) { - timeout = jobScheduleListOptions.getTimeout(); - } String clientRequestId = null; - if (jobScheduleListOptions != null) { - clientRequestId = jobScheduleListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleListOptions != null) { - returnClientRequestId = jobScheduleListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleListOptions != null) { - ocpDate = jobScheduleListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2972,14 +2119,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - JobScheduleListNextOptions jobScheduleListNextOptions = null; - if (jobScheduleListOptions != null) { - jobScheduleListNextOptions = new JobScheduleListNextOptions(); - jobScheduleListNextOptions.setClientRequestId(jobScheduleListOptions.getClientRequestId()); - jobScheduleListNextOptions.setReturnClientRequestId(jobScheduleListOptions.getReturnClientRequestId()); - jobScheduleListNextOptions.setOcpDate(jobScheduleListOptions.getOcpDate()); - } - listNextAsync(result.getBody().getNextPageLink(), jobScheduleListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -3037,10 +2177,7 @@ public ServiceResponseWithHeaders, JobScheduleListHe if (jobScheduleListOptions != null) { ocpDate = jobScheduleListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobScheduleListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -3108,10 +2245,7 @@ public ServiceCall listAsync(final JobScheduleListOptions jobScheduleListOptions if (jobScheduleListOptions != null) { ocpDate = jobScheduleListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3163,21 +2297,8 @@ public ServiceResponseWithHeaders, JobScheduleListHea } final JobScheduleListNextOptions jobScheduleListNextOptions = null; String clientRequestId = null; - if (jobScheduleListNextOptions != null) { - clientRequestId = jobScheduleListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleListNextOptions != null) { - returnClientRequestId = jobScheduleListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleListNextOptions != null) { - ocpDate = jobScheduleListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -3201,21 +2322,8 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } final JobScheduleListNextOptions jobScheduleListNextOptions = null; String clientRequestId = null; - if (jobScheduleListNextOptions != null) { - clientRequestId = jobScheduleListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (jobScheduleListNextOptions != null) { - returnClientRequestId = jobScheduleListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (jobScheduleListNextOptions != null) { - ocpDate = jobScheduleListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3226,7 +2334,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listNextAsync(result.getBody().getNextPageLink(), jobScheduleListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -3265,10 +2373,7 @@ public ServiceResponseWithHeaders, JobScheduleListHea if (jobScheduleListNextOptions != null) { ocpDate = jobScheduleListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -3304,10 +2409,7 @@ public ServiceCall listNextAsync(final String nextPageLink, final JobScheduleLis if (jobScheduleListNextOptions != null) { ocpDate = jobScheduleListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperations.java index 793b934cc574..16b0846710bf 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperations.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java index 38d63c0c3ce3..0fcc5bb11aa8 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; @@ -213,54 +199,19 @@ public ServiceResponseWithHeaders, PoolListPoolUsage } final PoolListPoolUsageMetricsOptions poolListPoolUsageMetricsOptions = null; DateTime startTime = null; - if (poolListPoolUsageMetricsOptions != null) { - startTime = poolListPoolUsageMetricsOptions.getStartTime(); - } DateTime endTime = null; - if (poolListPoolUsageMetricsOptions != null) { - endTime = poolListPoolUsageMetricsOptions.getEndTime(); - } String filter = null; - if (poolListPoolUsageMetricsOptions != null) { - filter = poolListPoolUsageMetricsOptions.getFilter(); - } Integer maxResults = null; - if (poolListPoolUsageMetricsOptions != null) { - maxResults = poolListPoolUsageMetricsOptions.getMaxResults(); - } Integer timeout = null; - if (poolListPoolUsageMetricsOptions != null) { - timeout = poolListPoolUsageMetricsOptions.getTimeout(); - } String clientRequestId = null; - if (poolListPoolUsageMetricsOptions != null) { - clientRequestId = poolListPoolUsageMetricsOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolListPoolUsageMetricsOptions != null) { - returnClientRequestId = poolListPoolUsageMetricsOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolListPoolUsageMetricsOptions != null) { - ocpDate = poolListPoolUsageMetricsOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listPoolUsageMetrics(this.client.getApiVersion(), this.client.getAcceptLanguage(), startTime, endTime, filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, PoolListPoolUsageMetricsHeaders> response = listPoolUsageMetricsDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - PoolListPoolUsageMetricsNextOptions poolListPoolUsageMetricsNextOptions = null; - if (poolListPoolUsageMetricsOptions != null) { - poolListPoolUsageMetricsNextOptions = new PoolListPoolUsageMetricsNextOptions(); - poolListPoolUsageMetricsNextOptions.setClientRequestId(poolListPoolUsageMetricsOptions.getClientRequestId()); - poolListPoolUsageMetricsNextOptions.setReturnClientRequestId(poolListPoolUsageMetricsOptions.getReturnClientRequestId()); - poolListPoolUsageMetricsNextOptions.setOcpDate(poolListPoolUsageMetricsOptions.getOcpDate()); - } - return listPoolUsageMetricsNext(nextPageLink, poolListPoolUsageMetricsNextOptions).getBody(); + return listPoolUsageMetricsNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -283,41 +234,13 @@ public ServiceCall listPoolUsageMetricsAsync(final ListOperationCallback call = service.listPoolUsageMetrics(this.client.getApiVersion(), this.client.getAcceptLanguage(), startTime, endTime, filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -328,14 +251,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - PoolListPoolUsageMetricsNextOptions poolListPoolUsageMetricsNextOptions = null; - if (poolListPoolUsageMetricsOptions != null) { - poolListPoolUsageMetricsNextOptions = new PoolListPoolUsageMetricsNextOptions(); - poolListPoolUsageMetricsNextOptions.setClientRequestId(poolListPoolUsageMetricsOptions.getClientRequestId()); - poolListPoolUsageMetricsNextOptions.setReturnClientRequestId(poolListPoolUsageMetricsOptions.getReturnClientRequestId()); - poolListPoolUsageMetricsNextOptions.setOcpDate(poolListPoolUsageMetricsOptions.getOcpDate()); - } - listPoolUsageMetricsNextAsync(result.getBody().getNextPageLink(), poolListPoolUsageMetricsNextOptions, serviceCall, serviceCallback); + listPoolUsageMetricsNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -393,10 +309,7 @@ public ServiceResponseWithHeaders, PoolListPoolUsage if (poolListPoolUsageMetricsOptions != null) { ocpDate = poolListPoolUsageMetricsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listPoolUsageMetrics(this.client.getApiVersion(), this.client.getAcceptLanguage(), startTime, endTime, filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, PoolListPoolUsageMetricsHeaders> response = listPoolUsageMetricsDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -464,10 +377,7 @@ public ServiceCall listPoolUsageMetricsAsync(final PoolListPoolUsageMetricsOptio if (poolListPoolUsageMetricsOptions != null) { ocpDate = poolListPoolUsageMetricsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listPoolUsageMetrics(this.client.getApiVersion(), this.client.getAcceptLanguage(), startTime, endTime, filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -518,25 +428,9 @@ public ServiceResponseWithHeaders call = service.getAllPoolsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getAllPoolsLifetimeStatisticsDelegate(call.execute()); } @@ -558,25 +452,9 @@ public ServiceCall getAllPoolsLifetimeStatisticsAsync(final ServiceCallback call = service.getAllPoolsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -622,10 +500,7 @@ public ServiceResponseWithHeaders call = service.getAllPoolsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getAllPoolsLifetimeStatisticsDelegate(call.execute()); } @@ -663,10 +538,7 @@ public ServiceCall getAllPoolsLifetimeStatisticsAsync(PoolGetAllPoolsLifetimeSta if (poolGetAllPoolsLifetimeStatisticsOptions != null) { ocpDate = poolGetAllPoolsLifetimeStatisticsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.getAllPoolsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -708,25 +580,9 @@ public ServiceResponseWithHeaders add(PoolAddParameter poo Validator.validate(pool); final PoolAddOptions poolAddOptions = null; Integer timeout = null; - if (poolAddOptions != null) { - timeout = poolAddOptions.getTimeout(); - } String clientRequestId = null; - if (poolAddOptions != null) { - clientRequestId = poolAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolAddOptions != null) { - returnClientRequestId = poolAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolAddOptions != null) { - ocpDate = poolAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(pool, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -754,25 +610,9 @@ public ServiceCall addAsync(PoolAddParameter pool, final ServiceCallback s Validator.validate(pool, serviceCallback); final PoolAddOptions poolAddOptions = null; Integer timeout = null; - if (poolAddOptions != null) { - timeout = poolAddOptions.getTimeout(); - } String clientRequestId = null; - if (poolAddOptions != null) { - clientRequestId = poolAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolAddOptions != null) { - returnClientRequestId = poolAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolAddOptions != null) { - ocpDate = poolAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(pool, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -823,10 +663,7 @@ public ServiceResponseWithHeaders add(PoolAddParameter poo if (poolAddOptions != null) { ocpDate = poolAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(pool, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -870,10 +707,7 @@ public ServiceCall addAsync(PoolAddParameter pool, PoolAddOptions poolAddOptions if (poolAddOptions != null) { ocpDate = poolAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(pool, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -910,54 +744,19 @@ public ServiceResponseWithHeaders, PoolListHeaders> list() } final PoolListOptions poolListOptions = null; String filter = null; - if (poolListOptions != null) { - filter = poolListOptions.getFilter(); - } String select = null; - if (poolListOptions != null) { - select = poolListOptions.getSelect(); - } String expand = null; - if (poolListOptions != null) { - expand = poolListOptions.getExpand(); - } Integer maxResults = null; - if (poolListOptions != null) { - maxResults = poolListOptions.getMaxResults(); - } Integer timeout = null; - if (poolListOptions != null) { - timeout = poolListOptions.getTimeout(); - } String clientRequestId = null; - if (poolListOptions != null) { - clientRequestId = poolListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolListOptions != null) { - returnClientRequestId = poolListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolListOptions != null) { - ocpDate = poolListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, PoolListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - PoolListNextOptions poolListNextOptions = null; - if (poolListOptions != null) { - poolListNextOptions = new PoolListNextOptions(); - poolListNextOptions.setClientRequestId(poolListOptions.getClientRequestId()); - poolListNextOptions.setReturnClientRequestId(poolListOptions.getReturnClientRequestId()); - poolListNextOptions.setOcpDate(poolListOptions.getOcpDate()); - } - return listNext(nextPageLink, poolListNextOptions).getBody(); + return listNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -980,41 +779,13 @@ public ServiceCall listAsync(final ListOperationCallback serviceCallb } final PoolListOptions poolListOptions = null; String filter = null; - if (poolListOptions != null) { - filter = poolListOptions.getFilter(); - } String select = null; - if (poolListOptions != null) { - select = poolListOptions.getSelect(); - } String expand = null; - if (poolListOptions != null) { - expand = poolListOptions.getExpand(); - } Integer maxResults = null; - if (poolListOptions != null) { - maxResults = poolListOptions.getMaxResults(); - } Integer timeout = null; - if (poolListOptions != null) { - timeout = poolListOptions.getTimeout(); - } String clientRequestId = null; - if (poolListOptions != null) { - clientRequestId = poolListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolListOptions != null) { - returnClientRequestId = poolListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolListOptions != null) { - ocpDate = poolListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -1025,14 +796,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - PoolListNextOptions poolListNextOptions = null; - if (poolListOptions != null) { - poolListNextOptions = new PoolListNextOptions(); - poolListNextOptions.setClientRequestId(poolListOptions.getClientRequestId()); - poolListNextOptions.setReturnClientRequestId(poolListOptions.getReturnClientRequestId()); - poolListNextOptions.setOcpDate(poolListOptions.getOcpDate()); - } - listNextAsync(result.getBody().getNextPageLink(), poolListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -1090,10 +854,7 @@ public ServiceResponseWithHeaders, PoolListHeaders> list(fi if (poolListOptions != null) { ocpDate = poolListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, PoolListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -1161,10 +922,7 @@ public ServiceCall listAsync(final PoolListOptions poolListOptions, final ListOp if (poolListOptions != null) { ocpDate = poolListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -1219,49 +977,13 @@ public ServiceResponseWithHeaders delete(String poolId) } final PoolDeleteOptions poolDeleteOptions = null; Integer timeout = null; - if (poolDeleteOptions != null) { - timeout = poolDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (poolDeleteOptions != null) { - clientRequestId = poolDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolDeleteOptions != null) { - returnClientRequestId = poolDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolDeleteOptions != null) { - ocpDate = poolDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolDeleteOptions != null) { - ifMatch = poolDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolDeleteOptions != null) { - ifNoneMatch = poolDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolDeleteOptions != null) { - ifModifiedSince = poolDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolDeleteOptions != null) { - ifUnmodifiedSince = poolDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -1288,49 +1010,13 @@ public ServiceCall deleteAsync(String poolId, final ServiceCallback servic } final PoolDeleteOptions poolDeleteOptions = null; Integer timeout = null; - if (poolDeleteOptions != null) { - timeout = poolDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (poolDeleteOptions != null) { - clientRequestId = poolDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolDeleteOptions != null) { - returnClientRequestId = poolDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolDeleteOptions != null) { - ocpDate = poolDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolDeleteOptions != null) { - ifMatch = poolDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolDeleteOptions != null) { - ifNoneMatch = poolDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolDeleteOptions != null) { - ifModifiedSince = poolDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolDeleteOptions != null) { - ifUnmodifiedSince = poolDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1396,18 +1082,9 @@ public ServiceResponseWithHeaders delete(String poolId, if (poolDeleteOptions != null) { ifUnmodifiedSince = poolDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -1466,18 +1143,9 @@ public ServiceCall deleteAsync(String poolId, PoolDeleteOptions poolDeleteOption if (poolDeleteOptions != null) { ifUnmodifiedSince = poolDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1518,53 +1186,14 @@ public ServiceResponseWithHeaders exists(String pool } final PoolExistsOptions poolExistsOptions = null; String select = null; - if (poolExistsOptions != null) { - select = poolExistsOptions.getSelect(); - } Integer timeout = null; - if (poolExistsOptions != null) { - timeout = poolExistsOptions.getTimeout(); - } String clientRequestId = null; - if (poolExistsOptions != null) { - clientRequestId = poolExistsOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolExistsOptions != null) { - returnClientRequestId = poolExistsOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolExistsOptions != null) { - ocpDate = poolExistsOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolExistsOptions != null) { - ifMatch = poolExistsOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolExistsOptions != null) { - ifNoneMatch = poolExistsOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolExistsOptions != null) { - ifModifiedSince = poolExistsOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolExistsOptions != null) { - ifUnmodifiedSince = poolExistsOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.exists(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return existsDelegate(call.execute()); } @@ -1591,53 +1220,14 @@ public ServiceCall existsAsync(String poolId, final ServiceCallback ser } final PoolExistsOptions poolExistsOptions = null; String select = null; - if (poolExistsOptions != null) { - select = poolExistsOptions.getSelect(); - } Integer timeout = null; - if (poolExistsOptions != null) { - timeout = poolExistsOptions.getTimeout(); - } String clientRequestId = null; - if (poolExistsOptions != null) { - clientRequestId = poolExistsOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolExistsOptions != null) { - returnClientRequestId = poolExistsOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolExistsOptions != null) { - ocpDate = poolExistsOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolExistsOptions != null) { - ifMatch = poolExistsOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolExistsOptions != null) { - ifNoneMatch = poolExistsOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolExistsOptions != null) { - ifModifiedSince = poolExistsOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolExistsOptions != null) { - ifUnmodifiedSince = poolExistsOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.exists(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -1707,18 +1297,9 @@ public ServiceResponseWithHeaders exists(String pool if (poolExistsOptions != null) { ifUnmodifiedSince = poolExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.exists(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return existsDelegate(call.execute()); } @@ -1781,18 +1362,9 @@ public ServiceCall existsAsync(String poolId, PoolExistsOptions poolExistsOption if (poolExistsOptions != null) { ifUnmodifiedSince = poolExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.exists(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -1834,57 +1406,15 @@ public ServiceResponseWithHeaders get(String poolId) } final PoolGetOptions poolGetOptions = null; String select = null; - if (poolGetOptions != null) { - select = poolGetOptions.getSelect(); - } String expand = null; - if (poolGetOptions != null) { - expand = poolGetOptions.getExpand(); - } Integer timeout = null; - if (poolGetOptions != null) { - timeout = poolGetOptions.getTimeout(); - } String clientRequestId = null; - if (poolGetOptions != null) { - clientRequestId = poolGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolGetOptions != null) { - returnClientRequestId = poolGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolGetOptions != null) { - ocpDate = poolGetOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolGetOptions != null) { - ifMatch = poolGetOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolGetOptions != null) { - ifNoneMatch = poolGetOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolGetOptions != null) { - ifModifiedSince = poolGetOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolGetOptions != null) { - ifUnmodifiedSince = poolGetOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.get(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -1911,57 +1441,15 @@ public ServiceCall getAsync(String poolId, final ServiceCallback serv } final PoolGetOptions poolGetOptions = null; String select = null; - if (poolGetOptions != null) { - select = poolGetOptions.getSelect(); - } String expand = null; - if (poolGetOptions != null) { - expand = poolGetOptions.getExpand(); - } Integer timeout = null; - if (poolGetOptions != null) { - timeout = poolGetOptions.getTimeout(); - } String clientRequestId = null; - if (poolGetOptions != null) { - clientRequestId = poolGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolGetOptions != null) { - returnClientRequestId = poolGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolGetOptions != null) { - ocpDate = poolGetOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolGetOptions != null) { - ifMatch = poolGetOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolGetOptions != null) { - ifNoneMatch = poolGetOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolGetOptions != null) { - ifModifiedSince = poolGetOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolGetOptions != null) { - ifUnmodifiedSince = poolGetOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.get(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2035,18 +1523,9 @@ public ServiceResponseWithHeaders get(String poolId, if (poolGetOptions != null) { ifUnmodifiedSince = poolGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.get(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -2113,18 +1592,9 @@ public ServiceCall getAsync(String poolId, PoolGetOptions poolGetOptions, final if (poolGetOptions != null) { ifUnmodifiedSince = poolGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.get(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2170,49 +1640,13 @@ public ServiceResponseWithHeaders patch(String poolId, P Validator.validate(poolPatchParameter); final PoolPatchOptions poolPatchOptions = null; Integer timeout = null; - if (poolPatchOptions != null) { - timeout = poolPatchOptions.getTimeout(); - } String clientRequestId = null; - if (poolPatchOptions != null) { - clientRequestId = poolPatchOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolPatchOptions != null) { - returnClientRequestId = poolPatchOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolPatchOptions != null) { - ocpDate = poolPatchOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolPatchOptions != null) { - ifMatch = poolPatchOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolPatchOptions != null) { - ifNoneMatch = poolPatchOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolPatchOptions != null) { - ifModifiedSince = poolPatchOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolPatchOptions != null) { - ifUnmodifiedSince = poolPatchOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.patch(poolId, poolPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -2245,49 +1679,13 @@ public ServiceCall patchAsync(String poolId, PoolPatchParameter poolPatchParamet Validator.validate(poolPatchParameter, serviceCallback); final PoolPatchOptions poolPatchOptions = null; Integer timeout = null; - if (poolPatchOptions != null) { - timeout = poolPatchOptions.getTimeout(); - } String clientRequestId = null; - if (poolPatchOptions != null) { - clientRequestId = poolPatchOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolPatchOptions != null) { - returnClientRequestId = poolPatchOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolPatchOptions != null) { - ocpDate = poolPatchOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolPatchOptions != null) { - ifMatch = poolPatchOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolPatchOptions != null) { - ifNoneMatch = poolPatchOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolPatchOptions != null) { - ifModifiedSince = poolPatchOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolPatchOptions != null) { - ifUnmodifiedSince = poolPatchOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.patch(poolId, poolPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2358,18 +1756,9 @@ public ServiceResponseWithHeaders patch(String poolId, P if (poolPatchOptions != null) { ifUnmodifiedSince = poolPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.patch(poolId, poolPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -2434,18 +1823,9 @@ public ServiceCall patchAsync(String poolId, PoolPatchParameter poolPatchParamet if (poolPatchOptions != null) { ifUnmodifiedSince = poolPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.patch(poolId, poolPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2486,25 +1866,9 @@ public ServiceResponseWithHeaders disableAuto } final PoolDisableAutoScaleOptions poolDisableAutoScaleOptions = null; Integer timeout = null; - if (poolDisableAutoScaleOptions != null) { - timeout = poolDisableAutoScaleOptions.getTimeout(); - } String clientRequestId = null; - if (poolDisableAutoScaleOptions != null) { - clientRequestId = poolDisableAutoScaleOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolDisableAutoScaleOptions != null) { - returnClientRequestId = poolDisableAutoScaleOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolDisableAutoScaleOptions != null) { - ocpDate = poolDisableAutoScaleOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.disableAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return disableAutoScaleDelegate(call.execute()); } @@ -2531,25 +1895,9 @@ public ServiceCall disableAutoScaleAsync(String poolId, final ServiceCallback call = service.disableAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2599,10 +1947,7 @@ public ServiceResponseWithHeaders disableAuto if (poolDisableAutoScaleOptions != null) { ocpDate = poolDisableAutoScaleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.disableAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return disableAutoScaleDelegate(call.execute()); } @@ -2645,10 +1990,7 @@ public ServiceCall disableAutoScaleAsync(String poolId, PoolDisableAutoScaleOpti if (poolDisableAutoScaleOptions != null) { ocpDate = poolDisableAutoScaleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.disableAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2676,67 +2018,31 @@ private ServiceResponseWithHeaders disableAut * * @param poolId The id of the pool on which to enable automatic scaling. * @param poolEnableAutoScaleParameter The parameters for the request. - * @throws BatchErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponseWithHeaders} object if successful. - */ - public ServiceResponseWithHeaders enableAutoScale(String poolId, PoolEnableAutoScaleParameter poolEnableAutoScaleParameter) throws BatchErrorException, IOException, IllegalArgumentException { - if (poolId == null) { - throw new IllegalArgumentException("Parameter poolId is required and cannot be null."); - } - if (poolEnableAutoScaleParameter == null) { - throw new IllegalArgumentException("Parameter poolEnableAutoScaleParameter is required and cannot be null."); - } - if (this.client.getApiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.getApiVersion() is required and cannot be null."); - } - Validator.validate(poolEnableAutoScaleParameter); - final PoolEnableAutoScaleOptions poolEnableAutoScaleOptions = null; - Integer timeout = null; - if (poolEnableAutoScaleOptions != null) { - timeout = poolEnableAutoScaleOptions.getTimeout(); - } - String clientRequestId = null; - if (poolEnableAutoScaleOptions != null) { - clientRequestId = poolEnableAutoScaleOptions.getClientRequestId(); - } - Boolean returnClientRequestId = null; - if (poolEnableAutoScaleOptions != null) { - returnClientRequestId = poolEnableAutoScaleOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolEnableAutoScaleOptions != null) { - ocpDate = poolEnableAutoScaleOptions.getOcpDate(); - } - String ifMatch = null; - if (poolEnableAutoScaleOptions != null) { - ifMatch = poolEnableAutoScaleOptions.getIfMatch(); - } - String ifNoneMatch = null; - if (poolEnableAutoScaleOptions != null) { - ifNoneMatch = poolEnableAutoScaleOptions.getIfNoneMatch(); + * @throws BatchErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponseWithHeaders} object if successful. + */ + public ServiceResponseWithHeaders enableAutoScale(String poolId, PoolEnableAutoScaleParameter poolEnableAutoScaleParameter) throws BatchErrorException, IOException, IllegalArgumentException { + if (poolId == null) { + throw new IllegalArgumentException("Parameter poolId is required and cannot be null."); } - DateTime ifModifiedSince = null; - if (poolEnableAutoScaleOptions != null) { - ifModifiedSince = poolEnableAutoScaleOptions.getIfModifiedSince(); + if (poolEnableAutoScaleParameter == null) { + throw new IllegalArgumentException("Parameter poolEnableAutoScaleParameter is required and cannot be null."); } - DateTime ifUnmodifiedSince = null; - if (poolEnableAutoScaleOptions != null) { - ifUnmodifiedSince = poolEnableAutoScaleOptions.getIfUnmodifiedSince(); + if (this.client.getApiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.getApiVersion() is required and cannot be null."); } + Validator.validate(poolEnableAutoScaleParameter); + final PoolEnableAutoScaleOptions poolEnableAutoScaleOptions = null; + Integer timeout = null; + String clientRequestId = null; + Boolean returnClientRequestId = null; DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + String ifMatch = null; + String ifNoneMatch = null; DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.enableAutoScale(poolId, poolEnableAutoScaleParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableAutoScaleDelegate(call.execute()); } @@ -2769,49 +2075,13 @@ public ServiceCall enableAutoScaleAsync(String poolId, PoolEnableAutoScaleParame Validator.validate(poolEnableAutoScaleParameter, serviceCallback); final PoolEnableAutoScaleOptions poolEnableAutoScaleOptions = null; Integer timeout = null; - if (poolEnableAutoScaleOptions != null) { - timeout = poolEnableAutoScaleOptions.getTimeout(); - } String clientRequestId = null; - if (poolEnableAutoScaleOptions != null) { - clientRequestId = poolEnableAutoScaleOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolEnableAutoScaleOptions != null) { - returnClientRequestId = poolEnableAutoScaleOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolEnableAutoScaleOptions != null) { - ocpDate = poolEnableAutoScaleOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolEnableAutoScaleOptions != null) { - ifMatch = poolEnableAutoScaleOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolEnableAutoScaleOptions != null) { - ifNoneMatch = poolEnableAutoScaleOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolEnableAutoScaleOptions != null) { - ifModifiedSince = poolEnableAutoScaleOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolEnableAutoScaleOptions != null) { - ifUnmodifiedSince = poolEnableAutoScaleOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.enableAutoScale(poolId, poolEnableAutoScaleParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2882,18 +2152,9 @@ public ServiceResponseWithHeaders enableAutoSc if (poolEnableAutoScaleOptions != null) { ifUnmodifiedSince = poolEnableAutoScaleOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.enableAutoScale(poolId, poolEnableAutoScaleParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableAutoScaleDelegate(call.execute()); } @@ -2958,18 +2219,9 @@ public ServiceCall enableAutoScaleAsync(String poolId, PoolEnableAutoScaleParame if (poolEnableAutoScaleOptions != null) { ifUnmodifiedSince = poolEnableAutoScaleOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.enableAutoScale(poolId, poolEnableAutoScaleParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3014,27 +2266,11 @@ public ServiceResponseWithHeaders ev } final PoolEvaluateAutoScaleOptions poolEvaluateAutoScaleOptions = null; Integer timeout = null; - if (poolEvaluateAutoScaleOptions != null) { - timeout = poolEvaluateAutoScaleOptions.getTimeout(); - } String clientRequestId = null; - if (poolEvaluateAutoScaleOptions != null) { - clientRequestId = poolEvaluateAutoScaleOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolEvaluateAutoScaleOptions != null) { - returnClientRequestId = poolEvaluateAutoScaleOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolEvaluateAutoScaleOptions != null) { - ocpDate = poolEvaluateAutoScaleOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; PoolEvaluateAutoScaleParameter poolEvaluateAutoScaleParameter = new PoolEvaluateAutoScaleParameter(); poolEvaluateAutoScaleParameter.setAutoScaleFormula(autoScaleFormula); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.evaluateAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, poolEvaluateAutoScaleParameter); return evaluateAutoScaleDelegate(call.execute()); } @@ -3066,27 +2302,11 @@ public ServiceCall evaluateAutoScaleAsync(String poolId, String autoScaleFormula } final PoolEvaluateAutoScaleOptions poolEvaluateAutoScaleOptions = null; Integer timeout = null; - if (poolEvaluateAutoScaleOptions != null) { - timeout = poolEvaluateAutoScaleOptions.getTimeout(); - } String clientRequestId = null; - if (poolEvaluateAutoScaleOptions != null) { - clientRequestId = poolEvaluateAutoScaleOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolEvaluateAutoScaleOptions != null) { - returnClientRequestId = poolEvaluateAutoScaleOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolEvaluateAutoScaleOptions != null) { - ocpDate = poolEvaluateAutoScaleOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; PoolEvaluateAutoScaleParameter poolEvaluateAutoScaleParameter = new PoolEvaluateAutoScaleParameter(); poolEvaluateAutoScaleParameter.setAutoScaleFormula(autoScaleFormula); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.evaluateAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, poolEvaluateAutoScaleParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3142,10 +2362,7 @@ public ServiceResponseWithHeaders ev } PoolEvaluateAutoScaleParameter poolEvaluateAutoScaleParameter = new PoolEvaluateAutoScaleParameter(); poolEvaluateAutoScaleParameter.setAutoScaleFormula(autoScaleFormula); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.evaluateAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, poolEvaluateAutoScaleParameter); return evaluateAutoScaleDelegate(call.execute()); } @@ -3195,10 +2412,7 @@ public ServiceCall evaluateAutoScaleAsync(String poolId, String autoScaleFormula } PoolEvaluateAutoScaleParameter poolEvaluateAutoScaleParameter = new PoolEvaluateAutoScaleParameter(); poolEvaluateAutoScaleParameter.setAutoScaleFormula(autoScaleFormula); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.evaluateAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, poolEvaluateAutoScaleParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3244,49 +2458,13 @@ public ServiceResponseWithHeaders resize(String poolId, Validator.validate(poolResizeParameter); final PoolResizeOptions poolResizeOptions = null; Integer timeout = null; - if (poolResizeOptions != null) { - timeout = poolResizeOptions.getTimeout(); - } String clientRequestId = null; - if (poolResizeOptions != null) { - clientRequestId = poolResizeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolResizeOptions != null) { - returnClientRequestId = poolResizeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolResizeOptions != null) { - ocpDate = poolResizeOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolResizeOptions != null) { - ifMatch = poolResizeOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolResizeOptions != null) { - ifNoneMatch = poolResizeOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolResizeOptions != null) { - ifModifiedSince = poolResizeOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolResizeOptions != null) { - ifUnmodifiedSince = poolResizeOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.resize(poolId, poolResizeParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return resizeDelegate(call.execute()); } @@ -3319,49 +2497,13 @@ public ServiceCall resizeAsync(String poolId, PoolResizeParameter poolResizePara Validator.validate(poolResizeParameter, serviceCallback); final PoolResizeOptions poolResizeOptions = null; Integer timeout = null; - if (poolResizeOptions != null) { - timeout = poolResizeOptions.getTimeout(); - } String clientRequestId = null; - if (poolResizeOptions != null) { - clientRequestId = poolResizeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolResizeOptions != null) { - returnClientRequestId = poolResizeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolResizeOptions != null) { - ocpDate = poolResizeOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolResizeOptions != null) { - ifMatch = poolResizeOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolResizeOptions != null) { - ifNoneMatch = poolResizeOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolResizeOptions != null) { - ifModifiedSince = poolResizeOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolResizeOptions != null) { - ifUnmodifiedSince = poolResizeOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.resize(poolId, poolResizeParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3432,18 +2574,9 @@ public ServiceResponseWithHeaders resize(String poolId, if (poolResizeOptions != null) { ifUnmodifiedSince = poolResizeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.resize(poolId, poolResizeParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return resizeDelegate(call.execute()); } @@ -3508,18 +2641,9 @@ public ServiceCall resizeAsync(String poolId, PoolResizeParameter poolResizePara if (poolResizeOptions != null) { ifUnmodifiedSince = poolResizeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.resize(poolId, poolResizeParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3560,49 +2684,13 @@ public ServiceResponseWithHeaders stopResize(String } final PoolStopResizeOptions poolStopResizeOptions = null; Integer timeout = null; - if (poolStopResizeOptions != null) { - timeout = poolStopResizeOptions.getTimeout(); - } String clientRequestId = null; - if (poolStopResizeOptions != null) { - clientRequestId = poolStopResizeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolStopResizeOptions != null) { - returnClientRequestId = poolStopResizeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolStopResizeOptions != null) { - ocpDate = poolStopResizeOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolStopResizeOptions != null) { - ifMatch = poolStopResizeOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolStopResizeOptions != null) { - ifNoneMatch = poolStopResizeOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolStopResizeOptions != null) { - ifModifiedSince = poolStopResizeOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolStopResizeOptions != null) { - ifUnmodifiedSince = poolStopResizeOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.stopResize(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return stopResizeDelegate(call.execute()); } @@ -3629,49 +2717,13 @@ public ServiceCall stopResizeAsync(String poolId, final ServiceCallback se } final PoolStopResizeOptions poolStopResizeOptions = null; Integer timeout = null; - if (poolStopResizeOptions != null) { - timeout = poolStopResizeOptions.getTimeout(); - } String clientRequestId = null; - if (poolStopResizeOptions != null) { - clientRequestId = poolStopResizeOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolStopResizeOptions != null) { - returnClientRequestId = poolStopResizeOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolStopResizeOptions != null) { - ocpDate = poolStopResizeOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolStopResizeOptions != null) { - ifMatch = poolStopResizeOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolStopResizeOptions != null) { - ifNoneMatch = poolStopResizeOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolStopResizeOptions != null) { - ifModifiedSince = poolStopResizeOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolStopResizeOptions != null) { - ifUnmodifiedSince = poolStopResizeOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.stopResize(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3733,22 +2785,13 @@ public ServiceResponseWithHeaders stopResize(String if (poolStopResizeOptions != null) { ifModifiedSince = poolStopResizeOptions.getIfModifiedSince(); } - DateTime ifUnmodifiedSince = null; - if (poolStopResizeOptions != null) { - ifUnmodifiedSince = poolStopResizeOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTime ifUnmodifiedSince = null; + if (poolStopResizeOptions != null) { + ifUnmodifiedSince = poolStopResizeOptions.getIfUnmodifiedSince(); } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.stopResize(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return stopResizeDelegate(call.execute()); } @@ -3807,18 +2850,9 @@ public ServiceCall stopResizeAsync(String poolId, PoolStopResizeOptions poolStop if (poolStopResizeOptions != null) { ifUnmodifiedSince = poolStopResizeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.stopResize(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3864,25 +2898,9 @@ public ServiceResponseWithHeaders updatePrope Validator.validate(poolUpdatePropertiesParameter); final PoolUpdatePropertiesOptions poolUpdatePropertiesOptions = null; Integer timeout = null; - if (poolUpdatePropertiesOptions != null) { - timeout = poolUpdatePropertiesOptions.getTimeout(); - } String clientRequestId = null; - if (poolUpdatePropertiesOptions != null) { - clientRequestId = poolUpdatePropertiesOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolUpdatePropertiesOptions != null) { - returnClientRequestId = poolUpdatePropertiesOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolUpdatePropertiesOptions != null) { - ocpDate = poolUpdatePropertiesOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.updateProperties(poolId, poolUpdatePropertiesParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return updatePropertiesDelegate(call.execute()); } @@ -3915,25 +2933,9 @@ public ServiceCall updatePropertiesAsync(String poolId, PoolUpdatePropertiesPara Validator.validate(poolUpdatePropertiesParameter, serviceCallback); final PoolUpdatePropertiesOptions poolUpdatePropertiesOptions = null; Integer timeout = null; - if (poolUpdatePropertiesOptions != null) { - timeout = poolUpdatePropertiesOptions.getTimeout(); - } String clientRequestId = null; - if (poolUpdatePropertiesOptions != null) { - clientRequestId = poolUpdatePropertiesOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolUpdatePropertiesOptions != null) { - returnClientRequestId = poolUpdatePropertiesOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolUpdatePropertiesOptions != null) { - ocpDate = poolUpdatePropertiesOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.updateProperties(poolId, poolUpdatePropertiesParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3988,10 +2990,7 @@ public ServiceResponseWithHeaders updatePrope if (poolUpdatePropertiesOptions != null) { ocpDate = poolUpdatePropertiesOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.updateProperties(poolId, poolUpdatePropertiesParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return updatePropertiesDelegate(call.execute()); } @@ -4040,10 +3039,7 @@ public ServiceCall updatePropertiesAsync(String poolId, PoolUpdatePropertiesPara if (poolUpdatePropertiesOptions != null) { ocpDate = poolUpdatePropertiesOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.updateProperties(poolId, poolUpdatePropertiesParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -4088,51 +3084,15 @@ public ServiceResponseWithHeaders upgradeOS(String p } final PoolUpgradeOSOptions poolUpgradeOSOptions = null; Integer timeout = null; - if (poolUpgradeOSOptions != null) { - timeout = poolUpgradeOSOptions.getTimeout(); - } String clientRequestId = null; - if (poolUpgradeOSOptions != null) { - clientRequestId = poolUpgradeOSOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolUpgradeOSOptions != null) { - returnClientRequestId = poolUpgradeOSOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolUpgradeOSOptions != null) { - ocpDate = poolUpgradeOSOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolUpgradeOSOptions != null) { - ifMatch = poolUpgradeOSOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolUpgradeOSOptions != null) { - ifNoneMatch = poolUpgradeOSOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolUpgradeOSOptions != null) { - ifModifiedSince = poolUpgradeOSOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolUpgradeOSOptions != null) { - ifUnmodifiedSince = poolUpgradeOSOptions.getIfUnmodifiedSince(); - } - PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); - poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); + poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); Call call = service.upgradeOS(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, poolUpgradeOSParameter); return upgradeOSDelegate(call.execute()); } @@ -4164,51 +3124,15 @@ public ServiceCall upgradeOSAsync(String poolId, String targetOSVersion, final S } final PoolUpgradeOSOptions poolUpgradeOSOptions = null; Integer timeout = null; - if (poolUpgradeOSOptions != null) { - timeout = poolUpgradeOSOptions.getTimeout(); - } String clientRequestId = null; - if (poolUpgradeOSOptions != null) { - clientRequestId = poolUpgradeOSOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolUpgradeOSOptions != null) { - returnClientRequestId = poolUpgradeOSOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolUpgradeOSOptions != null) { - ocpDate = poolUpgradeOSOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolUpgradeOSOptions != null) { - ifMatch = poolUpgradeOSOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolUpgradeOSOptions != null) { - ifNoneMatch = poolUpgradeOSOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolUpgradeOSOptions != null) { - ifModifiedSince = poolUpgradeOSOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolUpgradeOSOptions != null) { - ifUnmodifiedSince = poolUpgradeOSOptions.getIfUnmodifiedSince(); - } - PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); - poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); + poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); Call call = service.upgradeOS(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, poolUpgradeOSParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -4280,18 +3204,9 @@ public ServiceResponseWithHeaders upgradeOS(String p } PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.upgradeOS(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, poolUpgradeOSParameter); return upgradeOSDelegate(call.execute()); } @@ -4357,18 +3272,9 @@ public ServiceCall upgradeOSAsync(String poolId, String targetOSVersion, PoolUpg } PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.upgradeOS(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, poolUpgradeOSParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -4414,49 +3320,13 @@ public ServiceResponseWithHeaders removeNodes(Stri Validator.validate(nodeRemoveParameter); final PoolRemoveNodesOptions poolRemoveNodesOptions = null; Integer timeout = null; - if (poolRemoveNodesOptions != null) { - timeout = poolRemoveNodesOptions.getTimeout(); - } String clientRequestId = null; - if (poolRemoveNodesOptions != null) { - clientRequestId = poolRemoveNodesOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolRemoveNodesOptions != null) { - returnClientRequestId = poolRemoveNodesOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolRemoveNodesOptions != null) { - ocpDate = poolRemoveNodesOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolRemoveNodesOptions != null) { - ifMatch = poolRemoveNodesOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolRemoveNodesOptions != null) { - ifNoneMatch = poolRemoveNodesOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolRemoveNodesOptions != null) { - ifModifiedSince = poolRemoveNodesOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolRemoveNodesOptions != null) { - ifUnmodifiedSince = poolRemoveNodesOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.removeNodes(poolId, nodeRemoveParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return removeNodesDelegate(call.execute()); } @@ -4489,49 +3359,13 @@ public ServiceCall removeNodesAsync(String poolId, NodeRemoveParameter nodeRemov Validator.validate(nodeRemoveParameter, serviceCallback); final PoolRemoveNodesOptions poolRemoveNodesOptions = null; Integer timeout = null; - if (poolRemoveNodesOptions != null) { - timeout = poolRemoveNodesOptions.getTimeout(); - } String clientRequestId = null; - if (poolRemoveNodesOptions != null) { - clientRequestId = poolRemoveNodesOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolRemoveNodesOptions != null) { - returnClientRequestId = poolRemoveNodesOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolRemoveNodesOptions != null) { - ocpDate = poolRemoveNodesOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (poolRemoveNodesOptions != null) { - ifMatch = poolRemoveNodesOptions.getIfMatch(); - } String ifNoneMatch = null; - if (poolRemoveNodesOptions != null) { - ifNoneMatch = poolRemoveNodesOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (poolRemoveNodesOptions != null) { - ifModifiedSince = poolRemoveNodesOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (poolRemoveNodesOptions != null) { - ifUnmodifiedSince = poolRemoveNodesOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.removeNodes(poolId, nodeRemoveParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -4602,18 +3436,9 @@ public ServiceResponseWithHeaders removeNodes(Stri if (poolRemoveNodesOptions != null) { ifUnmodifiedSince = poolRemoveNodesOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.removeNodes(poolId, nodeRemoveParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return removeNodesDelegate(call.execute()); } @@ -4678,18 +3503,9 @@ public ServiceCall removeNodesAsync(String poolId, NodeRemoveParameter nodeRemov if (poolRemoveNodesOptions != null) { ifUnmodifiedSince = poolRemoveNodesOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.removeNodes(poolId, nodeRemoveParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -4727,21 +3543,8 @@ public ServiceResponseWithHeaders, PoolListPoolUsageM } final PoolListPoolUsageMetricsNextOptions poolListPoolUsageMetricsNextOptions = null; String clientRequestId = null; - if (poolListPoolUsageMetricsNextOptions != null) { - clientRequestId = poolListPoolUsageMetricsNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolListPoolUsageMetricsNextOptions != null) { - returnClientRequestId = poolListPoolUsageMetricsNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolListPoolUsageMetricsNextOptions != null) { - ocpDate = poolListPoolUsageMetricsNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listPoolUsageMetricsNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listPoolUsageMetricsNextDelegate(call.execute()); } @@ -4765,21 +3568,8 @@ public ServiceCall listPoolUsageMetricsNextAsync(final String nextPageLink, fina } final PoolListPoolUsageMetricsNextOptions poolListPoolUsageMetricsNextOptions = null; String clientRequestId = null; - if (poolListPoolUsageMetricsNextOptions != null) { - clientRequestId = poolListPoolUsageMetricsNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolListPoolUsageMetricsNextOptions != null) { - returnClientRequestId = poolListPoolUsageMetricsNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolListPoolUsageMetricsNextOptions != null) { - ocpDate = poolListPoolUsageMetricsNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listPoolUsageMetricsNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -4790,7 +3580,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listPoolUsageMetricsNextAsync(result.getBody().getNextPageLink(), poolListPoolUsageMetricsNextOptions, serviceCall, serviceCallback); + listPoolUsageMetricsNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -4829,10 +3619,7 @@ public ServiceResponseWithHeaders, PoolListPoolUsageM if (poolListPoolUsageMetricsNextOptions != null) { ocpDate = poolListPoolUsageMetricsNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listPoolUsageMetricsNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listPoolUsageMetricsNextDelegate(call.execute()); } @@ -4868,10 +3655,7 @@ public ServiceCall listPoolUsageMetricsNextAsync(final String nextPageLink, fina if (poolListPoolUsageMetricsNextOptions != null) { ocpDate = poolListPoolUsageMetricsNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listPoolUsageMetricsNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -4916,21 +3700,8 @@ public ServiceResponseWithHeaders, PoolListHeaders> listNext } final PoolListNextOptions poolListNextOptions = null; String clientRequestId = null; - if (poolListNextOptions != null) { - clientRequestId = poolListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolListNextOptions != null) { - returnClientRequestId = poolListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolListNextOptions != null) { - ocpDate = poolListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -4954,21 +3725,8 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } final PoolListNextOptions poolListNextOptions = null; String clientRequestId = null; - if (poolListNextOptions != null) { - clientRequestId = poolListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (poolListNextOptions != null) { - returnClientRequestId = poolListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (poolListNextOptions != null) { - ocpDate = poolListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -4979,7 +3737,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listNextAsync(result.getBody().getNextPageLink(), poolListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -5018,10 +3776,7 @@ public ServiceResponseWithHeaders, PoolListHeaders> listNext if (poolListNextOptions != null) { ocpDate = poolListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -5057,10 +3812,7 @@ public ServiceCall listNextAsync(final String nextPageLink, final PoolListNextOp if (poolListNextOptions != null) { ocpDate = poolListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperations.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperations.java index 3439ddfd090d..bfc063998539 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperations.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperations.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java index 3fe69940b5e3..8385dab24da0 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol; @@ -154,25 +140,9 @@ public ServiceResponseWithHeaders add(String jobId, TaskAd Validator.validate(task); final TaskAddOptions taskAddOptions = null; Integer timeout = null; - if (taskAddOptions != null) { - timeout = taskAddOptions.getTimeout(); - } String clientRequestId = null; - if (taskAddOptions != null) { - clientRequestId = taskAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskAddOptions != null) { - returnClientRequestId = taskAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskAddOptions != null) { - ocpDate = taskAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(jobId, task, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -205,25 +175,9 @@ public ServiceCall addAsync(String jobId, TaskAddParameter task, final ServiceCa Validator.validate(task, serviceCallback); final TaskAddOptions taskAddOptions = null; Integer timeout = null; - if (taskAddOptions != null) { - timeout = taskAddOptions.getTimeout(); - } String clientRequestId = null; - if (taskAddOptions != null) { - clientRequestId = taskAddOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskAddOptions != null) { - returnClientRequestId = taskAddOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskAddOptions != null) { - ocpDate = taskAddOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.add(jobId, task, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -278,10 +232,7 @@ public ServiceResponseWithHeaders add(String jobId, TaskAd if (taskAddOptions != null) { ocpDate = taskAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(jobId, task, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -330,10 +281,7 @@ public ServiceCall addAsync(String jobId, TaskAddParameter task, TaskAddOptions if (taskAddOptions != null) { ocpDate = taskAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.add(jobId, task, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -374,54 +322,19 @@ public ServiceResponseWithHeaders, TaskListHeaders> list(fi } final TaskListOptions taskListOptions = null; String filter = null; - if (taskListOptions != null) { - filter = taskListOptions.getFilter(); - } String select = null; - if (taskListOptions != null) { - select = taskListOptions.getSelect(); - } String expand = null; - if (taskListOptions != null) { - expand = taskListOptions.getExpand(); - } Integer maxResults = null; - if (taskListOptions != null) { - maxResults = taskListOptions.getMaxResults(); - } Integer timeout = null; - if (taskListOptions != null) { - timeout = taskListOptions.getTimeout(); - } String clientRequestId = null; - if (taskListOptions != null) { - clientRequestId = taskListOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskListOptions != null) { - returnClientRequestId = taskListOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskListOptions != null) { - ocpDate = taskListOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.list(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, TaskListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @Override public Page nextPage(String nextPageLink) throws BatchErrorException, IOException { - TaskListNextOptions taskListNextOptions = null; - if (taskListOptions != null) { - taskListNextOptions = new TaskListNextOptions(); - taskListNextOptions.setClientRequestId(taskListOptions.getClientRequestId()); - taskListNextOptions.setReturnClientRequestId(taskListOptions.getReturnClientRequestId()); - taskListNextOptions.setOcpDate(taskListOptions.getOcpDate()); - } - return listNext(nextPageLink, taskListNextOptions).getBody(); + return listNext(nextPageLink, null).getBody(); } }; return new ServiceResponseWithHeaders<>(result, response.getHeaders(), response.getResponse()); @@ -449,41 +362,13 @@ public ServiceCall listAsync(final String jobId, final ListOperationCallback call = service.list(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -494,14 +379,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - TaskListNextOptions taskListNextOptions = null; - if (taskListOptions != null) { - taskListNextOptions = new TaskListNextOptions(); - taskListNextOptions.setClientRequestId(taskListOptions.getClientRequestId()); - taskListNextOptions.setReturnClientRequestId(taskListOptions.getReturnClientRequestId()); - taskListNextOptions.setOcpDate(taskListOptions.getOcpDate()); - } - listNextAsync(result.getBody().getNextPageLink(), taskListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -563,10 +441,7 @@ public ServiceResponseWithHeaders, TaskListHeaders> list(fi if (taskListOptions != null) { ocpDate = taskListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, TaskListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -639,10 +514,7 @@ public ServiceCall listAsync(final String jobId, final TaskListOptions taskListO if (taskListOptions != null) { ocpDate = taskListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.list(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -701,49 +573,13 @@ public ServiceResponseWithHeaders delete(String jobId, } final TaskDeleteOptions taskDeleteOptions = null; Integer timeout = null; - if (taskDeleteOptions != null) { - timeout = taskDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (taskDeleteOptions != null) { - clientRequestId = taskDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskDeleteOptions != null) { - returnClientRequestId = taskDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskDeleteOptions != null) { - ocpDate = taskDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (taskDeleteOptions != null) { - ifMatch = taskDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (taskDeleteOptions != null) { - ifNoneMatch = taskDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (taskDeleteOptions != null) { - ifModifiedSince = taskDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (taskDeleteOptions != null) { - ifUnmodifiedSince = taskDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -775,49 +611,13 @@ public ServiceCall deleteAsync(String jobId, String taskId, final ServiceCallbac } final TaskDeleteOptions taskDeleteOptions = null; Integer timeout = null; - if (taskDeleteOptions != null) { - timeout = taskDeleteOptions.getTimeout(); - } String clientRequestId = null; - if (taskDeleteOptions != null) { - clientRequestId = taskDeleteOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskDeleteOptions != null) { - returnClientRequestId = taskDeleteOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskDeleteOptions != null) { - ocpDate = taskDeleteOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (taskDeleteOptions != null) { - ifMatch = taskDeleteOptions.getIfMatch(); - } String ifNoneMatch = null; - if (taskDeleteOptions != null) { - ifNoneMatch = taskDeleteOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (taskDeleteOptions != null) { - ifModifiedSince = taskDeleteOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (taskDeleteOptions != null) { - ifUnmodifiedSince = taskDeleteOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.delete(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -887,18 +687,9 @@ public ServiceResponseWithHeaders delete(String jobId, if (taskDeleteOptions != null) { ifUnmodifiedSince = taskDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -962,18 +753,9 @@ public ServiceCall deleteAsync(String jobId, String taskId, TaskDeleteOptions ta if (taskDeleteOptions != null) { ifUnmodifiedSince = taskDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.delete(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1018,57 +800,15 @@ public ServiceResponseWithHeaders get(String jobId, S } final TaskGetOptions taskGetOptions = null; String select = null; - if (taskGetOptions != null) { - select = taskGetOptions.getSelect(); - } String expand = null; - if (taskGetOptions != null) { - expand = taskGetOptions.getExpand(); - } Integer timeout = null; - if (taskGetOptions != null) { - timeout = taskGetOptions.getTimeout(); - } String clientRequestId = null; - if (taskGetOptions != null) { - clientRequestId = taskGetOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskGetOptions != null) { - returnClientRequestId = taskGetOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskGetOptions != null) { - ocpDate = taskGetOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (taskGetOptions != null) { - ifMatch = taskGetOptions.getIfMatch(); - } String ifNoneMatch = null; - if (taskGetOptions != null) { - ifNoneMatch = taskGetOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (taskGetOptions != null) { - ifModifiedSince = taskGetOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (taskGetOptions != null) { - ifUnmodifiedSince = taskGetOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.get(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -1100,57 +840,15 @@ public ServiceCall getAsync(String jobId, String taskId, final ServiceCallback call = service.get(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1228,18 +926,9 @@ public ServiceResponseWithHeaders get(String jobId, S if (taskGetOptions != null) { ifUnmodifiedSince = taskGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.get(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -1311,18 +1000,9 @@ public ServiceCall getAsync(String jobId, String taskId, TaskGetOptions taskGetO if (taskGetOptions != null) { ifUnmodifiedSince = taskGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.get(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1368,51 +1048,15 @@ public ServiceResponseWithHeaders update(String jobId, final TaskConstraints constraints = null; final TaskUpdateOptions taskUpdateOptions = null; Integer timeout = null; - if (taskUpdateOptions != null) { - timeout = taskUpdateOptions.getTimeout(); - } String clientRequestId = null; - if (taskUpdateOptions != null) { - clientRequestId = taskUpdateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskUpdateOptions != null) { - returnClientRequestId = taskUpdateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskUpdateOptions != null) { - ocpDate = taskUpdateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (taskUpdateOptions != null) { - ifMatch = taskUpdateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (taskUpdateOptions != null) { - ifNoneMatch = taskUpdateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (taskUpdateOptions != null) { - ifModifiedSince = taskUpdateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (taskUpdateOptions != null) { - ifUnmodifiedSince = taskUpdateOptions.getIfUnmodifiedSince(); - } - TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); - taskUpdateParameter.setConstraints(constraints); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); + taskUpdateParameter = null; Call call = service.update(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, taskUpdateParameter); return updateDelegate(call.execute()); } @@ -1445,51 +1089,15 @@ public ServiceCall updateAsync(String jobId, String taskId, final ServiceCallbac final TaskConstraints constraints = null; final TaskUpdateOptions taskUpdateOptions = null; Integer timeout = null; - if (taskUpdateOptions != null) { - timeout = taskUpdateOptions.getTimeout(); - } String clientRequestId = null; - if (taskUpdateOptions != null) { - clientRequestId = taskUpdateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskUpdateOptions != null) { - returnClientRequestId = taskUpdateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskUpdateOptions != null) { - ocpDate = taskUpdateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (taskUpdateOptions != null) { - ifMatch = taskUpdateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (taskUpdateOptions != null) { - ifNoneMatch = taskUpdateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (taskUpdateOptions != null) { - ifModifiedSince = taskUpdateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (taskUpdateOptions != null) { - ifUnmodifiedSince = taskUpdateOptions.getIfUnmodifiedSince(); - } - TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); - taskUpdateParameter.setConstraints(constraints); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); + taskUpdateParameter = null; Call call = service.update(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, taskUpdateParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1563,18 +1171,9 @@ public ServiceResponseWithHeaders update(String jobId, } TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); taskUpdateParameter.setConstraints(constraints); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.update(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, taskUpdateParameter); return updateDelegate(call.execute()); } @@ -1642,18 +1241,9 @@ public ServiceCall updateAsync(String jobId, String taskId, TaskConstraints cons } TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); taskUpdateParameter.setConstraints(constraints); - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.update(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, taskUpdateParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1698,29 +1288,10 @@ public ServiceResponseWithHeaders call = service.listSubtasks(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return listSubtasksDelegate(call.execute()); } @@ -1752,29 +1323,10 @@ public ServiceCall listSubtasksAsync(String jobId, String taskId, final ServiceC } final TaskListSubtasksOptions taskListSubtasksOptions = null; String select = null; - if (taskListSubtasksOptions != null) { - select = taskListSubtasksOptions.getSelect(); - } Integer timeout = null; - if (taskListSubtasksOptions != null) { - timeout = taskListSubtasksOptions.getTimeout(); - } String clientRequestId = null; - if (taskListSubtasksOptions != null) { - clientRequestId = taskListSubtasksOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskListSubtasksOptions != null) { - returnClientRequestId = taskListSubtasksOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskListSubtasksOptions != null) { - ocpDate = taskListSubtasksOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listSubtasks(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1832,10 +1384,7 @@ public ServiceResponseWithHeaders call = service.listSubtasks(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return listSubtasksDelegate(call.execute()); } @@ -1887,10 +1436,7 @@ public ServiceCall listSubtasksAsync(String jobId, String taskId, TaskListSubtas if (taskListSubtasksOptions != null) { ocpDate = taskListSubtasksOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listSubtasks(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1935,49 +1481,13 @@ public ServiceResponseWithHeaders terminate(String j } final TaskTerminateOptions taskTerminateOptions = null; Integer timeout = null; - if (taskTerminateOptions != null) { - timeout = taskTerminateOptions.getTimeout(); - } String clientRequestId = null; - if (taskTerminateOptions != null) { - clientRequestId = taskTerminateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskTerminateOptions != null) { - returnClientRequestId = taskTerminateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskTerminateOptions != null) { - ocpDate = taskTerminateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (taskTerminateOptions != null) { - ifMatch = taskTerminateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (taskTerminateOptions != null) { - ifNoneMatch = taskTerminateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (taskTerminateOptions != null) { - ifModifiedSince = taskTerminateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (taskTerminateOptions != null) { - ifUnmodifiedSince = taskTerminateOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.terminate(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return terminateDelegate(call.execute()); } @@ -2009,49 +1519,13 @@ public ServiceCall terminateAsync(String jobId, String taskId, final ServiceCall } final TaskTerminateOptions taskTerminateOptions = null; Integer timeout = null; - if (taskTerminateOptions != null) { - timeout = taskTerminateOptions.getTimeout(); - } String clientRequestId = null; - if (taskTerminateOptions != null) { - clientRequestId = taskTerminateOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskTerminateOptions != null) { - returnClientRequestId = taskTerminateOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskTerminateOptions != null) { - ocpDate = taskTerminateOptions.getOcpDate(); - } + DateTimeRfc1123 ocpDateConverted = null; String ifMatch = null; - if (taskTerminateOptions != null) { - ifMatch = taskTerminateOptions.getIfMatch(); - } String ifNoneMatch = null; - if (taskTerminateOptions != null) { - ifNoneMatch = taskTerminateOptions.getIfNoneMatch(); - } - DateTime ifModifiedSince = null; - if (taskTerminateOptions != null) { - ifModifiedSince = taskTerminateOptions.getIfModifiedSince(); - } - DateTime ifUnmodifiedSince = null; - if (taskTerminateOptions != null) { - ifUnmodifiedSince = taskTerminateOptions.getIfUnmodifiedSince(); - } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } Call call = service.terminate(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2121,18 +1595,9 @@ public ServiceResponseWithHeaders terminate(String j if (taskTerminateOptions != null) { ifUnmodifiedSince = taskTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.terminate(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return terminateDelegate(call.execute()); } @@ -2196,18 +1661,9 @@ public ServiceCall terminateAsync(String jobId, String taskId, TaskTerminateOpti if (taskTerminateOptions != null) { ifUnmodifiedSince = taskTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } - DateTimeRfc1123 ifModifiedSinceConverted = null; - if (ifModifiedSince != null) { - ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - } - DateTimeRfc1123 ifUnmodifiedSinceConverted = null; - if (ifUnmodifiedSince != null) { - ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); Call call = service.terminate(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2245,21 +1701,8 @@ public ServiceResponseWithHeaders, TaskListHeaders> listNext } final TaskListNextOptions taskListNextOptions = null; String clientRequestId = null; - if (taskListNextOptions != null) { - clientRequestId = taskListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskListNextOptions != null) { - returnClientRequestId = taskListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskListNextOptions != null) { - ocpDate = taskListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -2283,21 +1726,8 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } final TaskListNextOptions taskListNextOptions = null; String clientRequestId = null; - if (taskListNextOptions != null) { - clientRequestId = taskListNextOptions.getClientRequestId(); - } Boolean returnClientRequestId = null; - if (taskListNextOptions != null) { - returnClientRequestId = taskListNextOptions.getReturnClientRequestId(); - } - DateTime ocpDate = null; - if (taskListNextOptions != null) { - ocpDate = taskListNextOptions.getOcpDate(); - } DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2308,7 +1738,7 @@ public void onResponse(Call call, Response response) serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { - listNextAsync(result.getBody().getNextPageLink(), taskListNextOptions, serviceCall, serviceCallback); + listNextAsync(result.getBody().getNextPageLink(), null, serviceCall, serviceCallback); } else { serviceCallback.success(new ServiceResponseWithHeaders<>(serviceCallback.get(), result.getHeaders(), result.getResponse())); } @@ -2347,10 +1777,7 @@ public ServiceResponseWithHeaders, TaskListHeaders> listNext if (taskListNextOptions != null) { ocpDate = taskListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -2386,10 +1813,7 @@ public ServiceCall listNextAsync(final String nextPageLink, final TaskListNextOp if (taskListNextOptions != null) { ocpDate = taskListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = null; - if (ocpDate != null) { - ocpDateConverted = new DateTimeRfc1123(ocpDate); - } + DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AffinityInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AffinityInformation.java index 1a7e83e5fc3b..e42e158d24b7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AffinityInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AffinityInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AllocationState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AllocationState.java index 174c35ab47e1..45af113ac07f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AllocationState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AllocationState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetHeaders.java index 54815d952f36..b625393540ba 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetOptions.java index b5a876c89628..74c69e860fab 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationGetOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListHeaders.java index 5dafcf73a481..435e82425635 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListNextOptions.java index 711bbed72afc..d41c57eb6cf3 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListOptions.java index 788dc5221884..77115c673096 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationListOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationPackageReference.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationPackageReference.java index d8c9756d910b..f870045b305e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationPackageReference.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationPackageReference.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationSummary.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationSummary.java index cf560cf35005..533a263608c4 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationSummary.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ApplicationSummary.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoPoolSpecification.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoPoolSpecification.java index 331ab4a8b7a5..819a909355ee 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoPoolSpecification.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoPoolSpecification.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRun.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRun.java index dc7a8a49e8e1..713d0314f829 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRun.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRun.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRunError.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRunError.java index 7b784d65eb91..acb9c1fa1aad 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRunError.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/AutoScaleRunError.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchError.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchError.java index f58838a52501..c4900226ae2e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchError.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchError.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorDetail.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorDetail.java index a3895d11eae6..7dc10155e728 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorDetail.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorDetail.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorException.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorException.java index a23d2fbd6c3a..7d80282f47df 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorException.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/BatchErrorException.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Certificate.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Certificate.java index 7583ab3bf398..347ae24f05e7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Certificate.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Certificate.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddHeaders.java index 4699043baff0..de6d86978e0d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddOptions.java index b76c611a7045..6492f25044a9 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddParameter.java index 7eb8d536a824..0e4c1cd1e75c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateAddParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionHeaders.java index bdc9e7e1b69e..d899128d9a9b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionOptions.java index a727d9767e98..5b7eb6430f10 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateCancelDeletionOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteHeaders.java index d0186e17ace9..ae1b5879e688 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteOptions.java index 68b54df94f5e..eefbb2320e84 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateDeleteOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateFormat.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateFormat.java index 853adb28e434..c6beb940ffe9 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateFormat.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateFormat.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetHeaders.java index ab3e86363927..338196308bd8 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetOptions.java index e66b73e198d7..aefebab835ab 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateGetOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListHeaders.java index 16fa18d66bf7..2cc348441038 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListNextOptions.java index 37fa69704daa..15e23388fa84 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListOptions.java index b3a07430ffd7..dd63ddaa0899 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateListOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateReference.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateReference.java index a611615a7732..53a1fe83de2b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateReference.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateReference.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateState.java index aba1b71927e3..6671f2c697c4 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateStoreLocation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateStoreLocation.java index 57e3ecda71b2..6cc512f6aa55 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateStoreLocation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CertificateStoreLocation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJob.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJob.java index 954c0105dfee..172937e3d1fe 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJob.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJob.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJobSchedule.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJobSchedule.java index fa085e54b555..aaaaf2cfa1b5 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJobSchedule.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudJobSchedule.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudPool.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudPool.java index f35c7f3181fe..7c26fdb2fefd 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudPool.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudPool.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTask.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTask.java index 8be54aa07dd8..e7af42e29aad 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTask.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTask.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTaskListSubtasksResult.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTaskListSubtasksResult.java index aebf8863d82c..0eb37f5665d6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTaskListSubtasksResult.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/CloudTaskListSubtasksResult.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNode.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNode.java index 9aee63cf2825..70207aa2dd59 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNode.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNode.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserHeaders.java index 29e7382c57ff..bdd91c37e23d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserOptions.java index b05680105ee0..d16095e7c813 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeAddUserOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeallocationOption.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeallocationOption.java index 12ee05c70aa2..e6c97132651b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeallocationOption.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeallocationOption.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserHeaders.java index 73fa1866e8e7..e278b7b6ca33 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserOptions.java index 0f85fc2e9dbe..c3a19cadcfcd 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDeleteUserOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingHeaders.java index 075715c4f017..b56a5734ad39 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingOptions.java index e46b1cbe5380..5c32a58a611b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeDisableSchedulingOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingHeaders.java index 0522d9352eeb..f579a99539c1 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingOptions.java index ef01fa351fea..aa45d3ae4cda 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeEnableSchedulingOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeError.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeError.java index 1d3fac01e207..ef95c6a2a643 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeError.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeError.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeFillType.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeFillType.java index 18713cb16314..623fcb8e5dca 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeFillType.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeFillType.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetHeaders.java index 3ec1ffc092f7..c208871f573a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetOptions.java index d6b52fe92274..4ea4717a8bb4 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopHeaders.java index b2ee66305f33..90b2b89db855 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopOptions.java index ff52ac83e018..593c14f583b1 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeGetRemoteDesktopOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeInformation.java index 82c6ceee487f..f8e07c55d5bb 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListHeaders.java index e8580d1701ec..057c1831966b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListNextOptions.java index 770dcb49b7a2..9a4d10d59b47 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListOptions.java index 0a65f48843ef..d5a809efb3a6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeListOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootHeaders.java index f63e9b7ff8ab..7e275a3ead7b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOption.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOption.java index 69452d175301..0fa71316fb6a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOption.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOption.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOptions.java index f1ca0ec2363c..7a0159656bc2 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeRebootOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageHeaders.java index 7e7817e386c2..8f1cd939f87b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOption.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOption.java index 22aae0469279..348b6e4683f9 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOption.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOption.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOptions.java index c0fd62bf479b..60853e35ccda 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeReimageOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeState.java index 618d04967d45..879831da16a4 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserHeaders.java index a24871b9c6f1..f2abd58ee3c3 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserOptions.java index b7831f9e3f36..e9beddc91e68 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUpdateUserOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUser.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUser.java index dcb7e589efc1..963e13764f0a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUser.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNodeUser.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DeleteCertificateError.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DeleteCertificateError.java index 1c5cd781f4dc..6f5a9a484291 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DeleteCertificateError.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DeleteCertificateError.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableComputeNodeSchedulingOption.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableComputeNodeSchedulingOption.java index b06329f03be1..df008d3962bd 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableComputeNodeSchedulingOption.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableComputeNodeSchedulingOption.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableJobOption.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableJobOption.java index fc02c9374e61..9b769e2bedd3 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableJobOption.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/DisableJobOption.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/EnvironmentSetting.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/EnvironmentSetting.java index f4a8d2bc39da..f17d61d376a6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/EnvironmentSetting.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/EnvironmentSetting.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ErrorMessage.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ErrorMessage.java index 53ddc226c76d..e8f17eeb6942 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ErrorMessage.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ErrorMessage.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeHeaders.java index f9cf0aa135ce..c896df39d27f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeOptions.java index fb7cf2a9ca4f..3c5734c5420e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromComputeNodeOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskHeaders.java index f49d715a2eac..9fef3ba9cfcc 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskOptions.java index c6939056cc91..ac9f296f2f01 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileDeleteFromTaskOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeHeaders.java index c5664028bb27..985464e66027 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeOptions.java index b5ccaa67fbfd..d2da188b6443 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromComputeNodeOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskHeaders.java index 37820727093f..b900652a82ad 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskOptions.java index 3610de6366da..700b0212a0b5 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetFromTaskOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeHeaders.java index a21306f4c470..63a8798b7745 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeOptions.java index e26348569f7b..6e3bb2119e5a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromComputeNodeOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskHeaders.java index ebc731bc3797..c42359c2bbb7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskOptions.java index a4fd18847648..08e5baee8e69 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileGetNodeFilePropertiesFromTaskOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeHeaders.java index 6d7d6c971dd2..827f18dad4f7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeNextOptions.java index 8ff38c143d03..48e9ea6fb454 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeOptions.java index e13f9b679b5d..92f84fdc675a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromComputeNodeOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskHeaders.java index 6a40e52f7209..296364d615de 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskNextOptions.java index b337a9374f3d..03374cd7541b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskOptions.java index 2cfe5dca12b5..b05c8b37a06c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileListFromTaskOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileProperties.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileProperties.java index 2e4277573a66..8f5cd35b859d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileProperties.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/FileProperties.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddHeaders.java index 54c50a4eaf28..d5b9ddc4c13d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddOptions.java index b0f5b20f48d6..ac2f0734bace 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddParameter.java index 4a747bc1b3bf..b26979a77056 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobAddParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobConstraints.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobConstraints.java index 20fc83cb903a..333590756bff 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobConstraints.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobConstraints.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteHeaders.java index 8c3b592b0ba1..01f8cae7b2eb 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteOptions.java index 3ce7af6dfbbd..4d40ae70aa47 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDeleteOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableHeaders.java index f9a373ca16e7..bece1b0e03e4 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableOptions.java index 9eb2f006f2a2..cd90b5b21e93 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableParameter.java index 0e0c3bf12354..b4247adfe88e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobDisableParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableHeaders.java index 27a1462efc8f..887717bb2724 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableOptions.java index 4df434273598..5531f574b27d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobEnableOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobExecutionInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobExecutionInformation.java index fae76ba28b32..26b590937b15 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobExecutionInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobExecutionInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsHeaders.java index fd5ac1fcd412..8f9f43a5fa98 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsOptions.java index ec6e65d4b739..f7acdfc105a7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetAllJobsLifetimeStatisticsOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetHeaders.java index a4e97b5e2585..404de5b5cef7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetOptions.java index c73b6d7fe3e7..96b76e3f90a2 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobGetOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleHeaders.java index 65f3bcbc947d..de888a4f2395 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleNextOptions.java index c36383d06f59..7c53a3d88e20 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleOptions.java index 16a3b8566c20..7188e7692cae 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListFromJobScheduleOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListHeaders.java index 6c918d47ed18..49110e64add1 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListNextOptions.java index 5d8d9fc3f42e..311fce32325d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListOptions.java index 46e587eb63d0..bb5952acd945 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusHeaders.java index 017b8fde25b4..e1cbd1681ac0 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusNextOptions.java index 55bd96247d88..2a82aac377fe 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusOptions.java index 311cc1df2954..6a72716b617c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobListPreparationAndReleaseTaskStatusOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobManagerTask.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobManagerTask.java index 6e99b9c651c6..1a8c51d4e42b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobManagerTask.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobManagerTask.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchHeaders.java index e6e5fcef00b1..22522a526670 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchOptions.java index bae92750a03b..90e57c172367 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchParameter.java index 733a2c9e6e7b..97ba94c3166d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPatchParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationAndReleaseTaskExecutionInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationAndReleaseTaskExecutionInformation.java index 1dad171ab2c2..08194307771a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationAndReleaseTaskExecutionInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationAndReleaseTaskExecutionInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTask.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTask.java index d5c290509cc6..03f648179730 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTask.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTask.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskExecutionInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskExecutionInformation.java index 7fe28d7bd746..e2580c4e2cf9 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskExecutionInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskExecutionInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskState.java index d915b57d11cc..4f6befea1fa9 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobPreparationTaskState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTask.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTask.java index b5592fbda4e5..bb608638ed76 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTask.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTask.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskExecutionInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskExecutionInformation.java index 6c37a6875762..4b7e568295d6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskExecutionInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskExecutionInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskState.java index 47ffa9c9e5b0..79feff98c81e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobReleaseTaskState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddHeaders.java index 6c6e44fab3a3..2b78fe966326 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddOptions.java index de86b389374a..9e1693b47548 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddParameter.java index cb10fc8ed7f9..63c90acedd9f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleAddParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteHeaders.java index 470f56de4fe7..d51c03dec667 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteOptions.java index b52d21c9a9a2..57a87f9aa6b8 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDeleteOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableHeaders.java index 192ce05c5192..8862373710c0 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableOptions.java index 9980dcd78359..b68742bbc2b5 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleDisableOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableHeaders.java index d95fd9f9e45a..346176545657 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableOptions.java index 6ad9c097798d..05b080c777be 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleEnableOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExecutionInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExecutionInformation.java index 6d9837b908a1..75268efc27b0 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExecutionInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExecutionInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsHeaders.java index 87efb45323c8..b59f39174b2f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsOptions.java index ef27e2e5778f..97e0bf1ca48c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleExistsOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetHeaders.java index 13670eb90808..e5a53b869994 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetOptions.java index 949378010cd4..dc08bb3b7d3c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleGetOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListHeaders.java index c1c3fe554f5b..df94e6ab61b6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListNextOptions.java index 4b20de140b90..43da14bbc5e0 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListOptions.java index 1c28f42812eb..2e74820b5d38 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleListOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchHeaders.java index 26ff92dc8796..6bba77f957be 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchOptions.java index 13193e1577dd..4b178b63e5e2 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchParameter.java index b2070f91b57c..469f5be07deb 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulePatchParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleState.java index 8e7bcd944ca2..89ab26203134 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleStatistics.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleStatistics.java index 2430f632439a..a8f4d95f5c5a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleStatistics.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleStatistics.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateHeaders.java index 220541b5ec13..5639d20478ce 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateOptions.java index de86597fb667..779527b0ef71 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleTerminateOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateHeaders.java index 685425b627c0..d95f34a544ac 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateOptions.java index 0789d05fb0d4..d2a05ac3b172 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateParameter.java index e8454bf4dfe4..f8b70baa47e7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulingError.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulingError.java index bcbd4cb17882..ef88a5c8cc8f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulingError.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSchedulingError.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSpecification.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSpecification.java index 47592e75368c..c3f5cc6a744e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSpecification.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobSpecification.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobState.java index 28a69c160d8f..2e8447a598cf 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobStatistics.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobStatistics.java index 6fee1d380188..a0253e92b160 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobStatistics.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobStatistics.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateHeaders.java index 20a4faa4f465..5f26c4e1f628 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateOptions.java index a10ad4217ed8..3313690cbccd 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateParameter.java index edb808bfa59c..4f9a4b5749cd 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobTerminateParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateHeaders.java index 217097305b9e..cc14d634f125 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateOptions.java index bba14c27014e..aee1135f38e0 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateParameter.java index 469d0fdec765..b78cd429f725 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MetadataItem.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MetadataItem.java index 86adc8999fda..68ea1362378a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MetadataItem.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MetadataItem.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MultiInstanceSettings.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MultiInstanceSettings.java index 24e52ce9c8c9..b8d7814f6a9e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MultiInstanceSettings.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/MultiInstanceSettings.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NameValuePair.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NameValuePair.java index fbbc2b289bca..725163288fed 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NameValuePair.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NameValuePair.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeDisableSchedulingParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeDisableSchedulingParameter.java index 388502c4f92b..f05aaec01c04 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeDisableSchedulingParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeDisableSchedulingParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeFile.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeFile.java index 1d4d43ec57e1..ba3f2336f1e7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeFile.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeFile.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRebootParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRebootParameter.java index d3f2d9671cf9..efced7773f8a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRebootParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRebootParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeReimageParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeReimageParameter.java index 358e2c6e8c59..e228c4b357ce 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeReimageParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeReimageParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRemoveParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRemoveParameter.java index 791b9a97ca16..12d3b9bcb89a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRemoveParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeRemoveParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeUpdateUserParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeUpdateUserParameter.java index bf8db6c8d697..21f3895fba58 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeUpdateUserParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/NodeUpdateUserParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PageImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PageImpl.java index 135b58de82cb..50a8315b9eb4 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PageImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PageImpl.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddHeaders.java index 7115dfeac9c1..0247d7585d48 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddOptions.java index 370d99a630e6..afd8e70bab9f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddParameter.java index 2add6882a782..a4848cd7c79a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolAddParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteHeaders.java index ebf98e0ee601..66466a5d902f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteOptions.java index 1dd98d974b51..35c13d101d6e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDeleteOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleHeaders.java index cf7239c7ca18..8dfae547de06 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleOptions.java index be42ada9e991..de9824aef05c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolDisableAutoScaleOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleHeaders.java index 927d688f3012..aaa6e3a2c445 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleOptions.java index 0011c7044f58..5be0d4483303 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleParameter.java index c65154dfc07b..ed8ce827d938 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleHeaders.java index f5326ce27614..6ae1d93dae94 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleOptions.java index 3b26990d0962..6b030b3c2976 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleParameter.java index 95493ca3ace3..f27d91a06570 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEvaluateAutoScaleParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsHeaders.java index b09b3fe6c5f1..b83c11482fd7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsOptions.java index fe114d94fdf5..8325ff04831c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsHeaders.java index 3b4a7599750e..165676d8990d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsOptions.java index 388d4376e994..33f9e08ad546 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetAllPoolsLifetimeStatisticsOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetHeaders.java index 083b5daee108..54ed3eb05c15 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetOptions.java index 3e8d9c327da6..c97f4886a7ef 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolGetOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolInformation.java index 10582ad331ca..9ffc3ac3f716 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolLifetimeOption.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolLifetimeOption.java index 504e2e6ab59b..359d3e6abac2 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolLifetimeOption.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolLifetimeOption.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListHeaders.java index e5cb852a147d..0afd451cf2d6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListNextOptions.java index 139ea81276ea..4edb076b1cf2 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListOptions.java index a461c698b061..1bb1a29e77d6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsHeaders.java index 5455841f1806..b84a60833ccf 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsNextOptions.java index 013e1cbe9aaa..9144470f597a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsOptions.java index 44592ce85636..ffa233b6c7ff 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolListPoolUsageMetricsOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchHeaders.java index 26e079a346f3..fff582e4ee9a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchOptions.java index d26a4e8cbc24..a844b63c667c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchParameter.java index aed9d42b8c20..341dc9c4869b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolPatchParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesHeaders.java index d860b1560d3d..1c59cb60eb63 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesOptions.java index 41d0117a1338..e39457e22202 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolRemoveNodesOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeHeaders.java index 9ac3ef9119d6..c991f1f49100 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeOptions.java index f061dcf58eb5..e325cdca226d 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeParameter.java index ae6e4307169d..d90f9f9b1b8f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolResizeParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolSpecification.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolSpecification.java index efa9515144b9..998a5e944248 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolSpecification.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolSpecification.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolState.java index 9a6038e3d522..f39fbfa93116 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStatistics.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStatistics.java index ede7734577de..a697c90bf769 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStatistics.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStatistics.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeHeaders.java index 9114a3561453..5940aae75c6c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeOptions.java index 130d0ac59427..a490a3bcfc9e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolStopResizeOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesHeaders.java index 05093c74c70f..f2318f29a80a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesOptions.java index 554ba6029d03..66fe064d32ca 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesParameter.java index f0bfb8bf6e66..f13a9cc4e8fe 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpdatePropertiesParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSHeaders.java index b7f25f2dfe5d..243d24868a9a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSOptions.java index d107eb8638f0..655e701da94a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSParameter.java index 2a5d9f202646..461ed5964486 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUpgradeOSParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUsageMetrics.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUsageMetrics.java index a292e343e454..be4c799177cd 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUsageMetrics.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolUsageMetrics.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/RecentJob.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/RecentJob.java index 8dcc8ab08911..7e7bf1a2182e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/RecentJob.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/RecentJob.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResizeError.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResizeError.java index d42366335824..bc781b76968c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResizeError.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResizeError.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceFile.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceFile.java index 7ac75c35405a..ae04550cb4b7 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceFile.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceFile.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceStatistics.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceStatistics.java index c83a36e1d97b..18b708955315 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceStatistics.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/ResourceStatistics.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Schedule.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Schedule.java index b5272af4972c..ebdcb336cb54 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Schedule.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/Schedule.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingErrorCategory.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingErrorCategory.java index f4c8d5fd74cd..79b7d4182152 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingErrorCategory.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingErrorCategory.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingState.java index c108e8162211..e2949c3eba12 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SchedulingState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTask.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTask.java index 58910d3ea777..4b57e237145c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTask.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTask.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskInformation.java index 43d3d9054c7d..a43f73dc7575 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskState.java index 06173d109815..f993344454ba 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/StartTaskState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SubtaskInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SubtaskInformation.java index 7c062b00dea1..20418be9284f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SubtaskInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/SubtaskInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddHeaders.java index a55bc6689de7..abe05af32964 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddOptions.java index fec3493ec2b3..32a7ec3ce633 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddParameter.java index ff2c8c299f1e..ca5fc20a39ad 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskAddParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskConstraints.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskConstraints.java index e22550cdcc63..575582d92fb6 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskConstraints.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskConstraints.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteHeaders.java index b4bfe6804257..33c954fccfdd 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteOptions.java index 44e1b120d82e..f51286e8e82b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDeleteOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDependencies.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDependencies.java index 14d43d9b9085..4b2b69a12ec5 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDependencies.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskDependencies.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskExecutionInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskExecutionInformation.java index 19e300012309..8a6e8f02f940 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskExecutionInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskExecutionInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetHeaders.java index 666cab3f0d1b..16803eef2405 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetOptions.java index 3db367eaa8b2..9c88c0e2f444 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskGetOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskIdRange.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskIdRange.java index 79708730434a..4e19bfe6effe 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskIdRange.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskIdRange.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskInformation.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskInformation.java index 1bd063814c46..4b4a697a661f 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskInformation.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskInformation.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListHeaders.java index 1e2d84d4bd61..1dbdfe013b2a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListNextOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListNextOptions.java index 2e83e205e529..961f6dd66a53 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListNextOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListNextOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListOptions.java index 64011950e4b1..564e5ac16333 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksHeaders.java index 4469bab953b4..2fa4d742955e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksOptions.java index a55ccda85e18..022e60d7d498 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskListSubtasksOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingError.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingError.java index 7544a1969493..6838c4e89610 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingError.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingError.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingPolicy.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingPolicy.java index b9c95a5cdd06..93c76ab60f1b 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingPolicy.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskSchedulingPolicy.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskState.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskState.java index d28c90020fa6..699853115ea1 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskState.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskState.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskStatistics.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskStatistics.java index d80f4acc3877..293d7fce7601 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskStatistics.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskStatistics.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateHeaders.java index c311eb2599ef..84d4bd20487c 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateOptions.java index 2da0ad213442..6a25387c9fd8 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskTerminateOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateHeaders.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateHeaders.java index 3b4244289435..14cb3f0a6f99 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateHeaders.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateHeaders.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateOptions.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateOptions.java index 3fe763a8c823..f77888274aad 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateOptions.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateOptions.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateParameter.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateParameter.java index 7a20fa554249..8b35f74a703a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateParameter.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/TaskUpdateParameter.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/UsageStatistics.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/UsageStatistics.java index 4ac355a9deb4..bf014d64da4a 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/UsageStatistics.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/UsageStatistics.java @@ -1,21 +1,7 @@ /** - * Copyright (c) Microsoft and contributors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. */ package com.microsoft.azure.batch.protocol.models; diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/package-info.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/package-info.java index a0a63cd8f746..814953340b2e 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/package-info.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/package-info.java @@ -1,20 +1,6 @@ -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. /** * This package contains the model classes for BatchServiceClient. diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/package-info.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/package-info.java index bea86006c0cd..d62c0c5e1aa5 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/package-info.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/package-info.java @@ -1,20 +1,6 @@ -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. /** * This package contains the classes for BatchServiceClient. diff --git a/azure/pom.xml b/azure/pom.xml index 33b22ae71066..424836994bdf 100644 --- a/azure/pom.xml +++ b/azure/pom.xml @@ -95,6 +95,11 @@ jackson-databind 2.6.3 + + commons-codec + commons-codec + 1.10 + junit @@ -294,6 +299,7 @@ + ../azure-batch ../azure-mgmt-compute ../azure-mgmt-resources ../azure-mgmt-storage From ef3d326585f172e4cd294ebd88f228b31a8eeeb0 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Wed, 30 Mar 2016 11:25:46 -0700 Subject: [PATCH 2/4] Side effects of fixing null optional parameters --- .../management/datalake/store/FileSystemOperationsImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java index 96519972eb49..d8235d8fadd2 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java @@ -1326,11 +1326,10 @@ public ServiceResponse create(String directFilePath, String accountName) t } final String op = "CREATE"; final String write = "true"; - final byte[] streamContents = new byte[0]; + final RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); final Boolean overwrite = null; this.client.getBaseUrl().set("{accountName}", accountName); this.client.getBaseUrl().set("{adlsFileSystemDnsSuffix}", this.client.getAdlsFileSystemDnsSuffix()); - RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, this.client.getApiVersion(), this.client.getSubscriptionId(), this.client.getAcceptLanguage()); return createDelegate(call.execute()); } @@ -1370,11 +1369,10 @@ public ServiceCall createAsync(String directFilePath, String accountName, final } final String op = "CREATE"; final String write = "true"; - final byte[] streamContents = new byte[0]; + final RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); final Boolean overwrite = null; this.client.getBaseUrl().set("{accountName}", accountName); this.client.getBaseUrl().set("{adlsFileSystemDnsSuffix}", this.client.getAdlsFileSystemDnsSuffix()); - RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, this.client.getApiVersion(), this.client.getSubscriptionId(), this.client.getAcceptLanguage()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { From e0b3933a6ee9abcceff5d8f8667085e768486fc2 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Wed, 30 Mar 2016 11:30:39 -0700 Subject: [PATCH 3/4] More side effects --- .../datalake/store/FileSystemOperationsImpl.java | 8 ++++++-- .../management/datalake/store/models/package-info.java | 4 ++-- .../azure/management/datalake/store/package-info.java | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java index d8235d8fadd2..e00ad9620e85 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java @@ -1420,7 +1420,9 @@ public ServiceResponse create(String directFilePath, String accountName, b final String write = "true"; this.client.getBaseUrl().set("{accountName}", accountName); this.client.getBaseUrl().set("{adlsFileSystemDnsSuffix}", this.client.getAdlsFileSystemDnsSuffix()); - RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + if (streamContents != null) { + RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + } Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, this.client.getApiVersion(), this.client.getSubscriptionId(), this.client.getAcceptLanguage()); return createDelegate(call.execute()); } @@ -1464,7 +1466,9 @@ public ServiceCall createAsync(String directFilePath, String accountName, byte[] final String write = "true"; this.client.getBaseUrl().set("{accountName}", accountName); this.client.getBaseUrl().set("{adlsFileSystemDnsSuffix}", this.client.getAdlsFileSystemDnsSuffix()); - RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + if (streamContents != null) { + RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + } Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, this.client.getApiVersion(), this.client.getSubscriptionId(), this.client.getAcceptLanguage()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/package-info.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/package-info.java index 4a990409355a..77d127f36e43 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/package-info.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/package-info.java @@ -3,7 +3,7 @@ // license information. /** - * This package contains the model classes for DataLakeStoreAccountManagementClient. - * Creates an Azure Data Lake Store account management client. + * This package contains the model classes for DataLakeStoreFileSystemManagementClient. + * Creates an Azure Data Lake Store filesystem client. */ package com.microsoft.azure.management.datalake.store.models; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/package-info.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/package-info.java index 23e5543b3b6a..25b2378fbb00 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/package-info.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/package-info.java @@ -3,7 +3,7 @@ // license information. /** - * This package contains the classes for DataLakeStoreAccountManagementClient. - * Creates an Azure Data Lake Store account management client. + * This package contains the classes for DataLakeStoreFileSystemManagementClient. + * Creates an Azure Data Lake Store filesystem client. */ package com.microsoft.azure.management.datalake.store; From 88a7fb02f8603072dbe4b600c38b68ac41a67df8 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Wed, 30 Mar 2016 11:39:16 -0700 Subject: [PATCH 4/4] Add null checks to batch client optional wire parameters --- .../protocol/ApplicationOperationsImpl.java | 30 +- .../protocol/CertificateOperationsImpl.java | 60 ++- .../protocol/ComputeNodeOperationsImpl.java | 110 ++++-- .../batch/protocol/FileOperationsImpl.java | 180 +++++++-- .../batch/protocol/JobOperationsImpl.java | 270 ++++++++++--- .../protocol/JobScheduleOperationsImpl.java | 270 ++++++++++--- .../batch/protocol/PoolOperationsImpl.java | 360 ++++++++++++++---- .../batch/protocol/TaskOperationsImpl.java | 160 ++++++-- .../store/FileSystemOperationsImpl.java | 6 +- 9 files changed, 1156 insertions(+), 290 deletions(-) diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ApplicationOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ApplicationOperationsImpl.java index 3877af60c475..71e43c45f7f4 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ApplicationOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ApplicationOperationsImpl.java @@ -185,7 +185,10 @@ public ServiceResponseWithHeaders, ApplicationList if (applicationListOptions != null) { ocpDate = applicationListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, ApplicationListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -241,7 +244,10 @@ public ServiceCall listAsync(final ApplicationListOptions applicationListOptions if (applicationListOptions != null) { ocpDate = applicationListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -377,7 +383,10 @@ public ServiceResponseWithHeaders get if (applicationGetOptions != null) { ocpDate = applicationGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(applicationId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -420,7 +429,10 @@ public ServiceCall getAsync(String applicationId, ApplicationGetOptions applicat if (applicationGetOptions != null) { ocpDate = applicationGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(applicationId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -534,7 +546,10 @@ public ServiceResponseWithHeaders, ApplicationListH if (applicationListNextOptions != null) { ocpDate = applicationListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -570,7 +585,10 @@ public ServiceCall listNextAsync(final String nextPageLink, final ApplicationLis if (applicationListNextOptions != null) { ocpDate = applicationListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java index b6b53689e23c..c21c56680c66 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/CertificateOperationsImpl.java @@ -203,7 +203,10 @@ public ServiceResponseWithHeaders add(CertificateAd if (certificateAddOptions != null) { ocpDate = certificateAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(certificate, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -247,7 +250,10 @@ public ServiceCall addAsync(CertificateAddParameter certificate, CertificateAddO if (certificateAddOptions != null) { ocpDate = certificateAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(certificate, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -388,7 +394,10 @@ public ServiceResponseWithHeaders, CertificateListHeaders if (certificateListOptions != null) { ocpDate = certificateListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, CertificateListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -452,7 +461,10 @@ public ServiceCall listAsync(final CertificateListOptions certificateListOptions if (certificateListOptions != null) { ocpDate = certificateListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -601,7 +613,10 @@ public ServiceResponseWithHeaders cancel if (certificateCancelDeletionOptions != null) { ocpDate = certificateCancelDeletionOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.cancelDeletion(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return cancelDeletionDelegate(call.execute()); } @@ -649,7 +664,10 @@ public ServiceCall cancelDeletionAsync(String thumbprintAlgorithm, String thumbp if (certificateCancelDeletionOptions != null) { ocpDate = certificateCancelDeletionOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.cancelDeletion(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -784,7 +802,10 @@ public ServiceResponseWithHeaders delete(String if (certificateDeleteOptions != null) { ocpDate = certificateDeleteOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.delete(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteDelegate(call.execute()); } @@ -832,7 +853,10 @@ public ServiceCall deleteAsync(String thumbprintAlgorithm, String thumbprint, Ce if (certificateDeleteOptions != null) { ocpDate = certificateDeleteOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.delete(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -973,7 +997,10 @@ public ServiceResponseWithHeaders get(String if (certificateGetOptions != null) { ocpDate = certificateGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -1025,7 +1052,10 @@ public ServiceCall getAsync(String thumbprintAlgorithm, String thumbprint, Certi if (certificateGetOptions != null) { ocpDate = certificateGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(thumbprintAlgorithm, thumbprint, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1139,7 +1169,10 @@ public ServiceResponseWithHeaders, CertificateListHeaders> if (certificateListNextOptions != null) { ocpDate = certificateListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -1175,7 +1208,10 @@ public ServiceCall listNextAsync(final String nextPageLink, final CertificateLis if (certificateListNextOptions != null) { ocpDate = certificateListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java index e1d7e5eb58b5..cfa0fbb3bb42 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/ComputeNodeOperationsImpl.java @@ -270,7 +270,10 @@ public ServiceResponseWithHeaders addUser(Strin if (computeNodeAddUserOptions != null) { ocpDate = computeNodeAddUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.addUser(poolId, nodeId, user, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addUserDelegate(call.execute()); } @@ -324,7 +327,10 @@ public ServiceCall addUserAsync(String poolId, String nodeId, ComputeNodeUser us if (computeNodeAddUserOptions != null) { ocpDate = computeNodeAddUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.addUser(poolId, nodeId, user, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -472,7 +478,10 @@ public ServiceResponseWithHeaders deleteUser if (computeNodeDeleteUserOptions != null) { ocpDate = computeNodeDeleteUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.deleteUser(poolId, nodeId, userName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteUserDelegate(call.execute()); } @@ -525,7 +534,10 @@ public ServiceCall deleteUserAsync(String poolId, String nodeId, String userName if (computeNodeDeleteUserOptions != null) { ocpDate = computeNodeDeleteUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.deleteUser(poolId, nodeId, userName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -689,7 +701,10 @@ public ServiceResponseWithHeaders updateUser if (computeNodeUpdateUserOptions != null) { ocpDate = computeNodeUpdateUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return updateUserDelegate(call.execute()); } @@ -748,7 +763,10 @@ public ServiceCall updateUserAsync(String poolId, String nodeId, String userName if (computeNodeUpdateUserOptions != null) { ocpDate = computeNodeUpdateUserOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -889,7 +907,10 @@ public ServiceResponseWithHeaders get(String if (computeNodeGetOptions != null) { ocpDate = computeNodeGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -941,7 +962,10 @@ public ServiceCall getAsync(String poolId, String nodeId, ComputeNodeGetOptions if (computeNodeGetOptions != null) { ocpDate = computeNodeGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1088,7 +1112,10 @@ public ServiceResponseWithHeaders reboot(String nodeRebootParameter = new NodeRebootParameter(); nodeRebootParameter.setNodeRebootOption(nodeRebootOption); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.reboot(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeRebootParameter); return rebootDelegate(call.execute()); } @@ -1142,7 +1169,10 @@ public ServiceCall rebootAsync(String poolId, String nodeId, ComputeNodeRebootOp nodeRebootParameter = new NodeRebootParameter(); nodeRebootParameter.setNodeRebootOption(nodeRebootOption); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.reboot(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeRebootParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1289,7 +1319,10 @@ public ServiceResponseWithHeaders reimage(Strin nodeReimageParameter = new NodeReimageParameter(); nodeReimageParameter.setNodeReimageOption(nodeReimageOption); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.reimage(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeReimageParameter); return reimageDelegate(call.execute()); } @@ -1343,7 +1376,10 @@ public ServiceCall reimageAsync(String poolId, String nodeId, ComputeNodeReimage nodeReimageParameter = new NodeReimageParameter(); nodeReimageParameter.setNodeReimageOption(nodeReimageOption); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.reimage(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeReimageParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1490,7 +1526,10 @@ public ServiceResponseWithHeaders dis nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); nodeDisableSchedulingParameter.setNodeDisableSchedulingOption(nodeDisableSchedulingOption); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.disableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeDisableSchedulingParameter); return disableSchedulingDelegate(call.execute()); } @@ -1544,7 +1583,10 @@ public ServiceCall disableSchedulingAsync(String poolId, String nodeId, DisableC nodeDisableSchedulingParameter = new NodeDisableSchedulingParameter(); nodeDisableSchedulingParameter.setNodeDisableSchedulingOption(nodeDisableSchedulingOption); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.disableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, nodeDisableSchedulingParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1679,7 +1721,10 @@ public ServiceResponseWithHeaders enab if (computeNodeEnableSchedulingOptions != null) { ocpDate = computeNodeEnableSchedulingOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.enableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return enableSchedulingDelegate(call.execute()); } @@ -1727,7 +1772,10 @@ public ServiceCall enableSchedulingAsync(String poolId, String nodeId, ComputeNo if (computeNodeEnableSchedulingOptions != null) { ocpDate = computeNodeEnableSchedulingOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.enableScheduling(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1862,7 +1910,10 @@ public ServiceResponseWithHeaders call = service.getRemoteDesktop(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getRemoteDesktopDelegate(call.execute()); } @@ -1910,7 +1961,10 @@ public ServiceCall getRemoteDesktopAsync(String poolId, String nodeId, ComputeNo if (computeNodeGetRemoteDesktopOptions != null) { ocpDate = computeNodeGetRemoteDesktopOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.getRemoteDesktop(poolId, nodeId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2064,7 +2118,10 @@ public ServiceResponseWithHeaders, ComputeNodeListHeaders if (computeNodeListOptions != null) { ocpDate = computeNodeListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, ComputeNodeListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2133,7 +2190,10 @@ public ServiceCall listAsync(final String poolId, final ComputeNodeListOptions c if (computeNodeListOptions != null) { ocpDate = computeNodeListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2261,7 +2321,10 @@ public ServiceResponseWithHeaders, ComputeNodeListHeaders> if (computeNodeListNextOptions != null) { ocpDate = computeNodeListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -2297,7 +2360,10 @@ public ServiceCall listNextAsync(final String nextPageLink, final ComputeNodeLis if (computeNodeListNextOptions != null) { ocpDate = computeNodeListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java index 7a85acc70cb3..d0bc5e95b186 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/FileOperationsImpl.java @@ -255,7 +255,10 @@ public ServiceResponseWithHeaders deleteFromTas if (fileDeleteFromTaskOptions != null) { ocpDate = fileDeleteFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.deleteFromTask(jobId, taskId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteFromTaskDelegate(call.execute()); } @@ -309,7 +312,10 @@ public ServiceCall deleteFromTaskAsync(String jobId, String taskId, String fileN if (fileDeleteFromTaskOptions != null) { ocpDate = fileDeleteFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.deleteFromTask(jobId, taskId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -475,9 +481,18 @@ public ServiceResponseWithHeaders getFromTa if (fileGetFromTaskOptions != null) { ifUnmodifiedSince = fileGetFromTaskOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.getFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getFromTaskDelegate(call.execute()); } @@ -542,9 +557,18 @@ public ServiceCall getFromTaskAsync(String jobId, String taskId, String fileName if (fileGetFromTaskOptions != null) { ifUnmodifiedSince = fileGetFromTaskOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.getFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -704,9 +728,18 @@ public ServiceResponseWithHeaders call = service.getNodeFilePropertiesFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getNodeFilePropertiesFromTaskDelegate(call.execute()); } @@ -767,9 +800,18 @@ public ServiceCall getNodeFilePropertiesFromTaskAsync(String jobId, String taskI if (fileGetNodeFilePropertiesFromTaskOptions != null) { ifUnmodifiedSince = fileGetNodeFilePropertiesFromTaskOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.getNodeFilePropertiesFromTask(jobId, taskId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -920,7 +962,10 @@ public ServiceResponseWithHeaders delete if (fileDeleteFromComputeNodeOptions != null) { ocpDate = fileDeleteFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.deleteFromComputeNode(poolId, nodeId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return deleteFromComputeNodeDelegate(call.execute()); } @@ -974,7 +1019,10 @@ public ServiceCall deleteFromComputeNodeAsync(String poolId, String nodeId, Stri if (fileDeleteFromComputeNodeOptions != null) { ocpDate = fileDeleteFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.deleteFromComputeNode(poolId, nodeId, fileName, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1140,9 +1188,18 @@ public ServiceResponseWithHeaders ge if (fileGetFromComputeNodeOptions != null) { ifUnmodifiedSince = fileGetFromComputeNodeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.getFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getFromComputeNodeDelegate(call.execute()); } @@ -1207,9 +1264,18 @@ public ServiceCall getFromComputeNodeAsync(String poolId, String nodeId, String if (fileGetFromComputeNodeOptions != null) { ifUnmodifiedSince = fileGetFromComputeNodeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.getFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ocpRange, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1369,9 +1435,18 @@ public ServiceResponseWithHeaders call = service.getNodeFilePropertiesFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getNodeFilePropertiesFromComputeNodeDelegate(call.execute()); } @@ -1432,9 +1507,18 @@ public ServiceCall getNodeFilePropertiesFromComputeNodeAsync(String poolId, Stri if (fileGetNodeFilePropertiesFromComputeNodeOptions != null) { ifUnmodifiedSince = fileGetNodeFilePropertiesFromComputeNodeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.getNodeFilePropertiesFromComputeNode(poolId, nodeId, fileName, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -1598,7 +1682,10 @@ public ServiceResponseWithHeaders, FileListFromTaskHeaders> if (fileListFromTaskOptions != null) { ocpDate = fileListFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromTask(jobId, taskId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, FileListFromTaskHeaders> response = listFromTaskDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -1669,7 +1756,10 @@ public ServiceCall listFromTaskAsync(final String jobId, final String taskId, fi if (fileListFromTaskOptions != null) { ocpDate = fileListFromTaskOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromTask(jobId, taskId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -1847,7 +1937,10 @@ public ServiceResponseWithHeaders, FileListFromComputeNodeHe if (fileListFromComputeNodeOptions != null) { ocpDate = fileListFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromComputeNode(poolId, nodeId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, FileListFromComputeNodeHeaders> response = listFromComputeNodeDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -1918,7 +2011,10 @@ public ServiceCall listFromComputeNodeAsync(final String poolId, final String no if (fileListFromComputeNodeOptions != null) { ocpDate = fileListFromComputeNodeOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromComputeNode(poolId, nodeId, recursive, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2046,7 +2142,10 @@ public ServiceResponseWithHeaders, FileListFromTaskHeaders> l if (fileListFromTaskNextOptions != null) { ocpDate = fileListFromTaskNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromTaskNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromTaskNextDelegate(call.execute()); } @@ -2082,7 +2181,10 @@ public ServiceCall listFromTaskNextAsync(final String nextPageLink, final FileLi if (fileListFromTaskNextOptions != null) { ocpDate = fileListFromTaskNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromTaskNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2203,7 +2305,10 @@ public ServiceResponseWithHeaders, FileListFromComputeNodeHea if (fileListFromComputeNodeNextOptions != null) { ocpDate = fileListFromComputeNodeNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromComputeNodeNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromComputeNodeNextDelegate(call.execute()); } @@ -2239,7 +2344,10 @@ public ServiceCall listFromComputeNodeNextAsync(final String nextPageLink, final if (fileListFromComputeNodeNextOptions != null) { ocpDate = fileListFromComputeNodeNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromComputeNodeNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java index 3d41c25adfdf..04390a8933af 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobOperationsImpl.java @@ -248,7 +248,10 @@ public ServiceResponseWithHeaders call = service.getAllJobsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getAllJobsLifetimeStatisticsDelegate(call.execute()); } @@ -286,7 +289,10 @@ public ServiceCall getAllJobsLifetimeStatisticsAsync(JobGetAllJobsLifetimeStatis if (jobGetAllJobsLifetimeStatisticsOptions != null) { ocpDate = jobGetAllJobsLifetimeStatisticsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.getAllJobsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -432,9 +438,18 @@ public ServiceResponseWithHeaders delete(String jobId, J if (jobDeleteOptions != null) { ifUnmodifiedSince = jobDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -493,9 +508,18 @@ public ServiceCall deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions, if (jobDeleteOptions != null) { ifUnmodifiedSince = jobDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -629,7 +653,10 @@ public ServiceResponseWithHeaders get(String jobId, Job if (jobGetOptions != null) { ocpDate = jobGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getDelegate(call.execute()); } @@ -680,7 +707,10 @@ public ServiceCall getAsync(String jobId, JobGetOptions jobGetOptions, final Ser if (jobGetOptions != null) { ocpDate = jobGetOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.get(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -842,9 +872,18 @@ public ServiceResponseWithHeaders patch(String jobId, Job if (jobPatchOptions != null) { ifUnmodifiedSince = jobPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.patch(jobId, jobPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -909,9 +948,18 @@ public ServiceCall patchAsync(String jobId, JobPatchParameter jobPatchParameter, if (jobPatchOptions != null) { ifUnmodifiedSince = jobPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.patch(jobId, jobPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1073,9 +1121,18 @@ public ServiceResponseWithHeaders update(String jobId, J if (jobUpdateOptions != null) { ifUnmodifiedSince = jobUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.update(jobId, jobUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return updateDelegate(call.execute()); } @@ -1140,9 +1197,18 @@ public ServiceCall updateAsync(String jobId, JobUpdateParameter jobUpdateParamet if (jobUpdateOptions != null) { ifUnmodifiedSince = jobUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.update(jobId, jobUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1307,9 +1373,18 @@ public ServiceResponseWithHeaders disable(String jobId, } JobDisableParameter jobDisableParameter = new JobDisableParameter(); jobDisableParameter.setDisableTasks(disableTasks); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.disable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobDisableParameter); return disableDelegate(call.execute()); } @@ -1375,9 +1450,18 @@ public ServiceCall disableAsync(String jobId, DisableJobOption disableTasks, Job } JobDisableParameter jobDisableParameter = new JobDisableParameter(); jobDisableParameter.setDisableTasks(disableTasks); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.disable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobDisableParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1523,9 +1607,18 @@ public ServiceResponseWithHeaders enable(String jobId, J if (jobEnableOptions != null) { ifUnmodifiedSince = jobEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.enable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableDelegate(call.execute()); } @@ -1584,9 +1677,18 @@ public ServiceCall enableAsync(String jobId, JobEnableOptions jobEnableOptions, if (jobEnableOptions != null) { ifUnmodifiedSince = jobEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.enable(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1744,9 +1846,18 @@ public ServiceResponseWithHeaders terminate(String jo jobTerminateParameter = new JobTerminateParameter(); jobTerminateParameter.setTerminateReason(terminateReason); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.terminate(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobTerminateParameter); return terminateDelegate(call.execute()); } @@ -1811,9 +1922,18 @@ public ServiceCall terminateAsync(String jobId, String terminateReason, JobTermi jobTerminateParameter = new JobTerminateParameter(); jobTerminateParameter.setTerminateReason(terminateReason); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.terminate(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, jobTerminateParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1938,7 +2058,10 @@ public ServiceResponseWithHeaders add(JobAddParameter job, if (jobAddOptions != null) { ocpDate = jobAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(job, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -1982,7 +2105,10 @@ public ServiceCall addAsync(JobAddParameter job, JobAddOptions jobAddOptions, fi if (jobAddOptions != null) { ocpDate = jobAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(job, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2129,7 +2255,10 @@ public ServiceResponseWithHeaders, JobListHeaders> list(fina if (jobListOptions != null) { ocpDate = jobListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2197,7 +2326,10 @@ public ServiceCall listAsync(final JobListOptions jobListOptions, final ListOper if (jobListOptions != null) { ocpDate = jobListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2371,7 +2503,10 @@ public ServiceResponseWithHeaders, JobListFromJobScheduleHea if (jobListFromJobScheduleOptions != null) { ocpDate = jobListFromJobScheduleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromJobSchedule(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListFromJobScheduleHeaders> response = listFromJobScheduleDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2444,7 +2579,10 @@ public ServiceCall listFromJobScheduleAsync(final String jobScheduleId, final Jo if (jobListFromJobScheduleOptions != null) { ocpDate = jobListFromJobScheduleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromJobSchedule(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2612,7 +2750,10 @@ public ServiceResponseWithHeaders call = service.listPreparationAndReleaseTaskStatus(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobListPreparationAndReleaseTaskStatusHeaders> response = listPreparationAndReleaseTaskStatusDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2681,7 +2822,10 @@ public ServiceCall listPreparationAndReleaseTaskStatusAsync(final String jobId, if (jobListPreparationAndReleaseTaskStatusOptions != null) { ocpDate = jobListPreparationAndReleaseTaskStatusOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listPreparationAndReleaseTaskStatus(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2809,7 +2953,10 @@ public ServiceResponseWithHeaders, JobListHeaders> listNext(f if (jobListNextOptions != null) { ocpDate = jobListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -2845,7 +2992,10 @@ public ServiceCall listNextAsync(final String nextPageLink, final JobListNextOpt if (jobListNextOptions != null) { ocpDate = jobListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2966,7 +3116,10 @@ public ServiceResponseWithHeaders, JobListFromJobScheduleHead if (jobListFromJobScheduleNextOptions != null) { ocpDate = jobListFromJobScheduleNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromJobScheduleNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listFromJobScheduleNextDelegate(call.execute()); } @@ -3002,7 +3155,10 @@ public ServiceCall listFromJobScheduleNextAsync(final String nextPageLink, final if (jobListFromJobScheduleNextOptions != null) { ocpDate = jobListFromJobScheduleNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listFromJobScheduleNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3123,7 +3279,10 @@ public ServiceResponseWithHeaders call = service.listPreparationAndReleaseTaskStatusNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listPreparationAndReleaseTaskStatusNextDelegate(call.execute()); } @@ -3159,7 +3318,10 @@ public ServiceCall listPreparationAndReleaseTaskStatusNextAsync(final String nex if (jobListPreparationAndReleaseTaskStatusNextOptions != null) { ocpDate = jobListPreparationAndReleaseTaskStatusNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listPreparationAndReleaseTaskStatusNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java index 8ec25d906bc5..8421b5750126 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/JobScheduleOperationsImpl.java @@ -266,9 +266,18 @@ public ServiceResponseWithHeaders exists(Stri if (jobScheduleExistsOptions != null) { ifUnmodifiedSince = jobScheduleExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.exists(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return existsDelegate(call.execute()); } @@ -331,9 +340,18 @@ public ServiceCall existsAsync(String jobScheduleId, JobScheduleExistsOptions jo if (jobScheduleExistsOptions != null) { ifUnmodifiedSince = jobScheduleExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.exists(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -480,9 +498,18 @@ public ServiceResponseWithHeaders delete(String if (jobScheduleDeleteOptions != null) { ifUnmodifiedSince = jobScheduleDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -541,9 +568,18 @@ public ServiceCall deleteAsync(String jobScheduleId, JobScheduleDeleteOptions jo if (jobScheduleDeleteOptions != null) { ifUnmodifiedSince = jobScheduleDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -701,9 +737,18 @@ public ServiceResponseWithHeaders get(S if (jobScheduleGetOptions != null) { ifUnmodifiedSince = jobScheduleGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.get(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -770,9 +815,18 @@ public ServiceCall getAsync(String jobScheduleId, JobScheduleGetOptions jobSched if (jobScheduleGetOptions != null) { ifUnmodifiedSince = jobScheduleGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.get(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -934,9 +988,18 @@ public ServiceResponseWithHeaders patch(String jo if (jobSchedulePatchOptions != null) { ifUnmodifiedSince = jobSchedulePatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.patch(jobScheduleId, jobSchedulePatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -1001,9 +1064,18 @@ public ServiceCall patchAsync(String jobScheduleId, JobSchedulePatchParameter jo if (jobSchedulePatchOptions != null) { ifUnmodifiedSince = jobSchedulePatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.patch(jobScheduleId, jobSchedulePatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1165,9 +1237,18 @@ public ServiceResponseWithHeaders update(String if (jobScheduleUpdateOptions != null) { ifUnmodifiedSince = jobScheduleUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.update(jobScheduleId, jobScheduleUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return updateDelegate(call.execute()); } @@ -1232,9 +1313,18 @@ public ServiceCall updateAsync(String jobScheduleId, JobScheduleUpdateParameter if (jobScheduleUpdateOptions != null) { ifUnmodifiedSince = jobScheduleUpdateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.update(jobScheduleId, jobScheduleUpdateParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1380,9 +1470,18 @@ public ServiceResponseWithHeaders disable(Strin if (jobScheduleDisableOptions != null) { ifUnmodifiedSince = jobScheduleDisableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.disable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return disableDelegate(call.execute()); } @@ -1441,9 +1540,18 @@ public ServiceCall disableAsync(String jobScheduleId, JobScheduleDisableOptions if (jobScheduleDisableOptions != null) { ifUnmodifiedSince = jobScheduleDisableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.disable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1589,9 +1697,18 @@ public ServiceResponseWithHeaders enable(String if (jobScheduleEnableOptions != null) { ifUnmodifiedSince = jobScheduleEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.enable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableDelegate(call.execute()); } @@ -1650,9 +1767,18 @@ public ServiceCall enableAsync(String jobScheduleId, JobScheduleEnableOptions jo if (jobScheduleEnableOptions != null) { ifUnmodifiedSince = jobScheduleEnableOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.enable(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1798,9 +1924,18 @@ public ServiceResponseWithHeaders terminate(S if (jobScheduleTerminateOptions != null) { ifUnmodifiedSince = jobScheduleTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.terminate(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return terminateDelegate(call.execute()); } @@ -1859,9 +1994,18 @@ public ServiceCall terminateAsync(String jobScheduleId, JobScheduleTerminateOpti if (jobScheduleTerminateOptions != null) { ifUnmodifiedSince = jobScheduleTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.terminate(jobScheduleId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1986,7 +2130,10 @@ public ServiceResponseWithHeaders add(JobScheduleAd if (jobScheduleAddOptions != null) { ocpDate = jobScheduleAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(cloudJobSchedule, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -2030,7 +2177,10 @@ public ServiceCall addAsync(JobScheduleAddParameter cloudJobSchedule, JobSchedul if (jobScheduleAddOptions != null) { ocpDate = jobScheduleAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(cloudJobSchedule, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2177,7 +2327,10 @@ public ServiceResponseWithHeaders, JobScheduleListHe if (jobScheduleListOptions != null) { ocpDate = jobScheduleListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, JobScheduleListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -2245,7 +2398,10 @@ public ServiceCall listAsync(final JobScheduleListOptions jobScheduleListOptions if (jobScheduleListOptions != null) { ocpDate = jobScheduleListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -2373,7 +2529,10 @@ public ServiceResponseWithHeaders, JobScheduleListHea if (jobScheduleListNextOptions != null) { ocpDate = jobScheduleListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -2409,7 +2568,10 @@ public ServiceCall listNextAsync(final String nextPageLink, final JobScheduleLis if (jobScheduleListNextOptions != null) { ocpDate = jobScheduleListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java index 0fcc5bb11aa8..577589035fd8 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/PoolOperationsImpl.java @@ -309,7 +309,10 @@ public ServiceResponseWithHeaders, PoolListPoolUsage if (poolListPoolUsageMetricsOptions != null) { ocpDate = poolListPoolUsageMetricsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listPoolUsageMetrics(this.client.getApiVersion(), this.client.getAcceptLanguage(), startTime, endTime, filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, PoolListPoolUsageMetricsHeaders> response = listPoolUsageMetricsDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -377,7 +380,10 @@ public ServiceCall listPoolUsageMetricsAsync(final PoolListPoolUsageMetricsOptio if (poolListPoolUsageMetricsOptions != null) { ocpDate = poolListPoolUsageMetricsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listPoolUsageMetrics(this.client.getApiVersion(), this.client.getAcceptLanguage(), startTime, endTime, filter, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -500,7 +506,10 @@ public ServiceResponseWithHeaders call = service.getAllPoolsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return getAllPoolsLifetimeStatisticsDelegate(call.execute()); } @@ -538,7 +547,10 @@ public ServiceCall getAllPoolsLifetimeStatisticsAsync(PoolGetAllPoolsLifetimeSta if (poolGetAllPoolsLifetimeStatisticsOptions != null) { ocpDate = poolGetAllPoolsLifetimeStatisticsOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.getAllPoolsLifetimeStatistics(this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -663,7 +675,10 @@ public ServiceResponseWithHeaders add(PoolAddParameter poo if (poolAddOptions != null) { ocpDate = poolAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(pool, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -707,7 +722,10 @@ public ServiceCall addAsync(PoolAddParameter pool, PoolAddOptions poolAddOptions if (poolAddOptions != null) { ocpDate = poolAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(pool, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -854,7 +872,10 @@ public ServiceResponseWithHeaders, PoolListHeaders> list(fi if (poolListOptions != null) { ocpDate = poolListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, PoolListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -922,7 +943,10 @@ public ServiceCall listAsync(final PoolListOptions poolListOptions, final ListOp if (poolListOptions != null) { ocpDate = poolListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -1082,9 +1106,18 @@ public ServiceResponseWithHeaders delete(String poolId, if (poolDeleteOptions != null) { ifUnmodifiedSince = poolDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -1143,9 +1176,18 @@ public ServiceCall deleteAsync(String poolId, PoolDeleteOptions poolDeleteOption if (poolDeleteOptions != null) { ifUnmodifiedSince = poolDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1297,9 +1339,18 @@ public ServiceResponseWithHeaders exists(String pool if (poolExistsOptions != null) { ifUnmodifiedSince = poolExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.exists(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return existsDelegate(call.execute()); } @@ -1362,9 +1413,18 @@ public ServiceCall existsAsync(String poolId, PoolExistsOptions poolExistsOption if (poolExistsOptions != null) { ifUnmodifiedSince = poolExistsOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.exists(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseEmptyCallback(serviceCallback) { @@ -1523,9 +1583,18 @@ public ServiceResponseWithHeaders get(String poolId, if (poolGetOptions != null) { ifUnmodifiedSince = poolGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.get(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -1592,9 +1661,18 @@ public ServiceCall getAsync(String poolId, PoolGetOptions poolGetOptions, final if (poolGetOptions != null) { ifUnmodifiedSince = poolGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.get(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1756,9 +1834,18 @@ public ServiceResponseWithHeaders patch(String poolId, P if (poolPatchOptions != null) { ifUnmodifiedSince = poolPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.patch(poolId, poolPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return patchDelegate(call.execute()); } @@ -1823,9 +1910,18 @@ public ServiceCall patchAsync(String poolId, PoolPatchParameter poolPatchParamet if (poolPatchOptions != null) { ifUnmodifiedSince = poolPatchOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.patch(poolId, poolPatchParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1947,7 +2043,10 @@ public ServiceResponseWithHeaders disableAuto if (poolDisableAutoScaleOptions != null) { ocpDate = poolDisableAutoScaleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.disableAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return disableAutoScaleDelegate(call.execute()); } @@ -1990,7 +2089,10 @@ public ServiceCall disableAutoScaleAsync(String poolId, PoolDisableAutoScaleOpti if (poolDisableAutoScaleOptions != null) { ocpDate = poolDisableAutoScaleOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.disableAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2152,9 +2254,18 @@ public ServiceResponseWithHeaders enableAutoSc if (poolEnableAutoScaleOptions != null) { ifUnmodifiedSince = poolEnableAutoScaleOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.enableAutoScale(poolId, poolEnableAutoScaleParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return enableAutoScaleDelegate(call.execute()); } @@ -2219,9 +2330,18 @@ public ServiceCall enableAutoScaleAsync(String poolId, PoolEnableAutoScaleParame if (poolEnableAutoScaleOptions != null) { ifUnmodifiedSince = poolEnableAutoScaleOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.enableAutoScale(poolId, poolEnableAutoScaleParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2362,7 +2482,10 @@ public ServiceResponseWithHeaders ev } PoolEvaluateAutoScaleParameter poolEvaluateAutoScaleParameter = new PoolEvaluateAutoScaleParameter(); poolEvaluateAutoScaleParameter.setAutoScaleFormula(autoScaleFormula); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.evaluateAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, poolEvaluateAutoScaleParameter); return evaluateAutoScaleDelegate(call.execute()); } @@ -2412,7 +2535,10 @@ public ServiceCall evaluateAutoScaleAsync(String poolId, String autoScaleFormula } PoolEvaluateAutoScaleParameter poolEvaluateAutoScaleParameter = new PoolEvaluateAutoScaleParameter(); poolEvaluateAutoScaleParameter.setAutoScaleFormula(autoScaleFormula); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.evaluateAutoScale(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, poolEvaluateAutoScaleParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2574,9 +2700,18 @@ public ServiceResponseWithHeaders resize(String poolId, if (poolResizeOptions != null) { ifUnmodifiedSince = poolResizeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.resize(poolId, poolResizeParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return resizeDelegate(call.execute()); } @@ -2641,9 +2776,18 @@ public ServiceCall resizeAsync(String poolId, PoolResizeParameter poolResizePara if (poolResizeOptions != null) { ifUnmodifiedSince = poolResizeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.resize(poolId, poolResizeParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2789,9 +2933,18 @@ public ServiceResponseWithHeaders stopResize(String if (poolStopResizeOptions != null) { ifUnmodifiedSince = poolStopResizeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.stopResize(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return stopResizeDelegate(call.execute()); } @@ -2850,9 +3003,18 @@ public ServiceCall stopResizeAsync(String poolId, PoolStopResizeOptions poolStop if (poolStopResizeOptions != null) { ifUnmodifiedSince = poolStopResizeOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.stopResize(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -2990,7 +3152,10 @@ public ServiceResponseWithHeaders updatePrope if (poolUpdatePropertiesOptions != null) { ocpDate = poolUpdatePropertiesOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.updateProperties(poolId, poolUpdatePropertiesParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return updatePropertiesDelegate(call.execute()); } @@ -3039,7 +3204,10 @@ public ServiceCall updatePropertiesAsync(String poolId, PoolUpdatePropertiesPara if (poolUpdatePropertiesOptions != null) { ocpDate = poolUpdatePropertiesOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.updateProperties(poolId, poolUpdatePropertiesParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3204,9 +3372,18 @@ public ServiceResponseWithHeaders upgradeOS(String p } PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.upgradeOS(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, poolUpgradeOSParameter); return upgradeOSDelegate(call.execute()); } @@ -3272,9 +3449,18 @@ public ServiceCall upgradeOSAsync(String poolId, String targetOSVersion, PoolUpg } PoolUpgradeOSParameter poolUpgradeOSParameter = new PoolUpgradeOSParameter(); poolUpgradeOSParameter.setTargetOSVersion(targetOSVersion); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.upgradeOS(poolId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, poolUpgradeOSParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3436,9 +3622,18 @@ public ServiceResponseWithHeaders removeNodes(Stri if (poolRemoveNodesOptions != null) { ifUnmodifiedSince = poolRemoveNodesOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.removeNodes(poolId, nodeRemoveParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return removeNodesDelegate(call.execute()); } @@ -3503,9 +3698,18 @@ public ServiceCall removeNodesAsync(String poolId, NodeRemoveParameter nodeRemov if (poolRemoveNodesOptions != null) { ifUnmodifiedSince = poolRemoveNodesOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.removeNodes(poolId, nodeRemoveParameter, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -3619,7 +3823,10 @@ public ServiceResponseWithHeaders, PoolListPoolUsageM if (poolListPoolUsageMetricsNextOptions != null) { ocpDate = poolListPoolUsageMetricsNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listPoolUsageMetricsNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listPoolUsageMetricsNextDelegate(call.execute()); } @@ -3655,7 +3862,10 @@ public ServiceCall listPoolUsageMetricsNextAsync(final String nextPageLink, fina if (poolListPoolUsageMetricsNextOptions != null) { ocpDate = poolListPoolUsageMetricsNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listPoolUsageMetricsNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -3776,7 +3986,10 @@ public ServiceResponseWithHeaders, PoolListHeaders> listNext if (poolListNextOptions != null) { ocpDate = poolListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -3812,7 +4025,10 @@ public ServiceCall listNextAsync(final String nextPageLink, final PoolListNextOp if (poolListNextOptions != null) { ocpDate = poolListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java index 8385dab24da0..c301d27cce86 100644 --- a/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java +++ b/azure-batch/src/main/java/com/microsoft/azure/batch/protocol/TaskOperationsImpl.java @@ -232,7 +232,10 @@ public ServiceResponseWithHeaders add(String jobId, TaskAd if (taskAddOptions != null) { ocpDate = taskAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(jobId, task, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return addDelegate(call.execute()); } @@ -281,7 +284,10 @@ public ServiceCall addAsync(String jobId, TaskAddParameter task, TaskAddOptions if (taskAddOptions != null) { ocpDate = taskAddOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.add(jobId, task, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -441,7 +447,10 @@ public ServiceResponseWithHeaders, TaskListHeaders> list(fi if (taskListOptions != null) { ocpDate = taskListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); ServiceResponseWithHeaders, TaskListHeaders> response = listDelegate(call.execute()); PagedList result = new PagedList(response.getBody()) { @@ -514,7 +523,10 @@ public ServiceCall listAsync(final String jobId, final TaskListOptions taskListO if (taskListOptions != null) { ocpDate = taskListOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.list(jobId, this.client.getApiVersion(), this.client.getAcceptLanguage(), filter, select, expand, maxResults, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { @@ -687,9 +699,18 @@ public ServiceResponseWithHeaders delete(String jobId, if (taskDeleteOptions != null) { ifUnmodifiedSince = taskDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return deleteDelegate(call.execute()); } @@ -753,9 +774,18 @@ public ServiceCall deleteAsync(String jobId, String taskId, TaskDeleteOptions ta if (taskDeleteOptions != null) { ifUnmodifiedSince = taskDeleteOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.delete(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -926,9 +956,18 @@ public ServiceResponseWithHeaders get(String jobId, S if (taskGetOptions != null) { ifUnmodifiedSince = taskGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.get(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return getDelegate(call.execute()); } @@ -1000,9 +1039,18 @@ public ServiceCall getAsync(String jobId, String taskId, TaskGetOptions taskGetO if (taskGetOptions != null) { ifUnmodifiedSince = taskGetOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.get(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, expand, timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1171,9 +1219,18 @@ public ServiceResponseWithHeaders update(String jobId, } TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); taskUpdateParameter.setConstraints(constraints); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.update(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, taskUpdateParameter); return updateDelegate(call.execute()); } @@ -1241,9 +1298,18 @@ public ServiceCall updateAsync(String jobId, String taskId, TaskConstraints cons } TaskUpdateParameter taskUpdateParameter = new TaskUpdateParameter(); taskUpdateParameter.setConstraints(constraints); - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.update(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, taskUpdateParameter); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1384,7 +1450,10 @@ public ServiceResponseWithHeaders call = service.listSubtasks(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); return listSubtasksDelegate(call.execute()); } @@ -1436,7 +1505,10 @@ public ServiceCall listSubtasksAsync(String jobId, String taskId, TaskListSubtas if (taskListSubtasksOptions != null) { ocpDate = taskListSubtasksOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listSubtasks(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), select, timeout, clientRequestId, returnClientRequestId, ocpDateConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1595,9 +1667,18 @@ public ServiceResponseWithHeaders terminate(String j if (taskTerminateOptions != null) { ifUnmodifiedSince = taskTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.terminate(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); return terminateDelegate(call.execute()); } @@ -1661,9 +1742,18 @@ public ServiceCall terminateAsync(String jobId, String taskId, TaskTerminateOpti if (taskTerminateOptions != null) { ifUnmodifiedSince = taskTerminateOptions.getIfUnmodifiedSince(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); - DateTimeRfc1123 ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); - DateTimeRfc1123 ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } + DateTimeRfc1123 ifModifiedSinceConverted = null; + if (ifModifiedSince != null) { + ifModifiedSinceConverted = new DateTimeRfc1123(ifModifiedSince); + } + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + if (ifUnmodifiedSince != null) { + ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince); + } Call call = service.terminate(jobId, taskId, this.client.getApiVersion(), this.client.getAcceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @@ -1777,7 +1867,10 @@ public ServiceResponseWithHeaders, TaskListHeaders> listNext if (taskListNextOptions != null) { ocpDate = taskListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); return listNextDelegate(call.execute()); } @@ -1813,7 +1906,10 @@ public ServiceCall listNextAsync(final String nextPageLink, final TaskListNextOp if (taskListNextOptions != null) { ocpDate = taskListNextOptions.getOcpDate(); } - DateTimeRfc1123 ocpDateConverted = new DateTimeRfc1123(ocpDate); + DateTimeRfc1123 ocpDateConverted = null; + if (ocpDate != null) { + ocpDateConverted = new DateTimeRfc1123(ocpDate); + } Call call = service.listNext(nextPageLink, this.client.getAcceptLanguage(), clientRequestId, returnClientRequestId, ocpDateConverted); serviceCall.newCall(call); call.enqueue(new ServiceResponseCallback>(serviceCallback) { diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java index e00ad9620e85..199911b49107 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystemOperationsImpl.java @@ -1420,8 +1420,9 @@ public ServiceResponse create(String directFilePath, String accountName, b final String write = "true"; this.client.getBaseUrl().set("{accountName}", accountName); this.client.getBaseUrl().set("{adlsFileSystemDnsSuffix}", this.client.getAdlsFileSystemDnsSuffix()); + RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); if (streamContents != null) { - RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); } Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, this.client.getApiVersion(), this.client.getSubscriptionId(), this.client.getAcceptLanguage()); return createDelegate(call.execute()); @@ -1466,8 +1467,9 @@ public ServiceCall createAsync(String directFilePath, String accountName, byte[] final String write = "true"; this.client.getBaseUrl().set("{accountName}", accountName); this.client.getBaseUrl().set("{adlsFileSystemDnsSuffix}", this.client.getAdlsFileSystemDnsSuffix()); + RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); if (streamContents != null) { - RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); } Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, this.client.getApiVersion(), this.client.getSubscriptionId(), this.client.getAcceptLanguage()); final ServiceCall serviceCall = new ServiceCall(call);