diff --git a/sdk/batch/azbatch/CHANGELOG.md b/sdk/batch/azbatch/CHANGELOG.md index 2f147a592dab..2432c8ac6855 100644 --- a/sdk/batch/azbatch/CHANGELOG.md +++ b/sdk/batch/azbatch/CHANGELOG.md @@ -1,5 +1,399 @@ # Release History +## 1.0.0 (2025-05-13) +### Breaking Changes + +- Function `*Client.CreateJob` parameter(s) have been changed from `(context.Context, CreateJobContent, *CreateJobOptions)` to `(context.Context, CreateJobOptions, *CreateJobOptions)` +- Function `*Client.CreateJobSchedule` parameter(s) have been changed from `(context.Context, CreateJobScheduleContent, *CreateJobScheduleOptions)` to `(context.Context, CreateJobScheduleOptions, *CreateJobScheduleOptions)` +- Function `*Client.CreateNodeUser` parameter(s) have been changed from `(context.Context, string, string, CreateNodeUserContent, *CreateNodeUserOptions)` to `(context.Context, string, string, CreateNodeUserOptions, *CreateNodeUserOptions)` +- Function `*Client.CreatePool` parameter(s) have been changed from `(context.Context, CreatePoolContent, *CreatePoolOptions)` to `(context.Context, CreatePoolOptions, *CreatePoolOptions)` +- Function `*Client.CreateTask` parameter(s) have been changed from `(context.Context, string, CreateTaskContent, *CreateTaskOptions)` to `(context.Context, string, CreateTaskOptions, *CreateTaskOptions)` +- Function `*Client.DisableJob` parameter(s) have been changed from `(context.Context, string, DisableJobContent, *DisableJobOptions)` to `(context.Context, string, DisableJobOptions, *DisableJobOptions)` +- Function `*Client.EnablePoolAutoScale` parameter(s) have been changed from `(context.Context, string, EnablePoolAutoScaleContent, *EnablePoolAutoScaleOptions)` to `(context.Context, string, EnablePoolAutoScaleOptions, *EnablePoolAutoScaleOptions)` +- Function `*Client.EvaluatePoolAutoScale` parameter(s) have been changed from `(context.Context, string, EvaluatePoolAutoScaleContent, *EvaluatePoolAutoScaleOptions)` to `(context.Context, string, EvaluatePoolAutoScaleOptions, *EvaluatePoolAutoScaleOptions)` +- Function `*Client.RemoveNodes` parameter(s) have been changed from `(context.Context, string, RemoveNodeContent, *RemoveNodesOptions)` to `(context.Context, string, RemoveNodeOptions, *RemoveNodesOptions)` +- Function `*Client.ReplaceNodeUser` parameter(s) have been changed from `(context.Context, string, string, string, UpdateNodeUserContent, *ReplaceNodeUserOptions)` to `(context.Context, string, string, string, UpdateNodeUserOptions, *ReplaceNodeUserOptions)` +- Function `*Client.ReplacePoolProperties` parameter(s) have been changed from `(context.Context, string, ReplacePoolContent, *ReplacePoolPropertiesOptions)` to `(context.Context, string, ReplacePoolOptions, *ReplacePoolPropertiesOptions)` +- Function `*Client.ResizePool` parameter(s) have been changed from `(context.Context, string, ResizePoolContent, *ResizePoolOptions)` to `(context.Context, string, ResizePoolOptions, *ResizePoolOptions)` +- Function `*Client.UpdateJob` parameter(s) have been changed from `(context.Context, string, UpdateJobContent, *UpdateJobOptions)` to `(context.Context, string, UpdateJobOptions, *UpdateJobOptions)` +- Function `*Client.UpdateJobSchedule` parameter(s) have been changed from `(context.Context, string, UpdateJobScheduleContent, *UpdateJobScheduleOptions)` to `(context.Context, string, UpdateJobScheduleOptions, *UpdateJobScheduleOptions)` +- Function `*Client.UpdatePool` parameter(s) have been changed from `(context.Context, string, UpdatePoolContent, *UpdatePoolOptions)` to `(context.Context, string, UpdatePoolOptions, *UpdatePoolOptions)` +- Function `*Client.UploadNodeLogs` parameter(s) have been changed from `(context.Context, string, string, UploadNodeLogsContent, *UploadNodeLogsOptions)` to `(context.Context, string, string, UploadNodeLogsOptions, *UploadNodeLogsOptions)` +- Type of `CancelCertificateDeletionResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `Certificate.Data` has been changed from `*string` to `[]byte` +- Type of `CreateCertificateResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `CreateJobResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `CreateJobScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `CreateNodeUserResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `CreatePoolResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `CreateTaskCollectionResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `CreateTaskResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `DeallocateNodeOptions.Parameters` has been changed from `*DeallocateNodeContent` to `*DeallocateNodeOptions` +- Type of `DeallocateNodeResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `DeleteCertificateResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `DeleteJobOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DeleteJobOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DeleteJobScheduleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DeleteJobScheduleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DeletePoolOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DeletePoolOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DeleteTaskOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DeleteTaskOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DisableJobOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DisableJobOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DisableJobResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `DisableJobScheduleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DisableJobScheduleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `DisableJobScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `DisableNodeSchedulingOptions.Parameters` has been changed from `*DisableNodeSchedulingContent` to `*DisableNodeSchedulingOptions` +- Type of `DisableNodeSchedulingResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `DisablePoolAutoScaleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `EnableJobOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `EnableJobOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `EnableJobResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `EnableJobScheduleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `EnableJobScheduleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `EnableJobScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `EnableNodeSchedulingResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `EnablePoolAutoScaleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `EnablePoolAutoScaleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `EnablePoolAutoScaleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `EvaluatePoolAutoScaleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ExitOptions.JobAction` has been changed from `*JobAction` to `*JobActionKind` +- Type of `GetApplicationResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetCertificateResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetJobOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetJobOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetJobResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetJobScheduleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetJobScheduleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetJobScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetJobTaskCountsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetNodeExtensionResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetNodeFilePropertiesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetNodeFileResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetNodeRemoteLoginSettingsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetNodeResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetPoolOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetPoolOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetPoolResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetTaskFilePropertiesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetTaskFileResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `GetTaskOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetTaskOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `GetTaskResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `JobScheduleExistsOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `JobScheduleExistsOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `JobScheduleExistsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `JobSchedulingError.Category` has been changed from `*ErrorCategory` to `*ErrorSourceCategory` +- Type of `ListApplicationsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListCertificatesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListJobPreparationAndReleaseTaskStatusResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListJobSchedulesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListJobsFromScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListJobsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListNodeExtensionsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListNodeFilesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListNodesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListPoolNodeCountsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListPoolsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListSubTasksResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListSupportedImagesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListTaskFilesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ListTasksResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `OutputFileBlobContainerDestination.UploadHeaders` has been changed from `[]HTTPHeader` to `[]OutputFileUploadHeader` +- Type of `PoolExistsOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `PoolExistsOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `PoolExistsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ReactivateTaskOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReactivateTaskOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReactivateTaskResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `RebootNodeOptions.Parameters` has been changed from `*RebootNodeContent` to `*RebootNodeOptions` +- Type of `RebootNodeResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ReimageNodeOptions.Parameters` has been changed from `*ReimageNodeContent` to `*ReimageNodeOptions` +- Type of `ReimageNodeResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `RemoveNodesOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `RemoveNodesOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `RemoveNodesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceJobOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceJobOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceJobResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceJobScheduleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceJobScheduleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceJobScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceNodeUserResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplacePoolPropertiesResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceTaskOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceTaskOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ReplaceTaskResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `ResizePoolOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ResizePoolOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `ResizePoolResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `StartNodeResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `StopPoolResizeOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `StopPoolResizeOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `StopPoolResizeResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `SupportedImage.ImageReference` has been changed from `*ImageReference` to `*VMImageReference` +- Type of `TaskFailureInfo.Category` has been changed from `*ErrorCategory` to `*ErrorSourceCategory` +- Type of `TerminateJobOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateJobOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateJobOptions.Parameters` has been changed from `*TerminateJobContent` to `*TerminateJobOptions` +- Type of `TerminateJobResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateJobScheduleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateJobScheduleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateJobScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateTaskOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateTaskOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `TerminateTaskResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdateJobOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdateJobOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdateJobResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdateJobScheduleOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdateJobScheduleOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdateJobScheduleResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdatePoolOptions.IfMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdatePoolOptions.IfNoneMatch` has been changed from `*azcore.ETag` to `*string` +- Type of `UpdatePoolResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `UploadNodeLogsResponse.ETag` has been changed from `*azcore.ETag` to `*string` +- Type of `VirtualMachineConfiguration.ImageReference` has been changed from `*ImageReference` to `*VMImageReference` +- Type of `VirtualMachineInfo.ImageReference` has been changed from `*ImageReference` to `*VMImageReference` +- Enum `ErrorCategory` has been removed +- Enum `JobAction` has been removed +- Enum `NodeRebootOption` has been removed +- Enum `OnAllTasksComplete` has been removed +- Enum `OnTaskFailure` has been removed +- Struct `AddTaskCollectionResult` has been removed +- Struct `CreateJobContent` has been removed +- Struct `CreateJobScheduleContent` has been removed +- Struct `CreateNodeUserContent` has been removed +- Struct `CreatePoolContent` has been removed +- Struct `CreateTaskContent` has been removed +- Struct `DeallocateNodeContent` has been removed +- Struct `DisableJobContent` has been removed +- Struct `DisableNodeSchedulingContent` has been removed +- Struct `EnablePoolAutoScaleContent` has been removed +- Struct `EvaluatePoolAutoScaleContent` has been removed +- Struct `HTTPHeader` has been removed +- Struct `ImageReference` has been removed +- Struct `OSDisk` has been removed +- Struct `RebootNodeContent` has been removed +- Struct `ReimageNodeContent` has been removed +- Struct `RemoveNodeContent` has been removed +- Struct `ReplacePoolContent` has been removed +- Struct `ResizePoolContent` has been removed +- Struct `TaskAddResult` has been removed +- Struct `TerminateJobContent` has been removed +- Struct `UpdateJobContent` has been removed +- Struct `UpdateJobScheduleContent` has been removed +- Struct `UpdateNodeUserContent` has been removed +- Struct `UpdatePoolContent` has been removed +- Struct `UploadNodeLogsContent` has been removed +- Field `OCPDate` of struct `CancelCertificateDeletionOptions` has been removed +- Field `OCPDate` of struct `CreateCertificateOptions` has been removed +- Field `OCPDate` of struct `CreateJobOptions` has been removed +- Field `OCPDate` of struct `CreateJobScheduleOptions` has been removed +- Field `OCPDate` of struct `CreateNodeUserOptions` has been removed +- Field `OCPDate` of struct `CreatePoolOptions` has been removed +- Field `OCPDate` of struct `CreateTaskCollectionOptions` has been removed +- Field `AddTaskCollectionResult` of struct `CreateTaskCollectionResponse` has been removed +- Field `OCPDate` of struct `CreateTaskOptions` has been removed +- Field `OCPDate` of struct `DeallocateNodeOptions` has been removed +- Field `OCPDate` of struct `DeleteCertificateOptions` has been removed +- Field `OCPDate` of struct `DeleteJobOptions` has been removed +- Field `OCPDate` of struct `DeleteJobScheduleOptions` has been removed +- Field `OCPDate` of struct `DeleteNodeFileOptions` has been removed +- Field `OCPDate` of struct `DeleteNodeUserOptions` has been removed +- Field `OCPDate` of struct `DeletePoolOptions` has been removed +- Field `OCPDate` of struct `DeleteTaskFileOptions` has been removed +- Field `OCPDate` of struct `DeleteTaskOptions` has been removed +- Field `OCPDate` of struct `DisableJobOptions` has been removed +- Field `OCPDate` of struct `DisableJobScheduleOptions` has been removed +- Field `OCPDate` of struct `DisableNodeSchedulingOptions` has been removed +- Field `OCPDate` of struct `DisablePoolAutoScaleOptions` has been removed +- Field `OCPDate` of struct `EnableJobOptions` has been removed +- Field `OCPDate` of struct `EnableJobScheduleOptions` has been removed +- Field `OCPDate` of struct `EnableNodeSchedulingOptions` has been removed +- Field `OCPDate` of struct `EnablePoolAutoScaleOptions` has been removed +- Field `OCPDate` of struct `EvaluatePoolAutoScaleOptions` has been removed +- Field `OCPDate` of struct `GetApplicationOptions` has been removed +- Field `OCPDate` of struct `GetCertificateOptions` has been removed +- Field `OCPDate` of struct `GetJobOptions` has been removed +- Field `OCPDate` of struct `GetJobScheduleOptions` has been removed +- Field `OCPDate` of struct `GetJobTaskCountsOptions` has been removed +- Field `OCPDate` of struct `GetNodeExtensionOptions` has been removed +- Field `OCPDate`, `OCPRange` of struct `GetNodeFileOptions` has been removed +- Field `OCPDate` of struct `GetNodeFilePropertiesOptions` has been removed +- Field `OCPBatchFileIsDirectory`, `OCPBatchFileMode`, `OCPBatchFileURL`, `OCPCreationTime` of struct `GetNodeFilePropertiesResponse` has been removed +- Field `OCPBatchFileIsDirectory`, `OCPBatchFileMode`, `OCPBatchFileURL`, `OCPCreationTime` of struct `GetNodeFileResponse` has been removed +- Field `OCPDate` of struct `GetNodeOptions` has been removed +- Field `OCPDate` of struct `GetNodeRemoteLoginSettingsOptions` has been removed +- Field `OCPDate` of struct `GetPoolOptions` has been removed +- Field `OCPDate`, `OCPRange` of struct `GetTaskFileOptions` has been removed +- Field `OCPDate` of struct `GetTaskFilePropertiesOptions` has been removed +- Field `OCPBatchFileIsDirectory`, `OCPBatchFileMode`, `OCPBatchFileURL`, `OCPCreationTime` of struct `GetTaskFilePropertiesResponse` has been removed +- Field `OCPBatchFileIsDirectory`, `OCPBatchFileMode`, `OCPBatchFileURL`, `OCPCreationTime` of struct `GetTaskFileResponse` has been removed +- Field `OCPDate` of struct `GetTaskOptions` has been removed +- Field `OnAllTasksComplete`, `OnTaskFailure`, `Stats` of struct `Job` has been removed +- Field `SkipWithdrawFromVNet` of struct `JobNetworkConfiguration` has been removed +- Field `Stats` of struct `JobSchedule` has been removed +- Field `OCPDate` of struct `JobScheduleExistsOptions` has been removed +- Field `NumFailedTasks`, `NumSucceededTasks`, `NumTaskRetries`, `ReadIOGiB`, `WriteIOGiB` of struct `JobScheduleStatistics` has been removed +- Field `OnAllTasksComplete`, `OnTaskFailure` of struct `JobSpecification` has been removed +- Field `NumFailedTasks`, `NumSucceededTasks`, `NumTaskRetries`, `ReadIOGiB`, `ReadIOps`, `WriteIOGiB`, `WriteIOps` of struct `JobStatistics` has been removed +- Field `OCPDate` of struct `ListApplicationsOptions` has been removed +- Field `OCPDate` of struct `ListCertificatesOptions` has been removed +- Field `OCPDate` of struct `ListJobPreparationAndReleaseTaskStatusOptions` has been removed +- Field `OCPDate` of struct `ListJobSchedulesOptions` has been removed +- Field `OCPDate` of struct `ListJobsFromScheduleOptions` has been removed +- Field `OCPDate` of struct `ListJobsOptions` has been removed +- Field `OCPDate` of struct `ListNodeExtensionsOptions` has been removed +- Field `OCPDate` of struct `ListNodeFilesOptions` has been removed +- Field `OCPDate` of struct `ListNodesOptions` has been removed +- Field `OCPDate` of struct `ListPoolNodeCountsOptions` has been removed +- Field `OCPDate` of struct `ListPoolsOptions` has been removed +- Field `OCPDate` of struct `ListSubTasksOptions` has been removed +- Field `OCPDate` of struct `ListSupportedImagesOptions` has been removed +- Field `OCPDate` of struct `ListTaskFilesOptions` has been removed +- Field `OCPDate` of struct `ListTasksOptions` has been removed +- Field `DynamicVNetAssignmentScope` of struct `NetworkConfiguration` has been removed +- Field `Stats` of struct `Pool` has been removed +- Field `OCPDate` of struct `PoolExistsOptions` has been removed +- Field `ResourceStats`, `UsageStats` of struct `PoolStatistics` has been removed +- Field `OCPDate` of struct `ReactivateTaskOptions` has been removed +- Field `OCPDate` of struct `RebootNodeOptions` has been removed +- Field `OCPDate` of struct `ReimageNodeOptions` has been removed +- Field `OCPDate` of struct `RemoveNodesOptions` has been removed +- Field `OCPDate` of struct `ReplaceJobOptions` has been removed +- Field `OCPDate` of struct `ReplaceJobScheduleOptions` has been removed +- Field `OCPDate` of struct `ReplaceNodeUserOptions` has been removed +- Field `OCPDate` of struct `ReplacePoolPropertiesOptions` has been removed +- Field `OCPDate` of struct `ReplaceTaskOptions` has been removed +- Field `OCPDate` of struct `ResizePoolOptions` has been removed +- Field `OCPDate` of struct `StartNodeOptions` has been removed +- Field `OCPDate` of struct `StopPoolResizeOptions` has been removed +- Field `Stats` of struct `Task` has been removed +- Field `Value` of struct `TaskGroup` has been removed +- Field `ReadIOGiB`, `WriteIOGiB` of struct `TaskStatistics` has been removed +- Field `OCPDate` of struct `TerminateJobOptions` has been removed +- Field `OCPDate` of struct `TerminateJobScheduleOptions` has been removed +- Field `OCPDate` of struct `TerminateTaskOptions` has been removed +- Field `OCPDate` of struct `UpdateJobOptions` has been removed +- Field `OCPDate` of struct `UpdateJobScheduleOptions` has been removed +- Field `OCPDate` of struct `UpdatePoolOptions` has been removed +- Field `OCPDate` of struct `UploadNodeLogsOptions` has been removed +- Field `OSDisk` of struct `VirtualMachineConfiguration` has been removed + +### Features Added + +- New enum type `AllTasksCompleteMode` with values `AllTasksCompleteModeNoAction`, `AllTasksCompleteModeTerminateJob` +- New enum type `ErrorSourceCategory` with values `ErrorSourceCategoryServerError`, `ErrorSourceCategoryUserError` +- New enum type `JobActionKind` with values `JobActionKindDisable`, `JobActionKindNone`, `JobActionKindTerminate` +- New enum type `NodeRebootKind` with values `NodeRebootKindRequeue`, `NodeRebootKindRetainedData`, `NodeRebootKindTaskCompletion`, `NodeRebootKindTerminate` +- New enum type `TaskFailureMode` with values `TaskFailureModeNoAction`, `TaskFailureModePerformExitOptionsJobAction` +- New struct `CreateTaskCollectionResult` +- New struct `OsDisk` +- New struct `OutputFileUploadHeader` +- New struct `RemoveNodeOptions` +- New struct `ReplacePoolOptions` +- New struct `TaskCreateResult` +- New struct `UpdateNodeUserOptions` +- New struct `VMImageReference` +- New field `Ocpdate` in struct `CancelCertificateDeletionOptions` +- New field `Ocpdate` in struct `CreateCertificateOptions` +- New field `Ocpdate` in struct `CreateJobOptions` +- New field `Ocpdate` in struct `CreateJobScheduleOptions` +- New field `Ocpdate` in struct `CreateNodeUserOptions` +- New field `Ocpdate` in struct `CreatePoolOptions` +- New field `Ocpdate` in struct `CreateTaskCollectionOptions` +- New anonymous field `CreateTaskCollectionResult` in struct `CreateTaskCollectionResponse` +- New field `Ocpdate` in struct `CreateTaskOptions` +- New field `Ocpdate` in struct `DeallocateNodeOptions` +- New field `Ocpdate` in struct `DeleteCertificateOptions` +- New field `Ocpdate` in struct `DeleteJobOptions` +- New field `Ocpdate` in struct `DeleteJobScheduleOptions` +- New field `Ocpdate` in struct `DeleteNodeFileOptions` +- New field `Ocpdate` in struct `DeleteNodeUserOptions` +- New field `Ocpdate` in struct `DeletePoolOptions` +- New field `Ocpdate` in struct `DeleteTaskFileOptions` +- New field `Ocpdate` in struct `DeleteTaskOptions` +- New field `Ocpdate` in struct `DisableJobOptions` +- New field `Ocpdate` in struct `DisableJobScheduleOptions` +- New field `Ocpdate` in struct `DisableNodeSchedulingOptions` +- New field `Ocpdate` in struct `DisablePoolAutoScaleOptions` +- New field `Ocpdate` in struct `EnableJobOptions` +- New field `Ocpdate` in struct `EnableJobScheduleOptions` +- New field `Ocpdate` in struct `EnableNodeSchedulingOptions` +- New field `Ocpdate` in struct `EnablePoolAutoScaleOptions` +- New field `Ocpdate` in struct `EvaluatePoolAutoScaleOptions` +- New field `Ocpdate` in struct `GetApplicationOptions` +- New field `Ocpdate` in struct `GetCertificateOptions` +- New field `Ocpdate` in struct `GetJobOptions` +- New field `Ocpdate` in struct `GetJobScheduleOptions` +- New field `Ocpdate` in struct `GetJobTaskCountsOptions` +- New field `Ocpdate` in struct `GetNodeExtensionOptions` +- New field `OcpRange`, `Ocpdate` in struct `GetNodeFileOptions` +- New field `Ocpdate` in struct `GetNodeFilePropertiesOptions` +- New field `OcpBatchFileIsdirectory`, `OcpBatchFileMode`, `OcpBatchFileURL`, `OcpCreationTime` in struct `GetNodeFilePropertiesResponse` +- New field `OcpBatchFileIsdirectory`, `OcpBatchFileMode`, `OcpBatchFileURL`, `OcpCreationTime` in struct `GetNodeFileResponse` +- New field `Ocpdate` in struct `GetNodeOptions` +- New field `Ocpdate` in struct `GetNodeRemoteLoginSettingsOptions` +- New field `Ocpdate` in struct `GetPoolOptions` +- New field `OcpRange`, `Ocpdate` in struct `GetTaskFileOptions` +- New field `Ocpdate` in struct `GetTaskFilePropertiesOptions` +- New field `OcpBatchFileIsdirectory`, `OcpBatchFileMode`, `OcpBatchFileURL`, `OcpCreationTime` in struct `GetTaskFilePropertiesResponse` +- New field `OcpBatchFileIsdirectory`, `OcpBatchFileMode`, `OcpBatchFileURL`, `OcpCreationTime` in struct `GetTaskFileResponse` +- New field `Ocpdate` in struct `GetTaskOptions` +- New field `AllTasksCompleteMode`, `JobStatistics`, `TaskFailureMode` in struct `Job` +- New field `SkipWithdrawFromVnet` in struct `JobNetworkConfiguration` +- New field `JobScheduleStatistics` in struct `JobSchedule` +- New field `Ocpdate` in struct `JobScheduleExistsOptions` +- New field `FailedTasksCount`, `ReadIoGiB`, `SucceededTasksCount`, `TaskRetriesCount`, `WriteIoGiB` in struct `JobScheduleStatistics` +- New field `AllTasksCompleteMode`, `TaskFailureMode` in struct `JobSpecification` +- New field `FailedTasksCount`, `ReadIoGiB`, `ReadIops`, `SucceededTasksCount`, `TaskRetriesCount`, `WriteIoGiB`, `WriteIops` in struct `JobStatistics` +- New field `Ocpdate` in struct `ListApplicationsOptions` +- New field `Ocpdate` in struct `ListCertificatesOptions` +- New field `Ocpdate` in struct `ListJobPreparationAndReleaseTaskStatusOptions` +- New field `Ocpdate` in struct `ListJobSchedulesOptions` +- New field `Ocpdate` in struct `ListJobsFromScheduleOptions` +- New field `Ocpdate` in struct `ListJobsOptions` +- New field `Ocpdate` in struct `ListNodeExtensionsOptions` +- New field `Ocpdate` in struct `ListNodeFilesOptions` +- New field `Ocpdate` in struct `ListNodesOptions` +- New field `Ocpdate` in struct `ListPoolNodeCountsOptions` +- New field `Ocpdate` in struct `ListPoolsOptions` +- New field `Ocpdate` in struct `ListSubTasksOptions` +- New field `Ocpdate` in struct `ListSupportedImagesOptions` +- New field `Ocpdate` in struct `ListTaskFilesOptions` +- New field `Ocpdate` in struct `ListTasksOptions` +- New field `DynamicVnetAssignmentScope` in struct `NetworkConfiguration` +- New field `PoolStatistics` in struct `Pool` +- New field `Ocpdate` in struct `PoolExistsOptions` +- New field `ResourceStatistics`, `UsageStatistics` in struct `PoolStatistics` +- New field `Ocpdate` in struct `ReactivateTaskOptions` +- New field `Ocpdate` in struct `RebootNodeOptions` +- New field `Ocpdate` in struct `ReimageNodeOptions` +- New field `Ocpdate` in struct `RemoveNodesOptions` +- New field `Ocpdate` in struct `ReplaceJobOptions` +- New field `Ocpdate` in struct `ReplaceJobScheduleOptions` +- New field `Ocpdate` in struct `ReplaceNodeUserOptions` +- New field `Ocpdate` in struct `ReplacePoolPropertiesOptions` +- New field `Ocpdate` in struct `ReplaceTaskOptions` +- New field `Ocpdate` in struct `ResizePoolOptions` +- New field `Ocpdate` in struct `StartNodeOptions` +- New field `Ocpdate` in struct `StopPoolResizeOptions` +- New field `TaskStatistics` in struct `Task` +- New field `Values` in struct `TaskGroup` +- New field `ReadIoGiB`, `WriteIoGiB` in struct `TaskStatistics` +- New field `Ocpdate` in struct `TerminateJobOptions` +- New field `Ocpdate` in struct `TerminateJobScheduleOptions` +- New field `Ocpdate` in struct `TerminateTaskOptions` +- New field `Ocpdate` in struct `UpdateJobOptions` +- New field `Ocpdate` in struct `UpdateJobScheduleOptions` +- New field `Ocpdate` in struct `UpdatePoolOptions` +- New field `Ocpdate` in struct `UploadNodeLogsOptions` +- New field `OsDisk` in struct `VirtualMachineConfiguration` + + ## 0.1.1 (Unreleased) ### Features Added diff --git a/sdk/batch/azbatch/build.go b/sdk/batch/azbatch/build.go deleted file mode 100644 index 8129d16f9b27..000000000000 --- a/sdk/batch/azbatch/build.go +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -//go:generate tsp-client update -d -//go:generate go run testdata/transform.go -//go:generate goimports -w . - -package azbatch diff --git a/sdk/batch/azbatch/client.go b/sdk/batch/azbatch/client.go index d688bbec8720..0c334fbb2450 100644 --- a/sdk/batch/azbatch/client.go +++ b/sdk/batch/azbatch/client.go @@ -7,15 +7,14 @@ package azbatch import ( "context" "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" "net/url" "strconv" "strings" "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" ) // Client contains the methods for the group. @@ -87,8 +86,8 @@ func (client *Client) cancelCertificateDeletionCreateRequest(ctx context.Context if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -106,7 +105,7 @@ func (client *Client) cancelCertificateDeletionHandleResponse(resp *http.Respons result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -168,8 +167,8 @@ func (client *Client) createCertificateCreateRequest(ctx context.Context, certif if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -191,7 +190,7 @@ func (client *Client) createCertificateHandleResponse(resp *http.Response) (Crea result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -222,7 +221,7 @@ func (client *Client) createCertificateHandleResponse(resp *http.Response) (Crea // Generated from API version 2024-07-01.20.0 // - job - The Job to be created. // - options - CreateJobOptions contains the optional parameters for the Client.CreateJob method. -func (client *Client) CreateJob(ctx context.Context, job CreateJobContent, options *CreateJobOptions) (CreateJobResponse, error) { +func (client *Client) CreateJob(ctx context.Context, job CreateJobOptions, options *CreateJobOptions) (CreateJobResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.CreateJob", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -243,7 +242,7 @@ func (client *Client) CreateJob(ctx context.Context, job CreateJobContent, optio } // createJobCreateRequest creates the CreateJob request. -func (client *Client) createJobCreateRequest(ctx context.Context, job CreateJobContent, options *CreateJobOptions) (*policy.Request, error) { +func (client *Client) createJobCreateRequest(ctx context.Context, job CreateJobOptions, options *CreateJobOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/jobs" @@ -261,8 +260,8 @@ func (client *Client) createJobCreateRequest(ctx context.Context, job CreateJobC if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -284,7 +283,7 @@ func (client *Client) createJobHandleResponse(resp *http.Response) (CreateJobRes result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -307,7 +306,7 @@ func (client *Client) createJobHandleResponse(resp *http.Response) (CreateJobRes // Generated from API version 2024-07-01.20.0 // - jobSchedule - The Job Schedule to be created. // - options - CreateJobScheduleOptions contains the optional parameters for the Client.CreateJobSchedule method. -func (client *Client) CreateJobSchedule(ctx context.Context, jobSchedule CreateJobScheduleContent, options *CreateJobScheduleOptions) (CreateJobScheduleResponse, error) { +func (client *Client) CreateJobSchedule(ctx context.Context, jobSchedule CreateJobScheduleOptions, options *CreateJobScheduleOptions) (CreateJobScheduleResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.CreateJobSchedule", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -328,7 +327,7 @@ func (client *Client) CreateJobSchedule(ctx context.Context, jobSchedule CreateJ } // createJobScheduleCreateRequest creates the CreateJobSchedule request. -func (client *Client) createJobScheduleCreateRequest(ctx context.Context, jobSchedule CreateJobScheduleContent, options *CreateJobScheduleOptions) (*policy.Request, error) { +func (client *Client) createJobScheduleCreateRequest(ctx context.Context, jobSchedule CreateJobScheduleOptions, options *CreateJobScheduleOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/jobschedules" @@ -346,8 +345,8 @@ func (client *Client) createJobScheduleCreateRequest(ctx context.Context, jobSch if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -369,7 +368,7 @@ func (client *Client) createJobScheduleHandleResponse(resp *http.Response) (Crea result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -395,7 +394,7 @@ func (client *Client) createJobScheduleHandleResponse(resp *http.Response) (Crea // - nodeID - The ID of the machine on which you want to create a user Account. // - userParam - The options to use for creating the user. // - options - CreateNodeUserOptions contains the optional parameters for the Client.CreateNodeUser method. -func (client *Client) CreateNodeUser(ctx context.Context, poolID string, nodeID string, userParam CreateNodeUserContent, options *CreateNodeUserOptions) (CreateNodeUserResponse, error) { +func (client *Client) CreateNodeUser(ctx context.Context, poolID string, nodeID string, userParam CreateNodeUserOptions, options *CreateNodeUserOptions) (CreateNodeUserResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.CreateNodeUser", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -416,7 +415,7 @@ func (client *Client) CreateNodeUser(ctx context.Context, poolID string, nodeID } // createNodeUserCreateRequest creates the CreateNodeUser request. -func (client *Client) createNodeUserCreateRequest(ctx context.Context, poolID string, nodeID string, userParam CreateNodeUserContent, options *CreateNodeUserOptions) (*policy.Request, error) { +func (client *Client) createNodeUserCreateRequest(ctx context.Context, poolID string, nodeID string, userParam CreateNodeUserOptions, options *CreateNodeUserOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/nodes/{nodeId}/users" @@ -442,8 +441,8 @@ func (client *Client) createNodeUserCreateRequest(ctx context.Context, poolID st if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -465,7 +464,7 @@ func (client *Client) createNodeUserHandleResponse(resp *http.Response) (CreateN result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -490,7 +489,7 @@ func (client *Client) createNodeUserHandleResponse(resp *http.Response) (CreateN // Generated from API version 2024-07-01.20.0 // - pool - The Pool to be created. // - options - CreatePoolOptions contains the optional parameters for the Client.CreatePool method. -func (client *Client) CreatePool(ctx context.Context, pool CreatePoolContent, options *CreatePoolOptions) (CreatePoolResponse, error) { +func (client *Client) CreatePool(ctx context.Context, pool CreatePoolOptions, options *CreatePoolOptions) (CreatePoolResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.CreatePool", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -511,7 +510,7 @@ func (client *Client) CreatePool(ctx context.Context, pool CreatePoolContent, op } // createPoolCreateRequest creates the CreatePool request. -func (client *Client) createPoolCreateRequest(ctx context.Context, pool CreatePoolContent, options *CreatePoolOptions) (*policy.Request, error) { +func (client *Client) createPoolCreateRequest(ctx context.Context, pool CreatePoolOptions, options *CreatePoolOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools" @@ -529,8 +528,8 @@ func (client *Client) createPoolCreateRequest(ctx context.Context, pool CreatePo if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -552,7 +551,7 @@ func (client *Client) createPoolHandleResponse(resp *http.Response) (CreatePoolR result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -578,7 +577,7 @@ func (client *Client) createPoolHandleResponse(resp *http.Response) (CreatePoolR // - jobID - The ID of the Job to which the Task is to be created. // - task - The Task to be created. // - options - CreateTaskOptions contains the optional parameters for the Client.CreateTask method. -func (client *Client) CreateTask(ctx context.Context, jobID string, task CreateTaskContent, options *CreateTaskOptions) (CreateTaskResponse, error) { +func (client *Client) CreateTask(ctx context.Context, jobID string, task CreateTaskOptions, options *CreateTaskOptions) (CreateTaskResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.CreateTask", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -599,7 +598,7 @@ func (client *Client) CreateTask(ctx context.Context, jobID string, task CreateT } // createTaskCreateRequest creates the CreateTask request. -func (client *Client) createTaskCreateRequest(ctx context.Context, jobID string, task CreateTaskContent, options *CreateTaskOptions) (*policy.Request, error) { +func (client *Client) createTaskCreateRequest(ctx context.Context, jobID string, task CreateTaskOptions, options *CreateTaskOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/jobs/{jobId}/tasks" @@ -621,8 +620,8 @@ func (client *Client) createTaskCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -644,7 +643,7 @@ func (client *Client) createTaskHandleResponse(resp *http.Response) (CreateTaskR result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -724,8 +723,8 @@ func (client *Client) createTaskCollectionCreateRequest(ctx context.Context, job if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -744,7 +743,7 @@ func (client *Client) createTaskCollectionHandleResponse(resp *http.Response) (C result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -756,7 +755,7 @@ func (client *Client) createTaskCollectionHandleResponse(resp *http.Response) (C if val := resp.Header.Get("request-id"); val != "" { result.RequestID = &val } - if err := runtime.UnmarshalAsJSON(resp, &result.AddTaskCollectionResult); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.CreateTaskCollectionResult); err != nil { return CreateTaskCollectionResponse{}, err } return result, nil @@ -818,8 +817,8 @@ func (client *Client) deallocateNodeCreateRequest(ctx context.Context, poolID st if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -844,7 +843,7 @@ func (client *Client) deallocateNodeHandleResponse(resp *http.Response) (Dealloc result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -923,8 +922,8 @@ func (client *Client) deleteCertificateCreateRequest(ctx context.Context, thumbp if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -939,7 +938,7 @@ func (client *Client) deleteCertificateHandleResponse(resp *http.Response) (Dele result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -1013,13 +1012,13 @@ func (client *Client) deleteJobCreateRequest(ctx context.Context, jobID string, req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -1027,8 +1026,8 @@ func (client *Client) deleteJobCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1104,13 +1103,13 @@ func (client *Client) deleteJobScheduleCreateRequest(ctx context.Context, jobSch req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -1118,8 +1117,8 @@ func (client *Client) deleteJobScheduleCreateRequest(ctx context.Context, jobSch if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1203,8 +1202,8 @@ func (client *Client) deleteNodeFileCreateRequest(ctx context.Context, poolID st if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1286,8 +1285,8 @@ func (client *Client) deleteNodeUserCreateRequest(ctx context.Context, poolID st if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1367,13 +1366,13 @@ func (client *Client) deletePoolCreateRequest(ctx context.Context, poolID string req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -1381,8 +1380,8 @@ func (client *Client) deletePoolCreateRequest(ctx context.Context, poolID string if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1460,13 +1459,13 @@ func (client *Client) deleteTaskCreateRequest(ctx context.Context, jobID string, req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -1474,8 +1473,8 @@ func (client *Client) deleteTaskCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1559,8 +1558,8 @@ func (client *Client) deleteTaskFileCreateRequest(ctx context.Context, jobID str if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1594,13 +1593,13 @@ func (client *Client) deleteTaskFileHandleResponse(resp *http.Response) (DeleteT // // Generated from API version 2024-07-01.20.0 // - jobID - The ID of the Job to disable. -// - content - The options to use for disabling the Job. +// - disableOptions - The options to use for disabling the Job. // - options - DisableJobOptions contains the optional parameters for the Client.DisableJob method. -func (client *Client) DisableJob(ctx context.Context, jobID string, content DisableJobContent, options *DisableJobOptions) (DisableJobResponse, error) { +func (client *Client) DisableJob(ctx context.Context, jobID string, disableOptions DisableJobOptions, options *DisableJobOptions) (DisableJobResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.DisableJob", client.internal.Tracer(), nil) defer func() { endSpan(err) }() - req, err := client.disableJobCreateRequest(ctx, jobID, content, options) + req, err := client.disableJobCreateRequest(ctx, jobID, disableOptions, options) if err != nil { return DisableJobResponse{}, err } @@ -1617,7 +1616,7 @@ func (client *Client) DisableJob(ctx context.Context, jobID string, content Disa } // disableJobCreateRequest creates the DisableJob request. -func (client *Client) disableJobCreateRequest(ctx context.Context, jobID string, content DisableJobContent, options *DisableJobOptions) (*policy.Request, error) { +func (client *Client) disableJobCreateRequest(ctx context.Context, jobID string, disableOptions DisableJobOptions, options *DisableJobOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/jobs/{jobId}/disable" @@ -1637,13 +1636,13 @@ func (client *Client) disableJobCreateRequest(ctx context.Context, jobID string, req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -1651,14 +1650,14 @@ func (client *Client) disableJobCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} } req.Raw().Header["Content-Type"] = []string{"application/json; odata=minimalmetadata"} - if err := runtime.MarshalAsJSON(req, content); err != nil { + if err := runtime.MarshalAsJSON(req, disableOptions); err != nil { return nil, err } return req, nil @@ -1674,7 +1673,7 @@ func (client *Client) disableJobHandleResponse(resp *http.Response) (DisableJobR result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -1738,13 +1737,13 @@ func (client *Client) disableJobScheduleCreateRequest(ctx context.Context, jobSc req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -1752,8 +1751,8 @@ func (client *Client) disableJobScheduleCreateRequest(ctx context.Context, jobSc if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1771,7 +1770,7 @@ func (client *Client) disableJobScheduleHandleResponse(resp *http.Response) (Dis result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -1843,8 +1842,8 @@ func (client *Client) disableNodeSchedulingCreateRequest(ctx context.Context, po if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1869,7 +1868,7 @@ func (client *Client) disableNodeSchedulingHandleResponse(resp *http.Response) ( result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -1935,8 +1934,8 @@ func (client *Client) disablePoolAutoScaleCreateRequest(ctx context.Context, poo if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -1954,7 +1953,7 @@ func (client *Client) disablePoolAutoScaleHandleResponse(resp *http.Response) (D result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2023,13 +2022,13 @@ func (client *Client) enableJobCreateRequest(ctx context.Context, jobID string, req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -2037,8 +2036,8 @@ func (client *Client) enableJobCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2056,7 +2055,7 @@ func (client *Client) enableJobHandleResponse(resp *http.Response) (EnableJobRes result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2120,13 +2119,13 @@ func (client *Client) enableJobScheduleCreateRequest(ctx context.Context, jobSch req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -2134,8 +2133,8 @@ func (client *Client) enableJobScheduleCreateRequest(ctx context.Context, jobSch if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2153,7 +2152,7 @@ func (client *Client) enableJobScheduleHandleResponse(resp *http.Response) (Enab result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2225,8 +2224,8 @@ func (client *Client) enableNodeSchedulingCreateRequest(ctx context.Context, poo if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2244,7 +2243,7 @@ func (client *Client) enableNodeSchedulingHandleResponse(resp *http.Response) (E result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2271,13 +2270,13 @@ func (client *Client) enableNodeSchedulingHandleResponse(resp *http.Response) (E // // Generated from API version 2024-07-01.20.0 // - poolID - The ID of the Pool to get. -// - content - The options to use for enabling automatic scaling. +// - enableAutoScaleOptions - The options to use for enabling automatic scaling. // - options - EnablePoolAutoScaleOptions contains the optional parameters for the Client.EnablePoolAutoScale method. -func (client *Client) EnablePoolAutoScale(ctx context.Context, poolID string, content EnablePoolAutoScaleContent, options *EnablePoolAutoScaleOptions) (EnablePoolAutoScaleResponse, error) { +func (client *Client) EnablePoolAutoScale(ctx context.Context, poolID string, enableAutoScaleOptions EnablePoolAutoScaleOptions, options *EnablePoolAutoScaleOptions) (EnablePoolAutoScaleResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.EnablePoolAutoScale", client.internal.Tracer(), nil) defer func() { endSpan(err) }() - req, err := client.enablePoolAutoScaleCreateRequest(ctx, poolID, content, options) + req, err := client.enablePoolAutoScaleCreateRequest(ctx, poolID, enableAutoScaleOptions, options) if err != nil { return EnablePoolAutoScaleResponse{}, err } @@ -2294,7 +2293,7 @@ func (client *Client) EnablePoolAutoScale(ctx context.Context, poolID string, co } // enablePoolAutoScaleCreateRequest creates the EnablePoolAutoScale request. -func (client *Client) enablePoolAutoScaleCreateRequest(ctx context.Context, poolID string, content EnablePoolAutoScaleContent, options *EnablePoolAutoScaleOptions) (*policy.Request, error) { +func (client *Client) enablePoolAutoScaleCreateRequest(ctx context.Context, poolID string, enableAutoScaleOptions EnablePoolAutoScaleOptions, options *EnablePoolAutoScaleOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/enableautoscale" @@ -2314,13 +2313,13 @@ func (client *Client) enablePoolAutoScaleCreateRequest(ctx context.Context, pool req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -2328,14 +2327,14 @@ func (client *Client) enablePoolAutoScaleCreateRequest(ctx context.Context, pool if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} } req.Raw().Header["Content-Type"] = []string{"application/json; odata=minimalmetadata"} - if err := runtime.MarshalAsJSON(req, content); err != nil { + if err := runtime.MarshalAsJSON(req, enableAutoScaleOptions); err != nil { return nil, err } return req, nil @@ -2351,7 +2350,7 @@ func (client *Client) enablePoolAutoScaleHandleResponse(resp *http.Response) (En result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2375,13 +2374,13 @@ func (client *Client) enablePoolAutoScaleHandleResponse(resp *http.Response) (En // // Generated from API version 2024-07-01.20.0 // - poolID - The ID of the Pool on which to evaluate the automatic scaling formula. -// - content - The options to use for evaluating the automatic scaling formula. +// - evaluateAutoScaleOptions - The options to use for evaluating the automatic scaling formula. // - options - EvaluatePoolAutoScaleOptions contains the optional parameters for the Client.EvaluatePoolAutoScale method. -func (client *Client) EvaluatePoolAutoScale(ctx context.Context, poolID string, content EvaluatePoolAutoScaleContent, options *EvaluatePoolAutoScaleOptions) (EvaluatePoolAutoScaleResponse, error) { +func (client *Client) EvaluatePoolAutoScale(ctx context.Context, poolID string, evaluateAutoScaleOptions EvaluatePoolAutoScaleOptions, options *EvaluatePoolAutoScaleOptions) (EvaluatePoolAutoScaleResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.EvaluatePoolAutoScale", client.internal.Tracer(), nil) defer func() { endSpan(err) }() - req, err := client.evaluatePoolAutoScaleCreateRequest(ctx, poolID, content, options) + req, err := client.evaluatePoolAutoScaleCreateRequest(ctx, poolID, evaluateAutoScaleOptions, options) if err != nil { return EvaluatePoolAutoScaleResponse{}, err } @@ -2398,7 +2397,7 @@ func (client *Client) EvaluatePoolAutoScale(ctx context.Context, poolID string, } // evaluatePoolAutoScaleCreateRequest creates the EvaluatePoolAutoScale request. -func (client *Client) evaluatePoolAutoScaleCreateRequest(ctx context.Context, poolID string, content EvaluatePoolAutoScaleContent, options *EvaluatePoolAutoScaleOptions) (*policy.Request, error) { +func (client *Client) evaluatePoolAutoScaleCreateRequest(ctx context.Context, poolID string, evaluateAutoScaleOptions EvaluatePoolAutoScaleOptions, options *EvaluatePoolAutoScaleOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/evaluateautoscale" @@ -2420,14 +2419,14 @@ func (client *Client) evaluatePoolAutoScaleCreateRequest(ctx context.Context, po if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} } req.Raw().Header["Content-Type"] = []string{"application/json; odata=minimalmetadata"} - if err := runtime.MarshalAsJSON(req, content); err != nil { + if err := runtime.MarshalAsJSON(req, evaluateAutoScaleOptions); err != nil { return nil, err } return req, nil @@ -2443,7 +2442,7 @@ func (client *Client) evaluatePoolAutoScaleHandleResponse(resp *http.Response) ( result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2516,8 +2515,8 @@ func (client *Client) getApplicationCreateRequest(ctx context.Context, applicati if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2532,7 +2531,7 @@ func (client *Client) getApplicationHandleResponse(resp *http.Response) (GetAppl result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2607,8 +2606,8 @@ func (client *Client) getCertificateCreateRequest(ctx context.Context, thumbprin if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2623,7 +2622,7 @@ func (client *Client) getCertificateHandleResponse(resp *http.Response) (GetCert result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2696,13 +2695,13 @@ func (client *Client) getJobCreateRequest(ctx context.Context, jobID string, opt req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -2710,8 +2709,8 @@ func (client *Client) getJobCreateRequest(ctx context.Context, jobID string, opt if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2726,7 +2725,7 @@ func (client *Client) getJobHandleResponse(resp *http.Response) (GetJobResponse, result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2797,13 +2796,13 @@ func (client *Client) getJobScheduleCreateRequest(ctx context.Context, jobSchedu req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -2811,8 +2810,8 @@ func (client *Client) getJobScheduleCreateRequest(ctx context.Context, jobSchedu if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2827,7 +2826,7 @@ func (client *Client) getJobScheduleHandleResponse(resp *http.Response) (GetJobS result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2899,8 +2898,8 @@ func (client *Client) getJobTaskCountsCreateRequest(ctx context.Context, jobID s if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -2915,7 +2914,7 @@ func (client *Client) getJobTaskCountsHandleResponse(resp *http.Response) (GetJo result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -2992,8 +2991,8 @@ func (client *Client) getNodeCreateRequest(ctx context.Context, poolID string, n if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3008,7 +3007,7 @@ func (client *Client) getNodeHandleResponse(resp *http.Response) (GetNodeRespons result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3090,8 +3089,8 @@ func (client *Client) getNodeExtensionCreateRequest(ctx context.Context, poolID if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3106,7 +3105,7 @@ func (client *Client) getNodeExtensionHandleResponse(resp *http.Response) (GetNo result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3190,11 +3189,11 @@ func (client *Client) getNodeFileCreateRequest(ctx context.Context, poolID strin if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } - if options != nil && options.OCPRange != nil { - req.Raw().Header["ocp-range"] = []string{*options.OCPRange} + if options != nil && options.OcpRange != nil { + req.Raw().Header["ocp-range"] = []string{*options.OcpRange} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3219,7 +3218,7 @@ func (client *Client) getNodeFileHandleResponse(resp *http.Response) (GetNodeFil result.ContentType = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3233,20 +3232,20 @@ func (client *Client) getNodeFileHandleResponse(resp *http.Response) (GetNodeFil if err != nil { return GetNodeFileResponse{}, err } - result.OCPBatchFileIsDirectory = &ocpBatchFileIsdirectory + result.OcpBatchFileIsdirectory = &ocpBatchFileIsdirectory } if val := resp.Header.Get("ocp-batch-file-mode"); val != "" { - result.OCPBatchFileMode = &val + result.OcpBatchFileMode = &val } if val := resp.Header.Get("ocp-batch-file-url"); val != "" { - result.OCPBatchFileURL = &val + result.OcpBatchFileURL = &val } if val := resp.Header.Get("ocp-creation-time"); val != "" { ocpCreationTime, err := time.Parse(time.RFC1123, val) if err != nil { return GetNodeFileResponse{}, err } - result.OCPCreationTime = &ocpCreationTime + result.OcpCreationTime = &ocpCreationTime } if val := resp.Header.Get("request-id"); val != "" { result.RequestID = &val @@ -3319,8 +3318,8 @@ func (client *Client) getNodeFilePropertiesCreateRequest(ctx context.Context, po if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3342,7 +3341,7 @@ func (client *Client) getNodeFilePropertiesHandleResponse(resp *http.Response) ( result.ContentLength = &contentLength } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3356,20 +3355,20 @@ func (client *Client) getNodeFilePropertiesHandleResponse(resp *http.Response) ( if err != nil { return GetNodeFilePropertiesResponse{}, err } - result.OCPBatchFileIsDirectory = &ocpBatchFileIsdirectory + result.OcpBatchFileIsdirectory = &ocpBatchFileIsdirectory } if val := resp.Header.Get("ocp-batch-file-mode"); val != "" { - result.OCPBatchFileMode = &val + result.OcpBatchFileMode = &val } if val := resp.Header.Get("ocp-batch-file-url"); val != "" { - result.OCPBatchFileURL = &val + result.OcpBatchFileURL = &val } if val := resp.Header.Get("ocp-creation-time"); val != "" { ocpCreationTime, err := time.Parse(time.RFC1123, val) if err != nil { return GetNodeFilePropertiesResponse{}, err } - result.OCPCreationTime = &ocpCreationTime + result.OcpCreationTime = &ocpCreationTime } if val := resp.Header.Get("request-id"); val != "" { result.RequestID = &val @@ -3435,8 +3434,8 @@ func (client *Client) getNodeRemoteLoginSettingsCreateRequest(ctx context.Contex if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3451,7 +3450,7 @@ func (client *Client) getNodeRemoteLoginSettingsHandleResponse(resp *http.Respon result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3522,13 +3521,13 @@ func (client *Client) getPoolCreateRequest(ctx context.Context, poolID string, o req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -3536,8 +3535,8 @@ func (client *Client) getPoolCreateRequest(ctx context.Context, poolID string, o if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3552,7 +3551,7 @@ func (client *Client) getPoolHandleResponse(resp *http.Response) (GetPoolRespons result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3632,13 +3631,13 @@ func (client *Client) getTaskCreateRequest(ctx context.Context, jobID string, ta req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -3646,8 +3645,8 @@ func (client *Client) getTaskCreateRequest(ctx context.Context, jobID string, ta if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3665,7 +3664,7 @@ func (client *Client) getTaskHandleResponse(resp *http.Response) (GetTaskRespons result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3749,11 +3748,11 @@ func (client *Client) getTaskFileCreateRequest(ctx context.Context, jobID string if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } - if options != nil && options.OCPRange != nil { - req.Raw().Header["ocp-range"] = []string{*options.OCPRange} + if options != nil && options.OcpRange != nil { + req.Raw().Header["ocp-range"] = []string{*options.OcpRange} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3778,7 +3777,7 @@ func (client *Client) getTaskFileHandleResponse(resp *http.Response) (GetTaskFil result.ContentType = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3792,20 +3791,20 @@ func (client *Client) getTaskFileHandleResponse(resp *http.Response) (GetTaskFil if err != nil { return GetTaskFileResponse{}, err } - result.OCPBatchFileIsDirectory = &ocpBatchFileIsdirectory + result.OcpBatchFileIsdirectory = &ocpBatchFileIsdirectory } if val := resp.Header.Get("ocp-batch-file-mode"); val != "" { - result.OCPBatchFileMode = &val + result.OcpBatchFileMode = &val } if val := resp.Header.Get("ocp-batch-file-url"); val != "" { - result.OCPBatchFileURL = &val + result.OcpBatchFileURL = &val } if val := resp.Header.Get("ocp-creation-time"); val != "" { ocpCreationTime, err := time.Parse(time.RFC1123, val) if err != nil { return GetTaskFileResponse{}, err } - result.OCPCreationTime = &ocpCreationTime + result.OcpCreationTime = &ocpCreationTime } if val := resp.Header.Get("request-id"); val != "" { result.RequestID = &val @@ -3878,8 +3877,8 @@ func (client *Client) getTaskFilePropertiesCreateRequest(ctx context.Context, jo if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -3901,7 +3900,7 @@ func (client *Client) getTaskFilePropertiesHandleResponse(resp *http.Response) ( result.ContentLength = &contentLength } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -3915,20 +3914,20 @@ func (client *Client) getTaskFilePropertiesHandleResponse(resp *http.Response) ( if err != nil { return GetTaskFilePropertiesResponse{}, err } - result.OCPBatchFileIsDirectory = &ocpBatchFileIsdirectory + result.OcpBatchFileIsdirectory = &ocpBatchFileIsdirectory } if val := resp.Header.Get("ocp-batch-file-mode"); val != "" { - result.OCPBatchFileMode = &val + result.OcpBatchFileMode = &val } if val := resp.Header.Get("ocp-batch-file-url"); val != "" { - result.OCPBatchFileURL = &val + result.OcpBatchFileURL = &val } if val := resp.Header.Get("ocp-creation-time"); val != "" { ocpCreationTime, err := time.Parse(time.RFC1123, val) if err != nil { return GetTaskFilePropertiesResponse{}, err } - result.OCPCreationTime = &ocpCreationTime + result.OcpCreationTime = &ocpCreationTime } if val := resp.Header.Get("request-id"); val != "" { result.RequestID = &val @@ -3985,13 +3984,13 @@ func (client *Client) jobScheduleExistsCreateRequest(ctx context.Context, jobSch req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -3999,8 +3998,8 @@ func (client *Client) jobScheduleExistsCreateRequest(ctx context.Context, jobSch if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4015,7 +4014,7 @@ func (client *Client) jobScheduleExistsHandleResponse(resp *http.Response) (JobS result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4084,8 +4083,8 @@ func (client *Client) listApplicationsCreateRequest(ctx context.Context, options if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4100,7 +4099,7 @@ func (client *Client) listApplicationsHandleResponse(resp *http.Response) (ListA result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4174,8 +4173,8 @@ func (client *Client) listCertificatesCreateRequest(ctx context.Context, options if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4190,7 +4189,7 @@ func (client *Client) listCertificatesHandleResponse(resp *http.Response) (ListC result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4277,8 +4276,8 @@ func (client *Client) listJobPreparationAndReleaseTaskStatusCreateRequest(ctx co if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4293,7 +4292,7 @@ func (client *Client) listJobPreparationAndReleaseTaskStatusHandleResponse(resp result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4370,8 +4369,8 @@ func (client *Client) listJobSchedulesCreateRequest(ctx context.Context, options if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4386,7 +4385,7 @@ func (client *Client) listJobSchedulesHandleResponse(resp *http.Response) (ListJ result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4463,8 +4462,8 @@ func (client *Client) listJobsCreateRequest(ctx context.Context, options *ListJo if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4479,7 +4478,7 @@ func (client *Client) listJobsHandleResponse(resp *http.Response) (ListJobsRespo result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4561,8 +4560,8 @@ func (client *Client) listJobsFromScheduleCreateRequest(ctx context.Context, job if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4577,7 +4576,7 @@ func (client *Client) listJobsFromScheduleHandleResponse(resp *http.Response) (L result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4658,8 +4657,8 @@ func (client *Client) listNodeExtensionsCreateRequest(ctx context.Context, poolI if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4674,7 +4673,7 @@ func (client *Client) listNodeExtensionsHandleResponse(resp *http.Response) (Lis result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4758,8 +4757,8 @@ func (client *Client) listNodeFilesCreateRequest(ctx context.Context, poolID str if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4774,7 +4773,7 @@ func (client *Client) listNodeFilesHandleResponse(resp *http.Response) (ListNode result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4853,8 +4852,8 @@ func (client *Client) listNodesCreateRequest(ctx context.Context, poolID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4869,7 +4868,7 @@ func (client *Client) listNodesHandleResponse(resp *http.Response) (ListNodesRes result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -4940,8 +4939,8 @@ func (client *Client) listPoolNodeCountsCreateRequest(ctx context.Context, optio if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -4956,7 +4955,7 @@ func (client *Client) listPoolNodeCountsHandleResponse(resp *http.Response) (Lis result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5033,8 +5032,8 @@ func (client *Client) listPoolsCreateRequest(ctx context.Context, options *ListP if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5049,7 +5048,7 @@ func (client *Client) listPoolsHandleResponse(resp *http.Response) (ListPoolsRes result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5128,8 +5127,8 @@ func (client *Client) listSubTasksCreateRequest(ctx context.Context, jobID strin if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5144,7 +5143,7 @@ func (client *Client) listSubTasksHandleResponse(resp *http.Response) (ListSubTa result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5215,8 +5214,8 @@ func (client *Client) listSupportedImagesCreateRequest(ctx context.Context, opti if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5231,7 +5230,7 @@ func (client *Client) listSupportedImagesHandleResponse(resp *http.Response) (Li result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5315,8 +5314,8 @@ func (client *Client) listTaskFilesCreateRequest(ctx context.Context, jobID stri if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5331,7 +5330,7 @@ func (client *Client) listTaskFilesHandleResponse(resp *http.Response) (ListTask result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5415,8 +5414,8 @@ func (client *Client) listTasksCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5431,7 +5430,7 @@ func (client *Client) listTasksHandleResponse(resp *http.Response) (ListTasksRes result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5496,13 +5495,13 @@ func (client *Client) poolExistsCreateRequest(ctx context.Context, poolID string req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -5510,8 +5509,8 @@ func (client *Client) poolExistsCreateRequest(ctx context.Context, poolID string if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5526,7 +5525,7 @@ func (client *Client) poolExistsHandleResponse(resp *http.Response) (PoolExistsR result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5602,13 +5601,13 @@ func (client *Client) reactivateTaskCreateRequest(ctx context.Context, jobID str req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -5616,8 +5615,8 @@ func (client *Client) reactivateTaskCreateRequest(ctx context.Context, jobID str if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5635,7 +5634,7 @@ func (client *Client) reactivateTaskHandleResponse(resp *http.Response) (Reactiv result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5706,8 +5705,8 @@ func (client *Client) rebootNodeCreateRequest(ctx context.Context, poolID string if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5732,7 +5731,7 @@ func (client *Client) rebootNodeHandleResponse(resp *http.Response) (RebootNodeR result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5805,8 +5804,8 @@ func (client *Client) reimageNodeCreateRequest(ctx context.Context, poolID strin if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -5831,7 +5830,7 @@ func (client *Client) reimageNodeHandleResponse(resp *http.Response) (ReimageNod result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -5855,13 +5854,13 @@ func (client *Client) reimageNodeHandleResponse(resp *http.Response) (ReimageNod // // Generated from API version 2024-07-01.20.0 // - poolID - The ID of the Pool to get. -// - content - The options to use for removing the node. +// - removeOptions - The options to use for removing the node. // - options - RemoveNodesOptions contains the optional parameters for the Client.RemoveNodes method. -func (client *Client) RemoveNodes(ctx context.Context, poolID string, content RemoveNodeContent, options *RemoveNodesOptions) (RemoveNodesResponse, error) { +func (client *Client) RemoveNodes(ctx context.Context, poolID string, removeOptions RemoveNodeOptions, options *RemoveNodesOptions) (RemoveNodesResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.RemoveNodes", client.internal.Tracer(), nil) defer func() { endSpan(err) }() - req, err := client.removeNodesCreateRequest(ctx, poolID, content, options) + req, err := client.removeNodesCreateRequest(ctx, poolID, removeOptions, options) if err != nil { return RemoveNodesResponse{}, err } @@ -5878,7 +5877,7 @@ func (client *Client) RemoveNodes(ctx context.Context, poolID string, content Re } // removeNodesCreateRequest creates the RemoveNodes request. -func (client *Client) removeNodesCreateRequest(ctx context.Context, poolID string, content RemoveNodeContent, options *RemoveNodesOptions) (*policy.Request, error) { +func (client *Client) removeNodesCreateRequest(ctx context.Context, poolID string, removeOptions RemoveNodeOptions, options *RemoveNodesOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/removenodes" @@ -5898,13 +5897,13 @@ func (client *Client) removeNodesCreateRequest(ctx context.Context, poolID strin req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -5912,14 +5911,14 @@ func (client *Client) removeNodesCreateRequest(ctx context.Context, poolID strin if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} } req.Raw().Header["Content-Type"] = []string{"application/json; odata=minimalmetadata"} - if err := runtime.MarshalAsJSON(req, content); err != nil { + if err := runtime.MarshalAsJSON(req, removeOptions); err != nil { return nil, err } return req, nil @@ -5935,7 +5934,7 @@ func (client *Client) removeNodesHandleResponse(resp *http.Response) (RemoveNode result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6002,13 +6001,13 @@ func (client *Client) replaceJobCreateRequest(ctx context.Context, jobID string, req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -6016,8 +6015,8 @@ func (client *Client) replaceJobCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6039,7 +6038,7 @@ func (client *Client) replaceJobHandleResponse(resp *http.Response) (ReplaceJobR result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6108,13 +6107,13 @@ func (client *Client) replaceJobScheduleCreateRequest(ctx context.Context, jobSc req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -6122,8 +6121,8 @@ func (client *Client) replaceJobScheduleCreateRequest(ctx context.Context, jobSc if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6145,7 +6144,7 @@ func (client *Client) replaceJobScheduleHandleResponse(resp *http.Response) (Rep result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6172,13 +6171,13 @@ func (client *Client) replaceJobScheduleHandleResponse(resp *http.Response) (Rep // - poolID - The ID of the Pool that contains the Compute Node. // - nodeID - The ID of the machine on which you want to update a user Account. // - userName - The name of the user Account to update. -// - content - The options to use for updating the user. +// - updateOptions - The options to use for updating the user. // - options - ReplaceNodeUserOptions contains the optional parameters for the Client.ReplaceNodeUser method. -func (client *Client) ReplaceNodeUser(ctx context.Context, poolID string, nodeID string, userName string, content UpdateNodeUserContent, options *ReplaceNodeUserOptions) (ReplaceNodeUserResponse, error) { +func (client *Client) ReplaceNodeUser(ctx context.Context, poolID string, nodeID string, userName string, updateOptions UpdateNodeUserOptions, options *ReplaceNodeUserOptions) (ReplaceNodeUserResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.ReplaceNodeUser", client.internal.Tracer(), nil) defer func() { endSpan(err) }() - req, err := client.replaceNodeUserCreateRequest(ctx, poolID, nodeID, userName, content, options) + req, err := client.replaceNodeUserCreateRequest(ctx, poolID, nodeID, userName, updateOptions, options) if err != nil { return ReplaceNodeUserResponse{}, err } @@ -6195,7 +6194,7 @@ func (client *Client) ReplaceNodeUser(ctx context.Context, poolID string, nodeID } // replaceNodeUserCreateRequest creates the ReplaceNodeUser request. -func (client *Client) replaceNodeUserCreateRequest(ctx context.Context, poolID string, nodeID string, userName string, content UpdateNodeUserContent, options *ReplaceNodeUserOptions) (*policy.Request, error) { +func (client *Client) replaceNodeUserCreateRequest(ctx context.Context, poolID string, nodeID string, userName string, updateOptions UpdateNodeUserOptions, options *ReplaceNodeUserOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/nodes/{nodeId}/users/{userName}" @@ -6225,14 +6224,14 @@ func (client *Client) replaceNodeUserCreateRequest(ctx context.Context, poolID s if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} } req.Raw().Header["Content-Type"] = []string{"application/json; odata=minimalmetadata"} - if err := runtime.MarshalAsJSON(req, content); err != nil { + if err := runtime.MarshalAsJSON(req, updateOptions); err != nil { return nil, err } return req, nil @@ -6248,7 +6247,7 @@ func (client *Client) replaceNodeUserHandleResponse(resp *http.Response) (Replac result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6274,7 +6273,7 @@ func (client *Client) replaceNodeUserHandleResponse(resp *http.Response) (Replac // - poolID - The ID of the Pool to update. // - pool - The options to use for replacing properties on the pool. // - options - ReplacePoolPropertiesOptions contains the optional parameters for the Client.ReplacePoolProperties method. -func (client *Client) ReplacePoolProperties(ctx context.Context, poolID string, pool ReplacePoolContent, options *ReplacePoolPropertiesOptions) (ReplacePoolPropertiesResponse, error) { +func (client *Client) ReplacePoolProperties(ctx context.Context, poolID string, pool ReplacePoolOptions, options *ReplacePoolPropertiesOptions) (ReplacePoolPropertiesResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.ReplacePoolProperties", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -6295,7 +6294,7 @@ func (client *Client) ReplacePoolProperties(ctx context.Context, poolID string, } // replacePoolPropertiesCreateRequest creates the ReplacePoolProperties request. -func (client *Client) replacePoolPropertiesCreateRequest(ctx context.Context, poolID string, pool ReplacePoolContent, options *ReplacePoolPropertiesOptions) (*policy.Request, error) { +func (client *Client) replacePoolPropertiesCreateRequest(ctx context.Context, poolID string, pool ReplacePoolOptions, options *ReplacePoolPropertiesOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/updateproperties" @@ -6317,8 +6316,8 @@ func (client *Client) replacePoolPropertiesCreateRequest(ctx context.Context, po if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6340,7 +6339,7 @@ func (client *Client) replacePoolPropertiesHandleResponse(resp *http.Response) ( result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6408,13 +6407,13 @@ func (client *Client) replaceTaskCreateRequest(ctx context.Context, jobID string req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -6422,8 +6421,8 @@ func (client *Client) replaceTaskCreateRequest(ctx context.Context, jobID string if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6445,7 +6444,7 @@ func (client *Client) replaceTaskHandleResponse(resp *http.Response) (ReplaceTas result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6473,13 +6472,13 @@ func (client *Client) replaceTaskHandleResponse(resp *http.Response) (ReplaceTas // // Generated from API version 2024-07-01.20.0 // - poolID - The ID of the Pool to get. -// - content - The options to use for resizing the pool. +// - resizeOptions - The options to use for resizing the pool. // - options - ResizePoolOptions contains the optional parameters for the Client.ResizePool method. -func (client *Client) ResizePool(ctx context.Context, poolID string, content ResizePoolContent, options *ResizePoolOptions) (ResizePoolResponse, error) { +func (client *Client) ResizePool(ctx context.Context, poolID string, resizeOptions ResizePoolOptions, options *ResizePoolOptions) (ResizePoolResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.ResizePool", client.internal.Tracer(), nil) defer func() { endSpan(err) }() - req, err := client.resizePoolCreateRequest(ctx, poolID, content, options) + req, err := client.resizePoolCreateRequest(ctx, poolID, resizeOptions, options) if err != nil { return ResizePoolResponse{}, err } @@ -6496,7 +6495,7 @@ func (client *Client) ResizePool(ctx context.Context, poolID string, content Res } // resizePoolCreateRequest creates the ResizePool request. -func (client *Client) resizePoolCreateRequest(ctx context.Context, poolID string, content ResizePoolContent, options *ResizePoolOptions) (*policy.Request, error) { +func (client *Client) resizePoolCreateRequest(ctx context.Context, poolID string, resizeOptions ResizePoolOptions, options *ResizePoolOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/resize" @@ -6516,13 +6515,13 @@ func (client *Client) resizePoolCreateRequest(ctx context.Context, poolID string req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -6530,14 +6529,14 @@ func (client *Client) resizePoolCreateRequest(ctx context.Context, poolID string if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} } req.Raw().Header["Content-Type"] = []string{"application/json; odata=minimalmetadata"} - if err := runtime.MarshalAsJSON(req, content); err != nil { + if err := runtime.MarshalAsJSON(req, resizeOptions); err != nil { return nil, err } return req, nil @@ -6553,7 +6552,7 @@ func (client *Client) resizePoolHandleResponse(resp *http.Response) (ResizePoolR result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6624,8 +6623,8 @@ func (client *Client) startNodeCreateRequest(ctx context.Context, poolID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6643,7 +6642,7 @@ func (client *Client) startNodeHandleResponse(resp *http.Response) (StartNodeRes result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6713,13 +6712,13 @@ func (client *Client) stopPoolResizeCreateRequest(ctx context.Context, poolID st req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -6727,8 +6726,8 @@ func (client *Client) stopPoolResizeCreateRequest(ctx context.Context, poolID st if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6746,7 +6745,7 @@ func (client *Client) stopPoolResizeHandleResponse(resp *http.Response) (StopPoo result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6818,13 +6817,13 @@ func (client *Client) terminateJobCreateRequest(ctx context.Context, jobID strin req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -6832,8 +6831,8 @@ func (client *Client) terminateJobCreateRequest(ctx context.Context, jobID strin if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6858,7 +6857,7 @@ func (client *Client) terminateJobHandleResponse(resp *http.Response) (Terminate result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -6925,13 +6924,13 @@ func (client *Client) terminateJobScheduleCreateRequest(ctx context.Context, job req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -6939,8 +6938,8 @@ func (client *Client) terminateJobScheduleCreateRequest(ctx context.Context, job if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -6958,7 +6957,7 @@ func (client *Client) terminateJobScheduleHandleResponse(resp *http.Response) (T result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -7029,13 +7028,13 @@ func (client *Client) terminateTaskCreateRequest(ctx context.Context, jobID stri req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -7043,8 +7042,8 @@ func (client *Client) terminateTaskCreateRequest(ctx context.Context, jobID stri if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -7062,7 +7061,7 @@ func (client *Client) terminateTaskHandleResponse(resp *http.Response) (Terminat result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -7088,7 +7087,7 @@ func (client *Client) terminateTaskHandleResponse(resp *http.Response) (Terminat // - jobID - The ID of the Job whose properties you want to update. // - job - The options to use for updating the Job. // - options - UpdateJobOptions contains the optional parameters for the Client.UpdateJob method. -func (client *Client) UpdateJob(ctx context.Context, jobID string, job UpdateJobContent, options *UpdateJobOptions) (UpdateJobResponse, error) { +func (client *Client) UpdateJob(ctx context.Context, jobID string, job UpdateJobOptions, options *UpdateJobOptions) (UpdateJobResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.UpdateJob", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -7109,7 +7108,7 @@ func (client *Client) UpdateJob(ctx context.Context, jobID string, job UpdateJob } // updateJobCreateRequest creates the UpdateJob request. -func (client *Client) updateJobCreateRequest(ctx context.Context, jobID string, job UpdateJobContent, options *UpdateJobOptions) (*policy.Request, error) { +func (client *Client) updateJobCreateRequest(ctx context.Context, jobID string, job UpdateJobOptions, options *UpdateJobOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/jobs/{jobId}" @@ -7129,13 +7128,13 @@ func (client *Client) updateJobCreateRequest(ctx context.Context, jobID string, req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -7143,8 +7142,8 @@ func (client *Client) updateJobCreateRequest(ctx context.Context, jobID string, if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -7166,7 +7165,7 @@ func (client *Client) updateJobHandleResponse(resp *http.Response) (UpdateJobRes result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -7194,7 +7193,7 @@ func (client *Client) updateJobHandleResponse(resp *http.Response) (UpdateJobRes // - jobScheduleID - The ID of the Job Schedule to update. // - jobSchedule - The options to use for updating the Job Schedule. // - options - UpdateJobScheduleOptions contains the optional parameters for the Client.UpdateJobSchedule method. -func (client *Client) UpdateJobSchedule(ctx context.Context, jobScheduleID string, jobSchedule UpdateJobScheduleContent, options *UpdateJobScheduleOptions) (UpdateJobScheduleResponse, error) { +func (client *Client) UpdateJobSchedule(ctx context.Context, jobScheduleID string, jobSchedule UpdateJobScheduleOptions, options *UpdateJobScheduleOptions) (UpdateJobScheduleResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.UpdateJobSchedule", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -7215,7 +7214,7 @@ func (client *Client) UpdateJobSchedule(ctx context.Context, jobScheduleID strin } // updateJobScheduleCreateRequest creates the UpdateJobSchedule request. -func (client *Client) updateJobScheduleCreateRequest(ctx context.Context, jobScheduleID string, jobSchedule UpdateJobScheduleContent, options *UpdateJobScheduleOptions) (*policy.Request, error) { +func (client *Client) updateJobScheduleCreateRequest(ctx context.Context, jobScheduleID string, jobSchedule UpdateJobScheduleOptions, options *UpdateJobScheduleOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/jobschedules/{jobScheduleId}" @@ -7235,13 +7234,13 @@ func (client *Client) updateJobScheduleCreateRequest(ctx context.Context, jobSch req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -7249,8 +7248,8 @@ func (client *Client) updateJobScheduleCreateRequest(ctx context.Context, jobSch if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -7272,7 +7271,7 @@ func (client *Client) updateJobScheduleHandleResponse(resp *http.Response) (Upda result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -7298,7 +7297,7 @@ func (client *Client) updateJobScheduleHandleResponse(resp *http.Response) (Upda // - poolID - The ID of the Pool to get. // - pool - The pool properties to update. // - options - UpdatePoolOptions contains the optional parameters for the Client.UpdatePool method. -func (client *Client) UpdatePool(ctx context.Context, poolID string, pool UpdatePoolContent, options *UpdatePoolOptions) (UpdatePoolResponse, error) { +func (client *Client) UpdatePool(ctx context.Context, poolID string, pool UpdatePoolOptions, options *UpdatePoolOptions) (UpdatePoolResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.UpdatePool", client.internal.Tracer(), nil) defer func() { endSpan(err) }() @@ -7319,7 +7318,7 @@ func (client *Client) UpdatePool(ctx context.Context, poolID string, pool Update } // updatePoolCreateRequest creates the UpdatePool request. -func (client *Client) updatePoolCreateRequest(ctx context.Context, poolID string, pool UpdatePoolContent, options *UpdatePoolOptions) (*policy.Request, error) { +func (client *Client) updatePoolCreateRequest(ctx context.Context, poolID string, pool UpdatePoolOptions, options *UpdatePoolOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}" @@ -7339,13 +7338,13 @@ func (client *Client) updatePoolCreateRequest(ctx context.Context, poolID string req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { - req.Raw().Header["If-Match"] = []string{string(*options.IfMatch)} + req.Raw().Header["If-Match"] = []string{*options.IfMatch} } if options != nil && options.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{options.IfModifiedSince.Format(time.RFC1123)} } if options != nil && options.IfNoneMatch != nil { - req.Raw().Header["If-None-Match"] = []string{string(*options.IfNoneMatch)} + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } if options != nil && options.IfUnmodifiedSince != nil { req.Raw().Header["If-Unmodified-Since"] = []string{options.IfUnmodifiedSince.Format(time.RFC1123)} @@ -7353,8 +7352,8 @@ func (client *Client) updatePoolCreateRequest(ctx context.Context, poolID string if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -7376,7 +7375,7 @@ func (client *Client) updatePoolHandleResponse(resp *http.Response) (UpdatePoolR result.DataServiceID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -7404,13 +7403,13 @@ func (client *Client) updatePoolHandleResponse(resp *http.Response) (UpdatePoolR // - poolID - The ID of the Pool that contains the Compute Node. // - nodeID - The ID of the Compute Node for which you want to get the Remote Desktop // Protocol file. -// - content - The Azure Batch service log files upload options. +// - uploadOptions - The Azure Batch service log files upload options. // - options - UploadNodeLogsOptions contains the optional parameters for the Client.UploadNodeLogs method. -func (client *Client) UploadNodeLogs(ctx context.Context, poolID string, nodeID string, content UploadNodeLogsContent, options *UploadNodeLogsOptions) (UploadNodeLogsResponse, error) { +func (client *Client) UploadNodeLogs(ctx context.Context, poolID string, nodeID string, uploadOptions UploadNodeLogsOptions, options *UploadNodeLogsOptions) (UploadNodeLogsResponse, error) { var err error ctx, endSpan := runtime.StartSpan(ctx, "Client.UploadNodeLogs", client.internal.Tracer(), nil) defer func() { endSpan(err) }() - req, err := client.uploadNodeLogsCreateRequest(ctx, poolID, nodeID, content, options) + req, err := client.uploadNodeLogsCreateRequest(ctx, poolID, nodeID, uploadOptions, options) if err != nil { return UploadNodeLogsResponse{}, err } @@ -7427,7 +7426,7 @@ func (client *Client) UploadNodeLogs(ctx context.Context, poolID string, nodeID } // uploadNodeLogsCreateRequest creates the UploadNodeLogs request. -func (client *Client) uploadNodeLogsCreateRequest(ctx context.Context, poolID string, nodeID string, content UploadNodeLogsContent, options *UploadNodeLogsOptions) (*policy.Request, error) { +func (client *Client) uploadNodeLogsCreateRequest(ctx context.Context, poolID string, nodeID string, uploadOptions UploadNodeLogsOptions, options *UploadNodeLogsOptions) (*policy.Request, error) { host := "{endpoint}" host = strings.ReplaceAll(host, "{endpoint}", client.endpoint) urlPath := "/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs" @@ -7453,14 +7452,14 @@ func (client *Client) uploadNodeLogsCreateRequest(ctx context.Context, poolID st if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} } req.Raw().Header["Content-Type"] = []string{"application/json; odata=minimalmetadata"} - if err := runtime.MarshalAsJSON(req, content); err != nil { + if err := runtime.MarshalAsJSON(req, uploadOptions); err != nil { return nil, err } return req, nil @@ -7473,7 +7472,7 @@ func (client *Client) uploadNodeLogsHandleResponse(resp *http.Response) (UploadN result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) @@ -7556,8 +7555,8 @@ func (client *Client) listPoolUsageMetricsCreateRequest(ctx context.Context, opt if options != nil && options.ClientRequestID != nil { req.Raw().Header["client-request-id"] = []string{*options.ClientRequestID} } - if options != nil && options.OCPDate != nil { - req.Raw().Header["ocp-date"] = []string{options.OCPDate.Format(time.RFC1123)} + if options != nil && options.Ocpdate != nil { + req.Raw().Header["ocp-date"] = []string{options.Ocpdate.Format(time.RFC1123)} } if options != nil && options.ReturnClientRequestID != nil { req.Raw().Header["return-client-request-id"] = []string{strconv.FormatBool(*options.ReturnClientRequestID)} @@ -7572,7 +7571,7 @@ func (client *Client) listPoolUsageMetricsHandleResponse(resp *http.Response) (l result.ClientRequestID = &val } if val := resp.Header.Get("ETag"); val != "" { - result.ETag = (*azcore.ETag)(&val) + result.ETag = &val } if val := resp.Header.Get("Last-Modified"); val != "" { lastModified, err := time.Parse(time.RFC1123, val) diff --git a/sdk/batch/azbatch/constants.go b/sdk/batch/azbatch/constants.go index 6828956410a2..d2693ac35242 100644 --- a/sdk/batch/azbatch/constants.go +++ b/sdk/batch/azbatch/constants.go @@ -4,7 +4,7 @@ package azbatch -// AccessScope - AccessScope enums +// AccessScope - BatchAccessScope enums type AccessScope string const ( @@ -19,6 +19,24 @@ func PossibleAccessScopeValues() []AccessScope { } } +// AllTasksCompleteMode - The action the Batch service should take when all Tasks in the Job are in the completed state. +type AllTasksCompleteMode string + +const ( + // AllTasksCompleteModeNoAction - Do nothing. The Job remains active unless terminated or disabled by some other means. + AllTasksCompleteModeNoAction AllTasksCompleteMode = "noaction" + // AllTasksCompleteModeTerminateJob - Terminate the Job. The Job's terminationReason is set to 'AllTasksComplete'. + AllTasksCompleteModeTerminateJob AllTasksCompleteMode = "terminatejob" +) + +// PossibleAllTasksCompleteModeValues returns the possible values for the AllTasksCompleteMode const type. +func PossibleAllTasksCompleteModeValues() []AllTasksCompleteMode { + return []AllTasksCompleteMode{ + AllTasksCompleteModeNoAction, + AllTasksCompleteModeTerminateJob, + } +} + // AllocationState - AllocationState enums type AllocationState string @@ -352,21 +370,21 @@ func PossibleElevationLevelValues() []ElevationLevel { } } -// ErrorCategory - ErrorCategory enums -type ErrorCategory string +// ErrorSourceCategory - BatchErrorSourceCategory enums +type ErrorSourceCategory string const ( - // ErrorCategoryServerError - The error is due to an internal server issue. - ErrorCategoryServerError ErrorCategory = "servererror" - // ErrorCategoryUserError - The error is due to a user issue, such as misconfiguration. - ErrorCategoryUserError ErrorCategory = "usererror" + // ErrorSourceCategoryServerError - The error is due to an internal server issue. + ErrorSourceCategoryServerError ErrorSourceCategory = "servererror" + // ErrorSourceCategoryUserError - The error is due to a user issue, such as misconfiguration. + ErrorSourceCategoryUserError ErrorSourceCategory = "usererror" ) -// PossibleErrorCategoryValues returns the possible values for the ErrorCategory const type. -func PossibleErrorCategoryValues() []ErrorCategory { - return []ErrorCategory{ - ErrorCategoryServerError, - ErrorCategoryUserError, +// PossibleErrorSourceCategoryValues returns the possible values for the ErrorSourceCategory const type. +func PossibleErrorSourceCategoryValues() []ErrorSourceCategory { + return []ErrorSourceCategory{ + ErrorSourceCategoryServerError, + ErrorSourceCategoryUserError, } } @@ -430,24 +448,25 @@ func PossibleInboundEndpointProtocolValues() []InboundEndpointProtocol { } } -// JobAction - BatchJobAction enums -type JobAction string +// JobActionKind - BatchJobAction enums +type JobActionKind string const ( - // JobActionDisable - Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of requeue. - JobActionDisable JobAction = "disable" - // JobActionNone - Take no action. - JobActionNone JobAction = "none" - // JobActionTerminate - Terminate the Job. The terminationReason in the Job's executionInfo is set to "TaskFailed". - JobActionTerminate JobAction = "terminate" + // JobActionKindDisable - Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of + // requeue. + JobActionKindDisable JobActionKind = "disable" + // JobActionKindNone - Take no action. + JobActionKindNone JobActionKind = "none" + // JobActionKindTerminate - Terminate the Job. The terminationReason in the Job's executionInfo is set to "TaskFailed". + JobActionKindTerminate JobActionKind = "terminate" ) -// PossibleJobActionValues returns the possible values for the JobAction const type. -func PossibleJobActionValues() []JobAction { - return []JobAction{ - JobActionDisable, - JobActionNone, - JobActionTerminate, +// PossibleJobActionKindValues returns the possible values for the JobActionKind const type. +func PossibleJobActionKindValues() []JobActionKind { + return []JobActionKind{ + JobActionKindDisable, + JobActionKindNone, + JobActionKindTerminate, } } @@ -742,31 +761,31 @@ func PossibleNodePlacementPolicyTypeValues() []NodePlacementPolicyType { } } -// NodeRebootOption - BatchNodeRebootOption enums -type NodeRebootOption string +// NodeRebootKind - BatchNodeRebootKind enums +type NodeRebootKind string const ( - // NodeRebootOptionRequeue - Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute + // NodeRebootKindRequeue - Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute // Node is available. Restart the Compute Node as soon as Tasks have been terminated. - NodeRebootOptionRequeue NodeRebootOption = "requeue" - // NodeRebootOptionRetainedData - Allow currently running Tasks to complete, then wait for all Task data retention periods - // to expire. Schedule no new Tasks while waiting. Restart the Compute Node when all Task retention periods have expired. - NodeRebootOptionRetainedData NodeRebootOption = "retaineddata" - // NodeRebootOptionTaskCompletion - Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Restart + NodeRebootKindRequeue NodeRebootKind = "requeue" + // NodeRebootKindRetainedData - Allow currently running Tasks to complete, then wait for all Task data retention periods to + // expire. Schedule no new Tasks while waiting. Restart the Compute Node when all Task retention periods have expired. + NodeRebootKindRetainedData NodeRebootKind = "retaineddata" + // NodeRebootKindTaskCompletion - Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Restart // the Compute Node when all Tasks have completed. - NodeRebootOptionTaskCompletion NodeRebootOption = "taskcompletion" - // NodeRebootOptionTerminate - Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they - // were terminated, and will not run again. Restart the Compute Node as soon as Tasks have been terminated. - NodeRebootOptionTerminate NodeRebootOption = "terminate" + NodeRebootKindTaskCompletion NodeRebootKind = "taskcompletion" + // NodeRebootKindTerminate - Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were + // terminated, and will not run again. Restart the Compute Node as soon as Tasks have been terminated. + NodeRebootKindTerminate NodeRebootKind = "terminate" ) -// PossibleNodeRebootOptionValues returns the possible values for the NodeRebootOption const type. -func PossibleNodeRebootOptionValues() []NodeRebootOption { - return []NodeRebootOption{ - NodeRebootOptionRequeue, - NodeRebootOptionRetainedData, - NodeRebootOptionTaskCompletion, - NodeRebootOptionTerminate, +// PossibleNodeRebootKindValues returns the possible values for the NodeRebootKind const type. +func PossibleNodeRebootKindValues() []NodeRebootKind { + return []NodeRebootKind{ + NodeRebootKindRequeue, + NodeRebootKindRetainedData, + NodeRebootKindTaskCompletion, + NodeRebootKindTerminate, } } @@ -882,42 +901,6 @@ func PossibleOSTypeValues() []OSType { } } -// OnAllTasksComplete - The action the Batch service should take when all Tasks in the Job are in the completed state. -type OnAllTasksComplete string - -const ( - // OnAllTasksCompleteNoAction - Do nothing. The Job remains active unless terminated or disabled by some other means. - OnAllTasksCompleteNoAction OnAllTasksComplete = "noaction" - // OnAllTasksCompleteTerminateJob - Terminate the Job. The Job's terminationReason is set to 'AllTasksComplete'. - OnAllTasksCompleteTerminateJob OnAllTasksComplete = "terminatejob" -) - -// PossibleOnAllTasksCompleteValues returns the possible values for the OnAllTasksComplete const type. -func PossibleOnAllTasksCompleteValues() []OnAllTasksComplete { - return []OnAllTasksComplete{ - OnAllTasksCompleteNoAction, - OnAllTasksCompleteTerminateJob, - } -} - -// OnTaskFailure - OnTaskFailure enums -type OnTaskFailure string - -const ( - // OnTaskFailureNoAction - Do nothing. The Job remains active unless terminated or disabled by some other means. - OnTaskFailureNoAction OnTaskFailure = "noaction" - // OnTaskFailurePerformExitOptionsJobAction - Terminate the Job. The Job's terminationReason is set to 'AllTasksComplete'. - OnTaskFailurePerformExitOptionsJobAction OnTaskFailure = "performexitoptionsjobaction" -) - -// PossibleOnTaskFailureValues returns the possible values for the OnTaskFailure const type. -func PossibleOnTaskFailureValues() []OnTaskFailure { - return []OnTaskFailure{ - OnTaskFailureNoAction, - OnTaskFailurePerformExitOptionsJobAction, - } -} - // OutputFileUploadCondition - OutputFileUploadCondition enums type OutputFileUploadCondition string @@ -1185,6 +1168,24 @@ func PossibleTaskExecutionResultValues() []TaskExecutionResult { } } +// TaskFailureMode - TaskFailure enums +type TaskFailureMode string + +const ( + // TaskFailureModeNoAction - Do nothing. The Job remains active unless terminated or disabled by some other means. + TaskFailureModeNoAction TaskFailureMode = "noaction" + // TaskFailureModePerformExitOptionsJobAction - Terminate the Job. The Job's terminationReason is set to 'AllTasksComplete'. + TaskFailureModePerformExitOptionsJobAction TaskFailureMode = "performexitoptionsjobaction" +) + +// PossibleTaskFailureModeValues returns the possible values for the TaskFailureMode const type. +func PossibleTaskFailureModeValues() []TaskFailureMode { + return []TaskFailureMode{ + TaskFailureModeNoAction, + TaskFailureModePerformExitOptionsJobAction, + } +} + // TaskState - BatchTaskState enums type TaskState string diff --git a/sdk/batch/azbatch/models.go b/sdk/batch/azbatch/models.go index be23dd819395..e15bbc39b8e9 100644 --- a/sdk/batch/azbatch/models.go +++ b/sdk/batch/azbatch/models.go @@ -5,9 +5,8 @@ package azbatch import ( - "time" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "time" ) // AccountListSupportedImagesResult - The result of listing the supported Virtual Machine Images. @@ -19,12 +18,6 @@ type AccountListSupportedImagesResult struct { Value []SupportedImage } -// AddTaskCollectionResult - The result of adding a collection of Tasks to a Job. -type AddTaskCollectionResult struct { - // The results of the add Task collection operation. - Value []TaskAddResult -} - // AffinityInfo - A locality hint that can be used by the Batch service to select a Compute Node // on which to start a Task. type AffinityInfo struct { @@ -224,7 +217,7 @@ type CIFSMountConfiguration struct { // authenticate operations on the machine. type Certificate struct { // REQUIRED; The base64-encoded contents of the Certificate. The maximum size is 10KB. - Data *string + Data []byte // REQUIRED; The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but // these are removed). @@ -343,8 +336,8 @@ type ContainerRegistryReference struct { Username *string } -// CreateJobContent - Parameters for creating an Azure Batch Job. -type CreateJobContent struct { +// CreateJobOptions - Parameters for creating an Azure Batch Job. +type CreateJobOptions struct { // REQUIRED; A string that uniquely identifies the Job within the Account. The ID can contain any combination of alphanumeric // characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and // case-insensitive (that is, you may not have two IDs within an Account that differ only by case). @@ -353,6 +346,13 @@ type CreateJobContent struct { // REQUIRED; The Pool on which the Batch service runs the Job's Tasks. PoolInfo *PoolInfo + // The action the Batch service should take when all Tasks in the Job are in the completed state. Note that if a Job contains + // no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; + // if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction + // and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default + // is noaction. + AllTasksCompleteMode *AllTasksCompleteMode + // Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority // jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's // allowTaskPreemption after it has been created using the update job API. @@ -402,28 +402,21 @@ type CreateJobContent struct { // The network configuration for the Job. NetworkConfiguration *JobNetworkConfiguration - // The action the Batch service should take when all Tasks in the Job are in the completed state. Note that if a Job contains - // no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; - // if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction - // and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default - // is noaction. - OnAllTasksComplete *OnAllTasksComplete + // The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being + // the highest priority. The default value is 0. + Priority *int32 // The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. // A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was // an error starting the Task, for example due to a resource file download error. The default is noaction. - OnTaskFailure *OnTaskFailure - - // The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being - // the highest priority. The default value is 0. - Priority *int32 + TaskFailureMode *TaskFailureMode // Whether Tasks in the Job can define dependencies on each other. The default is false. UsesTaskDependencies *bool } -// CreateJobScheduleContent - Parameters for creating an Azure Batch Job Schedule -type CreateJobScheduleContent struct { +// CreateJobScheduleOptions - Parameters for creating an Azure Batch Job Schedule +type CreateJobScheduleOptions struct { // REQUIRED; A string that uniquely identifies the schedule within the Account. The ID can contain any combination of alphanumeric // characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and // case-insensitive (that is, you may not have two IDs within an Account that differ only by case). @@ -445,8 +438,8 @@ type CreateJobScheduleContent struct { Metadata []MetadataItem } -// CreateNodeUserContent - Parameters for creating a user account for RDP or SSH access on an Azure Batch Compute Node. -type CreateNodeUserContent struct { +// CreateNodeUserOptions - Parameters for creating a user account for RDP or SSH access on an Azure Batch Compute Node. +type CreateNodeUserOptions struct { // REQUIRED; The user name of the Account. Name *string @@ -468,8 +461,8 @@ type CreateNodeUserContent struct { SSHPublicKey *string } -// CreatePoolContent - Parameters for creating an Azure Batch Pool. -type CreatePoolContent struct { +// CreatePoolOptions - Parameters for creating an Azure Batch Pool. +type CreatePoolOptions struct { // REQUIRED; A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric // characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and // case-insensitive (that is, you may not have two Pool IDs within an Account that differ only by case). @@ -578,8 +571,14 @@ type CreatePoolContent struct { VirtualMachineConfiguration *VirtualMachineConfiguration } -// CreateTaskContent - Parameters for creating an Azure Batch Task. -type CreateTaskContent struct { +// CreateTaskCollectionResult - The result of creating a collection of Tasks to a Job. +type CreateTaskCollectionResult struct { + // The results of the create Task collection operation. + Values []TaskCreateResult +} + +// CreateTaskOptions - Parameters for creating an Azure Batch Task. +type CreateTaskOptions struct { // REQUIRED; The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after // the primary Task and all subtasks have finished executing the coordination command line. The command line does not run // under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want @@ -679,8 +678,8 @@ type DataDisk struct { StorageAccountType *StorageAccountType } -// DeallocateNodeContent - Options for deallocating a Compute Node. -type DeallocateNodeContent struct { +// DeallocateNodeOptions - Options for deallocating a Compute Node. +type DeallocateNodeOptions struct { // When to deallocate the Compute Node and what to do with currently running Tasks. The default value is requeue. NodeDeallocateOption *NodeDeallocateOption } @@ -709,14 +708,14 @@ type DiffDiskSettings struct { Placement *DiffDiskPlacement } -// DisableJobContent - Parameters for disabling an Azure Batch Job. -type DisableJobContent struct { +// DisableJobOptions - Parameters for disabling an Azure Batch Job. +type DisableJobOptions struct { // REQUIRED; What to do with active Tasks associated with the Job. DisableTasks *DisableJobOption } -// DisableNodeSchedulingContent - Parameters for disabling scheduling on an Azure Batch Compute Node. -type DisableNodeSchedulingContent struct { +// DisableNodeSchedulingOptions - Parameters for disabling scheduling on an Azure Batch Compute Node. +type DisableNodeSchedulingOptions struct { // What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue. NodeDisableSchedulingOption *NodeDisableSchedulingOption } @@ -730,8 +729,8 @@ type DiskEncryptionConfiguration struct { Targets []DiskEncryptionTarget } -// EnablePoolAutoScaleContent - Parameters for enabling automatic scaling on an Azure Batch Pool. -type EnablePoolAutoScaleContent struct { +// EnablePoolAutoScaleOptions - Parameters for enabling automatic scaling on an Azure Batch Pool. +type EnablePoolAutoScaleOptions struct { // The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value // is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than // 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you @@ -788,8 +787,8 @@ type ErrorMessage struct { Value *string } -// EvaluatePoolAutoScaleContent - Parameters for evaluating an automatic scaling formula on an Azure Batch Pool. -type EvaluatePoolAutoScaleContent struct { +// EvaluatePoolAutoScaleOptions - Parameters for evaluating an automatic scaling formula on an Azure Batch Pool. +type EvaluatePoolAutoScaleOptions struct { // REQUIRED; The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, // but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information // about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://learn.microsoft.com/azure/batch/batch-automatic-scaling). @@ -855,7 +854,7 @@ type ExitOptions struct { // If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request // fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad // Request). - JobAction *JobAction + JobAction *JobActionKind } // FileProperties - The properties of a file on a Compute Node. @@ -876,54 +875,6 @@ type FileProperties struct { FileMode *string } -// HTTPHeader - An HTTP header name-value pair -type HTTPHeader struct { - // REQUIRED; The case-insensitive name of the header to be used while uploading output files. - Name *string - - // The value of the header to be used while uploading output files. - Value *string -} - -// ImageReference - A reference to an Azure Virtual Machines Marketplace Image or a Azure Compute Gallery Image. -// To get the list of all Azure Marketplace Image references verified by Azure Batch, see the -// ' List Supported Images ' operation. -type ImageReference struct { - // The community gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched - // from community gallery image GET call. - CommunityGalleryImageID *string - - // The offer type of the Azure Virtual Machines Marketplace Image. For example, UbuntuServer or WindowsServer. - Offer *string - - // The publisher of the Azure Virtual Machines Marketplace Image. For example, Canonical or MicrosoftWindowsServer. - Publisher *string - - // The SKU of the Azure Virtual Machines Marketplace Image. For example, 18.04-LTS or 2019-Datacenter. - SKU *string - - // The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched - // from shared gallery image GET call. - SharedGalleryImageID *string - - // The version of the Azure Virtual Machines Marketplace Image. A value of 'latest' can be specified to select the latest - // version of an Image. If omitted, the default is 'latest'. - Version *string - - // The ARM resource identifier of the Azure Compute Gallery Image. Compute Nodes in the Pool will be created using this Image - // Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} - // or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} - // for always defaulting to the latest image version. This property is mutually exclusive with other ImageReference properties. - // The Azure Compute Gallery Image must have replicas in the same region and must be in the same subscription as the Azure - // Batch account. If the image version is not specified in the imageId, the latest version will be used. For information about - // the firewall settings for the Batch Compute Node agent to communicate with the Batch service see https://learn.microsoft.com/azure/batch/nodes-and-pools#virtual-network-vnet-and-firewall-configuration. - VirtualMachineImageID *string - - // READ-ONLY; The specific version of the platform image or marketplace image used to create the node. This read-only field - // differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'. - ExactVersion *string -} - // InboundEndpoint - An inbound endpoint on a Compute Node. type InboundEndpoint struct { // REQUIRED; The backend port number of the endpoint. @@ -1003,6 +954,9 @@ type Job struct { // REQUIRED; The Pool settings associated with the Job. PoolInfo *PoolInfo + // The action the Batch service should take when all Tasks in the Job are in the completed state. The default is noaction. + AllTasksCompleteMode *AllTasksCompleteMode + // Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority // jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's // allowTaskPreemption after it has been created using the update job API. @@ -1020,9 +974,6 @@ type Job struct { // it is solely for the use of user code. Metadata []MetadataItem - // The action the Batch service should take when all Tasks in the Job are in the completed state. The default is noaction. - OnAllTasksComplete *OnAllTasksComplete - // The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being // the highest priority. The default value is 0. Priority *int32 @@ -1061,6 +1012,11 @@ type Job struct { // that has run any other Task of the Job. JobReleaseTask *JobReleaseTask + // READ-ONLY; Resource usage statistics for the entire lifetime of the Job. This property is populated only if the BatchJob + // was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately + // available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. + JobStatistics *JobStatistics + // READ-ONLY; The last modified time of the Job. This is the last time at which the Job level data, such as the Job state // or priority, changed. It does not factor in task-level changes such as adding new Tasks or Tasks changing state. LastModified *time.Time @@ -1068,11 +1024,6 @@ type Job struct { // READ-ONLY; The network configuration for the Job. NetworkConfiguration *JobNetworkConfiguration - // READ-ONLY; The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed - // if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, - // or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. - OnTaskFailure *OnTaskFailure - // READ-ONLY; The previous state of the Job. This property is not set if the Job is in its initial Active state. PreviousState *JobState @@ -1086,10 +1037,10 @@ type Job struct { // READ-ONLY; The time at which the Job entered its current state. StateTransitionTime *time.Time - // READ-ONLY; Resource usage statistics for the entire lifetime of the Job. This property is populated only if the BatchJob - // was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately - // available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. - Stats *JobStatistics + // READ-ONLY; The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed + // if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, + // or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. + TaskFailureMode *TaskFailureMode // READ-ONLY; The URL of the Job. URL *string @@ -1266,7 +1217,7 @@ type JobNetworkConfiguration struct { // REQUIRED; Whether to withdraw Compute Nodes from the virtual network to DNC when the job is terminated or deleted. If true, // nodes will remain joined to the virtual network to DNC. If false, nodes will automatically withdraw when the job ends. // Defaults to false. - SkipWithdrawFromVNet *bool + SkipWithdrawFromVnet *bool // REQUIRED; The ARM resource identifier of the virtual network subnet which Compute Nodes running Tasks from the Job will // join for the duration of the Task. The virtual network must be in the same region and subscription as the Azure Batch Account. @@ -1583,6 +1534,10 @@ type JobSchedule struct { // READ-ONLY; A string that uniquely identifies the schedule within the Account. ID *string + // READ-ONLY; The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. + // The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. + JobScheduleStatistics *JobScheduleStatistics + // READ-ONLY; The last modified time of the Job Schedule. This is the last time at which the schedule level data, such as // the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being // created or Jobs changing state. @@ -1602,10 +1557,6 @@ type JobSchedule struct { // READ-ONLY; The time at which the Job Schedule entered the current state. StateTransitionTime *time.Time - // READ-ONLY; The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. - // The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. - Stats *JobScheduleStatistics - // READ-ONLY; The URL of the Job Schedule. URL *string } @@ -1672,6 +1623,10 @@ type JobScheduleListResult struct { // JobScheduleStatistics - Resource usage statistics for a Job Schedule. type JobScheduleStatistics struct { + // REQUIRED; The total number of Tasks that failed during the given time range in Jobs created under the schedule. A Task + // fails if it exhausts its maximum retry count without returning exit code 0. + FailedTasksCount *int64 + // REQUIRED; The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs // created under the schedule. KernelCPUTime *string @@ -1680,26 +1635,22 @@ type JobScheduleStatistics struct { // and lastUpdateTime. LastUpdateTime *time.Time - // REQUIRED; The total number of Tasks that failed during the given time range in Jobs created under the schedule. A Task - // fails if it exhausts its maximum retry count without returning exit code 0. - NumFailedTasks *int64 - - // REQUIRED; The total number of Tasks successfully completed during the given time range in Jobs created under the schedule. - // A Task completes successfully if it returns exit code 0. - NumSucceededTasks *int64 - - // REQUIRED; The total number of retries during the given time range on all Tasks in all Jobs created under the schedule. - NumTaskRetries *int64 - - // REQUIRED; The total gibibytes read from disk by all Tasks in all Jobs created under the schedule. - ReadIOGiB *float32 - // REQUIRED; The total number of disk read operations made by all Tasks in all Jobs created under the schedule. ReadIOPS *int64 + // REQUIRED; The total gibibytes read from disk by all Tasks in all Jobs created under the schedule. + ReadIoGiB *float32 + // REQUIRED; The start time of the time range covered by the statistics. StartTime *time.Time + // REQUIRED; The total number of Tasks successfully completed during the given time range in Jobs created under the schedule. + // A Task completes successfully if it returns exit code 0. + SucceededTasksCount *int64 + + // REQUIRED; The total number of retries during the given time range on all Tasks in all Jobs created under the schedule. + TaskRetriesCount *int64 + // REQUIRED; The URL of the statistics. URL *string @@ -1719,17 +1670,17 @@ type JobScheduleStatistics struct { // Task retries. WallClockTime *string - // REQUIRED; The total gibibytes written to disk by all Tasks in all Jobs created under the schedule. - WriteIOGiB *float32 - // REQUIRED; The total number of disk write operations made by all Tasks in all Jobs created under the schedule. WriteIOPS *int64 + + // REQUIRED; The total gibibytes written to disk by all Tasks in all Jobs created under the schedule. + WriteIoGiB *float32 } // JobSchedulingError - An error encountered by the Batch service when scheduling a Job. type JobSchedulingError struct { // REQUIRED; The category of the Job scheduling error. - Category *ErrorCategory + Category *ErrorSourceCategory // An identifier for the Job scheduling error. Codes are invariant and are intended to be consumed programmatically. Code *string @@ -1746,6 +1697,13 @@ type JobSpecification struct { // REQUIRED; The Pool on which the Batch service runs the Tasks of Jobs created under this schedule. PoolInfo *PoolInfo + // The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. + // Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used + // with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete + // to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. + // The default is noaction. + AllTasksCompleteMode *AllTasksCompleteMode + // Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority // jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's // allowTaskPreemption after it has been created using the update job API. @@ -1791,23 +1749,16 @@ type JobSpecification struct { // The network configuration for the Job. NetworkConfiguration *JobNetworkConfiguration - // The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. - // Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used - // with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete - // to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. - // The default is noaction. - OnAllTasksComplete *OnAllTasksComplete + // The priority of Jobs created under this schedule. Priority values can range from -1000 to 1000, with -1000 being the lowest + // priority and 1000 being the highest priority. The default value is 0. This priority is used as the default for all Jobs + // under the Job Schedule. You can update a Job's priority after it has been created using by using the update Job API. + Priority *int32 // The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered // to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit // code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download // error. The default is noaction. - OnTaskFailure *OnTaskFailure - - // The priority of Jobs created under this schedule. Priority values can range from -1000 to 1000, with -1000 being the lowest - // priority and 1000 being the highest priority. The default value is 0. This priority is used as the default for all Jobs - // under the Job Schedule. You can update a Job's priority after it has been created using by using the update Job API. - Priority *int32 + TaskFailureMode *TaskFailureMode // Whether Tasks in the Job can define dependencies on each other. The default is false. UsesTaskDependencies *bool @@ -1815,6 +1766,10 @@ type JobSpecification struct { // JobStatistics - Resource usage statistics for a Job. type JobStatistics struct { + // REQUIRED; The total number of Tasks in the Job that failed during the given time range. A Task fails if it exhausts its + // maximum retry count without returning exit code 0. + FailedTasksCount *int64 + // REQUIRED; The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in the Job. KernelCPUTime *string @@ -1822,26 +1777,22 @@ type JobStatistics struct { // and lastUpdateTime. LastUpdateTime *time.Time - // REQUIRED; The total number of Tasks in the Job that failed during the given time range. A Task fails if it exhausts its - // maximum retry count without returning exit code 0. - NumFailedTasks *int64 - - // REQUIRED; The total number of Tasks successfully completed in the Job during the given time range. A Task completes successfully - // if it returns exit code 0. - NumSucceededTasks *int64 - - // REQUIRED; The total number of retries on all the Tasks in the Job during the given time range. - NumTaskRetries *int64 - // REQUIRED; The total amount of data in GiB read from disk by all Tasks in the Job. - ReadIOGiB *float32 + ReadIoGiB *float32 // REQUIRED; The total number of disk read operations made by all Tasks in the Job. - ReadIOps *int64 + ReadIops *int64 // REQUIRED; The start time of the time range covered by the statistics. StartTime *time.Time + // REQUIRED; The total number of Tasks successfully completed in the Job during the given time range. A Task completes successfully + // if it returns exit code 0. + SucceededTasksCount *int64 + + // REQUIRED; The total number of retries on all the Tasks in the Job during the given time range. + TaskRetriesCount *int64 + // REQUIRED; The URL of the statistics. URL *string @@ -1860,10 +1811,10 @@ type JobStatistics struct { WallClockTime *string // REQUIRED; The total amount of data in GiB written to disk by all Tasks in the Job. - WriteIOGiB *float32 + WriteIoGiB *float32 // REQUIRED; The total number of disk write operations made by all Tasks in the Job. - WriteIOps *int64 + WriteIops *int64 } // LinuxUserConfiguration - Properties used to create a user Account on a Linux Compute Node. @@ -1976,7 +1927,7 @@ type NameValuePair struct { // NetworkConfiguration - The network configuration for a Pool. type NetworkConfiguration struct { // The scope of dynamic vnet assignment. - DynamicVNetAssignmentScope *DynamicVNetAssignmentScope + DynamicVnetAssignmentScope *DynamicVNetAssignmentScope // Whether this pool should enable accelerated networking. Accelerated networking enables single root I/O virtualization (SR-IOV) // to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview. @@ -2304,8 +2255,8 @@ type NodeVMExtensionListResult struct { Value []NodeVMExtension } -// OSDisk - Settings for the operating system disk of the compute node (VM). -type OSDisk struct { +// OsDisk - Settings for the operating system disk of the compute node (VM). +type OsDisk struct { // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard // storage. ReadOnly for Premium storage. Caching *CachingType @@ -2364,7 +2315,7 @@ type OutputFileBlobContainerDestination struct { // A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading // files to Azure Storage. Official document on allowed headers when uploading blobs: https://learn.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types. - UploadHeaders []HTTPHeader + UploadHeaders []OutputFileUploadHeader } // OutputFileDestination - The destination to which a file should be uploaded. @@ -2380,6 +2331,15 @@ type OutputFileUploadConfig struct { UploadCondition *OutputFileUploadCondition } +// OutputFileUploadHeader - An HTTP header name-value pair +type OutputFileUploadHeader struct { + // REQUIRED; The case-insensitive name of the header to be used while uploading output files. + Name *string + + // The value of the header to be used while uploading output files. + Value *string +} + // Pool - A Pool in the Azure Batch service. type Pool struct { // A Task specified to run on each Compute Node as it joins the Pool. @@ -2477,6 +2437,12 @@ type Pool struct { // READ-ONLY; The network configuration for the Pool. NetworkConfiguration *NetworkConfiguration + // READ-ONLY; Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only + // if the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics + // may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about + // 30 minutes. + PoolStatistics *PoolStatistics + // READ-ONLY; A list of errors encountered while performing the last resize on the Pool. This property is set only if one // or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady. ResizeErrors []ResizeError @@ -2496,12 +2462,6 @@ type Pool struct { // READ-ONLY; The time at which the Pool entered its current state. StateTransitionTime *time.Time - // READ-ONLY; Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only - // if the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics - // may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about - // 30 minutes. - Stats *PoolStatistics - // READ-ONLY; The desired number of dedicated Compute Nodes in the Pool. TargetDedicatedNodes *int32 @@ -2745,10 +2705,10 @@ type PoolStatistics struct { URL *string // Statistics related to resource consumption by Compute Nodes in the Pool. - ResourceStats *PoolResourceStatistics + ResourceStatistics *PoolResourceStatistics // Statistics related to Pool usage, such as the amount of core-time used. - UsageStats *PoolUsageStatistics + UsageStatistics *PoolUsageStatistics } // PoolUsageStatistics - Statistics related to Pool usage information. @@ -2776,10 +2736,10 @@ type PublicIPAddressConfiguration struct { IPAddressProvisioningType *IPAddressProvisioningType } -// RebootNodeContent - Parameters for rebooting an Azure Batch Compute Node. -type RebootNodeContent struct { +// RebootNodeOptions - Parameters for rebooting an Azure Batch Compute Node. +type RebootNodeOptions struct { // When to reboot the Compute Node and what to do with currently running Tasks. The default value is requeue. - NodeRebootOption *NodeRebootOption + NodeRebootKind *NodeRebootKind } // RecentJob - Information about the most recent Job to run under the Job Schedule. @@ -2791,17 +2751,17 @@ type RecentJob struct { URL *string } -// ReimageNodeContent - Parameters for reimaging an Azure Batch Compute Node. -type ReimageNodeContent struct { +// ReimageNodeOptions - Parameters for reimaging an Azure Batch Compute Node. +type ReimageNodeOptions struct { // When to reimage the Compute Node and what to do with currently running Tasks. The default value is requeue. NodeReimageOption *NodeReimageOption } -// RemoveNodeContent - Parameters for removing nodes from an Azure Batch Pool. -type RemoveNodeContent struct { +// RemoveNodeOptions - Parameters for removing nodes from an Azure Batch Pool. +type RemoveNodeOptions struct { // REQUIRED; A list containing the IDs of the Compute Nodes to be removed from the specified Pool. A maximum of 100 nodes // may be removed per request. - NodeList []string + NodeIDs []string // Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default // value is requeue. @@ -2813,8 +2773,8 @@ type RemoveNodeContent struct { ResizeTimeout *string } -// ReplacePoolContent - Parameters for replacing properties on an Azure Batch Pool. -type ReplacePoolContent struct { +// ReplacePoolOptions - Parameters for replacing properties on an Azure Batch Pool. +type ReplacePoolOptions struct { // REQUIRED; The list of Application Packages to be installed on each Compute Node in the Pool. The list replaces any existing // Application Package references on the Pool. Changes to Application Package references affect all new Compute Nodes joining // the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a @@ -2860,8 +2820,8 @@ type ResizeError struct { Values []NameValuePair } -// ResizePoolContent - Parameters for changing the size of an Azure Batch Pool. -type ResizePoolContent struct { +// ResizePoolOptions - Parameters for changing the size of an Azure Batch Pool. +type ResizePoolOptions struct { // Determines what to do with a Compute Node and its running task(s) if the Pool size is decreasing. The default value is // requeue. NodeDeallocationOption *NodeDeallocationOption @@ -3138,7 +3098,7 @@ type Subtask struct { // information about the Image. type SupportedImage struct { // REQUIRED; The reference to the Azure Virtual Machine's Marketplace Image. - ImageReference *ImageReference + ImageReference *VMImageReference // REQUIRED; The ID of the Compute Node agent SKU which the Image supports. NodeAgentSKUID *string @@ -3275,7 +3235,7 @@ type Task struct { StateTransitionTime *time.Time // READ-ONLY; Resource usage statistics for the Task. - Stats *TaskStatistics + TaskStatistics *TaskStatistics // READ-ONLY; The URL of the Task. URL *string @@ -3285,29 +3245,6 @@ type Task struct { UserIdentity *UserIdentity } -// TaskAddResult - Result for a single Task added as part of an add Task collection operation. -type TaskAddResult struct { - // REQUIRED; The status of the add Task request. - Status *TaskAddStatus - - // REQUIRED; The ID of the Task for which this is the result. - TaskID *string - - // The ETag of the Task, if the Task was successfully added. You can use this to detect whether the Task has changed between - // requests. In particular, you can be pass the ETag with an Update Task request to specify that your changes should take - // effect only if nobody else has modified the Job in the meantime. - ETag *azcore.ETag - - // The error encountered while attempting to add the Task. - Error *Error - - // The last modified time of the Task. - LastModified *time.Time - - // The URL of the Task, if the Task was successfully added. - Location *string -} - // TaskConstraints - Execution constraints to apply to a Task. type TaskConstraints struct { // The maximum number of times the Task may be retried. The Batch service retries a Task if its exit code is nonzero. Note @@ -3392,6 +3329,29 @@ type TaskCountsResult struct { TaskSlotCounts *TaskSlotCounts } +// TaskCreateResult - Result for a single Task created as part of an add Task collection operation. +type TaskCreateResult struct { + // REQUIRED; The status of the add Task request. + Status *TaskAddStatus + + // REQUIRED; The ID of the Task for which this is the result. + TaskID *string + + // The ETag of the Task, if the Task was successfully added. You can use this to detect whether the Task has changed between + // requests. In particular, you can be pass the ETag with an Update Task request to specify that your changes should take + // effect only if nobody else has modified the Job in the meantime. + ETag *azcore.ETag + + // The error encountered while attempting to add the Task. + Error *Error + + // The last modified time of the Task. + LastModified *time.Time + + // The URL of the Task, if the Task was successfully added. + Location *string +} + // TaskDependencies - Specifies any dependencies of a Task. Any Task that is explicitly specified or // within a dependency range must complete before the dependant Task will be // scheduled. @@ -3462,7 +3422,7 @@ type TaskExecutionInfo struct { // TaskFailureInfo - Information about a Task failure. type TaskFailureInfo struct { // REQUIRED; The category of the Task error. - Category *ErrorCategory + Category *ErrorSourceCategory // An identifier for the Task error. Codes are invariant and are intended to be consumed programmatically. Code *string @@ -3479,7 +3439,7 @@ type TaskGroup struct { // REQUIRED; The collection of Tasks to add. The maximum count of Tasks is 100. The total serialized size of this collection // must be less than 1MB. If it is greater than 1MB (for example if each Task has 100's of resource files or environment variables), // the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer Tasks. - Value []CreateTaskContent + Values []CreateTaskOptions } // TaskIDRange - The start and end of the range are inclusive. For example, if a range has start @@ -3564,12 +3524,12 @@ type TaskStatistics struct { // and lastUpdateTime. LastUpdateTime *time.Time - // REQUIRED; The total gibibytes read from disk by the Task. - ReadIOGiB *float32 - // REQUIRED; The total number of disk read operations made by the Task. ReadIOPS *int64 + // REQUIRED; The total gibibytes read from disk by the Task. + ReadIoGiB *float32 + // REQUIRED; The start time of the time range covered by the statistics. StartTime *time.Time @@ -3589,15 +3549,15 @@ type TaskStatistics struct { // then). If the Task was retried, this includes the wall clock time of all the Task retries. WallClockTime *string - // REQUIRED; The total gibibytes written to disk by the Task. - WriteIOGiB *float32 - // REQUIRED; The total number of disk write operations made by the Task. WriteIOPS *int64 + + // REQUIRED; The total gibibytes written to disk by the Task. + WriteIoGiB *float32 } -// TerminateJobContent - Parameters for terminating an Azure Batch Job. -type TerminateJobContent struct { +// TerminateJobOptions - Parameters for terminating an Azure Batch Job. +type TerminateJobOptions struct { // The text you want to appear as the Job's TerminationReason. The default is 'UserTerminate'. TerminationReason *string } @@ -3611,8 +3571,14 @@ type UEFISettings struct { VTPMEnabled *bool } -// UpdateJobContent - Parameters for updating an Azure Batch Job. -type UpdateJobContent struct { +// UpdateJobOptions - Parameters for updating an Azure Batch Job. +type UpdateJobOptions struct { + // The action the Batch service should take when all Tasks in the Job are in the completed state. If omitted, the completion + // behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged + // automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property + // value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). + AllTasksCompleteMode *AllTasksCompleteMode + // Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority // jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's // allowTaskPreemption after it has been created using the update job API. @@ -3632,12 +3598,6 @@ type UpdateJobContent struct { // The network configuration for the Job. NetworkConfiguration *JobNetworkConfiguration - // The action the Batch service should take when all Tasks in the Job are in the completed state. If omitted, the completion - // behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged - // automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property - // value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). - OnAllTasksComplete *OnAllTasksComplete - // The Pool on which the Batch service runs the Job's Tasks. You may change the Pool for a Job only when the Job is disabled. // The Patch Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification // in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification @@ -3650,8 +3610,8 @@ type UpdateJobContent struct { Priority *int32 } -// UpdateJobScheduleContent - Parameters for updating an Azure Batch Job Schedule. -type UpdateJobScheduleContent struct { +// UpdateJobScheduleOptions - Parameters for updating an Azure Batch Job Schedule. +type UpdateJobScheduleOptions struct { // The details of the Jobs to be created on this schedule. Updates affect only Jobs that are started after the update has // taken place. Any currently active Job continues with the older specification. JobSpecification *JobSpecification @@ -3665,8 +3625,8 @@ type UpdateJobScheduleContent struct { Schedule *JobScheduleConfiguration } -// UpdateNodeUserContent - Parameters for updating a user account for RDP or SSH access on an Azure Batch Compute Node. -type UpdateNodeUserContent struct { +// UpdateNodeUserOptions - Parameters for updating a user account for RDP or SSH access on an Azure Batch Compute Node. +type UpdateNodeUserOptions struct { // The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute // Nodes, the expiryTime has a precision up to a day. ExpiryTime *time.Time @@ -3682,8 +3642,8 @@ type UpdateNodeUserContent struct { SSHPublicKey *string } -// UpdatePoolContent - Parameters for updating an Azure Batch Pool. -type UpdatePoolContent struct { +// UpdatePoolOptions - Parameters for updating an Azure Batch Pool. +type UpdatePoolOptions struct { // A list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes // joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. If // this element is present, it replaces any existing Package references. If you specify an empty collection, then all Package @@ -3780,8 +3740,8 @@ type UpgradePolicy struct { RollingUpgradePolicy *RollingUpgradePolicy } -// UploadNodeLogsContent - The Azure Batch service log files upload parameters for a Compute Node. -type UploadNodeLogsContent struct { +// UploadNodeLogsOptions - The Azure Batch service log files upload parameters for a Compute Node. +type UploadNodeLogsOptions struct { // REQUIRED; The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user // assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions // to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional @@ -3913,11 +3873,50 @@ type VMExtensionInstanceView struct { SubStatuses []InstanceViewStatus } +// VMImageReference - A reference to an Azure Virtual Machines Marketplace Image or a Azure Compute Gallery Image. +// To get the list of all Azure Marketplace Image references verified by Azure Batch, see the +// ' List Supported Images ' operation. +type VMImageReference struct { + // The community gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched + // from community gallery image GET call. + CommunityGalleryImageID *string + + // The offer type of the Azure Virtual Machines Marketplace Image. For example, UbuntuServer or WindowsServer. + Offer *string + + // The publisher of the Azure Virtual Machines Marketplace Image. For example, Canonical or MicrosoftWindowsServer. + Publisher *string + + // The SKU of the Azure Virtual Machines Marketplace Image. For example, 18.04-LTS or 2019-Datacenter. + SKU *string + + // The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched + // from shared gallery image GET call. + SharedGalleryImageID *string + + // The version of the Azure Virtual Machines Marketplace Image. A value of 'latest' can be specified to select the latest + // version of an Image. If omitted, the default is 'latest'. + Version *string + + // The ARM resource identifier of the Azure Compute Gallery Image. Compute Nodes in the Pool will be created using this Image + // Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} + // or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} + // for always defaulting to the latest image version. This property is mutually exclusive with other ImageReference properties. + // The Azure Compute Gallery Image must have replicas in the same region and must be in the same subscription as the Azure + // Batch account. If the image version is not specified in the imageId, the latest version will be used. For information about + // the firewall settings for the Batch Compute Node agent to communicate with the Batch service see https://learn.microsoft.com/azure/batch/nodes-and-pools#virtual-network-vnet-and-firewall-configuration. + VirtualMachineImageID *string + + // READ-ONLY; The specific version of the platform image or marketplace image used to create the node. This read-only field + // differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'. + ExactVersion *string +} + // VirtualMachineConfiguration - The configuration for Compute Nodes in a Pool based on the Azure Virtual // Machines infrastructure. type VirtualMachineConfiguration struct { // REQUIRED; A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine Image to use. - ImageReference *ImageReference + ImageReference *VMImageReference // REQUIRED; The SKU of the Batch Compute Node agent to be provisioned on Compute Nodes in the Pool. The Batch Compute Node // agent is a program that runs on each Compute Node in the Pool, and provides the command-and-control interface between the @@ -3962,7 +3961,7 @@ type VirtualMachineConfiguration struct { NodePlacementConfiguration *NodePlacementConfiguration // Settings for the operating system disk of the Virtual Machine. - OSDisk *OSDisk + OsDisk *OsDisk // Specifies the security profile settings for the virtual machine or virtual machine scale set. SecurityProfile *SecurityProfile @@ -3979,7 +3978,7 @@ type VirtualMachineConfiguration struct { // VirtualMachineInfo - Info about the current state of the virtual machine. type VirtualMachineInfo struct { // The reference to the Azure Virtual Machine's Marketplace Image. - ImageReference *ImageReference + ImageReference *VMImageReference // The resource ID of the Compute Node's current Virtual Machine Scale Set VM. Only defined if the Batch Account was created // with its poolAllocationMode property set to 'UserSubscription'. diff --git a/sdk/batch/azbatch/models_serde.go b/sdk/batch/azbatch/models_serde.go index b10c66a20608..55a1e903d653 100644 --- a/sdk/batch/azbatch/models_serde.go +++ b/sdk/batch/azbatch/models_serde.go @@ -7,11 +7,11 @@ package azbatch import ( "encoding/json" "fmt" - "reflect" - "strconv" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "reflect" + "strconv" ) // MarshalJSON implements the json.Marshaller interface for type AccountListSupportedImagesResult. @@ -45,33 +45,6 @@ func (a *AccountListSupportedImagesResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type AddTaskCollectionResult. -func (a AddTaskCollectionResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AddTaskCollectionResult. -func (a *AddTaskCollectionResult) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "value": - err = unpopulate(val, "Value", &a.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type AffinityInfo. func (a AffinityInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -542,7 +515,9 @@ func (c *CIFSMountConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Certificate. func (c Certificate) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "data", c.Data) + populateByteArray(objectMap, "data", c.Data, func() any { + return runtime.EncodeByteArray(c.Data, runtime.Base64StdFormat) + }) populate(objectMap, "deleteCertificateError", c.DeleteCertificateError) populate(objectMap, "certificateFormat", c.Format) populate(objectMap, "password", c.Password) @@ -567,7 +542,9 @@ func (c *Certificate) UnmarshalJSON(data []byte) error { var err error switch key { case "data": - err = unpopulate(val, "Data", &c.Data) + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.Data, runtime.Base64StdFormat) + } delete(rawMsg, key) case "deleteCertificateError": err = unpopulate(val, "DeleteCertificateError", &c.DeleteCertificateError) @@ -789,9 +766,10 @@ func (c *ContainerRegistryReference) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CreateJobContent. -func (c CreateJobContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type CreateJobOptions. +func (c CreateJobOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "onAllTasksComplete", c.AllTasksCompleteMode) populate(objectMap, "allowTaskPreemption", c.AllowTaskPreemption) populate(objectMap, "commonEnvironmentSettings", c.CommonEnvironmentSettings) populate(objectMap, "constraints", c.Constraints) @@ -803,16 +781,15 @@ func (c CreateJobContent) MarshalJSON() ([]byte, error) { populate(objectMap, "maxParallelTasks", c.MaxParallelTasks) populate(objectMap, "metadata", c.Metadata) populate(objectMap, "networkConfiguration", c.NetworkConfiguration) - populate(objectMap, "onAllTasksComplete", c.OnAllTasksComplete) - populate(objectMap, "onTaskFailure", c.OnTaskFailure) populate(objectMap, "poolInfo", c.PoolInfo) populate(objectMap, "priority", c.Priority) + populate(objectMap, "onTaskFailure", c.TaskFailureMode) populate(objectMap, "usesTaskDependencies", c.UsesTaskDependencies) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CreateJobContent. -func (c *CreateJobContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateJobOptions. +func (c *CreateJobOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -820,6 +797,9 @@ func (c *CreateJobContent) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "onAllTasksComplete": + err = unpopulate(val, "AllTasksCompleteMode", &c.AllTasksCompleteMode) + delete(rawMsg, key) case "allowTaskPreemption": err = unpopulate(val, "AllowTaskPreemption", &c.AllowTaskPreemption) delete(rawMsg, key) @@ -853,18 +833,15 @@ func (c *CreateJobContent) UnmarshalJSON(data []byte) error { case "networkConfiguration": err = unpopulate(val, "NetworkConfiguration", &c.NetworkConfiguration) delete(rawMsg, key) - case "onAllTasksComplete": - err = unpopulate(val, "OnAllTasksComplete", &c.OnAllTasksComplete) - delete(rawMsg, key) - case "onTaskFailure": - err = unpopulate(val, "OnTaskFailure", &c.OnTaskFailure) - delete(rawMsg, key) case "poolInfo": err = unpopulate(val, "PoolInfo", &c.PoolInfo) delete(rawMsg, key) case "priority": err = unpopulate(val, "Priority", &c.Priority) delete(rawMsg, key) + case "onTaskFailure": + err = unpopulate(val, "TaskFailureMode", &c.TaskFailureMode) + delete(rawMsg, key) case "usesTaskDependencies": err = unpopulate(val, "UsesTaskDependencies", &c.UsesTaskDependencies) delete(rawMsg, key) @@ -876,8 +853,8 @@ func (c *CreateJobContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CreateJobScheduleContent. -func (c CreateJobScheduleContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type CreateJobScheduleOptions. +func (c CreateJobScheduleOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "displayName", c.DisplayName) populate(objectMap, "id", c.ID) @@ -887,8 +864,8 @@ func (c CreateJobScheduleContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CreateJobScheduleContent. -func (c *CreateJobScheduleContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateJobScheduleOptions. +func (c *CreateJobScheduleOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -919,8 +896,8 @@ func (c *CreateJobScheduleContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CreateNodeUserContent. -func (c CreateNodeUserContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type CreateNodeUserOptions. +func (c CreateNodeUserOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateDateTimeRFC3339(objectMap, "expiryTime", c.ExpiryTime) populate(objectMap, "isAdmin", c.IsAdmin) @@ -930,8 +907,8 @@ func (c CreateNodeUserContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CreateNodeUserContent. -func (c *CreateNodeUserContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateNodeUserOptions. +func (c *CreateNodeUserOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -962,8 +939,8 @@ func (c *CreateNodeUserContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CreatePoolContent. -func (c CreatePoolContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type CreatePoolOptions. +func (c CreatePoolOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "applicationPackageReferences", c.ApplicationPackageReferences) populate(objectMap, "autoScaleEvaluationInterval", c.AutoScaleEvaluationInterval) @@ -991,8 +968,8 @@ func (c CreatePoolContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CreatePoolContent. -func (c *CreatePoolContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CreatePoolOptions. +func (c *CreatePoolOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -1077,8 +1054,35 @@ func (c *CreatePoolContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CreateTaskContent. -func (c CreateTaskContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type CreateTaskCollectionResult. +func (c CreateTaskCollectionResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", c.Values) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateTaskCollectionResult. +func (c *CreateTaskCollectionResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Values", &c.Values) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CreateTaskOptions. +func (c CreateTaskOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "affinityInfo", c.AffinityInfo) populate(objectMap, "applicationPackageReferences", c.ApplicationPackageReferences) @@ -1099,8 +1103,8 @@ func (c CreateTaskContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CreateTaskContent. -func (c *CreateTaskContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateTaskOptions. +func (c *CreateTaskOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -1203,15 +1207,15 @@ func (d *DataDisk) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DeallocateNodeContent. -func (d DeallocateNodeContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type DeallocateNodeOptions. +func (d DeallocateNodeOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "nodeDeallocateOption", d.NodeDeallocateOption) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type DeallocateNodeContent. -func (d *DeallocateNodeContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DeallocateNodeOptions. +func (d *DeallocateNodeOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", d, err) @@ -1292,15 +1296,15 @@ func (d *DiffDiskSettings) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DisableJobContent. -func (d DisableJobContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type DisableJobOptions. +func (d DisableJobOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "disableTasks", d.DisableTasks) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type DisableJobContent. -func (d *DisableJobContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DisableJobOptions. +func (d *DisableJobOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", d, err) @@ -1319,15 +1323,15 @@ func (d *DisableJobContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DisableNodeSchedulingContent. -func (d DisableNodeSchedulingContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type DisableNodeSchedulingOptions. +func (d DisableNodeSchedulingOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "nodeDisableSchedulingOption", d.NodeDisableSchedulingOption) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type DisableNodeSchedulingContent. -func (d *DisableNodeSchedulingContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DisableNodeSchedulingOptions. +func (d *DisableNodeSchedulingOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", d, err) @@ -1373,16 +1377,16 @@ func (d *DiskEncryptionConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type EnablePoolAutoScaleContent. -func (e EnablePoolAutoScaleContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type EnablePoolAutoScaleOptions. +func (e EnablePoolAutoScaleOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "autoScaleEvaluationInterval", e.AutoScaleEvaluationInterval) populate(objectMap, "autoScaleFormula", e.AutoScaleFormula) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type EnablePoolAutoScaleContent. -func (e *EnablePoolAutoScaleContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type EnablePoolAutoScaleOptions. +func (e *EnablePoolAutoScaleOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", e, err) @@ -1532,15 +1536,15 @@ func (e *ErrorMessage) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type EvaluatePoolAutoScaleContent. -func (e EvaluatePoolAutoScaleContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type EvaluatePoolAutoScaleOptions. +func (e EvaluatePoolAutoScaleOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "autoScaleFormula", e.AutoScaleFormula) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type EvaluatePoolAutoScaleContent. -func (e *EvaluatePoolAutoScaleContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type EvaluatePoolAutoScaleOptions. +func (e *EvaluatePoolAutoScaleOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", e, err) @@ -1750,92 +1754,6 @@ func (f *FileProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type HTTPHeader. -func (h HTTPHeader) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "name", h.Name) - populate(objectMap, "value", h.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPHeader. -func (h *HTTPHeader) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", h, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "name": - err = unpopulate(val, "Name", &h.Name) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &h.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", h, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ImageReference. -func (i ImageReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "communityGalleryImageId", i.CommunityGalleryImageID) - populate(objectMap, "exactVersion", i.ExactVersion) - populate(objectMap, "offer", i.Offer) - populate(objectMap, "publisher", i.Publisher) - populate(objectMap, "sku", i.SKU) - populate(objectMap, "sharedGalleryImageId", i.SharedGalleryImageID) - populate(objectMap, "version", i.Version) - populate(objectMap, "virtualMachineImageId", i.VirtualMachineImageID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ImageReference. -func (i *ImageReference) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "communityGalleryImageId": - err = unpopulate(val, "CommunityGalleryImageID", &i.CommunityGalleryImageID) - delete(rawMsg, key) - case "exactVersion": - err = unpopulate(val, "ExactVersion", &i.ExactVersion) - delete(rawMsg, key) - case "offer": - err = unpopulate(val, "Offer", &i.Offer) - delete(rawMsg, key) - case "publisher": - err = unpopulate(val, "Publisher", &i.Publisher) - delete(rawMsg, key) - case "sku": - err = unpopulate(val, "SKU", &i.SKU) - delete(rawMsg, key) - case "sharedGalleryImageId": - err = unpopulate(val, "SharedGalleryImageID", &i.SharedGalleryImageID) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &i.Version) - delete(rawMsg, key) - case "virtualMachineImageId": - err = unpopulate(val, "VirtualMachineImageID", &i.VirtualMachineImageID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type InboundEndpoint. func (i InboundEndpoint) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -1976,6 +1894,7 @@ func (i *InstanceViewStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Job. func (j Job) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "onAllTasksComplete", j.AllTasksCompleteMode) populate(objectMap, "allowTaskPreemption", j.AllowTaskPreemption) populate(objectMap, "commonEnvironmentSettings", j.CommonEnvironmentSettings) populate(objectMap, "constraints", j.Constraints) @@ -1987,19 +1906,18 @@ func (j Job) MarshalJSON() ([]byte, error) { populate(objectMap, "jobManagerTask", j.JobManagerTask) populate(objectMap, "jobPreparationTask", j.JobPreparationTask) populate(objectMap, "jobReleaseTask", j.JobReleaseTask) + populate(objectMap, "stats", j.JobStatistics) populateDateTimeRFC3339(objectMap, "lastModified", j.LastModified) populate(objectMap, "maxParallelTasks", j.MaxParallelTasks) populate(objectMap, "metadata", j.Metadata) populate(objectMap, "networkConfiguration", j.NetworkConfiguration) - populate(objectMap, "onAllTasksComplete", j.OnAllTasksComplete) - populate(objectMap, "onTaskFailure", j.OnTaskFailure) populate(objectMap, "poolInfo", j.PoolInfo) populate(objectMap, "previousState", j.PreviousState) populateDateTimeRFC3339(objectMap, "previousStateTransitionTime", j.PreviousStateTransitionTime) populate(objectMap, "priority", j.Priority) populate(objectMap, "state", j.State) populateDateTimeRFC3339(objectMap, "stateTransitionTime", j.StateTransitionTime) - populate(objectMap, "stats", j.Stats) + populate(objectMap, "onTaskFailure", j.TaskFailureMode) populate(objectMap, "url", j.URL) populate(objectMap, "usesTaskDependencies", j.UsesTaskDependencies) return json.Marshal(objectMap) @@ -2014,6 +1932,9 @@ func (j *Job) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "onAllTasksComplete": + err = unpopulate(val, "AllTasksCompleteMode", &j.AllTasksCompleteMode) + delete(rawMsg, key) case "allowTaskPreemption": err = unpopulate(val, "AllowTaskPreemption", &j.AllowTaskPreemption) delete(rawMsg, key) @@ -2047,6 +1968,9 @@ func (j *Job) UnmarshalJSON(data []byte) error { case "jobReleaseTask": err = unpopulate(val, "JobReleaseTask", &j.JobReleaseTask) delete(rawMsg, key) + case "stats": + err = unpopulate(val, "JobStatistics", &j.JobStatistics) + delete(rawMsg, key) case "lastModified": err = unpopulateDateTimeRFC3339(val, "LastModified", &j.LastModified) delete(rawMsg, key) @@ -2059,12 +1983,6 @@ func (j *Job) UnmarshalJSON(data []byte) error { case "networkConfiguration": err = unpopulate(val, "NetworkConfiguration", &j.NetworkConfiguration) delete(rawMsg, key) - case "onAllTasksComplete": - err = unpopulate(val, "OnAllTasksComplete", &j.OnAllTasksComplete) - delete(rawMsg, key) - case "onTaskFailure": - err = unpopulate(val, "OnTaskFailure", &j.OnTaskFailure) - delete(rawMsg, key) case "poolInfo": err = unpopulate(val, "PoolInfo", &j.PoolInfo) delete(rawMsg, key) @@ -2083,8 +2001,8 @@ func (j *Job) UnmarshalJSON(data []byte) error { case "stateTransitionTime": err = unpopulateDateTimeRFC3339(val, "StateTransitionTime", &j.StateTransitionTime) delete(rawMsg, key) - case "stats": - err = unpopulate(val, "Stats", &j.Stats) + case "onTaskFailure": + err = unpopulate(val, "TaskFailureMode", &j.TaskFailureMode) delete(rawMsg, key) case "url": err = unpopulate(val, "URL", &j.URL) @@ -2291,7 +2209,7 @@ func (j *JobManagerTask) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JobNetworkConfiguration. func (j JobNetworkConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "skipWithdrawFromVNet", j.SkipWithdrawFromVNet) + populate(objectMap, "skipWithdrawFromVNet", j.SkipWithdrawFromVnet) populate(objectMap, "subnetId", j.SubnetID) return json.Marshal(objectMap) } @@ -2306,7 +2224,7 @@ func (j *JobNetworkConfiguration) UnmarshalJSON(data []byte) error { var err error switch key { case "skipWithdrawFromVNet": - err = unpopulate(val, "SkipWithdrawFromVNet", &j.SkipWithdrawFromVNet) + err = unpopulate(val, "SkipWithdrawFromVnet", &j.SkipWithdrawFromVnet) delete(rawMsg, key) case "subnetId": err = unpopulate(val, "SubnetID", &j.SubnetID) @@ -2641,6 +2559,7 @@ func (j JobSchedule) MarshalJSON() ([]byte, error) { populate(objectMap, "eTag", j.ETag) populate(objectMap, "executionInfo", j.ExecutionInfo) populate(objectMap, "id", j.ID) + populate(objectMap, "stats", j.JobScheduleStatistics) populate(objectMap, "jobSpecification", j.JobSpecification) populateDateTimeRFC3339(objectMap, "lastModified", j.LastModified) populate(objectMap, "metadata", j.Metadata) @@ -2649,7 +2568,6 @@ func (j JobSchedule) MarshalJSON() ([]byte, error) { populate(objectMap, "schedule", j.Schedule) populate(objectMap, "state", j.State) populateDateTimeRFC3339(objectMap, "stateTransitionTime", j.StateTransitionTime) - populate(objectMap, "stats", j.Stats) populate(objectMap, "url", j.URL) return json.Marshal(objectMap) } @@ -2678,6 +2596,9 @@ func (j *JobSchedule) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &j.ID) delete(rawMsg, key) + case "stats": + err = unpopulate(val, "JobScheduleStatistics", &j.JobScheduleStatistics) + delete(rawMsg, key) case "jobSpecification": err = unpopulate(val, "JobSpecification", &j.JobSpecification) delete(rawMsg, key) @@ -2702,9 +2623,6 @@ func (j *JobSchedule) UnmarshalJSON(data []byte) error { case "stateTransitionTime": err = unpopulateDateTimeRFC3339(val, "StateTransitionTime", &j.StateTransitionTime) delete(rawMsg, key) - case "stats": - err = unpopulate(val, "Stats", &j.Stats) - delete(rawMsg, key) case "url": err = unpopulate(val, "URL", &j.URL) delete(rawMsg, key) @@ -2824,20 +2742,20 @@ func (j *JobScheduleListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JobScheduleStatistics. func (j JobScheduleStatistics) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "numFailedTasks", to.Ptr(strconv.FormatInt(*j.FailedTasksCount, 10))) populate(objectMap, "kernelCPUTime", j.KernelCPUTime) populateDateTimeRFC3339(objectMap, "lastUpdateTime", j.LastUpdateTime) - populate(objectMap, "numFailedTasks", to.Ptr(strconv.FormatInt(*j.NumFailedTasks, 10))) - populate(objectMap, "numSucceededTasks", to.Ptr(strconv.FormatInt(*j.NumSucceededTasks, 10))) - populate(objectMap, "numTaskRetries", to.Ptr(strconv.FormatInt(*j.NumTaskRetries, 10))) - populate(objectMap, "readIOGiB", j.ReadIOGiB) populate(objectMap, "readIOps", to.Ptr(strconv.FormatInt(*j.ReadIOPS, 10))) + populate(objectMap, "readIOGiB", j.ReadIoGiB) populateDateTimeRFC3339(objectMap, "startTime", j.StartTime) + populate(objectMap, "numSucceededTasks", to.Ptr(strconv.FormatInt(*j.SucceededTasksCount, 10))) + populate(objectMap, "numTaskRetries", to.Ptr(strconv.FormatInt(*j.TaskRetriesCount, 10))) populate(objectMap, "url", j.URL) populate(objectMap, "userCPUTime", j.UserCPUTime) populate(objectMap, "waitTime", j.WaitTime) populate(objectMap, "wallClockTime", j.WallClockTime) - populate(objectMap, "writeIOGiB", j.WriteIOGiB) populate(objectMap, "writeIOps", to.Ptr(strconv.FormatInt(*j.WriteIOPS, 10))) + populate(objectMap, "writeIOGiB", j.WriteIoGiB) return json.Marshal(objectMap) } @@ -2850,62 +2768,62 @@ func (j *JobScheduleStatistics) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "kernelCPUTime": - err = unpopulate(val, "KernelCPUTime", &j.KernelCPUTime) - delete(rawMsg, key) - case "lastUpdateTime": - err = unpopulateDateTimeRFC3339(val, "LastUpdateTime", &j.LastUpdateTime) - delete(rawMsg, key) case "numFailedTasks": var aux string - err = unpopulate(val, "NumFailedTasks", &aux) + err = unpopulate(val, "FailedTasksCount", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.NumFailedTasks = to.Ptr(v) + j.FailedTasksCount = to.Ptr(v) } } delete(rawMsg, key) - case "numSucceededTasks": + case "kernelCPUTime": + err = unpopulate(val, "KernelCPUTime", &j.KernelCPUTime) + delete(rawMsg, key) + case "lastUpdateTime": + err = unpopulateDateTimeRFC3339(val, "LastUpdateTime", &j.LastUpdateTime) + delete(rawMsg, key) + case "readIOps": var aux string - err = unpopulate(val, "NumSucceededTasks", &aux) + err = unpopulate(val, "ReadIOPS", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.NumSucceededTasks = to.Ptr(v) + j.ReadIOPS = to.Ptr(v) } } delete(rawMsg, key) - case "numTaskRetries": + case "readIOGiB": + err = unpopulate(val, "ReadIoGiB", &j.ReadIoGiB) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &j.StartTime) + delete(rawMsg, key) + case "numSucceededTasks": var aux string - err = unpopulate(val, "NumTaskRetries", &aux) + err = unpopulate(val, "SucceededTasksCount", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.NumTaskRetries = to.Ptr(v) + j.SucceededTasksCount = to.Ptr(v) } } delete(rawMsg, key) - case "readIOGiB": - err = unpopulate(val, "ReadIOGiB", &j.ReadIOGiB) - delete(rawMsg, key) - case "readIOps": + case "numTaskRetries": var aux string - err = unpopulate(val, "ReadIOPS", &aux) + err = unpopulate(val, "TaskRetriesCount", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.ReadIOPS = to.Ptr(v) + j.TaskRetriesCount = to.Ptr(v) } } delete(rawMsg, key) - case "startTime": - err = unpopulateDateTimeRFC3339(val, "StartTime", &j.StartTime) - delete(rawMsg, key) case "url": err = unpopulate(val, "URL", &j.URL) delete(rawMsg, key) @@ -2918,9 +2836,6 @@ func (j *JobScheduleStatistics) UnmarshalJSON(data []byte) error { case "wallClockTime": err = unpopulate(val, "WallClockTime", &j.WallClockTime) delete(rawMsg, key) - case "writeIOGiB": - err = unpopulate(val, "WriteIOGiB", &j.WriteIOGiB) - delete(rawMsg, key) case "writeIOps": var aux string err = unpopulate(val, "WriteIOPS", &aux) @@ -2932,6 +2847,9 @@ func (j *JobScheduleStatistics) UnmarshalJSON(data []byte) error { } } delete(rawMsg, key) + case "writeIOGiB": + err = unpopulate(val, "WriteIoGiB", &j.WriteIoGiB) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", j, err) @@ -2982,6 +2900,7 @@ func (j *JobSchedulingError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JobSpecification. func (j JobSpecification) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "onAllTasksComplete", j.AllTasksCompleteMode) populate(objectMap, "allowTaskPreemption", j.AllowTaskPreemption) populate(objectMap, "commonEnvironmentSettings", j.CommonEnvironmentSettings) populate(objectMap, "constraints", j.Constraints) @@ -2992,10 +2911,9 @@ func (j JobSpecification) MarshalJSON() ([]byte, error) { populate(objectMap, "maxParallelTasks", j.MaxParallelTasks) populate(objectMap, "metadata", j.Metadata) populate(objectMap, "networkConfiguration", j.NetworkConfiguration) - populate(objectMap, "onAllTasksComplete", j.OnAllTasksComplete) - populate(objectMap, "onTaskFailure", j.OnTaskFailure) populate(objectMap, "poolInfo", j.PoolInfo) populate(objectMap, "priority", j.Priority) + populate(objectMap, "onTaskFailure", j.TaskFailureMode) populate(objectMap, "usesTaskDependencies", j.UsesTaskDependencies) return json.Marshal(objectMap) } @@ -3009,6 +2927,9 @@ func (j *JobSpecification) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "onAllTasksComplete": + err = unpopulate(val, "AllTasksCompleteMode", &j.AllTasksCompleteMode) + delete(rawMsg, key) case "allowTaskPreemption": err = unpopulate(val, "AllowTaskPreemption", &j.AllowTaskPreemption) delete(rawMsg, key) @@ -3039,18 +2960,15 @@ func (j *JobSpecification) UnmarshalJSON(data []byte) error { case "networkConfiguration": err = unpopulate(val, "NetworkConfiguration", &j.NetworkConfiguration) delete(rawMsg, key) - case "onAllTasksComplete": - err = unpopulate(val, "OnAllTasksComplete", &j.OnAllTasksComplete) - delete(rawMsg, key) - case "onTaskFailure": - err = unpopulate(val, "OnTaskFailure", &j.OnTaskFailure) - delete(rawMsg, key) case "poolInfo": err = unpopulate(val, "PoolInfo", &j.PoolInfo) delete(rawMsg, key) case "priority": err = unpopulate(val, "Priority", &j.Priority) delete(rawMsg, key) + case "onTaskFailure": + err = unpopulate(val, "TaskFailureMode", &j.TaskFailureMode) + delete(rawMsg, key) case "usesTaskDependencies": err = unpopulate(val, "UsesTaskDependencies", &j.UsesTaskDependencies) delete(rawMsg, key) @@ -3065,20 +2983,20 @@ func (j *JobSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JobStatistics. func (j JobStatistics) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "numFailedTasks", to.Ptr(strconv.FormatInt(*j.FailedTasksCount, 10))) populate(objectMap, "kernelCPUTime", j.KernelCPUTime) populateDateTimeRFC3339(objectMap, "lastUpdateTime", j.LastUpdateTime) - populate(objectMap, "numFailedTasks", to.Ptr(strconv.FormatInt(*j.NumFailedTasks, 10))) - populate(objectMap, "numSucceededTasks", to.Ptr(strconv.FormatInt(*j.NumSucceededTasks, 10))) - populate(objectMap, "numTaskRetries", to.Ptr(strconv.FormatInt(*j.NumTaskRetries, 10))) - populate(objectMap, "readIOGiB", j.ReadIOGiB) - populate(objectMap, "readIOps", to.Ptr(strconv.FormatInt(*j.ReadIOps, 10))) + populate(objectMap, "readIOGiB", j.ReadIoGiB) + populate(objectMap, "readIOps", to.Ptr(strconv.FormatInt(*j.ReadIops, 10))) populateDateTimeRFC3339(objectMap, "startTime", j.StartTime) + populate(objectMap, "numSucceededTasks", to.Ptr(strconv.FormatInt(*j.SucceededTasksCount, 10))) + populate(objectMap, "numTaskRetries", to.Ptr(strconv.FormatInt(*j.TaskRetriesCount, 10))) populate(objectMap, "url", j.URL) populate(objectMap, "userCPUTime", j.UserCPUTime) populate(objectMap, "waitTime", j.WaitTime) populate(objectMap, "wallClockTime", j.WallClockTime) - populate(objectMap, "writeIOGiB", j.WriteIOGiB) - populate(objectMap, "writeIOps", to.Ptr(strconv.FormatInt(*j.WriteIOps, 10))) + populate(objectMap, "writeIOGiB", j.WriteIoGiB) + populate(objectMap, "writeIOps", to.Ptr(strconv.FormatInt(*j.WriteIops, 10))) return json.Marshal(objectMap) } @@ -3091,62 +3009,62 @@ func (j *JobStatistics) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "kernelCPUTime": - err = unpopulate(val, "KernelCPUTime", &j.KernelCPUTime) - delete(rawMsg, key) - case "lastUpdateTime": - err = unpopulateDateTimeRFC3339(val, "LastUpdateTime", &j.LastUpdateTime) - delete(rawMsg, key) case "numFailedTasks": var aux string - err = unpopulate(val, "NumFailedTasks", &aux) + err = unpopulate(val, "FailedTasksCount", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.NumFailedTasks = to.Ptr(v) + j.FailedTasksCount = to.Ptr(v) } } delete(rawMsg, key) - case "numSucceededTasks": + case "kernelCPUTime": + err = unpopulate(val, "KernelCPUTime", &j.KernelCPUTime) + delete(rawMsg, key) + case "lastUpdateTime": + err = unpopulateDateTimeRFC3339(val, "LastUpdateTime", &j.LastUpdateTime) + delete(rawMsg, key) + case "readIOGiB": + err = unpopulate(val, "ReadIoGiB", &j.ReadIoGiB) + delete(rawMsg, key) + case "readIOps": var aux string - err = unpopulate(val, "NumSucceededTasks", &aux) + err = unpopulate(val, "ReadIops", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.NumSucceededTasks = to.Ptr(v) + j.ReadIops = to.Ptr(v) } } delete(rawMsg, key) - case "numTaskRetries": + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &j.StartTime) + delete(rawMsg, key) + case "numSucceededTasks": var aux string - err = unpopulate(val, "NumTaskRetries", &aux) + err = unpopulate(val, "SucceededTasksCount", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.NumTaskRetries = to.Ptr(v) + j.SucceededTasksCount = to.Ptr(v) } } delete(rawMsg, key) - case "readIOGiB": - err = unpopulate(val, "ReadIOGiB", &j.ReadIOGiB) - delete(rawMsg, key) - case "readIOps": + case "numTaskRetries": var aux string - err = unpopulate(val, "ReadIOps", &aux) + err = unpopulate(val, "TaskRetriesCount", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.ReadIOps = to.Ptr(v) + j.TaskRetriesCount = to.Ptr(v) } } delete(rawMsg, key) - case "startTime": - err = unpopulateDateTimeRFC3339(val, "StartTime", &j.StartTime) - delete(rawMsg, key) case "url": err = unpopulate(val, "URL", &j.URL) delete(rawMsg, key) @@ -3160,16 +3078,16 @@ func (j *JobStatistics) UnmarshalJSON(data []byte) error { err = unpopulate(val, "WallClockTime", &j.WallClockTime) delete(rawMsg, key) case "writeIOGiB": - err = unpopulate(val, "WriteIOGiB", &j.WriteIOGiB) + err = unpopulate(val, "WriteIoGiB", &j.WriteIoGiB) delete(rawMsg, key) case "writeIOps": var aux string - err = unpopulate(val, "WriteIOps", &aux) + err = unpopulate(val, "WriteIops", &aux) if err == nil { var v int64 v, err = strconv.ParseInt(aux, 10, 0) if err == nil { - j.WriteIOps = to.Ptr(v) + j.WriteIops = to.Ptr(v) } } delete(rawMsg, key) @@ -3452,7 +3370,7 @@ func (n *NameValuePair) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetworkConfiguration. func (n NetworkConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "dynamicVNetAssignmentScope", n.DynamicVNetAssignmentScope) + populate(objectMap, "dynamicVNetAssignmentScope", n.DynamicVnetAssignmentScope) populate(objectMap, "enableAcceleratedNetworking", n.EnableAcceleratedNetworking) populate(objectMap, "endpointConfiguration", n.EndpointConfiguration) populate(objectMap, "publicIPAddressConfiguration", n.PublicIPAddressConfiguration) @@ -3470,7 +3388,7 @@ func (n *NetworkConfiguration) UnmarshalJSON(data []byte) error { var err error switch key { case "dynamicVNetAssignmentScope": - err = unpopulate(val, "DynamicVNetAssignmentScope", &n.DynamicVNetAssignmentScope) + err = unpopulate(val, "DynamicVnetAssignmentScope", &n.DynamicVnetAssignmentScope) delete(rawMsg, key) case "enableAcceleratedNetworking": err = unpopulate(val, "EnableAcceleratedNetworking", &n.EnableAcceleratedNetworking) @@ -4129,8 +4047,8 @@ func (n *NodeVMExtensionListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type OSDisk. -func (o OSDisk) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type OsDisk. +func (o OsDisk) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "caching", o.Caching) populate(objectMap, "diskSizeGB", o.DiskSizeGB) @@ -4140,8 +4058,8 @@ func (o OSDisk) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type OSDisk. -func (o *OSDisk) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OsDisk. +func (o *OsDisk) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", o, err) @@ -4300,6 +4218,37 @@ func (o *OutputFileUploadConfig) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OutputFileUploadHeader. +func (o OutputFileUploadHeader) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", o.Name) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OutputFileUploadHeader. +func (o *OutputFileUploadHeader) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Pool. func (p Pool) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -4324,13 +4273,13 @@ func (p Pool) MarshalJSON() ([]byte, error) { populate(objectMap, "metadata", p.Metadata) populate(objectMap, "mountConfiguration", p.MountConfiguration) populate(objectMap, "networkConfiguration", p.NetworkConfiguration) + populate(objectMap, "stats", p.PoolStatistics) populate(objectMap, "resizeErrors", p.ResizeErrors) populate(objectMap, "resizeTimeout", p.ResizeTimeout) populate(objectMap, "resourceTags", p.ResourceTags) populate(objectMap, "startTask", p.StartTask) populate(objectMap, "state", p.State) populateDateTimeRFC3339(objectMap, "stateTransitionTime", p.StateTransitionTime) - populate(objectMap, "stats", p.Stats) populate(objectMap, "targetDedicatedNodes", p.TargetDedicatedNodes) populate(objectMap, "targetLowPriorityNodes", p.TargetLowPriorityNodes) populate(objectMap, "targetNodeCommunicationMode", p.TargetNodeCommunicationMode) @@ -4416,6 +4365,9 @@ func (p *Pool) UnmarshalJSON(data []byte) error { case "networkConfiguration": err = unpopulate(val, "NetworkConfiguration", &p.NetworkConfiguration) delete(rawMsg, key) + case "stats": + err = unpopulate(val, "PoolStatistics", &p.PoolStatistics) + delete(rawMsg, key) case "resizeErrors": err = unpopulate(val, "ResizeErrors", &p.ResizeErrors) delete(rawMsg, key) @@ -4434,9 +4386,6 @@ func (p *Pool) UnmarshalJSON(data []byte) error { case "stateTransitionTime": err = unpopulateDateTimeRFC3339(val, "StateTransitionTime", &p.StateTransitionTime) delete(rawMsg, key) - case "stats": - err = unpopulate(val, "Stats", &p.Stats) - delete(rawMsg, key) case "targetDedicatedNodes": err = unpopulate(val, "TargetDedicatedNodes", &p.TargetDedicatedNodes) delete(rawMsg, key) @@ -4836,10 +4785,10 @@ func (p *PoolSpecification) UnmarshalJSON(data []byte) error { func (p PoolStatistics) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateDateTimeRFC3339(objectMap, "lastUpdateTime", p.LastUpdateTime) - populate(objectMap, "resourceStats", p.ResourceStats) + populate(objectMap, "resourceStats", p.ResourceStatistics) populateDateTimeRFC3339(objectMap, "startTime", p.StartTime) populate(objectMap, "url", p.URL) - populate(objectMap, "usageStats", p.UsageStats) + populate(objectMap, "usageStats", p.UsageStatistics) return json.Marshal(objectMap) } @@ -4856,7 +4805,7 @@ func (p *PoolStatistics) UnmarshalJSON(data []byte) error { err = unpopulateDateTimeRFC3339(val, "LastUpdateTime", &p.LastUpdateTime) delete(rawMsg, key) case "resourceStats": - err = unpopulate(val, "ResourceStats", &p.ResourceStats) + err = unpopulate(val, "ResourceStatistics", &p.ResourceStatistics) delete(rawMsg, key) case "startTime": err = unpopulateDateTimeRFC3339(val, "StartTime", &p.StartTime) @@ -4865,7 +4814,7 @@ func (p *PoolStatistics) UnmarshalJSON(data []byte) error { err = unpopulate(val, "URL", &p.URL) delete(rawMsg, key) case "usageStats": - err = unpopulate(val, "UsageStats", &p.UsageStats) + err = unpopulate(val, "UsageStatistics", &p.UsageStatistics) delete(rawMsg, key) } if err != nil { @@ -4941,15 +4890,15 @@ func (p *PublicIPAddressConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type RebootNodeContent. -func (r RebootNodeContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type RebootNodeOptions. +func (r RebootNodeOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "nodeRebootOption", r.NodeRebootOption) + populate(objectMap, "nodeRebootOption", r.NodeRebootKind) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type RebootNodeContent. -func (r *RebootNodeContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type RebootNodeOptions. +func (r *RebootNodeOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", r, err) @@ -4958,7 +4907,7 @@ func (r *RebootNodeContent) UnmarshalJSON(data []byte) error { var err error switch key { case "nodeRebootOption": - err = unpopulate(val, "NodeRebootOption", &r.NodeRebootOption) + err = unpopulate(val, "NodeRebootKind", &r.NodeRebootKind) delete(rawMsg, key) } if err != nil { @@ -4999,15 +4948,15 @@ func (r *RecentJob) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ReimageNodeContent. -func (r ReimageNodeContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type ReimageNodeOptions. +func (r ReimageNodeOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "nodeReimageOption", r.NodeReimageOption) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ReimageNodeContent. -func (r *ReimageNodeContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ReimageNodeOptions. +func (r *ReimageNodeOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", r, err) @@ -5026,17 +4975,17 @@ func (r *ReimageNodeContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type RemoveNodeContent. -func (r RemoveNodeContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type RemoveNodeOptions. +func (r RemoveNodeOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "nodeDeallocationOption", r.NodeDeallocationOption) - populate(objectMap, "nodeList", r.NodeList) + populate(objectMap, "nodeList", r.NodeIDs) populate(objectMap, "resizeTimeout", r.ResizeTimeout) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type RemoveNodeContent. -func (r *RemoveNodeContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type RemoveNodeOptions. +func (r *RemoveNodeOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", r, err) @@ -5048,7 +4997,7 @@ func (r *RemoveNodeContent) UnmarshalJSON(data []byte) error { err = unpopulate(val, "NodeDeallocationOption", &r.NodeDeallocationOption) delete(rawMsg, key) case "nodeList": - err = unpopulate(val, "NodeList", &r.NodeList) + err = unpopulate(val, "NodeIDs", &r.NodeIDs) delete(rawMsg, key) case "resizeTimeout": err = unpopulate(val, "ResizeTimeout", &r.ResizeTimeout) @@ -5061,8 +5010,8 @@ func (r *RemoveNodeContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ReplacePoolContent. -func (r ReplacePoolContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type ReplacePoolOptions. +func (r ReplacePoolOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "applicationPackageReferences", r.ApplicationPackageReferences) populate(objectMap, "certificateReferences", r.CertificateReferences) @@ -5072,8 +5021,8 @@ func (r ReplacePoolContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ReplacePoolContent. -func (r *ReplacePoolContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplacePoolOptions. +func (r *ReplacePoolOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", r, err) @@ -5139,8 +5088,8 @@ func (r *ResizeError) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ResizePoolContent. -func (r ResizePoolContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type ResizePoolOptions. +func (r ResizePoolOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "nodeDeallocationOption", r.NodeDeallocationOption) populate(objectMap, "resizeTimeout", r.ResizeTimeout) @@ -5149,8 +5098,8 @@ func (r ResizePoolContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ResizePoolContent. -func (r *ResizePoolContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ResizePoolOptions. +func (r *ResizePoolOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", r, err) @@ -5597,7 +5546,7 @@ func (t Task) MarshalJSON() ([]byte, error) { populate(objectMap, "resourceFiles", t.ResourceFiles) populate(objectMap, "state", t.State) populateDateTimeRFC3339(objectMap, "stateTransitionTime", t.StateTransitionTime) - populate(objectMap, "stats", t.Stats) + populate(objectMap, "stats", t.TaskStatistics) populate(objectMap, "url", t.URL) populate(objectMap, "userIdentity", t.UserIdentity) return json.Marshal(objectMap) @@ -5685,7 +5634,7 @@ func (t *Task) UnmarshalJSON(data []byte) error { err = unpopulateDateTimeRFC3339(val, "StateTransitionTime", &t.StateTransitionTime) delete(rawMsg, key) case "stats": - err = unpopulate(val, "Stats", &t.Stats) + err = unpopulate(val, "TaskStatistics", &t.TaskStatistics) delete(rawMsg, key) case "url": err = unpopulate(val, "URL", &t.URL) @@ -5701,53 +5650,6 @@ func (t *Task) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type TaskAddResult. -func (t TaskAddResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "eTag", t.ETag) - populate(objectMap, "error", t.Error) - populateDateTimeRFC3339(objectMap, "lastModified", t.LastModified) - populate(objectMap, "location", t.Location) - populate(objectMap, "status", t.Status) - populate(objectMap, "taskId", t.TaskID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAddResult. -func (t *TaskAddResult) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "eTag": - err = unpopulate(val, "ETag", &t.ETag) - delete(rawMsg, key) - case "error": - err = unpopulate(val, "Error", &t.Error) - delete(rawMsg, key) - case "lastModified": - err = unpopulateDateTimeRFC3339(val, "LastModified", &t.LastModified) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &t.Location) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &t.Status) - delete(rawMsg, key) - case "taskId": - err = unpopulate(val, "TaskID", &t.TaskID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type TaskConstraints. func (t TaskConstraints) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5935,6 +5837,53 @@ func (t *TaskCountsResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TaskCreateResult. +func (t TaskCreateResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "eTag", t.ETag) + populate(objectMap, "error", t.Error) + populateDateTimeRFC3339(objectMap, "lastModified", t.LastModified) + populate(objectMap, "location", t.Location) + populate(objectMap, "status", t.Status) + populate(objectMap, "taskId", t.TaskID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskCreateResult. +func (t *TaskCreateResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "eTag": + err = unpopulate(val, "ETag", &t.ETag) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &t.Error) + delete(rawMsg, key) + case "lastModified": + err = unpopulateDateTimeRFC3339(val, "LastModified", &t.LastModified) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + case "taskId": + err = unpopulate(val, "TaskID", &t.TaskID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type TaskDependencies. func (t TaskDependencies) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -6071,7 +6020,7 @@ func (t *TaskFailureInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TaskGroup. func (t TaskGroup) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "value", t.Value) + populate(objectMap, "value", t.Values) return json.Marshal(objectMap) } @@ -6085,7 +6034,7 @@ func (t *TaskGroup) UnmarshalJSON(data []byte) error { var err error switch key { case "value": - err = unpopulate(val, "Value", &t.Value) + err = unpopulate(val, "Values", &t.Values) delete(rawMsg, key) } if err != nil { @@ -6310,15 +6259,15 @@ func (t TaskStatistics) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "kernelCPUTime", t.KernelCPUTime) populateDateTimeRFC3339(objectMap, "lastUpdateTime", t.LastUpdateTime) - populate(objectMap, "readIOGiB", t.ReadIOGiB) populate(objectMap, "readIOps", to.Ptr(strconv.FormatInt(*t.ReadIOPS, 10))) + populate(objectMap, "readIOGiB", t.ReadIoGiB) populateDateTimeRFC3339(objectMap, "startTime", t.StartTime) populate(objectMap, "url", t.URL) populate(objectMap, "userCPUTime", t.UserCPUTime) populate(objectMap, "waitTime", t.WaitTime) populate(objectMap, "wallClockTime", t.WallClockTime) - populate(objectMap, "writeIOGiB", t.WriteIOGiB) populate(objectMap, "writeIOps", to.Ptr(strconv.FormatInt(*t.WriteIOPS, 10))) + populate(objectMap, "writeIOGiB", t.WriteIoGiB) return json.Marshal(objectMap) } @@ -6337,9 +6286,6 @@ func (t *TaskStatistics) UnmarshalJSON(data []byte) error { case "lastUpdateTime": err = unpopulateDateTimeRFC3339(val, "LastUpdateTime", &t.LastUpdateTime) delete(rawMsg, key) - case "readIOGiB": - err = unpopulate(val, "ReadIOGiB", &t.ReadIOGiB) - delete(rawMsg, key) case "readIOps": var aux string err = unpopulate(val, "ReadIOPS", &aux) @@ -6351,6 +6297,9 @@ func (t *TaskStatistics) UnmarshalJSON(data []byte) error { } } delete(rawMsg, key) + case "readIOGiB": + err = unpopulate(val, "ReadIoGiB", &t.ReadIoGiB) + delete(rawMsg, key) case "startTime": err = unpopulateDateTimeRFC3339(val, "StartTime", &t.StartTime) delete(rawMsg, key) @@ -6366,9 +6315,6 @@ func (t *TaskStatistics) UnmarshalJSON(data []byte) error { case "wallClockTime": err = unpopulate(val, "WallClockTime", &t.WallClockTime) delete(rawMsg, key) - case "writeIOGiB": - err = unpopulate(val, "WriteIOGiB", &t.WriteIOGiB) - delete(rawMsg, key) case "writeIOps": var aux string err = unpopulate(val, "WriteIOPS", &aux) @@ -6380,6 +6326,9 @@ func (t *TaskStatistics) UnmarshalJSON(data []byte) error { } } delete(rawMsg, key) + case "writeIOGiB": + err = unpopulate(val, "WriteIoGiB", &t.WriteIoGiB) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", t, err) @@ -6388,15 +6337,15 @@ func (t *TaskStatistics) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type TerminateJobContent. -func (t TerminateJobContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type TerminateJobOptions. +func (t TerminateJobOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "terminateReason", t.TerminationReason) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type TerminateJobContent. -func (t *TerminateJobContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type TerminateJobOptions. +func (t *TerminateJobOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", t, err) @@ -6446,22 +6395,22 @@ func (u *UEFISettings) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UpdateJobContent. -func (u UpdateJobContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type UpdateJobOptions. +func (u UpdateJobOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "onAllTasksComplete", u.AllTasksCompleteMode) populate(objectMap, "allowTaskPreemption", u.AllowTaskPreemption) populate(objectMap, "constraints", u.Constraints) populate(objectMap, "maxParallelTasks", u.MaxParallelTasks) populate(objectMap, "metadata", u.Metadata) populate(objectMap, "networkConfiguration", u.NetworkConfiguration) - populate(objectMap, "onAllTasksComplete", u.OnAllTasksComplete) populate(objectMap, "poolInfo", u.PoolInfo) populate(objectMap, "priority", u.Priority) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateJobContent. -func (u *UpdateJobContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateJobOptions. +func (u *UpdateJobOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", u, err) @@ -6469,6 +6418,9 @@ func (u *UpdateJobContent) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "onAllTasksComplete": + err = unpopulate(val, "AllTasksCompleteMode", &u.AllTasksCompleteMode) + delete(rawMsg, key) case "allowTaskPreemption": err = unpopulate(val, "AllowTaskPreemption", &u.AllowTaskPreemption) delete(rawMsg, key) @@ -6484,9 +6436,6 @@ func (u *UpdateJobContent) UnmarshalJSON(data []byte) error { case "networkConfiguration": err = unpopulate(val, "NetworkConfiguration", &u.NetworkConfiguration) delete(rawMsg, key) - case "onAllTasksComplete": - err = unpopulate(val, "OnAllTasksComplete", &u.OnAllTasksComplete) - delete(rawMsg, key) case "poolInfo": err = unpopulate(val, "PoolInfo", &u.PoolInfo) delete(rawMsg, key) @@ -6501,8 +6450,8 @@ func (u *UpdateJobContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UpdateJobScheduleContent. -func (u UpdateJobScheduleContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type UpdateJobScheduleOptions. +func (u UpdateJobScheduleOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "jobSpecification", u.JobSpecification) populate(objectMap, "metadata", u.Metadata) @@ -6510,8 +6459,8 @@ func (u UpdateJobScheduleContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateJobScheduleContent. -func (u *UpdateJobScheduleContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateJobScheduleOptions. +func (u *UpdateJobScheduleOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", u, err) @@ -6536,8 +6485,8 @@ func (u *UpdateJobScheduleContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UpdateNodeUserContent. -func (u UpdateNodeUserContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type UpdateNodeUserOptions. +func (u UpdateNodeUserOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateDateTimeRFC3339(objectMap, "expiryTime", u.ExpiryTime) populate(objectMap, "password", u.Password) @@ -6545,8 +6494,8 @@ func (u UpdateNodeUserContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateNodeUserContent. -func (u *UpdateNodeUserContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateNodeUserOptions. +func (u *UpdateNodeUserOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", u, err) @@ -6571,8 +6520,8 @@ func (u *UpdateNodeUserContent) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UpdatePoolContent. -func (u UpdatePoolContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type UpdatePoolOptions. +func (u UpdatePoolOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "applicationPackageReferences", u.ApplicationPackageReferences) populate(objectMap, "certificateReferences", u.CertificateReferences) @@ -6593,8 +6542,8 @@ func (u UpdatePoolContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type UpdatePoolContent. -func (u *UpdatePoolContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdatePoolOptions. +func (u *UpdatePoolOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", u, err) @@ -6693,8 +6642,8 @@ func (u *UpgradePolicy) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UploadNodeLogsContent. -func (u UploadNodeLogsContent) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type UploadNodeLogsOptions. +func (u UploadNodeLogsOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "containerUrl", u.ContainerURL) populateDateTimeRFC3339(objectMap, "endTime", u.EndTime) @@ -6703,8 +6652,8 @@ func (u UploadNodeLogsContent) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type UploadNodeLogsContent. -func (u *UploadNodeLogsContent) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type UploadNodeLogsOptions. +func (u *UploadNodeLogsOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", u, err) @@ -6993,6 +6942,61 @@ func (v *VMExtensionInstanceView) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type VMImageReference. +func (v VMImageReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "communityGalleryImageId", v.CommunityGalleryImageID) + populate(objectMap, "exactVersion", v.ExactVersion) + populate(objectMap, "offer", v.Offer) + populate(objectMap, "publisher", v.Publisher) + populate(objectMap, "sku", v.SKU) + populate(objectMap, "sharedGalleryImageId", v.SharedGalleryImageID) + populate(objectMap, "version", v.Version) + populate(objectMap, "virtualMachineImageId", v.VirtualMachineImageID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VMImageReference. +func (v *VMImageReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "communityGalleryImageId": + err = unpopulate(val, "CommunityGalleryImageID", &v.CommunityGalleryImageID) + delete(rawMsg, key) + case "exactVersion": + err = unpopulate(val, "ExactVersion", &v.ExactVersion) + delete(rawMsg, key) + case "offer": + err = unpopulate(val, "Offer", &v.Offer) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &v.Publisher) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &v.SKU) + delete(rawMsg, key) + case "sharedGalleryImageId": + err = unpopulate(val, "SharedGalleryImageID", &v.SharedGalleryImageID) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &v.Version) + delete(rawMsg, key) + case "virtualMachineImageId": + err = unpopulate(val, "VirtualMachineImageID", &v.VirtualMachineImageID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type VirtualMachineConfiguration. func (v VirtualMachineConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -7004,7 +7008,7 @@ func (v VirtualMachineConfiguration) MarshalJSON() ([]byte, error) { populate(objectMap, "licenseType", v.LicenseType) populate(objectMap, "nodeAgentSKUId", v.NodeAgentSKUID) populate(objectMap, "nodePlacementConfiguration", v.NodePlacementConfiguration) - populate(objectMap, "osDisk", v.OSDisk) + populate(objectMap, "osDisk", v.OsDisk) populate(objectMap, "securityProfile", v.SecurityProfile) populate(objectMap, "serviceArtifactReference", v.ServiceArtifactReference) populate(objectMap, "windowsConfiguration", v.WindowsConfiguration) @@ -7045,7 +7049,7 @@ func (v *VirtualMachineConfiguration) UnmarshalJSON(data []byte) error { err = unpopulate(val, "NodePlacementConfiguration", &v.NodePlacementConfiguration) delete(rawMsg, key) case "osDisk": - err = unpopulate(val, "OSDisk", &v.OSDisk) + err = unpopulate(val, "OsDisk", &v.OsDisk) delete(rawMsg, key) case "securityProfile": err = unpopulate(val, "SecurityProfile", &v.SecurityProfile) @@ -7233,6 +7237,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateByteArray[T any](m map[string]any, k string, b []T, convert func() any) { + if azcore.IsNullValue(b) { + m[k] = nil + } else if len(b) == 0 { + return + } else { + m[k] = convert() + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil || string(data) == "null" { return nil diff --git a/sdk/batch/azbatch/options.go b/sdk/batch/azbatch/options.go index 87a1d32ab20b..ccdfd17dbe8d 100644 --- a/sdk/batch/azbatch/options.go +++ b/sdk/batch/azbatch/options.go @@ -4,11 +4,7 @@ package azbatch -import ( - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" -) +import "time" // CancelCertificateDeletionOptions contains the optional parameters for the Client.CancelCertificateDeletion method. type CancelCertificateDeletionOptions struct { @@ -19,7 +15,7 @@ type CancelCertificateDeletionOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -38,7 +34,7 @@ type CreateCertificateOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -57,7 +53,7 @@ type CreateJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -76,7 +72,7 @@ type CreateJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -95,7 +91,7 @@ type CreateNodeUserOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -114,7 +110,7 @@ type CreatePoolOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -133,7 +129,7 @@ type CreateTaskCollectionOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -152,7 +148,7 @@ type CreateTaskOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -171,10 +167,10 @@ type DeallocateNodeOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // The options to use for deallocating the Compute Node. - Parameters *DeallocateNodeContent + Parameters *DeallocateNodeOptions // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -193,7 +189,7 @@ type DeleteCertificateOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -216,7 +212,7 @@ type DeleteJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -226,7 +222,7 @@ type DeleteJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -236,7 +232,7 @@ type DeleteJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -259,7 +255,7 @@ type DeleteJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -269,7 +265,7 @@ type DeleteJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -279,7 +275,7 @@ type DeleteJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -298,7 +294,7 @@ type DeleteNodeFileOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether to delete children of a directory. If the filePath parameter represents // a directory instead of a file, you can set recursive to true to delete the @@ -323,7 +319,7 @@ type DeleteNodeUserOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -342,7 +338,7 @@ type DeletePoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -352,7 +348,7 @@ type DeletePoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -362,7 +358,7 @@ type DeletePoolOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -381,7 +377,7 @@ type DeleteTaskFileOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether to delete children of a directory. If the filePath parameter represents // a directory instead of a file, you can set recursive to true to delete the @@ -406,7 +402,7 @@ type DeleteTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -416,7 +412,7 @@ type DeleteTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -426,7 +422,7 @@ type DeleteTaskOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -445,7 +441,7 @@ type DisableJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -455,7 +451,7 @@ type DisableJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -465,7 +461,7 @@ type DisableJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -484,7 +480,7 @@ type DisableJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -494,7 +490,7 @@ type DisableJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -504,7 +500,7 @@ type DisableJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -523,10 +519,10 @@ type DisableNodeSchedulingOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // The options to use for disabling scheduling on the Compute Node. - Parameters *DisableNodeSchedulingContent + Parameters *DisableNodeSchedulingOptions // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -545,7 +541,7 @@ type DisablePoolAutoScaleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -564,7 +560,7 @@ type EnableJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -574,7 +570,7 @@ type EnableJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -584,7 +580,7 @@ type EnableJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -603,7 +599,7 @@ type EnableJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -613,7 +609,7 @@ type EnableJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -623,7 +619,7 @@ type EnableJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -642,7 +638,7 @@ type EnableNodeSchedulingOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -661,7 +657,7 @@ type EnablePoolAutoScaleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -671,7 +667,7 @@ type EnablePoolAutoScaleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -681,7 +677,7 @@ type EnablePoolAutoScaleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -700,7 +696,7 @@ type EvaluatePoolAutoScaleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -719,7 +715,7 @@ type GetApplicationOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -738,7 +734,7 @@ type GetCertificateOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -763,7 +759,7 @@ type GetJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -773,7 +769,7 @@ type GetJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -783,7 +779,7 @@ type GetJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -808,7 +804,7 @@ type GetJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -818,7 +814,7 @@ type GetJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -828,7 +824,7 @@ type GetJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -850,7 +846,7 @@ type GetJobTaskCountsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -869,7 +865,7 @@ type GetNodeExtensionOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -900,12 +896,12 @@ type GetNodeFileOptions struct { // The byte range to be retrieved. The default is to retrieve the entire file. The // format is bytes=startRange-endRange. - OCPRange *string + OcpRange *string // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -934,7 +930,7 @@ type GetNodeFilePropertiesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -953,7 +949,7 @@ type GetNodeOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -975,7 +971,7 @@ type GetNodeRemoteLoginSettingsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -997,7 +993,7 @@ type GetPoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1007,7 +1003,7 @@ type GetPoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1017,7 +1013,7 @@ type GetPoolOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1048,12 +1044,12 @@ type GetTaskFileOptions struct { // The byte range to be retrieved. The default is to retrieve the entire file. The // format is bytes=startRange-endRange. - OCPRange *string + OcpRange *string // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1082,7 +1078,7 @@ type GetTaskFilePropertiesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1104,7 +1100,7 @@ type GetTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1114,7 +1110,7 @@ type GetTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1124,7 +1120,7 @@ type GetTaskOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1146,7 +1142,7 @@ type JobScheduleExistsOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1156,7 +1152,7 @@ type JobScheduleExistsOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1166,7 +1162,7 @@ type JobScheduleExistsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1189,7 +1185,7 @@ type ListApplicationsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1216,7 +1212,7 @@ type ListCertificatesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1247,7 +1243,7 @@ type ListJobPreparationAndReleaseTaskStatusOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1280,7 +1276,7 @@ type ListJobSchedulesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1313,7 +1309,7 @@ type ListJobsFromScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1346,7 +1342,7 @@ type ListJobsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1372,7 +1368,7 @@ type ListNodeExtensionsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1402,7 +1398,7 @@ type ListNodeFilesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether to list children of a directory. Recursive *bool @@ -1432,7 +1428,7 @@ type ListNodesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1462,7 +1458,7 @@ type ListPoolNodeCountsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1492,7 +1488,7 @@ type ListPoolsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1514,7 +1510,7 @@ type ListSubTasksOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1544,7 +1540,7 @@ type ListSupportedImagesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1571,7 +1567,7 @@ type ListTaskFilesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether to list children of the Task directory. This parameter can be used in // combination with the filter parameter to list specific type of files. @@ -1605,7 +1601,7 @@ type ListTasksOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1627,7 +1623,7 @@ type PoolExistsOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1637,7 +1633,7 @@ type PoolExistsOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1647,7 +1643,7 @@ type PoolExistsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1666,7 +1662,7 @@ type ReactivateTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1676,7 +1672,7 @@ type ReactivateTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1686,7 +1682,7 @@ type ReactivateTaskOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1705,10 +1701,10 @@ type RebootNodeOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // The options to use for rebooting the Compute Node. - Parameters *RebootNodeContent + Parameters *RebootNodeOptions // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1727,10 +1723,10 @@ type ReimageNodeOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // The options to use for reimaging the Compute Node. - Parameters *ReimageNodeContent + Parameters *ReimageNodeOptions // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1749,7 +1745,7 @@ type RemoveNodesOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1759,7 +1755,7 @@ type RemoveNodesOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1769,7 +1765,7 @@ type RemoveNodesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1788,7 +1784,7 @@ type ReplaceJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1798,7 +1794,7 @@ type ReplaceJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1808,7 +1804,7 @@ type ReplaceJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1827,7 +1823,7 @@ type ReplaceJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1837,7 +1833,7 @@ type ReplaceJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1847,7 +1843,7 @@ type ReplaceJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1866,7 +1862,7 @@ type ReplaceNodeUserOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1885,7 +1881,7 @@ type ReplacePoolPropertiesOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1904,7 +1900,7 @@ type ReplaceTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1914,7 +1910,7 @@ type ReplaceTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1924,7 +1920,7 @@ type ReplaceTaskOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1943,7 +1939,7 @@ type ResizePoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1953,7 +1949,7 @@ type ResizePoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -1963,7 +1959,7 @@ type ResizePoolOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -1982,7 +1978,7 @@ type StartNodeOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2001,7 +1997,7 @@ type StopPoolResizeOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2011,7 +2007,7 @@ type StopPoolResizeOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2021,7 +2017,7 @@ type StopPoolResizeOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2044,7 +2040,7 @@ type TerminateJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2054,7 +2050,7 @@ type TerminateJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2064,10 +2060,10 @@ type TerminateJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // The options to use for terminating the Job. - Parameters *TerminateJobContent + Parameters *TerminateJobOptions // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2090,7 +2086,7 @@ type TerminateJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2100,7 +2096,7 @@ type TerminateJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2110,7 +2106,7 @@ type TerminateJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2129,7 +2125,7 @@ type TerminateTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2139,7 +2135,7 @@ type TerminateTaskOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2149,7 +2145,7 @@ type TerminateTaskOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2168,7 +2164,7 @@ type UpdateJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2178,7 +2174,7 @@ type UpdateJobOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2188,7 +2184,7 @@ type UpdateJobOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2207,7 +2203,7 @@ type UpdateJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2217,7 +2213,7 @@ type UpdateJobScheduleOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2227,7 +2223,7 @@ type UpdateJobScheduleOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2246,7 +2242,7 @@ type UpdatePoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service exactly matches the value specified by the client. - IfMatch *azcore.ETag + IfMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2256,7 +2252,7 @@ type UpdatePoolOptions struct { // An ETag value associated with the version of the resource known to the client. // The operation will be performed only if the resource's current ETag on the // service does not match the value specified by the client. - IfNoneMatch *azcore.ETag + IfNoneMatch *string // A timestamp indicating the last modified time of the resource known to the // client. The operation will be performed only if the resource on the service has @@ -2266,7 +2262,7 @@ type UpdatePoolOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2285,7 +2281,7 @@ type UploadNodeLogsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool @@ -2317,7 +2313,7 @@ type listPoolUsageMetricsOptions struct { // The time the request was issued. Client libraries typically set this to the // current system clock time; set it explicitly if you are calling the REST API // directly. - OCPDate *time.Time + Ocpdate *time.Time // Whether the server should return the client-request-id in the response. ReturnClientRequestID *bool diff --git a/sdk/batch/azbatch/responses.go b/sdk/batch/azbatch/responses.go index 40e6c495bdec..6770537da15f 100644 --- a/sdk/batch/azbatch/responses.go +++ b/sdk/batch/azbatch/responses.go @@ -7,8 +7,6 @@ package azbatch import ( "io" "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" ) // CancelCertificateDeletionResponse contains the response from method Client.CancelCertificateDeletion. @@ -23,7 +21,7 @@ type CancelCertificateDeletionResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -47,7 +45,7 @@ type CreateCertificateResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -71,7 +69,7 @@ type CreateJobResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -95,7 +93,7 @@ type CreateJobScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -119,7 +117,7 @@ type CreateNodeUserResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -143,7 +141,7 @@ type CreatePoolResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -157,8 +155,8 @@ type CreatePoolResponse struct { // CreateTaskCollectionResponse contains the response from method Client.CreateTaskCollection. type CreateTaskCollectionResponse struct { - // The result of adding a collection of Tasks to a Job. - AddTaskCollectionResult + // The result of creating a collection of Tasks to a Job. + CreateTaskCollectionResult // The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id // parameter was set to true. @@ -167,7 +165,7 @@ type CreateTaskCollectionResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -191,7 +189,7 @@ type CreateTaskResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -215,7 +213,7 @@ type DeallocateNodeResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -236,7 +234,7 @@ type DeleteCertificateResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -351,7 +349,7 @@ type DisableJobResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -375,7 +373,7 @@ type DisableJobScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -399,7 +397,7 @@ type DisableNodeSchedulingResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -423,7 +421,7 @@ type DisablePoolAutoScaleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -447,7 +445,7 @@ type EnableJobResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -471,7 +469,7 @@ type EnableJobScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -495,7 +493,7 @@ type EnableNodeSchedulingResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -519,7 +517,7 @@ type EnablePoolAutoScaleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -546,7 +544,7 @@ type EvaluatePoolAutoScaleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -570,7 +568,7 @@ type GetApplicationResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -595,7 +593,7 @@ type GetCertificateResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -619,7 +617,7 @@ type GetJobResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -644,7 +642,7 @@ type GetJobScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -668,7 +666,7 @@ type GetJobTaskCountsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -692,7 +690,7 @@ type GetNodeExtensionResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -716,22 +714,22 @@ type GetNodeFilePropertiesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time // Whether the object represents a directory. - OCPBatchFileIsDirectory *bool + OcpBatchFileIsdirectory *bool // The file mode attribute in octal format. - OCPBatchFileMode *string + OcpBatchFileMode *string // The URL of the file. - OCPBatchFileURL *string + OcpBatchFileURL *string // The file creation time. - OCPCreationTime *time.Time + OcpCreationTime *time.Time // A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have // verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, @@ -758,22 +756,22 @@ type GetNodeFileResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time // Whether the object represents a directory. - OCPBatchFileIsDirectory *bool + OcpBatchFileIsdirectory *bool // The file mode attribute in octal format. - OCPBatchFileMode *string + OcpBatchFileMode *string // The URL of the file. - OCPBatchFileURL *string + OcpBatchFileURL *string // The file creation time. - OCPCreationTime *time.Time + OcpCreationTime *time.Time // A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have // verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, @@ -794,7 +792,7 @@ type GetNodeRemoteLoginSettingsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -818,7 +816,7 @@ type GetNodeResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -842,7 +840,7 @@ type GetPoolResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -866,22 +864,22 @@ type GetTaskFilePropertiesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time // Whether the object represents a directory. - OCPBatchFileIsDirectory *bool + OcpBatchFileIsdirectory *bool // The file mode attribute in octal format. - OCPBatchFileMode *string + OcpBatchFileMode *string // The URL of the file. - OCPBatchFileURL *string + OcpBatchFileURL *string // The file creation time. - OCPCreationTime *time.Time + OcpCreationTime *time.Time // A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have // verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, @@ -908,22 +906,22 @@ type GetTaskFileResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time // Whether the object represents a directory. - OCPBatchFileIsDirectory *bool + OcpBatchFileIsdirectory *bool // The file mode attribute in octal format. - OCPBatchFileMode *string + OcpBatchFileMode *string // The URL of the file. - OCPBatchFileURL *string + OcpBatchFileURL *string // The file creation time. - OCPCreationTime *time.Time + OcpCreationTime *time.Time // A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have // verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, @@ -955,7 +953,7 @@ type GetTaskResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -976,7 +974,7 @@ type JobScheduleExistsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1000,7 +998,7 @@ type ListApplicationsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1024,7 +1022,7 @@ type ListCertificatesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1049,7 +1047,7 @@ type ListJobPreparationAndReleaseTaskStatusResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1073,7 +1071,7 @@ type ListJobSchedulesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1097,7 +1095,7 @@ type ListJobsFromScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1121,7 +1119,7 @@ type ListJobsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1145,7 +1143,7 @@ type ListNodeExtensionsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1170,7 +1168,7 @@ type ListNodeFilesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1194,7 +1192,7 @@ type ListNodesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1218,7 +1216,7 @@ type ListPoolNodeCountsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1242,7 +1240,7 @@ type ListPoolsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1266,7 +1264,7 @@ type ListSubTasksResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1290,7 +1288,7 @@ type ListSupportedImagesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1315,7 +1313,7 @@ type ListTaskFilesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1339,7 +1337,7 @@ type ListTasksResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1360,7 +1358,7 @@ type PoolExistsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1384,7 +1382,7 @@ type ReactivateTaskResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1408,7 +1406,7 @@ type RebootNodeResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1432,7 +1430,7 @@ type ReimageNodeResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1456,7 +1454,7 @@ type RemoveNodesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1480,7 +1478,7 @@ type ReplaceJobResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1504,7 +1502,7 @@ type ReplaceJobScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1528,7 +1526,7 @@ type ReplaceNodeUserResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1552,7 +1550,7 @@ type ReplacePoolPropertiesResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1576,7 +1574,7 @@ type ReplaceTaskResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1600,7 +1598,7 @@ type ResizePoolResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1624,7 +1622,7 @@ type StartNodeResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1648,7 +1646,7 @@ type StopPoolResizeResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1672,7 +1670,7 @@ type TerminateJobResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1696,7 +1694,7 @@ type TerminateJobScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1720,7 +1718,7 @@ type TerminateTaskResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1744,7 +1742,7 @@ type UpdateJobResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1768,7 +1766,7 @@ type UpdateJobScheduleResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1792,7 +1790,7 @@ type UpdatePoolResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1816,7 +1814,7 @@ type UploadNodeLogsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time @@ -1840,7 +1838,7 @@ type listPoolUsageMetricsResponse struct { // The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between // requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match // headers. - ETag *azcore.ETag + ETag *string // The time at which the resource was last modified. LastModified *time.Time diff --git a/sdk/batch/azbatch/time_rfc3339.go b/sdk/batch/azbatch/time_rfc3339.go index f705e99a85e5..503b7ddf790f 100644 --- a/sdk/batch/azbatch/time_rfc3339.go +++ b/sdk/batch/azbatch/time_rfc3339.go @@ -7,12 +7,11 @@ package azbatch import ( "encoding/json" "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "reflect" "regexp" "strings" "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" ) // Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. diff --git a/sdk/batch/azbatch/tsp-location.yaml b/sdk/batch/azbatch/tsp-location.yaml index 786ef210ebc9..f34f063091a3 100644 --- a/sdk/batch/azbatch/tsp-location.yaml +++ b/sdk/batch/azbatch/tsp-location.yaml @@ -1,3 +1,4 @@ directory: specification/batch/Azure.Batch -commit: 1669c508a1bfa16eda284020ca9ea753f6cbec35 +commit: 790f1ae5dafa04e3e957c579095a83b15a3500a7 repo: Azure/azure-rest-api-specs +additionalDirectories: