-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add DiskProvisionedIops/ThroughputMibps pipeline options for the Python SDK #38370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tvalentyn
merged 18 commits into
apache:master
from
bambadiouf1:restore-disk-opts-python
May 7, 2026
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
82212f2
Restore Java and Go changes for disk provisioned IOPS and throughput
bambadiouf1 b0d34cd
Add CHANGES.md entry for disk provisioned IOPS and throughput
bambadiouf1 aa67507
restore go changes
bambadiouf1 e5a78f5
initialize options map in dataflow job to prevent nil pointer exceptions
bambadiouf1 363840e
go fmt
bambadiouf1 5b6fc82
add testDiskProvisionedOptionsConfig unit test
bambadiouf1 b429085
Update pr id in changes.md
bambadiouf1 3e21a94
add disk_provisioned_iops and disk_provisioned_throughput_mibps optio…
bambadiouf1 97ee161
Merge branch 'apache:master' into restore-disk-opts-python
bambadiouf1 54498ab
add Python support to disk IOPS and throughput pipeline options in CH…
bambadiouf1 f406738
Merge branch 'restore-disk-opts-python' of github.com:bambadiouf1/bea…
bambadiouf1 717e883
revert manual changes
bambadiouf1 59320bc
ran gen_client
bambadiouf1 95510a3
gen client
bambadiouf1 06db877
trigger postcommit_python
bambadiouf1 50e53ca
Delete R74
bambadiouf1 9c4e709
undo gen_client deletion
bambadiouf1 64a57a4
delete change to trigger postcom
bambadiouf1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run.", | ||
| "pr": "38069", | ||
| "modification": 40 | ||
| "modification": 41 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2634,8 +2634,8 @@ class FlexTemplateRuntimeEnvironment(_messages.Message): | |
| ipConfiguration: Configuration for VM IPs. | ||
| kmsKeyName: Name for the Cloud KMS key for the job. Key format is: | ||
| projects//locations//keyRings//cryptoKeys/ | ||
| launcherMachineType: The machine type to use for launching the job. The | ||
| default is n1-standard-1. | ||
| launcherMachineType: The machine type to use for launching the job. If not | ||
| set, Dataflow will select a default machine type. | ||
| machineType: The machine type to use for the job. Defaults to the value | ||
| from the template if not specified. | ||
| maxWorkers: The maximum number of Google Compute Engine instances to be | ||
|
|
@@ -3209,6 +3209,7 @@ class Job(_messages.Message): | |
| attempts to create a job with the same name as an active job that | ||
| already exists, the attempt returns the existing job. The name must | ||
| match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` | ||
| pausable: Output only. Indicates whether the job can be paused. | ||
| pipelineDescription: Preliminary field: The format of this data may change | ||
| at any time. A description of the user pipeline and stages through which | ||
| it is executed. Created by Cloud Dataflow service. Only retrieved with | ||
|
|
@@ -3498,22 +3499,23 @@ class AdditionalProperty(_messages.Message): | |
| labels = _messages.MessageField('LabelsValue', 10) | ||
| location = _messages.StringField(11) | ||
| name = _messages.StringField(12) | ||
| pipelineDescription = _messages.MessageField('PipelineDescription', 13) | ||
| projectId = _messages.StringField(14) | ||
| replaceJobId = _messages.StringField(15) | ||
| replacedByJobId = _messages.StringField(16) | ||
| requestedState = _messages.EnumField('RequestedStateValueValuesEnum', 17) | ||
| runtimeUpdatableParams = _messages.MessageField('RuntimeUpdatableParams', 18) | ||
| satisfiesPzi = _messages.BooleanField(19) | ||
| satisfiesPzs = _messages.BooleanField(20) | ||
| serviceResources = _messages.MessageField('ServiceResources', 21) | ||
| stageStates = _messages.MessageField('ExecutionStageState', 22, repeated=True) | ||
| startTime = _messages.StringField(23) | ||
| steps = _messages.MessageField('Step', 24, repeated=True) | ||
| stepsLocation = _messages.StringField(25) | ||
| tempFiles = _messages.StringField(26, repeated=True) | ||
| transformNameMapping = _messages.MessageField('TransformNameMappingValue', 27) | ||
| type = _messages.EnumField('TypeValueValuesEnum', 28) | ||
| pausable = _messages.BooleanField(13) | ||
| pipelineDescription = _messages.MessageField('PipelineDescription', 14) | ||
| projectId = _messages.StringField(15) | ||
| replaceJobId = _messages.StringField(16) | ||
| replacedByJobId = _messages.StringField(17) | ||
| requestedState = _messages.EnumField('RequestedStateValueValuesEnum', 18) | ||
| runtimeUpdatableParams = _messages.MessageField('RuntimeUpdatableParams', 19) | ||
| satisfiesPzi = _messages.BooleanField(20) | ||
| satisfiesPzs = _messages.BooleanField(21) | ||
| serviceResources = _messages.MessageField('ServiceResources', 22) | ||
| stageStates = _messages.MessageField('ExecutionStageState', 23, repeated=True) | ||
| startTime = _messages.StringField(24) | ||
| steps = _messages.MessageField('Step', 25, repeated=True) | ||
| stepsLocation = _messages.StringField(26) | ||
| tempFiles = _messages.StringField(27, repeated=True) | ||
| transformNameMapping = _messages.MessageField('TransformNameMappingValue', 28) | ||
| type = _messages.EnumField('TypeValueValuesEnum', 29) | ||
|
|
||
|
|
||
| class JobExecutionDetails(_messages.Message): | ||
|
|
@@ -5342,8 +5344,14 @@ class RuntimeUpdatableParams(_messages.Message): | |
| during job creation. | ||
|
|
||
| Fields: | ||
| acceptableBacklogDuration: Optional. The backlog threshold duration in | ||
| seconds for autoscaling. Value must be non-negative. | ||
| acceptableBacklogDuration: Optional. Deprecated: Use `latency_tier` | ||
| instead. The backlog threshold duration in seconds for autoscaling. | ||
| Value must be non-negative. | ||
| autoscalingTier: Optional. Deprecated: Use `latency_tier` instead. The | ||
| backlog threshold tier for autoscaling. Value must be one of "low- | ||
| latency", "medium-latency", or "high-latency". | ||
| latencyTier: Optional. The backlog threshold tier for autoscaling. Value | ||
| must be one of "low-latency", "medium-latency", or "high-latency". | ||
| maxNumWorkers: The maximum number of workers to cap autoscaling at. This | ||
| field is currently only supported for Streaming Engine jobs. | ||
| minNumWorkers: The minimum number of workers to scale down to. This field | ||
|
|
@@ -5357,9 +5365,11 @@ class RuntimeUpdatableParams(_messages.Message): | |
| """ | ||
|
|
||
| acceptableBacklogDuration = _messages.StringField(1) | ||
| maxNumWorkers = _messages.IntegerField(2, variant=_messages.Variant.INT32) | ||
| minNumWorkers = _messages.IntegerField(3, variant=_messages.Variant.INT32) | ||
| workerUtilizationHint = _messages.FloatField(4) | ||
| autoscalingTier = _messages.StringField(2) | ||
| latencyTier = _messages.StringField(3) | ||
| maxNumWorkers = _messages.IntegerField(4, variant=_messages.Variant.INT32) | ||
| minNumWorkers = _messages.IntegerField(5, variant=_messages.Variant.INT32) | ||
| workerUtilizationHint = _messages.FloatField(6) | ||
|
|
||
|
|
||
| class SDKInfo(_messages.Message): | ||
|
|
@@ -7775,6 +7785,9 @@ class WorkerPool(_messages.Message): | |
| defaultPackageSet: The default package set to install. This allows the | ||
| service to select a default set of packages which are useful to worker | ||
| harnesses written in a particular language. | ||
| diskProvisionedIops: Optional. IOPS provisioned for the root disk for VMs. | ||
|
tvalentyn marked this conversation as resolved.
|
||
| diskProvisionedThroughputMibps: Optional. Throughput provisioned for the | ||
| root disk for VMs. | ||
| diskSizeGb: Size of root disk for VMs, in GB. If zero or unspecified, the | ||
| service will attempt to choose a reasonable default. | ||
| diskSourceImage: Fully qualified source image for disks. | ||
|
|
@@ -7938,25 +7951,27 @@ class AdditionalProperty(_messages.Message): | |
| autoscalingSettings = _messages.MessageField('AutoscalingSettings', 1) | ||
| dataDisks = _messages.MessageField('Disk', 2, repeated=True) | ||
| defaultPackageSet = _messages.EnumField('DefaultPackageSetValueValuesEnum', 3) | ||
| diskSizeGb = _messages.IntegerField(4, variant=_messages.Variant.INT32) | ||
| diskSourceImage = _messages.StringField(5) | ||
| diskType = _messages.StringField(6) | ||
| ipConfiguration = _messages.EnumField('IpConfigurationValueValuesEnum', 7) | ||
| kind = _messages.StringField(8) | ||
| machineType = _messages.StringField(9) | ||
| metadata = _messages.MessageField('MetadataValue', 10) | ||
| network = _messages.StringField(11) | ||
| numThreadsPerWorker = _messages.IntegerField(12, variant=_messages.Variant.INT32) | ||
| numWorkers = _messages.IntegerField(13, variant=_messages.Variant.INT32) | ||
| onHostMaintenance = _messages.StringField(14) | ||
| packages = _messages.MessageField('Package', 15, repeated=True) | ||
| poolArgs = _messages.MessageField('PoolArgsValue', 16) | ||
| sdkHarnessContainerImages = _messages.MessageField('SdkHarnessContainerImage', 17, repeated=True) | ||
| subnetwork = _messages.StringField(18) | ||
| taskrunnerSettings = _messages.MessageField('TaskRunnerSettings', 19) | ||
| teardownPolicy = _messages.EnumField('TeardownPolicyValueValuesEnum', 20) | ||
| workerHarnessContainerImage = _messages.StringField(21) | ||
| zone = _messages.StringField(22) | ||
| diskProvisionedIops = _messages.IntegerField(4) | ||
| diskProvisionedThroughputMibps = _messages.IntegerField(5) | ||
| diskSizeGb = _messages.IntegerField(6, variant=_messages.Variant.INT32) | ||
| diskSourceImage = _messages.StringField(7) | ||
| diskType = _messages.StringField(8) | ||
| ipConfiguration = _messages.EnumField('IpConfigurationValueValuesEnum', 9) | ||
| kind = _messages.StringField(10) | ||
| machineType = _messages.StringField(11) | ||
| metadata = _messages.MessageField('MetadataValue', 12) | ||
| network = _messages.StringField(13) | ||
| numThreadsPerWorker = _messages.IntegerField(14, variant=_messages.Variant.INT32) | ||
| numWorkers = _messages.IntegerField(15, variant=_messages.Variant.INT32) | ||
| onHostMaintenance = _messages.StringField(16) | ||
| packages = _messages.MessageField('Package', 17, repeated=True) | ||
| poolArgs = _messages.MessageField('PoolArgsValue', 18) | ||
| sdkHarnessContainerImages = _messages.MessageField('SdkHarnessContainerImage', 19, repeated=True) | ||
| subnetwork = _messages.StringField(20) | ||
| taskrunnerSettings = _messages.MessageField('TaskRunnerSettings', 21) | ||
| teardownPolicy = _messages.EnumField('TeardownPolicyValueValuesEnum', 22) | ||
| workerHarnessContainerImage = _messages.StringField(23) | ||
| zone = _messages.StringField(24) | ||
|
|
||
|
|
||
| class WorkerSettings(_messages.Message): | ||
|
|
@@ -8047,11 +8062,3 @@ class WriteInstruction(_messages.Message): | |
| StandardQueryParameters.FXgafvValueValuesEnum, '_1', '1') | ||
| encoding.AddCustomJsonEnumMapping( | ||
| StandardQueryParameters.FXgafvValueValuesEnum, '_2', '2') | ||
| encoding.AddCustomJsonFieldMapping( | ||
| DataflowProjectsLocationsTemplatesLaunchRequest, 'dynamicTemplate_gcsPath', 'dynamicTemplate.gcsPath') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this removed? I am not seeing this change when i attempt to regenerate the client myself. |
||
| encoding.AddCustomJsonFieldMapping( | ||
| DataflowProjectsLocationsTemplatesLaunchRequest, 'dynamicTemplate_stagingLocation', 'dynamicTemplate.stagingLocation') | ||
| encoding.AddCustomJsonFieldMapping( | ||
| DataflowProjectsTemplatesLaunchRequest, 'dynamicTemplate_gcsPath', 'dynamicTemplate.gcsPath') | ||
| encoding.AddCustomJsonFieldMapping( | ||
| DataflowProjectsTemplatesLaunchRequest, 'dynamicTemplate_stagingLocation', 'dynamicTemplate.stagingLocation') | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this line