Skip to content

Commit 80719b9

Browse files
1 parent d86047e commit 80719b9

5 files changed

Lines changed: 91 additions & 2 deletions

File tree

src/Dataproc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ class Dataproc extends \Google\Service
3737
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
3838
const CLOUD_PLATFORM =
3939
"https://www.googleapis.com/auth/cloud-platform";
40+
/** See, edit, configure, and delete your Google Cloud Dataproc data and see the email address for your Google Account. */
41+
const DATAPROC =
42+
"https://www.googleapis.com/auth/dataproc";
43+
/** See your Google Cloud Dataproc data and the email address of your Google Account. */
44+
const DATAPROC_READ_ONLY =
45+
"https://www.googleapis.com/auth/dataproc.read-only";
4046

4147
public $projects_locations_autoscalingPolicies;
4248
public $projects_locations_batches;

src/Dataproc/ClusterConfig.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ class ClusterConfig extends \Google\Collection
4949
* secondary worker nodes.
5050
*/
5151
public const CLUSTER_TYPE_ZERO_SCALE = 'ZERO_SCALE';
52+
/**
53+
* The engine is not specified. Works the same as ENGINE_DEFAULT.
54+
*/
55+
public const ENGINE_ENGINE_UNSPECIFIED = 'ENGINE_UNSPECIFIED';
56+
/**
57+
* The cluster is a default engine cluster.
58+
*/
59+
public const ENGINE_DEFAULT = 'DEFAULT';
60+
/**
61+
* The cluster is a lightning engine cluster.
62+
*/
63+
public const ENGINE_LIGHTNING = 'LIGHTNING';
5264
protected $collection_key = 'initializationActions';
5365
protected $autoscalingConfigType = AutoscalingConfig::class;
5466
protected $autoscalingConfigDataType = '';
@@ -97,6 +109,12 @@ class ClusterConfig extends \Google\Collection
97109
protected $encryptionConfigDataType = '';
98110
protected $endpointConfigType = EndpointConfig::class;
99111
protected $endpointConfigDataType = '';
112+
/**
113+
* Optional. The cluster engine.
114+
*
115+
* @var string
116+
*/
117+
public $engine;
100118
protected $gceClusterConfigType = GceClusterConfig::class;
101119
protected $gceClusterConfigDataType = '';
102120
protected $gkeClusterConfigType = GkeClusterConfig::class;
@@ -298,6 +316,24 @@ public function getEndpointConfig()
298316
{
299317
return $this->endpointConfig;
300318
}
319+
/**
320+
* Optional. The cluster engine.
321+
*
322+
* Accepted values: ENGINE_UNSPECIFIED, DEFAULT, LIGHTNING
323+
*
324+
* @param self::ENGINE_* $engine
325+
*/
326+
public function setEngine($engine)
327+
{
328+
$this->engine = $engine;
329+
}
330+
/**
331+
* @return self::ENGINE_*
332+
*/
333+
public function getEngine()
334+
{
335+
return $this->engine;
336+
}
301337
/**
302338
* Optional. The shared Compute Engine config settings for all instances in a
303339
* cluster.

src/Dataproc/Resource/ProjectsRegionsClusters.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,11 @@ public function injectCredentials($project, $region, $cluster, InjectCredentials
218218
* separated items are treated as having an implicit AND operator.Example
219219
* filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env =
220220
* staging AND labels.starred = *
221-
* @opt_param int pageSize Optional. The standard List page size.
222-
* @opt_param string pageToken Optional. The standard List page token.
221+
* @opt_param int pageSize Optional. The maximum number of clusters to return in
222+
* each response. The service may return fewer than this value. If unspecified,
223+
* the default value is 200. The maximum value is 1000.
224+
* @opt_param string pageToken Optional. A page token received from a previous
225+
* ListClusters call. Provide this token to retrieve the subsequent page.
223226
* @return ListClustersResponse
224227
* @throws \Google\Service\Exception
225228
*/

src/Dataproc/SparkPlanGraphCluster.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ class SparkPlanGraphCluster extends \Google\Collection
2424
* @var string
2525
*/
2626
public $desc;
27+
/**
28+
* Optional. Additional metadata for the spark plan graph cluster.
29+
*
30+
* @var string[]
31+
*/
32+
public $metadata;
2733
protected $metricsType = SqlPlanMetric::class;
2834
protected $metricsDataType = 'array';
2935
/**
@@ -51,6 +57,22 @@ public function getDesc()
5157
{
5258
return $this->desc;
5359
}
60+
/**
61+
* Optional. Additional metadata for the spark plan graph cluster.
62+
*
63+
* @param string[] $metadata
64+
*/
65+
public function setMetadata($metadata)
66+
{
67+
$this->metadata = $metadata;
68+
}
69+
/**
70+
* @return string[]
71+
*/
72+
public function getMetadata()
73+
{
74+
return $this->metadata;
75+
}
5476
/**
5577
* @param SqlPlanMetric[] $metrics
5678
*/

src/Dataproc/SparkPlanGraphNode.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ class SparkPlanGraphNode extends \Google\Collection
2424
* @var string
2525
*/
2626
public $desc;
27+
/**
28+
* Optional. Additional metadata for the spark plan graph cluster.
29+
*
30+
* @var string[]
31+
*/
32+
public $metadata;
2733
protected $metricsType = SqlPlanMetric::class;
2834
protected $metricsDataType = 'array';
2935
/**
@@ -49,6 +55,22 @@ public function getDesc()
4955
{
5056
return $this->desc;
5157
}
58+
/**
59+
* Optional. Additional metadata for the spark plan graph cluster.
60+
*
61+
* @param string[] $metadata
62+
*/
63+
public function setMetadata($metadata)
64+
{
65+
$this->metadata = $metadata;
66+
}
67+
/**
68+
* @return string[]
69+
*/
70+
public function getMetadata()
71+
{
72+
return $this->metadata;
73+
}
5274
/**
5375
* @param SqlPlanMetric[] $metrics
5476
*/

0 commit comments

Comments
 (0)