Skip to content

Commit 28dda53

Browse files
Regenerate dataflow client
1 parent c9fa9d7 commit 28dda53

10 files changed

+335
-0
lines changed

src/Dataflow.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
320320
'required' => true,
321321
],
322322
],
323+
],'getWorkerStacktraces' => [
324+
'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getWorkerStacktraces',
325+
'httpMethod' => 'POST',
326+
'parameters' => [
327+
'projectId' => [
328+
'location' => 'path',
329+
'type' => 'string',
330+
'required' => true,
331+
],
332+
'jobId' => [
333+
'location' => 'path',
334+
'type' => 'string',
335+
'required' => true,
336+
],
337+
],
323338
],'sendCapture' => [
324339
'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture',
325340
'httpMethod' => 'POST',

src/Dataflow/Environment.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ class Environment extends \Google\Collection
7070
* @var string
7171
*/
7272
public $tempStoragePrefix;
73+
/**
74+
* @var bool
75+
*/
76+
public $usePublicIps;
7377
/**
7478
* @var bool
7579
*/
@@ -275,6 +279,20 @@ public function getTempStoragePrefix()
275279
{
276280
return $this->tempStoragePrefix;
277281
}
282+
/**
283+
* @param bool
284+
*/
285+
public function setUsePublicIps($usePublicIps)
286+
{
287+
$this->usePublicIps = $usePublicIps;
288+
}
289+
/**
290+
* @return bool
291+
*/
292+
public function getUsePublicIps()
293+
{
294+
return $this->usePublicIps;
295+
}
278296
/**
279297
* @param bool
280298
*/
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Dataflow;
19+
20+
class GetWorkerStacktracesRequest extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $workerId;
26+
27+
/**
28+
* @param string
29+
*/
30+
public function setWorkerId($workerId)
31+
{
32+
$this->workerId = $workerId;
33+
}
34+
/**
35+
* @return string
36+
*/
37+
public function getWorkerId()
38+
{
39+
return $this->workerId;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GetWorkerStacktracesRequest::class, 'Google_Service_Dataflow_GetWorkerStacktracesRequest');
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Dataflow;
19+
20+
class GetWorkerStacktracesResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'sdks';
23+
protected $sdksType = Sdk::class;
24+
protected $sdksDataType = 'array';
25+
26+
/**
27+
* @param Sdk[]
28+
*/
29+
public function setSdks($sdks)
30+
{
31+
$this->sdks = $sdks;
32+
}
33+
/**
34+
* @return Sdk[]
35+
*/
36+
public function getSdks()
37+
{
38+
return $this->sdks;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(GetWorkerStacktracesResponse::class, 'Google_Service_Dataflow_GetWorkerStacktracesResponse');

src/Dataflow/MetricUpdate.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
class MetricUpdate extends \Google\Model
2121
{
22+
/**
23+
* @var array
24+
*/
25+
public $boundedTrie;
2226
/**
2327
* @var bool
2428
*/
@@ -66,6 +70,20 @@ class MetricUpdate extends \Google\Model
6670
*/
6771
public $updateTime;
6872

73+
/**
74+
* @param array
75+
*/
76+
public function setBoundedTrie($boundedTrie)
77+
{
78+
$this->boundedTrie = $boundedTrie;
79+
}
80+
/**
81+
* @return array
82+
*/
83+
public function getBoundedTrie()
84+
{
85+
return $this->boundedTrie;
86+
}
6987
/**
7088
* @param bool
7189
*/

src/Dataflow/Resource/ProjectsJobs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function aggregated($projectId, $optParams = [])
6262
return $this->call('aggregated', [$params], ListJobsResponse::class);
6363
}
6464
/**
65+
* A Job is a multi-stage computation graph run by the Cloud Dataflow service.
6566
* Creates a Cloud Dataflow job. To create a job, we recommend using
6667
* `projects.locations.jobs.create` with a [regional endpoint]
6768
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using

src/Dataflow/Resource/ProjectsJobsDebug.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
use Google\Service\Dataflow\GetDebugConfigRequest;
2121
use Google\Service\Dataflow\GetDebugConfigResponse;
22+
use Google\Service\Dataflow\GetWorkerStacktracesRequest;
23+
use Google\Service\Dataflow\GetWorkerStacktracesResponse;
2224
use Google\Service\Dataflow\SendDebugCaptureRequest;
2325
use Google\Service\Dataflow\SendDebugCaptureResponse;
2426

@@ -49,6 +51,22 @@ public function getConfig($projectId, $jobId, GetDebugConfigRequest $postBody, $
4951
$params = array_merge($params, $optParams);
5052
return $this->call('getConfig', [$params], GetDebugConfigResponse::class);
5153
}
54+
/**
55+
* Get worker stacktraces from debug capture. (debug.getWorkerStacktraces)
56+
*
57+
* @param string $projectId The project id.
58+
* @param string $jobId The job for which to get stacktraces.
59+
* @param GetWorkerStacktracesRequest $postBody
60+
* @param array $optParams Optional parameters.
61+
* @return GetWorkerStacktracesResponse
62+
* @throws \Google\Service\Exception
63+
*/
64+
public function getWorkerStacktraces($projectId, $jobId, GetWorkerStacktracesRequest $postBody, $optParams = [])
65+
{
66+
$params = ['projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody];
67+
$params = array_merge($params, $optParams);
68+
return $this->call('getWorkerStacktraces', [$params], GetWorkerStacktracesResponse::class);
69+
}
5270
/**
5371
* Send encoded debug capture data for component. (debug.sendCapture)
5472
*

src/Dataflow/Resource/ProjectsLocationsJobs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
class ProjectsLocationsJobs extends \Google\Service\Resource
3636
{
3737
/**
38+
* A Job is a multi-stage computation graph run by the Cloud Dataflow service.
3839
* Creates a Cloud Dataflow job. To create a job, we recommend using
3940
* `projects.locations.jobs.create` with a [regional endpoint]
4041
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using

src/Dataflow/Sdk.php

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Dataflow;
19+
20+
class Sdk extends \Google\Collection
21+
{
22+
protected $collection_key = 'stacks';
23+
/**
24+
* @var string
25+
*/
26+
public $sdkId;
27+
protected $stacksType = Stack::class;
28+
protected $stacksDataType = 'array';
29+
30+
/**
31+
* @param string
32+
*/
33+
public function setSdkId($sdkId)
34+
{
35+
$this->sdkId = $sdkId;
36+
}
37+
/**
38+
* @return string
39+
*/
40+
public function getSdkId()
41+
{
42+
return $this->sdkId;
43+
}
44+
/**
45+
* @param Stack[]
46+
*/
47+
public function setStacks($stacks)
48+
{
49+
$this->stacks = $stacks;
50+
}
51+
/**
52+
* @return Stack[]
53+
*/
54+
public function getStacks()
55+
{
56+
return $this->stacks;
57+
}
58+
}
59+
60+
// Adding a class alias for backwards compatibility with the previous class name.
61+
class_alias(Sdk::class, 'Google_Service_Dataflow_Sdk');

0 commit comments

Comments
 (0)