Skip to content

Commit 56cfcc0

Browse files
1 parent ff3622e commit 56cfcc0

2 files changed

Lines changed: 53 additions & 4 deletions

File tree

src/Dataflow/Job.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ class Job extends \Google\Collection
298298
* @var string
299299
*/
300300
public $name;
301+
/**
302+
* Output only. Indicates whether the job can be paused.
303+
*
304+
* @var bool
305+
*/
306+
public $pausable;
301307
protected $pipelineDescriptionType = PipelineDescription::class;
302308
protected $pipelineDescriptionDataType = '';
303309
/**
@@ -621,6 +627,22 @@ public function getName()
621627
{
622628
return $this->name;
623629
}
630+
/**
631+
* Output only. Indicates whether the job can be paused.
632+
*
633+
* @param bool $pausable
634+
*/
635+
public function setPausable($pausable)
636+
{
637+
$this->pausable = $pausable;
638+
}
639+
/**
640+
* @return bool
641+
*/
642+
public function getPausable()
643+
{
644+
return $this->pausable;
645+
}
624646
/**
625647
* Preliminary field: The format of this data may change at any time. A
626648
* description of the user pipeline and stages through which it is executed.

src/Dataflow/RuntimeUpdatableParams.php

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,20 @@
2020
class RuntimeUpdatableParams extends \Google\Model
2121
{
2222
/**
23-
* Optional. The backlog threshold duration in seconds for autoscaling. Value
24-
* must be non-negative.
23+
* Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold
24+
* duration in seconds for autoscaling. Value must be non-negative.
2525
*
26+
* @deprecated
2627
* @var string
2728
*/
2829
public $acceptableBacklogDuration;
30+
/**
31+
* Optional. The backlog threshold tier for autoscaling. Value must be one of
32+
* "low-latency", "medium-latency", or "high-latency".
33+
*
34+
* @var string
35+
*/
36+
public $autoscalingTier;
2937
/**
3038
* The maximum number of workers to cap autoscaling at. This field is
3139
* currently only supported for Streaming Engine jobs.
@@ -53,22 +61,41 @@ class RuntimeUpdatableParams extends \Google\Model
5361
public $workerUtilizationHint;
5462

5563
/**
56-
* Optional. The backlog threshold duration in seconds for autoscaling. Value
57-
* must be non-negative.
64+
* Optional. Deprecated: Use `autoscaling_tier` instead. The backlog threshold
65+
* duration in seconds for autoscaling. Value must be non-negative.
5866
*
67+
* @deprecated
5968
* @param string $acceptableBacklogDuration
6069
*/
6170
public function setAcceptableBacklogDuration($acceptableBacklogDuration)
6271
{
6372
$this->acceptableBacklogDuration = $acceptableBacklogDuration;
6473
}
6574
/**
75+
* @deprecated
6676
* @return string
6777
*/
6878
public function getAcceptableBacklogDuration()
6979
{
7080
return $this->acceptableBacklogDuration;
7181
}
82+
/**
83+
* Optional. The backlog threshold tier for autoscaling. Value must be one of
84+
* "low-latency", "medium-latency", or "high-latency".
85+
*
86+
* @param string $autoscalingTier
87+
*/
88+
public function setAutoscalingTier($autoscalingTier)
89+
{
90+
$this->autoscalingTier = $autoscalingTier;
91+
}
92+
/**
93+
* @return string
94+
*/
95+
public function getAutoscalingTier()
96+
{
97+
return $this->autoscalingTier;
98+
}
7299
/**
73100
* The maximum number of workers to cap autoscaling at. This field is
74101
* currently only supported for Streaming Engine jobs.

0 commit comments

Comments
 (0)