Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AcceleratorConfig extends \Google\Model
{
/**
* The number of the accelerator cards of this type exposed to this instance.
*
* @var int
*/
public $acceleratorCount;
/**
* Full URL, partial URI, or short name of the accelerator type resource to
* expose to this instance. See Compute Engine AcceleratorTypes (https://cloud
* .google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://w
* ww.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/accelerator
* Types/nvidia-tesla-t4
* projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-
* tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone
* Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/auto-zone#using_auto_zone_placement) feature, you must use the
* short name of the accelerator type resource, for example, nvidia-tesla-t4.
*
* @var string
*/
public $acceleratorTypeUri;
/**
* The number of the accelerator cards of this type exposed to this instance.
*
* @param int $acceleratorCount
*/
public function setAcceleratorCount($acceleratorCount)
{
$this->acceleratorCount = $acceleratorCount;
}
/**
* @return int
*/
public function getAcceleratorCount()
{
return $this->acceleratorCount;
}
/**
* Full URL, partial URI, or short name of the accelerator type resource to
* expose to this instance. See Compute Engine AcceleratorTypes (https://cloud
* .google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://w
* ww.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/accelerator
* Types/nvidia-tesla-t4
* projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-
* tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone
* Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/auto-zone#using_auto_zone_placement) feature, you must use the
* short name of the accelerator type resource, for example, nvidia-tesla-t4.
*
* @param string $acceleratorTypeUri
*/
public function setAcceleratorTypeUri($acceleratorTypeUri)
{
$this->acceleratorTypeUri = $acceleratorTypeUri;
}
/**
* @return string
*/
public function getAcceleratorTypeUri()
{
return $this->acceleratorTypeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorConfig::class, 'Google_Service_Dataproc_AcceleratorConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationEnvironmentInfoResponse extends \Google\Model
{
protected $applicationEnvironmentInfoType = ApplicationEnvironmentInfo::class;
protected $applicationEnvironmentInfoDataType = '';
/**
* Details about the Environment that the application is running in.
*
* @param ApplicationEnvironmentInfo $applicationEnvironmentInfo
*/
public function setApplicationEnvironmentInfo(ApplicationEnvironmentInfo $applicationEnvironmentInfo)
{
$this->applicationEnvironmentInfo = $applicationEnvironmentInfo;
}
/**
* @return ApplicationEnvironmentInfo
*/
public function getApplicationEnvironmentInfo()
{
return $this->applicationEnvironmentInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationEnvironmentInfoResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationEnvironmentInfoResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationJobResponse extends \Google\Model
{
protected $jobDataType = JobData::class;
protected $jobDataDataType = '';
/**
* Output only. Data corresponding to a spark job.
*
* @param JobData $jobData
*/
public function setJobData(JobData $jobData)
{
$this->jobData = $jobData;
}
/**
* @return JobData
*/
public function getJobData()
{
return $this->jobData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationJobResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationJobResponse');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationNativeBuildInfoResponse extends \Google\Model
{
protected $executionDataType = NativeBuildInfoUiData::class;
protected $executionDataDataType = '';
/**
* @param NativeBuildInfoUiData
*/
public function setExecutionData(NativeBuildInfoUiData $executionData)
{
$this->executionData = $executionData;
}
/**
* @return NativeBuildInfoUiData
*/
public function getExecutionData()
{
return $this->executionData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationNativeBuildInfoResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationNativeBuildInfoResponse');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationNativeSqlQueryResponse extends \Google\Model
{
protected $executionDataType = NativeSqlExecutionUiData::class;
protected $executionDataDataType = '';
/**
* @param NativeSqlExecutionUiData
*/
public function setExecutionData(NativeSqlExecutionUiData $executionData)
{
$this->executionData = $executionData;
}
/**
* @return NativeSqlExecutionUiData
*/
public function getExecutionData()
{
return $this->executionData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationNativeSqlQueryResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationNativeSqlQueryResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationResponse extends \Google\Model
{
protected $applicationType = ApplicationInfo::class;
protected $applicationDataType = '';
/**
* Output only. High level information corresponding to an application.
*
* @param ApplicationInfo $application
*/
public function setApplication(ApplicationInfo $application)
{
$this->application = $application;
}
/**
* @return ApplicationInfo
*/
public function getApplication()
{
return $this->application;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationSqlQueryResponse extends \Google\Model
{
protected $executionDataType = SqlExecutionUiData::class;
protected $executionDataDataType = '';
/**
* SQL Execution Data
*
* @param SqlExecutionUiData $executionData
*/
public function setExecutionData(SqlExecutionUiData $executionData)
{
$this->executionData = $executionData;
}
/**
* @return SqlExecutionUiData
*/
public function getExecutionData()
{
return $this->executionData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationSqlQueryResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationSqlQueryResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationSqlSparkPlanGraphResponse extends \Google\Model
{
protected $sparkPlanGraphType = SparkPlanGraph::class;
protected $sparkPlanGraphDataType = '';
/**
* SparkPlanGraph for a Spark Application execution.
*
* @param SparkPlanGraph $sparkPlanGraph
*/
public function setSparkPlanGraph(SparkPlanGraph $sparkPlanGraph)
{
$this->sparkPlanGraph = $sparkPlanGraph;
}
/**
* @return SparkPlanGraph
*/
public function getSparkPlanGraph()
{
return $this->sparkPlanGraph;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationSqlSparkPlanGraphResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationSqlSparkPlanGraphResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationStageAttemptResponse extends \Google\Model
{
protected $stageDataType = StageData::class;
protected $stageDataDataType = '';
/**
* Output only. Data corresponding to a stage.
*
* @param StageData $stageData
*/
public function setStageData(StageData $stageData)
{
$this->stageData = $stageData;
}
/**
* @return StageData
*/
public function getStageData()
{
return $this->stageData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationStageAttemptResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationStageAttemptResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSessionSparkApplicationStageRddOperationGraphResponse extends \Google\Model
{
protected $rddOperationGraphType = RddOperationGraph::class;
protected $rddOperationGraphDataType = '';
/**
* RDD operation graph for a Spark Application Stage.
*
* @param RddOperationGraph $rddOperationGraph
*/
public function setRddOperationGraph(RddOperationGraph $rddOperationGraph)
{
$this->rddOperationGraph = $rddOperationGraph;
}
/**
* @return RddOperationGraph
*/
public function getRddOperationGraph()
{
return $this->rddOperationGraph;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSessionSparkApplicationStageRddOperationGraphResponse::class, 'Google_Service_Dataproc_AccessSessionSparkApplicationStageRddOperationGraphResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationEnvironmentInfoResponse extends \Google\Model
{
protected $applicationEnvironmentInfoType = ApplicationEnvironmentInfo::class;
protected $applicationEnvironmentInfoDataType = '';
/**
* Details about the Environment that the application is running in.
*
* @param ApplicationEnvironmentInfo $applicationEnvironmentInfo
*/
public function setApplicationEnvironmentInfo(ApplicationEnvironmentInfo $applicationEnvironmentInfo)
{
$this->applicationEnvironmentInfo = $applicationEnvironmentInfo;
}
/**
* @return ApplicationEnvironmentInfo
*/
public function getApplicationEnvironmentInfo()
{
return $this->applicationEnvironmentInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationEnvironmentInfoResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationEnvironmentInfoResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationJobResponse extends \Google\Model
{
protected $jobDataType = JobData::class;
protected $jobDataDataType = '';
/**
* Output only. Data corresponding to a spark job.
*
* @param JobData $jobData
*/
public function setJobData(JobData $jobData)
{
$this->jobData = $jobData;
}
/**
* @return JobData
*/
public function getJobData()
{
return $this->jobData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationJobResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationJobResponse');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationNativeBuildInfoResponse extends \Google\Model
{
protected $buildInfoType = NativeBuildInfoUiData::class;
protected $buildInfoDataType = '';
/**
* @param NativeBuildInfoUiData
*/
public function setBuildInfo(NativeBuildInfoUiData $buildInfo)
{
$this->buildInfo = $buildInfo;
}
/**
* @return NativeBuildInfoUiData
*/
public function getBuildInfo()
{
return $this->buildInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationNativeBuildInfoResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationNativeBuildInfoResponse');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationNativeSqlQueryResponse extends \Google\Model
{
protected $executionDataType = NativeSqlExecutionUiData::class;
protected $executionDataDataType = '';
/**
* @param NativeSqlExecutionUiData
*/
public function setExecutionData(NativeSqlExecutionUiData $executionData)
{
$this->executionData = $executionData;
}
/**
* @return NativeSqlExecutionUiData
*/
public function getExecutionData()
{
return $this->executionData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationNativeSqlQueryResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationNativeSqlQueryResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationResponse extends \Google\Model
{
protected $applicationType = ApplicationInfo::class;
protected $applicationDataType = '';
/**
* Output only. High level information corresponding to an application.
*
* @param ApplicationInfo $application
*/
public function setApplication(ApplicationInfo $application)
{
$this->application = $application;
}
/**
* @return ApplicationInfo
*/
public function getApplication()
{
return $this->application;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationSqlQueryResponse extends \Google\Model
{
protected $executionDataType = SqlExecutionUiData::class;
protected $executionDataDataType = '';
/**
* SQL Execution Data
*
* @param SqlExecutionUiData $executionData
*/
public function setExecutionData(SqlExecutionUiData $executionData)
{
$this->executionData = $executionData;
}
/**
* @return SqlExecutionUiData
*/
public function getExecutionData()
{
return $this->executionData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationSqlQueryResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationSqlQueryResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationSqlSparkPlanGraphResponse extends \Google\Model
{
protected $sparkPlanGraphType = SparkPlanGraph::class;
protected $sparkPlanGraphDataType = '';
/**
* SparkPlanGraph for a Spark Application execution.
*
* @param SparkPlanGraph $sparkPlanGraph
*/
public function setSparkPlanGraph(SparkPlanGraph $sparkPlanGraph)
{
$this->sparkPlanGraph = $sparkPlanGraph;
}
/**
* @return SparkPlanGraph
*/
public function getSparkPlanGraph()
{
return $this->sparkPlanGraph;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationSqlSparkPlanGraphResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationSqlSparkPlanGraphResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationStageAttemptResponse extends \Google\Model
{
protected $stageDataType = StageData::class;
protected $stageDataDataType = '';
/**
* Output only. Data corresponding to a stage.
*
* @param StageData $stageData
*/
public function setStageData(StageData $stageData)
{
$this->stageData = $stageData;
}
/**
* @return StageData
*/
public function getStageData()
{
return $this->stageData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationStageAttemptResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationStageAttemptResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccessSparkApplicationStageRddOperationGraphResponse extends \Google\Model
{
protected $rddOperationGraphType = RddOperationGraph::class;
protected $rddOperationGraphDataType = '';
/**
* RDD operation graph for a Spark Application Stage.
*
* @param RddOperationGraph $rddOperationGraph
*/
public function setRddOperationGraph(RddOperationGraph $rddOperationGraph)
{
$this->rddOperationGraph = $rddOperationGraph;
}
/**
* @return RddOperationGraph
*/
public function getRddOperationGraph()
{
return $this->rddOperationGraph;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessSparkApplicationStageRddOperationGraphResponse::class, 'Google_Service_Dataproc_AccessSparkApplicationStageRddOperationGraphResponse');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AccumulableInfo extends \Google\Model
{
/**
* @var string
*/
public $accumullableInfoId;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $update;
/**
* @var string
*/
public $value;
/**
* @param string $accumullableInfoId
*/
public function setAccumullableInfoId($accumullableInfoId)
{
$this->accumullableInfoId = $accumullableInfoId;
}
/**
* @return string
*/
public function getAccumullableInfoId()
{
return $this->accumullableInfoId;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string $update
*/
public function setUpdate($update)
{
$this->update = $update;
}
/**
* @return string
*/
public function getUpdate()
{
return $this->update;
}
/**
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccumulableInfo::class, 'Google_Service_Dataproc_AccumulableInfo');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AnalyzeBatchRequest extends \Google\Model
{
/**
* Optional. A unique ID used to identify the request. If the service receives
* two AnalyzeBatchRequest (http://cloud/dataproc/docs/reference/rpc/google.cl
* oud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s with the
* same request_id, the second request is ignored and the Operation that
* corresponds to the first request created and stored in the backend is
* returned.Recommendation: Set this value to a UUID
* (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value
* must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
* hyphens (-). The maximum length is 40 characters.
*
* @var string
*/
public $requestId;
/**
* Optional. The requestor ID is used to identify if the request comes from a
* GCA investigation or the old Ask Gemini Experience.
*
* @deprecated
* @var string
*/
public $requestorId;
/**
* Optional. A unique ID used to identify the request. If the service receives
* two AnalyzeBatchRequest (http://cloud/dataproc/docs/reference/rpc/google.cl
* oud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s with the
* same request_id, the second request is ignored and the Operation that
* corresponds to the first request created and stored in the backend is
* returned.Recommendation: Set this value to a UUID
* (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value
* must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
* hyphens (-). The maximum length is 40 characters.
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Optional. The requestor ID is used to identify if the request comes from a
* GCA investigation or the old Ask Gemini Experience.
*
* @deprecated
* @param string $requestorId
*/
public function setRequestorId($requestorId)
{
$this->requestorId = $requestorId;
}
/**
* @deprecated
* @return string
*/
public function getRequestorId()
{
return $this->requestorId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeBatchRequest::class, 'Google_Service_Dataproc_AnalyzeBatchRequest');

View File

@@ -0,0 +1,215 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AnalyzeOperationMetadata extends \Google\Collection
{
/**
* Undefined option
*/
public const ANALYZED_WORKLOAD_TYPE_WORKLOAD_TYPE_UNSPECIFIED = 'WORKLOAD_TYPE_UNSPECIFIED';
/**
* Serverless batch job
*/
public const ANALYZED_WORKLOAD_TYPE_BATCH = 'BATCH';
protected $collection_key = 'warnings';
/**
* Output only. name of the workload being analyzed.
*
* @var string
*/
public $analyzedWorkloadName;
/**
* Output only. Type of the workload being analyzed.
*
* @var string
*/
public $analyzedWorkloadType;
/**
* Output only. unique identifier of the workload typically generated by
* control plane. E.g. batch uuid.
*
* @var string
*/
public $analyzedWorkloadUuid;
/**
* Output only. The time when the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Short description of the operation.
*
* @var string
*/
public $description;
/**
* Output only. The time when the operation finished.
*
* @var string
*/
public $doneTime;
/**
* Output only. Labels associated with the operation.
*
* @var string[]
*/
public $labels;
/**
* Output only. Warnings encountered during operation execution.
*
* @var string[]
*/
public $warnings;
/**
* Output only. name of the workload being analyzed.
*
* @param string $analyzedWorkloadName
*/
public function setAnalyzedWorkloadName($analyzedWorkloadName)
{
$this->analyzedWorkloadName = $analyzedWorkloadName;
}
/**
* @return string
*/
public function getAnalyzedWorkloadName()
{
return $this->analyzedWorkloadName;
}
/**
* Output only. Type of the workload being analyzed.
*
* Accepted values: WORKLOAD_TYPE_UNSPECIFIED, BATCH
*
* @param self::ANALYZED_WORKLOAD_TYPE_* $analyzedWorkloadType
*/
public function setAnalyzedWorkloadType($analyzedWorkloadType)
{
$this->analyzedWorkloadType = $analyzedWorkloadType;
}
/**
* @return self::ANALYZED_WORKLOAD_TYPE_*
*/
public function getAnalyzedWorkloadType()
{
return $this->analyzedWorkloadType;
}
/**
* Output only. unique identifier of the workload typically generated by
* control plane. E.g. batch uuid.
*
* @param string $analyzedWorkloadUuid
*/
public function setAnalyzedWorkloadUuid($analyzedWorkloadUuid)
{
$this->analyzedWorkloadUuid = $analyzedWorkloadUuid;
}
/**
* @return string
*/
public function getAnalyzedWorkloadUuid()
{
return $this->analyzedWorkloadUuid;
}
/**
* Output only. The time when the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Short description of the operation.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The time when the operation finished.
*
* @param string $doneTime
*/
public function setDoneTime($doneTime)
{
$this->doneTime = $doneTime;
}
/**
* @return string
*/
public function getDoneTime()
{
return $this->doneTime;
}
/**
* Output only. Labels associated with the operation.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Warnings encountered during operation execution.
*
* @param string[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return string[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeOperationMetadata::class, 'Google_Service_Dataproc_AnalyzeOperationMetadata');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AppSummary extends \Google\Model
{
/**
* @var int
*/
public $numCompletedJobs;
/**
* @var int
*/
public $numCompletedStages;
/**
* @param int $numCompletedJobs
*/
public function setNumCompletedJobs($numCompletedJobs)
{
$this->numCompletedJobs = $numCompletedJobs;
}
/**
* @return int
*/
public function getNumCompletedJobs()
{
return $this->numCompletedJobs;
}
/**
* @param int $numCompletedStages
*/
public function setNumCompletedStages($numCompletedStages)
{
$this->numCompletedStages = $numCompletedStages;
}
/**
* @return int
*/
public function getNumCompletedStages()
{
return $this->numCompletedStages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppSummary::class, 'Google_Service_Dataproc_AppSummary');

View File

@@ -0,0 +1,170 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ApplicationAttemptInfo extends \Google\Model
{
/**
* @var string
*/
public $appSparkVersion;
/**
* @var string
*/
public $attemptId;
/**
* @var bool
*/
public $completed;
/**
* @var string
*/
public $durationMillis;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $lastUpdated;
/**
* @var string
*/
public $sparkUser;
/**
* @var string
*/
public $startTime;
/**
* @param string $appSparkVersion
*/
public function setAppSparkVersion($appSparkVersion)
{
$this->appSparkVersion = $appSparkVersion;
}
/**
* @return string
*/
public function getAppSparkVersion()
{
return $this->appSparkVersion;
}
/**
* @param string $attemptId
*/
public function setAttemptId($attemptId)
{
$this->attemptId = $attemptId;
}
/**
* @return string
*/
public function getAttemptId()
{
return $this->attemptId;
}
/**
* @param bool $completed
*/
public function setCompleted($completed)
{
$this->completed = $completed;
}
/**
* @return bool
*/
public function getCompleted()
{
return $this->completed;
}
/**
* @param string $durationMillis
*/
public function setDurationMillis($durationMillis)
{
$this->durationMillis = $durationMillis;
}
/**
* @return string
*/
public function getDurationMillis()
{
return $this->durationMillis;
}
/**
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* @param string $sparkUser
*/
public function setSparkUser($sparkUser)
{
$this->sparkUser = $sparkUser;
}
/**
* @return string
*/
public function getSparkUser()
{
return $this->sparkUser;
}
/**
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationAttemptInfo::class, 'Google_Service_Dataproc_ApplicationAttemptInfo');

View File

@@ -0,0 +1,149 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ApplicationEnvironmentInfo extends \Google\Collection
{
protected $collection_key = 'resourceProfiles';
/**
* @var string[]
*/
public $classpathEntries;
/**
* @var string[]
*/
public $hadoopProperties;
/**
* @var string[]
*/
public $metricsProperties;
protected $resourceProfilesType = ResourceProfileInfo::class;
protected $resourceProfilesDataType = 'array';
protected $runtimeType = SparkRuntimeInfo::class;
protected $runtimeDataType = '';
/**
* @var string[]
*/
public $sparkProperties;
/**
* @var string[]
*/
public $systemProperties;
/**
* @param string[] $classpathEntries
*/
public function setClasspathEntries($classpathEntries)
{
$this->classpathEntries = $classpathEntries;
}
/**
* @return string[]
*/
public function getClasspathEntries()
{
return $this->classpathEntries;
}
/**
* @param string[] $hadoopProperties
*/
public function setHadoopProperties($hadoopProperties)
{
$this->hadoopProperties = $hadoopProperties;
}
/**
* @return string[]
*/
public function getHadoopProperties()
{
return $this->hadoopProperties;
}
/**
* @param string[] $metricsProperties
*/
public function setMetricsProperties($metricsProperties)
{
$this->metricsProperties = $metricsProperties;
}
/**
* @return string[]
*/
public function getMetricsProperties()
{
return $this->metricsProperties;
}
/**
* @param ResourceProfileInfo[] $resourceProfiles
*/
public function setResourceProfiles($resourceProfiles)
{
$this->resourceProfiles = $resourceProfiles;
}
/**
* @return ResourceProfileInfo[]
*/
public function getResourceProfiles()
{
return $this->resourceProfiles;
}
/**
* @param SparkRuntimeInfo $runtime
*/
public function setRuntime(SparkRuntimeInfo $runtime)
{
$this->runtime = $runtime;
}
/**
* @return SparkRuntimeInfo
*/
public function getRuntime()
{
return $this->runtime;
}
/**
* @param string[] $sparkProperties
*/
public function setSparkProperties($sparkProperties)
{
$this->sparkProperties = $sparkProperties;
}
/**
* @return string[]
*/
public function getSparkProperties()
{
return $this->sparkProperties;
}
/**
* @param string[] $systemProperties
*/
public function setSystemProperties($systemProperties)
{
$this->systemProperties = $systemProperties;
}
/**
* @return string[]
*/
public function getSystemProperties()
{
return $this->systemProperties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationEnvironmentInfo::class, 'Google_Service_Dataproc_ApplicationEnvironmentInfo');

View File

@@ -0,0 +1,192 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ApplicationInfo extends \Google\Collection
{
public const APPLICATION_CONTEXT_INGESTION_STATUS_APPLICATION_CONTEXT_INGESTION_STATUS_UNSPECIFIED = 'APPLICATION_CONTEXT_INGESTION_STATUS_UNSPECIFIED';
public const APPLICATION_CONTEXT_INGESTION_STATUS_APPLICATION_CONTEXT_INGESTION_STATUS_COMPLETED = 'APPLICATION_CONTEXT_INGESTION_STATUS_COMPLETED';
public const QUANTILE_DATA_STATUS_QUANTILE_DATA_STATUS_UNSPECIFIED = 'QUANTILE_DATA_STATUS_UNSPECIFIED';
public const QUANTILE_DATA_STATUS_QUANTILE_DATA_STATUS_COMPLETED = 'QUANTILE_DATA_STATUS_COMPLETED';
public const QUANTILE_DATA_STATUS_QUANTILE_DATA_STATUS_FAILED = 'QUANTILE_DATA_STATUS_FAILED';
protected $collection_key = 'attempts';
/**
* @var string
*/
public $applicationContextIngestionStatus;
/**
* @var string
*/
public $applicationId;
protected $attemptsType = ApplicationAttemptInfo::class;
protected $attemptsDataType = 'array';
/**
* @var int
*/
public $coresGranted;
/**
* @var int
*/
public $coresPerExecutor;
/**
* @var int
*/
public $maxCores;
/**
* @var int
*/
public $memoryPerExecutorMb;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $quantileDataStatus;
/**
* @param self::APPLICATION_CONTEXT_INGESTION_STATUS_* $applicationContextIngestionStatus
*/
public function setApplicationContextIngestionStatus($applicationContextIngestionStatus)
{
$this->applicationContextIngestionStatus = $applicationContextIngestionStatus;
}
/**
* @return self::APPLICATION_CONTEXT_INGESTION_STATUS_*
*/
public function getApplicationContextIngestionStatus()
{
return $this->applicationContextIngestionStatus;
}
/**
* @param string $applicationId
*/
public function setApplicationId($applicationId)
{
$this->applicationId = $applicationId;
}
/**
* @return string
*/
public function getApplicationId()
{
return $this->applicationId;
}
/**
* @param ApplicationAttemptInfo[] $attempts
*/
public function setAttempts($attempts)
{
$this->attempts = $attempts;
}
/**
* @return ApplicationAttemptInfo[]
*/
public function getAttempts()
{
return $this->attempts;
}
/**
* @param int $coresGranted
*/
public function setCoresGranted($coresGranted)
{
$this->coresGranted = $coresGranted;
}
/**
* @return int
*/
public function getCoresGranted()
{
return $this->coresGranted;
}
/**
* @param int $coresPerExecutor
*/
public function setCoresPerExecutor($coresPerExecutor)
{
$this->coresPerExecutor = $coresPerExecutor;
}
/**
* @return int
*/
public function getCoresPerExecutor()
{
return $this->coresPerExecutor;
}
/**
* @param int $maxCores
*/
public function setMaxCores($maxCores)
{
$this->maxCores = $maxCores;
}
/**
* @return int
*/
public function getMaxCores()
{
return $this->maxCores;
}
/**
* @param int $memoryPerExecutorMb
*/
public function setMemoryPerExecutorMb($memoryPerExecutorMb)
{
$this->memoryPerExecutorMb = $memoryPerExecutorMb;
}
/**
* @return int
*/
public function getMemoryPerExecutorMb()
{
return $this->memoryPerExecutorMb;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param self::QUANTILE_DATA_STATUS_* $quantileDataStatus
*/
public function setQuantileDataStatus($quantileDataStatus)
{
$this->quantileDataStatus = $quantileDataStatus;
}
/**
* @return self::QUANTILE_DATA_STATUS_*
*/
public function getQuantileDataStatus()
{
return $this->quantileDataStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationInfo::class, 'Google_Service_Dataproc_ApplicationInfo');

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AuthenticationConfig extends \Google\Model
{
/**
* If AuthenticationType is unspecified then END_USER_CREDENTIALS is used for
* 3.0 and newer runtimes, and SERVICE_ACCOUNT is used for older runtimes.
*/
public const USER_WORKLOAD_AUTHENTICATION_TYPE_AUTHENTICATION_TYPE_UNSPECIFIED = 'AUTHENTICATION_TYPE_UNSPECIFIED';
/**
* Use service account credentials for authenticating to other services.
*/
public const USER_WORKLOAD_AUTHENTICATION_TYPE_SERVICE_ACCOUNT = 'SERVICE_ACCOUNT';
/**
* Use OAuth credentials associated with the workload creator/user for
* authenticating to other services.
*/
public const USER_WORKLOAD_AUTHENTICATION_TYPE_END_USER_CREDENTIALS = 'END_USER_CREDENTIALS';
/**
* Optional. Authentication type for the user workload running in containers.
*
* @var string
*/
public $userWorkloadAuthenticationType;
/**
* Optional. Authentication type for the user workload running in containers.
*
* Accepted values: AUTHENTICATION_TYPE_UNSPECIFIED, SERVICE_ACCOUNT,
* END_USER_CREDENTIALS
*
* @param self::USER_WORKLOAD_AUTHENTICATION_TYPE_* $userWorkloadAuthenticationType
*/
public function setUserWorkloadAuthenticationType($userWorkloadAuthenticationType)
{
$this->userWorkloadAuthenticationType = $userWorkloadAuthenticationType;
}
/**
* @return self::USER_WORKLOAD_AUTHENTICATION_TYPE_*
*/
public function getUserWorkloadAuthenticationType()
{
return $this->userWorkloadAuthenticationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthenticationConfig::class, 'Google_Service_Dataproc_AuthenticationConfig');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AutoscalingConfig extends \Google\Model
{
/**
* Optional. The autoscaling policy used by the cluster.Only resource names
* including projectid and location (region) are valid. Examples: https://www.
* googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]
* /autoscalingPolicies/[policy_id] projects/[project_id]/locations/[dataproc_
* region]/autoscalingPolicies/[policy_id]Note that the policy must be in the
* same project and Dataproc region.
*
* @var string
*/
public $policyUri;
/**
* Optional. The autoscaling policy used by the cluster.Only resource names
* including projectid and location (region) are valid. Examples: https://www.
* googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]
* /autoscalingPolicies/[policy_id] projects/[project_id]/locations/[dataproc_
* region]/autoscalingPolicies/[policy_id]Note that the policy must be in the
* same project and Dataproc region.
*
* @param string $policyUri
*/
public function setPolicyUri($policyUri)
{
$this->policyUri = $policyUri;
}
/**
* @return string
*/
public function getPolicyUri()
{
return $this->policyUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingConfig::class, 'Google_Service_Dataproc_AutoscalingConfig');

View File

@@ -0,0 +1,211 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AutoscalingPolicy extends \Google\Model
{
/**
* Not set.
*/
public const CLUSTER_TYPE_CLUSTER_TYPE_UNSPECIFIED = 'CLUSTER_TYPE_UNSPECIFIED';
/**
* Standard dataproc cluster with a minimum of two primary workers.
*/
public const CLUSTER_TYPE_STANDARD = 'STANDARD';
/**
* Clusters that can use only secondary workers and be scaled down to zero
* secondary worker nodes.
*/
public const CLUSTER_TYPE_ZERO_SCALE = 'ZERO_SCALE';
protected $basicAlgorithmType = BasicAutoscalingAlgorithm::class;
protected $basicAlgorithmDataType = '';
/**
* Optional. The type of the clusters for which this autoscaling policy is to
* be configured.
*
* @var string
*/
public $clusterType;
/**
* Required. The policy id.The id must contain only letters (a-z, A-Z),
* numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with
* underscore or hyphen. Must consist of between 3 and 50 characters.
*
* @var string
*/
public $id;
/**
* Optional. The labels to associate with this autoscaling policy. Label keys
* must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with an autoscaling policy.
*
* @var string[]
*/
public $labels;
/**
* Output only. The "resource name" of the autoscaling policy, as described in
* https://cloud.google.com/apis/design/resource_names. For
* projects.regions.autoscalingPolicies, the resource name of the policy has
* the following format:
* projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For
* projects.locations.autoscalingPolicies, the resource name of the policy has
* the following format:
* projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
*
* @var string
*/
public $name;
protected $secondaryWorkerConfigType = InstanceGroupAutoscalingPolicyConfig::class;
protected $secondaryWorkerConfigDataType = '';
protected $workerConfigType = InstanceGroupAutoscalingPolicyConfig::class;
protected $workerConfigDataType = '';
/**
* @param BasicAutoscalingAlgorithm $basicAlgorithm
*/
public function setBasicAlgorithm(BasicAutoscalingAlgorithm $basicAlgorithm)
{
$this->basicAlgorithm = $basicAlgorithm;
}
/**
* @return BasicAutoscalingAlgorithm
*/
public function getBasicAlgorithm()
{
return $this->basicAlgorithm;
}
/**
* Optional. The type of the clusters for which this autoscaling policy is to
* be configured.
*
* Accepted values: CLUSTER_TYPE_UNSPECIFIED, STANDARD, ZERO_SCALE
*
* @param self::CLUSTER_TYPE_* $clusterType
*/
public function setClusterType($clusterType)
{
$this->clusterType = $clusterType;
}
/**
* @return self::CLUSTER_TYPE_*
*/
public function getClusterType()
{
return $this->clusterType;
}
/**
* Required. The policy id.The id must contain only letters (a-z, A-Z),
* numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with
* underscore or hyphen. Must consist of between 3 and 50 characters.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Optional. The labels to associate with this autoscaling policy. Label keys
* must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with an autoscaling policy.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The "resource name" of the autoscaling policy, as described in
* https://cloud.google.com/apis/design/resource_names. For
* projects.regions.autoscalingPolicies, the resource name of the policy has
* the following format:
* projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For
* projects.locations.autoscalingPolicies, the resource name of the policy has
* the following format:
* projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Describes how the autoscaler will operate for secondary workers.
*
* @param InstanceGroupAutoscalingPolicyConfig $secondaryWorkerConfig
*/
public function setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig $secondaryWorkerConfig)
{
$this->secondaryWorkerConfig = $secondaryWorkerConfig;
}
/**
* @return InstanceGroupAutoscalingPolicyConfig
*/
public function getSecondaryWorkerConfig()
{
return $this->secondaryWorkerConfig;
}
/**
* Required. Describes how the autoscaler will operate for primary workers.
*
* @param InstanceGroupAutoscalingPolicyConfig $workerConfig
*/
public function setWorkerConfig(InstanceGroupAutoscalingPolicyConfig $workerConfig)
{
$this->workerConfig = $workerConfig;
}
/**
* @return InstanceGroupAutoscalingPolicyConfig
*/
public function getWorkerConfig()
{
return $this->workerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingPolicy::class, 'Google_Service_Dataproc_AutoscalingPolicy');

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AutotuningConfig extends \Google\Collection
{
protected $collection_key = 'scenarios';
/**
* Optional. Scenarios for which tunings are applied.
*
* @var string[]
*/
public $scenarios;
/**
* Optional. Scenarios for which tunings are applied.
*
* @param string[] $scenarios
*/
public function setScenarios($scenarios)
{
$this->scenarios = $scenarios;
}
/**
* @return string[]
*/
public function getScenarios()
{
return $this->scenarios;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutotuningConfig::class, 'Google_Service_Dataproc_AutotuningConfig');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AuxiliaryNodeGroup extends \Google\Model
{
protected $nodeGroupType = NodeGroup::class;
protected $nodeGroupDataType = '';
/**
* Optional. A node group ID. Generated if not specified.The ID must contain
* only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-).
* Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33
* characters.
*
* @var string
*/
public $nodeGroupId;
/**
* Required. Node group configuration.
*
* @param NodeGroup $nodeGroup
*/
public function setNodeGroup(NodeGroup $nodeGroup)
{
$this->nodeGroup = $nodeGroup;
}
/**
* @return NodeGroup
*/
public function getNodeGroup()
{
return $this->nodeGroup;
}
/**
* Optional. A node group ID. Generated if not specified.The ID must contain
* only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-).
* Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33
* characters.
*
* @param string $nodeGroupId
*/
public function setNodeGroupId($nodeGroupId)
{
$this->nodeGroupId = $nodeGroupId;
}
/**
* @return string
*/
public function getNodeGroupId()
{
return $this->nodeGroupId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuxiliaryNodeGroup::class, 'Google_Service_Dataproc_AuxiliaryNodeGroup');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class AuxiliaryServicesConfig extends \Google\Model
{
protected $metastoreConfigType = MetastoreConfig::class;
protected $metastoreConfigDataType = '';
protected $sparkHistoryServerConfigType = SparkHistoryServerConfig::class;
protected $sparkHistoryServerConfigDataType = '';
/**
* Optional. The Hive Metastore configuration for this workload.
*
* @param MetastoreConfig $metastoreConfig
*/
public function setMetastoreConfig(MetastoreConfig $metastoreConfig)
{
$this->metastoreConfig = $metastoreConfig;
}
/**
* @return MetastoreConfig
*/
public function getMetastoreConfig()
{
return $this->metastoreConfig;
}
/**
* Optional. The Spark History Server configuration for the workload.
*
* @param SparkHistoryServerConfig $sparkHistoryServerConfig
*/
public function setSparkHistoryServerConfig(SparkHistoryServerConfig $sparkHistoryServerConfig)
{
$this->sparkHistoryServerConfig = $sparkHistoryServerConfig;
}
/**
* @return SparkHistoryServerConfig
*/
public function getSparkHistoryServerConfig()
{
return $this->sparkHistoryServerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuxiliaryServicesConfig::class, 'Google_Service_Dataproc_AuxiliaryServicesConfig');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class BasicAutoscalingAlgorithm extends \Google\Model
{
/**
* Optional. Duration between scaling events. A scaling period starts after
* the update operation from the previous event has completed.Bounds: 2m, 1d.
* Default: 2m.
*
* @var string
*/
public $cooldownPeriod;
protected $sparkStandaloneConfigType = SparkStandaloneAutoscalingConfig::class;
protected $sparkStandaloneConfigDataType = '';
protected $yarnConfigType = BasicYarnAutoscalingConfig::class;
protected $yarnConfigDataType = '';
/**
* Optional. Duration between scaling events. A scaling period starts after
* the update operation from the previous event has completed.Bounds: 2m, 1d.
* Default: 2m.
*
* @param string $cooldownPeriod
*/
public function setCooldownPeriod($cooldownPeriod)
{
$this->cooldownPeriod = $cooldownPeriod;
}
/**
* @return string
*/
public function getCooldownPeriod()
{
return $this->cooldownPeriod;
}
/**
* Optional. Spark Standalone autoscaling configuration
*
* @param SparkStandaloneAutoscalingConfig $sparkStandaloneConfig
*/
public function setSparkStandaloneConfig(SparkStandaloneAutoscalingConfig $sparkStandaloneConfig)
{
$this->sparkStandaloneConfig = $sparkStandaloneConfig;
}
/**
* @return SparkStandaloneAutoscalingConfig
*/
public function getSparkStandaloneConfig()
{
return $this->sparkStandaloneConfig;
}
/**
* Optional. YARN autoscaling configuration.
*
* @param BasicYarnAutoscalingConfig $yarnConfig
*/
public function setYarnConfig(BasicYarnAutoscalingConfig $yarnConfig)
{
$this->yarnConfig = $yarnConfig;
}
/**
* @return BasicYarnAutoscalingConfig
*/
public function getYarnConfig()
{
return $this->yarnConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BasicAutoscalingAlgorithm::class, 'Google_Service_Dataproc_BasicAutoscalingAlgorithm');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class BasicYarnAutoscalingConfig extends \Google\Model
{
/**
* Required. Timeout for YARN graceful decommissioning of Node Managers.
* Specifies the duration to wait for jobs to complete before forcefully
* removing workers (and potentially interrupting jobs). Only applicable to
* downscaling operations.Bounds: 0s, 1d.
*
* @var string
*/
public $gracefulDecommissionTimeout;
/**
* Required. Fraction of average YARN pending memory in the last cooldown
* period for which to remove workers. A scale-down factor of 1 will result in
* scaling down so that there is no available memory remaining after the
* update (more aggressive scaling). A scale-down factor of 0 disables
* removing workers, which can be beneficial for autoscaling a single job. See
* How autoscaling works
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/autoscaling#how_autoscaling_works) for more information.Bounds:
* 0.0, 1.0.
*
* @var
*/
public $scaleDownFactor;
/**
* Optional. Minimum scale-down threshold as a fraction of total cluster size
* before scaling occurs. For example, in a 20-worker cluster, a threshold of
* 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
* the cluster to scale. A threshold of 0 means the autoscaler will scale down
* on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.
*
* @var
*/
public $scaleDownMinWorkerFraction;
/**
* Required. Fraction of average YARN pending memory in the last cooldown
* period for which to add workers. A scale-up factor of 1.0 will result in
* scaling up so that there is no pending memory remaining after the update
* (more aggressive scaling). A scale-up factor closer to 0 will result in a
* smaller magnitude of scaling up (less aggressive scaling). See How
* autoscaling works
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/autoscaling#how_autoscaling_works) for more information.Bounds:
* 0.0, 1.0.
*
* @var
*/
public $scaleUpFactor;
/**
* Optional. Minimum scale-up threshold as a fraction of total cluster size
* before scaling occurs. For example, in a 20-worker cluster, a threshold of
* 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
* the cluster to scale. A threshold of 0 means the autoscaler will scale up
* on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.
*
* @var
*/
public $scaleUpMinWorkerFraction;
/**
* Required. Timeout for YARN graceful decommissioning of Node Managers.
* Specifies the duration to wait for jobs to complete before forcefully
* removing workers (and potentially interrupting jobs). Only applicable to
* downscaling operations.Bounds: 0s, 1d.
*
* @param string $gracefulDecommissionTimeout
*/
public function setGracefulDecommissionTimeout($gracefulDecommissionTimeout)
{
$this->gracefulDecommissionTimeout = $gracefulDecommissionTimeout;
}
/**
* @return string
*/
public function getGracefulDecommissionTimeout()
{
return $this->gracefulDecommissionTimeout;
}
public function setScaleDownFactor($scaleDownFactor)
{
$this->scaleDownFactor = $scaleDownFactor;
}
public function getScaleDownFactor()
{
return $this->scaleDownFactor;
}
public function setScaleDownMinWorkerFraction($scaleDownMinWorkerFraction)
{
$this->scaleDownMinWorkerFraction = $scaleDownMinWorkerFraction;
}
public function getScaleDownMinWorkerFraction()
{
return $this->scaleDownMinWorkerFraction;
}
public function setScaleUpFactor($scaleUpFactor)
{
$this->scaleUpFactor = $scaleUpFactor;
}
public function getScaleUpFactor()
{
return $this->scaleUpFactor;
}
public function setScaleUpMinWorkerFraction($scaleUpMinWorkerFraction)
{
$this->scaleUpMinWorkerFraction = $scaleUpMinWorkerFraction;
}
public function getScaleUpMinWorkerFraction()
{
return $this->scaleUpMinWorkerFraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BasicYarnAutoscalingConfig::class, 'Google_Service_Dataproc_BasicYarnAutoscalingConfig');

View File

@@ -0,0 +1,414 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class Batch extends \Google\Collection
{
/**
* The batch state is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The batch is created before running.
*/
public const STATE_PENDING = 'PENDING';
/**
* The batch is running.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The batch is cancelling.
*/
public const STATE_CANCELLING = 'CANCELLING';
/**
* The batch cancellation was successful.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The batch completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The batch is no longer running due to an error.
*/
public const STATE_FAILED = 'FAILED';
protected $collection_key = 'stateHistory';
/**
* Output only. The time when the batch was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The email address of the user who created the batch.
*
* @var string
*/
public $creator;
protected $environmentConfigType = EnvironmentConfig::class;
protected $environmentConfigDataType = '';
/**
* Optional. The labels to associate with this batch. Label keys must contain
* 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with a batch.
*
* @var string[]
*/
public $labels;
/**
* Output only. The resource name of the batch.
*
* @var string
*/
public $name;
/**
* Output only. The resource name of the operation associated with this batch.
*
* @var string
*/
public $operation;
protected $pysparkBatchType = PySparkBatch::class;
protected $pysparkBatchDataType = '';
protected $runtimeConfigType = RuntimeConfig::class;
protected $runtimeConfigDataType = '';
protected $runtimeInfoType = RuntimeInfo::class;
protected $runtimeInfoDataType = '';
protected $sparkBatchType = SparkBatch::class;
protected $sparkBatchDataType = '';
protected $sparkRBatchType = SparkRBatch::class;
protected $sparkRBatchDataType = '';
protected $sparkSqlBatchType = SparkSqlBatch::class;
protected $sparkSqlBatchDataType = '';
/**
* Output only. The state of the batch.
*
* @var string
*/
public $state;
protected $stateHistoryType = StateHistory::class;
protected $stateHistoryDataType = 'array';
/**
* Output only. Batch state details, such as a failure description if the
* state is FAILED.
*
* @var string
*/
public $stateMessage;
/**
* Output only. The time when the batch entered a current state.
*
* @var string
*/
public $stateTime;
/**
* Output only. A batch UUID (Unique Universal Identifier). The service
* generates this value when it creates the batch.
*
* @var string
*/
public $uuid;
/**
* Output only. The time when the batch was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The email address of the user who created the batch.
*
* @param string $creator
*/
public function setCreator($creator)
{
$this->creator = $creator;
}
/**
* @return string
*/
public function getCreator()
{
return $this->creator;
}
/**
* Optional. Environment configuration for the batch execution.
*
* @param EnvironmentConfig $environmentConfig
*/
public function setEnvironmentConfig(EnvironmentConfig $environmentConfig)
{
$this->environmentConfig = $environmentConfig;
}
/**
* @return EnvironmentConfig
*/
public function getEnvironmentConfig()
{
return $this->environmentConfig;
}
/**
* Optional. The labels to associate with this batch. Label keys must contain
* 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with a batch.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The resource name of the batch.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The resource name of the operation associated with this batch.
*
* @param string $operation
*/
public function setOperation($operation)
{
$this->operation = $operation;
}
/**
* @return string
*/
public function getOperation()
{
return $this->operation;
}
/**
* Optional. PySpark batch config.
*
* @param PySparkBatch $pysparkBatch
*/
public function setPysparkBatch(PySparkBatch $pysparkBatch)
{
$this->pysparkBatch = $pysparkBatch;
}
/**
* @return PySparkBatch
*/
public function getPysparkBatch()
{
return $this->pysparkBatch;
}
/**
* Optional. Runtime configuration for the batch execution.
*
* @param RuntimeConfig $runtimeConfig
*/
public function setRuntimeConfig(RuntimeConfig $runtimeConfig)
{
$this->runtimeConfig = $runtimeConfig;
}
/**
* @return RuntimeConfig
*/
public function getRuntimeConfig()
{
return $this->runtimeConfig;
}
/**
* Output only. Runtime information about batch execution.
*
* @param RuntimeInfo $runtimeInfo
*/
public function setRuntimeInfo(RuntimeInfo $runtimeInfo)
{
$this->runtimeInfo = $runtimeInfo;
}
/**
* @return RuntimeInfo
*/
public function getRuntimeInfo()
{
return $this->runtimeInfo;
}
/**
* Optional. Spark batch config.
*
* @param SparkBatch $sparkBatch
*/
public function setSparkBatch(SparkBatch $sparkBatch)
{
$this->sparkBatch = $sparkBatch;
}
/**
* @return SparkBatch
*/
public function getSparkBatch()
{
return $this->sparkBatch;
}
/**
* Optional. SparkR batch config.
*
* @param SparkRBatch $sparkRBatch
*/
public function setSparkRBatch(SparkRBatch $sparkRBatch)
{
$this->sparkRBatch = $sparkRBatch;
}
/**
* @return SparkRBatch
*/
public function getSparkRBatch()
{
return $this->sparkRBatch;
}
/**
* Optional. SparkSql batch config.
*
* @param SparkSqlBatch $sparkSqlBatch
*/
public function setSparkSqlBatch(SparkSqlBatch $sparkSqlBatch)
{
$this->sparkSqlBatch = $sparkSqlBatch;
}
/**
* @return SparkSqlBatch
*/
public function getSparkSqlBatch()
{
return $this->sparkSqlBatch;
}
/**
* Output only. The state of the batch.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, RUNNING, CANCELLING,
* CANCELLED, SUCCEEDED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Historical state information for the batch.
*
* @param StateHistory[] $stateHistory
*/
public function setStateHistory($stateHistory)
{
$this->stateHistory = $stateHistory;
}
/**
* @return StateHistory[]
*/
public function getStateHistory()
{
return $this->stateHistory;
}
/**
* Output only. Batch state details, such as a failure description if the
* state is FAILED.
*
* @param string $stateMessage
*/
public function setStateMessage($stateMessage)
{
$this->stateMessage = $stateMessage;
}
/**
* @return string
*/
public function getStateMessage()
{
return $this->stateMessage;
}
/**
* Output only. The time when the batch entered a current state.
*
* @param string $stateTime
*/
public function setStateTime($stateTime)
{
$this->stateTime = $stateTime;
}
/**
* @return string
*/
public function getStateTime()
{
return $this->stateTime;
}
/**
* Output only. A batch UUID (Unique Universal Identifier). The service
* generates this value when it creates the batch.
*
* @param string $uuid
*/
public function setUuid($uuid)
{
$this->uuid = $uuid;
}
/**
* @return string
*/
public function getUuid()
{
return $this->uuid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Batch::class, 'Google_Service_Dataproc_Batch');

View File

@@ -0,0 +1,213 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class BatchOperationMetadata extends \Google\Collection
{
/**
* Batch operation type is unknown.
*/
public const OPERATION_TYPE_BATCH_OPERATION_TYPE_UNSPECIFIED = 'BATCH_OPERATION_TYPE_UNSPECIFIED';
/**
* Batch operation type.
*/
public const OPERATION_TYPE_BATCH = 'BATCH';
protected $collection_key = 'warnings';
/**
* Name of the batch for the operation.
*
* @var string
*/
public $batch;
/**
* Batch UUID for the operation.
*
* @var string
*/
public $batchUuid;
/**
* The time when the operation was created.
*
* @var string
*/
public $createTime;
/**
* Short description of the operation.
*
* @var string
*/
public $description;
/**
* The time when the operation finished.
*
* @var string
*/
public $doneTime;
/**
* Labels associated with the operation.
*
* @var string[]
*/
public $labels;
/**
* The operation type.
*
* @var string
*/
public $operationType;
/**
* Warnings encountered during operation execution.
*
* @var string[]
*/
public $warnings;
/**
* Name of the batch for the operation.
*
* @param string $batch
*/
public function setBatch($batch)
{
$this->batch = $batch;
}
/**
* @return string
*/
public function getBatch()
{
return $this->batch;
}
/**
* Batch UUID for the operation.
*
* @param string $batchUuid
*/
public function setBatchUuid($batchUuid)
{
$this->batchUuid = $batchUuid;
}
/**
* @return string
*/
public function getBatchUuid()
{
return $this->batchUuid;
}
/**
* The time when the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Short description of the operation.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The time when the operation finished.
*
* @param string $doneTime
*/
public function setDoneTime($doneTime)
{
$this->doneTime = $doneTime;
}
/**
* @return string
*/
public function getDoneTime()
{
return $this->doneTime;
}
/**
* Labels associated with the operation.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The operation type.
*
* Accepted values: BATCH_OPERATION_TYPE_UNSPECIFIED, BATCH
*
* @param self::OPERATION_TYPE_* $operationType
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return self::OPERATION_TYPE_*
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* Warnings encountered during operation execution.
*
* @param string[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return string[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchOperationMetadata::class, 'Google_Service_Dataproc_BatchOperationMetadata');

View File

@@ -0,0 +1,214 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* members can have the following values: allUsers: A special identifier that
* represents anyone who is on the internet; with or without a Google account.
* allAuthenticatedUsers: A special identifier that represents anyone who is
* authenticated with a Google account or a service account. Does not include
* identities that come from external identity providers (IdPs) through
* identity federation. user:{emailid}: An email address that represents a
* specific Google account. For example, alice@example.com .
* serviceAccount:{emailid}: An email address that represents a Google service
* account. For example, my-other-app@appspot.gserviceaccount.com.
* serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An
* identifier for a Kubernetes service account
* (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-
* accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-
* sa]. group:{emailid}: An email address that represents a Google group. For
* example, admins@example.com. domain:{domain}: The G Suite domain (primary)
* that represents all the users of that domain. For example, google.com or
* example.com. principal://iam.googleapis.com/locations/global/workforcePools
* /{pool_id}/subject/{subject_attribute_value}: A single identity in a
* workforce identity pool. principalSet://iam.googleapis.com/locations/global
* /workforcePools/{pool_id}/group/{group_id}: All workforce identities in a
* group. principalSet://iam.googleapis.com/locations/global/workforcePools/{p
* ool_id}/attribute.{attribute_name}/{attribute_value}: All workforce
* identities with a specific attribute value. principalSet://iam.googleapis.c
* om/locations/global/workforcePools/{pool_id}: All identities in a workforce
* identity pool. principal://iam.googleapis.com/projects/{project_number}/loc
* ations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_va
* lue}: A single identity in a workload identity pool. principalSet://iam.goo
* gleapis.com/projects/{project_number}/locations/global/workloadIdentityPool
* s/{pool_id}/group/{group_id}: A workload identity pool group. principalSet:
* //iam.googleapis.com/projects/{project_number}/locations/global/workloadIde
* ntityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All
* identities in a workload identity pool with a certain attribute. principalS
* et://iam.googleapis.com/projects/{project_number}/locations/global/workload
* IdentityPools/{pool_id}: All identities in a workload identity pool.
* deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, alice@example.com?uid=123456789012345678901. If the user is
* recovered, this value reverts to user:{emailid} and the recovered user
* retains the role in the binding.
* deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service
* account is undeleted, this value reverts to serviceAccount:{emailid} and
* the undeleted service account retains the role in the binding.
* deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, admins@example.com?uid=123456789012345678901. If the group is
* recovered, this value reverts to group:{emailid} and the recovered group
* retains the role in the binding. deleted:principal://iam.googleapis.com/loc
* ations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}:
* Deleted single identity in a workforce identity pool. For example,
* deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of members, or principals. For example,
* roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles
* and permissions, see the IAM documentation
* (https://cloud.google.com/iam/docs/roles-overview). For a list of the
* available pre-defined roles, see here
* (https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding.If the condition
* evaluates to true, then this binding applies to the current request.If the
* condition evaluates to false, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.To learn which
* resources support conditions in their IAM policies, see the IAM
* documentation (https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* members can have the following values: allUsers: A special identifier that
* represents anyone who is on the internet; with or without a Google account.
* allAuthenticatedUsers: A special identifier that represents anyone who is
* authenticated with a Google account or a service account. Does not include
* identities that come from external identity providers (IdPs) through
* identity federation. user:{emailid}: An email address that represents a
* specific Google account. For example, alice@example.com .
* serviceAccount:{emailid}: An email address that represents a Google service
* account. For example, my-other-app@appspot.gserviceaccount.com.
* serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An
* identifier for a Kubernetes service account
* (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-
* accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-
* sa]. group:{emailid}: An email address that represents a Google group. For
* example, admins@example.com. domain:{domain}: The G Suite domain (primary)
* that represents all the users of that domain. For example, google.com or
* example.com. principal://iam.googleapis.com/locations/global/workforcePools
* /{pool_id}/subject/{subject_attribute_value}: A single identity in a
* workforce identity pool. principalSet://iam.googleapis.com/locations/global
* /workforcePools/{pool_id}/group/{group_id}: All workforce identities in a
* group. principalSet://iam.googleapis.com/locations/global/workforcePools/{p
* ool_id}/attribute.{attribute_name}/{attribute_value}: All workforce
* identities with a specific attribute value. principalSet://iam.googleapis.c
* om/locations/global/workforcePools/{pool_id}: All identities in a workforce
* identity pool. principal://iam.googleapis.com/projects/{project_number}/loc
* ations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_va
* lue}: A single identity in a workload identity pool. principalSet://iam.goo
* gleapis.com/projects/{project_number}/locations/global/workloadIdentityPool
* s/{pool_id}/group/{group_id}: A workload identity pool group. principalSet:
* //iam.googleapis.com/projects/{project_number}/locations/global/workloadIde
* ntityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All
* identities in a workload identity pool with a certain attribute. principalS
* et://iam.googleapis.com/projects/{project_number}/locations/global/workload
* IdentityPools/{pool_id}: All identities in a workload identity pool.
* deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, alice@example.com?uid=123456789012345678901. If the user is
* recovered, this value reverts to user:{emailid} and the recovered user
* retains the role in the binding.
* deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service
* account is undeleted, this value reverts to serviceAccount:{emailid} and
* the undeleted service account retains the role in the binding.
* deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, admins@example.com?uid=123456789012345678901. If the group is
* recovered, this value reverts to group:{emailid} and the recovered group
* retains the role in the binding. deleted:principal://iam.googleapis.com/loc
* ations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}:
* Deleted single identity in a workforce identity pool. For example,
* deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of members, or principals. For example,
* roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles
* and permissions, see the IAM documentation
* (https://cloud.google.com/iam/docs/roles-overview). For a list of the
* available pre-defined roles, see here
* (https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Dataproc_Binding');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class BuildInfo extends \Google\Model
{
/**
* Optional. Build key.
*
* @var string
*/
public $buildKey;
/**
* Optional. Build value.
*
* @var string
*/
public $buildValue;
/**
* Optional. Build key.
*
* @param string $buildKey
*/
public function setBuildKey($buildKey)
{
$this->buildKey = $buildKey;
}
/**
* @return string
*/
public function getBuildKey()
{
return $this->buildKey;
}
/**
* Optional. Build value.
*
* @param string $buildValue
*/
public function setBuildValue($buildValue)
{
$this->buildValue = $buildValue;
}
/**
* @return string
*/
public function getBuildValue()
{
return $this->buildValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildInfo::class, 'Google_Service_Dataproc_BuildInfo');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class CancelJobRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelJobRequest::class, 'Google_Service_Dataproc_CancelJobRequest');

View File

@@ -0,0 +1,234 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class Cluster extends \Google\Collection
{
protected $collection_key = 'statusHistory';
/**
* Required. The cluster name, which must be unique within a project. The name
* must start with a lowercase letter, and can contain up to 51 lowercase
* letters, numbers, and hyphens. It cannot end with a hyphen. The name of a
* deleted cluster can be reused.
*
* @var string
*/
public $clusterName;
/**
* Output only. A cluster UUID (Unique Universal Identifier). Dataproc
* generates this value when it creates the cluster.
*
* @var string
*/
public $clusterUuid;
protected $configType = ClusterConfig::class;
protected $configDataType = '';
/**
* Optional. The labels to associate with this cluster. Label keys must
* contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with a cluster.
*
* @var string[]
*/
public $labels;
protected $metricsType = ClusterMetrics::class;
protected $metricsDataType = '';
/**
* Required. The Google Cloud Platform project ID that the cluster belongs to.
*
* @var string
*/
public $projectId;
protected $statusType = ClusterStatus::class;
protected $statusDataType = '';
protected $statusHistoryType = ClusterStatus::class;
protected $statusHistoryDataType = 'array';
protected $virtualClusterConfigType = VirtualClusterConfig::class;
protected $virtualClusterConfigDataType = '';
/**
* Required. The cluster name, which must be unique within a project. The name
* must start with a lowercase letter, and can contain up to 51 lowercase
* letters, numbers, and hyphens. It cannot end with a hyphen. The name of a
* deleted cluster can be reused.
*
* @param string $clusterName
*/
public function setClusterName($clusterName)
{
$this->clusterName = $clusterName;
}
/**
* @return string
*/
public function getClusterName()
{
return $this->clusterName;
}
/**
* Output only. A cluster UUID (Unique Universal Identifier). Dataproc
* generates this value when it creates the cluster.
*
* @param string $clusterUuid
*/
public function setClusterUuid($clusterUuid)
{
$this->clusterUuid = $clusterUuid;
}
/**
* @return string
*/
public function getClusterUuid()
{
return $this->clusterUuid;
}
/**
* Optional. The cluster config for a cluster of Compute Engine Instances.
* Note that Dataproc may set default values, and values may change when
* clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig
* must be specified.
*
* @param ClusterConfig $config
*/
public function setConfig(ClusterConfig $config)
{
$this->config = $config;
}
/**
* @return ClusterConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* Optional. The labels to associate with this cluster. Label keys must
* contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with a cluster.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Contains cluster daemon metrics such as HDFS and YARN
* stats.Beta Feature: This report is available for testing purposes only. It
* may be changed before final release.
*
* @param ClusterMetrics $metrics
*/
public function setMetrics(ClusterMetrics $metrics)
{
$this->metrics = $metrics;
}
/**
* @return ClusterMetrics
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Required. The Google Cloud Platform project ID that the cluster belongs to.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* Output only. Cluster status.
*
* @param ClusterStatus $status
*/
public function setStatus(ClusterStatus $status)
{
$this->status = $status;
}
/**
* @return ClusterStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* Output only. The previous cluster status.
*
* @param ClusterStatus[] $statusHistory
*/
public function setStatusHistory($statusHistory)
{
$this->statusHistory = $statusHistory;
}
/**
* @return ClusterStatus[]
*/
public function getStatusHistory()
{
return $this->statusHistory;
}
/**
* Optional. The virtual cluster config is used when creating a Dataproc
* cluster that does not directly control the underlying compute resources,
* for example, when creating a Dataproc-on-GKE cluster
* (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-
* overview). Dataproc may set default values, and values may change when
* clusters are updated. Exactly one of config or virtual_cluster_config must
* be specified.
*
* @param VirtualClusterConfig $virtualClusterConfig
*/
public function setVirtualClusterConfig(VirtualClusterConfig $virtualClusterConfig)
{
$this->virtualClusterConfig = $virtualClusterConfig;
}
/**
* @return VirtualClusterConfig
*/
public function getVirtualClusterConfig()
{
return $this->virtualClusterConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cluster::class, 'Google_Service_Dataproc_Cluster');

View File

@@ -0,0 +1,507 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterConfig extends \Google\Collection
{
/**
* Not set. Works the same as CLUSTER_TIER_STANDARD.
*/
public const CLUSTER_TIER_CLUSTER_TIER_UNSPECIFIED = 'CLUSTER_TIER_UNSPECIFIED';
/**
* Standard Dataproc cluster.
*/
public const CLUSTER_TIER_CLUSTER_TIER_STANDARD = 'CLUSTER_TIER_STANDARD';
/**
* Premium Dataproc cluster.
*/
public const CLUSTER_TIER_CLUSTER_TIER_PREMIUM = 'CLUSTER_TIER_PREMIUM';
/**
* Not set.
*/
public const CLUSTER_TYPE_CLUSTER_TYPE_UNSPECIFIED = 'CLUSTER_TYPE_UNSPECIFIED';
/**
* Standard dataproc cluster with a minimum of two primary workers.
*/
public const CLUSTER_TYPE_STANDARD = 'STANDARD';
/**
* https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/single-node-clusters
*/
public const CLUSTER_TYPE_SINGLE_NODE = 'SINGLE_NODE';
/**
* Clusters that can use only secondary workers and be scaled down to zero
* secondary worker nodes.
*/
public const CLUSTER_TYPE_ZERO_SCALE = 'ZERO_SCALE';
protected $collection_key = 'initializationActions';
protected $autoscalingConfigType = AutoscalingConfig::class;
protected $autoscalingConfigDataType = '';
protected $auxiliaryNodeGroupsType = AuxiliaryNodeGroup::class;
protected $auxiliaryNodeGroupsDataType = 'array';
/**
* Optional. The cluster tier.
*
* @var string
*/
public $clusterTier;
/**
* Optional. The type of the cluster.
*
* @var string
*/
public $clusterType;
/**
* Optional. A Cloud Storage bucket used to stage job dependencies, config
* files, and job driver console output. If you do not specify a staging
* bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA,
* or EU) for your cluster's staging bucket according to the Compute Engine
* zone where your cluster is deployed, and then create and manage this
* project-level, per-location bucket (see Dataproc staging and temp buckets
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/staging-bucket)). This field requires a Cloud Storage bucket name,
* not a gs://... URI to a Cloud Storage bucket.
*
* @var string
*/
public $configBucket;
protected $dataprocMetricConfigType = DataprocMetricConfig::class;
protected $dataprocMetricConfigDataType = '';
/**
* Optional. A Cloud Storage bucket used to collect checkpoint diagnostic data
* (https://cloud.google.com/dataproc/docs/support/diagnose-
* clusters#checkpoint_diagnostic_data). If you do not specify a diagnostic
* bucket, Cloud Dataproc will use the Dataproc temp bucket to collect the
* checkpoint diagnostic data. This field requires a Cloud Storage bucket
* name, not a gs://... URI to a Cloud Storage bucket.
*
* @var string
*/
public $diagnosticBucket;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $endpointConfigType = EndpointConfig::class;
protected $endpointConfigDataType = '';
protected $gceClusterConfigType = GceClusterConfig::class;
protected $gceClusterConfigDataType = '';
protected $gkeClusterConfigType = GkeClusterConfig::class;
protected $gkeClusterConfigDataType = '';
protected $initializationActionsType = NodeInitializationAction::class;
protected $initializationActionsDataType = 'array';
protected $lifecycleConfigType = LifecycleConfig::class;
protected $lifecycleConfigDataType = '';
protected $masterConfigType = InstanceGroupConfig::class;
protected $masterConfigDataType = '';
protected $metastoreConfigType = MetastoreConfig::class;
protected $metastoreConfigDataType = '';
protected $secondaryWorkerConfigType = InstanceGroupConfig::class;
protected $secondaryWorkerConfigDataType = '';
protected $securityConfigType = SecurityConfig::class;
protected $securityConfigDataType = '';
protected $softwareConfigType = SoftwareConfig::class;
protected $softwareConfigDataType = '';
/**
* Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
* data, such as Spark and MapReduce history files. If you do not specify a
* temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
* EU) for your cluster's temp bucket according to the Compute Engine zone
* where your cluster is deployed, and then create and manage this project-
* level, per-location bucket. The default bucket has a TTL of 90 days, but
* you can use any TTL (or none) if you specify a bucket (see Dataproc staging
* and temp buckets
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/staging-bucket)). This field requires a Cloud Storage bucket name,
* not a gs://... URI to a Cloud Storage bucket.
*
* @var string
*/
public $tempBucket;
protected $workerConfigType = InstanceGroupConfig::class;
protected $workerConfigDataType = '';
/**
* Optional. Autoscaling config for the policy associated with the cluster.
* Cluster does not autoscale if this field is unset.
*
* @param AutoscalingConfig $autoscalingConfig
*/
public function setAutoscalingConfig(AutoscalingConfig $autoscalingConfig)
{
$this->autoscalingConfig = $autoscalingConfig;
}
/**
* @return AutoscalingConfig
*/
public function getAutoscalingConfig()
{
return $this->autoscalingConfig;
}
/**
* Optional. The node group settings.
*
* @param AuxiliaryNodeGroup[] $auxiliaryNodeGroups
*/
public function setAuxiliaryNodeGroups($auxiliaryNodeGroups)
{
$this->auxiliaryNodeGroups = $auxiliaryNodeGroups;
}
/**
* @return AuxiliaryNodeGroup[]
*/
public function getAuxiliaryNodeGroups()
{
return $this->auxiliaryNodeGroups;
}
/**
* Optional. The cluster tier.
*
* Accepted values: CLUSTER_TIER_UNSPECIFIED, CLUSTER_TIER_STANDARD,
* CLUSTER_TIER_PREMIUM
*
* @param self::CLUSTER_TIER_* $clusterTier
*/
public function setClusterTier($clusterTier)
{
$this->clusterTier = $clusterTier;
}
/**
* @return self::CLUSTER_TIER_*
*/
public function getClusterTier()
{
return $this->clusterTier;
}
/**
* Optional. The type of the cluster.
*
* Accepted values: CLUSTER_TYPE_UNSPECIFIED, STANDARD, SINGLE_NODE,
* ZERO_SCALE
*
* @param self::CLUSTER_TYPE_* $clusterType
*/
public function setClusterType($clusterType)
{
$this->clusterType = $clusterType;
}
/**
* @return self::CLUSTER_TYPE_*
*/
public function getClusterType()
{
return $this->clusterType;
}
/**
* Optional. A Cloud Storage bucket used to stage job dependencies, config
* files, and job driver console output. If you do not specify a staging
* bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA,
* or EU) for your cluster's staging bucket according to the Compute Engine
* zone where your cluster is deployed, and then create and manage this
* project-level, per-location bucket (see Dataproc staging and temp buckets
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/staging-bucket)). This field requires a Cloud Storage bucket name,
* not a gs://... URI to a Cloud Storage bucket.
*
* @param string $configBucket
*/
public function setConfigBucket($configBucket)
{
$this->configBucket = $configBucket;
}
/**
* @return string
*/
public function getConfigBucket()
{
return $this->configBucket;
}
/**
* Optional. The config for Dataproc metrics.
*
* @param DataprocMetricConfig $dataprocMetricConfig
*/
public function setDataprocMetricConfig(DataprocMetricConfig $dataprocMetricConfig)
{
$this->dataprocMetricConfig = $dataprocMetricConfig;
}
/**
* @return DataprocMetricConfig
*/
public function getDataprocMetricConfig()
{
return $this->dataprocMetricConfig;
}
/**
* Optional. A Cloud Storage bucket used to collect checkpoint diagnostic data
* (https://cloud.google.com/dataproc/docs/support/diagnose-
* clusters#checkpoint_diagnostic_data). If you do not specify a diagnostic
* bucket, Cloud Dataproc will use the Dataproc temp bucket to collect the
* checkpoint diagnostic data. This field requires a Cloud Storage bucket
* name, not a gs://... URI to a Cloud Storage bucket.
*
* @param string $diagnosticBucket
*/
public function setDiagnosticBucket($diagnosticBucket)
{
$this->diagnosticBucket = $diagnosticBucket;
}
/**
* @return string
*/
public function getDiagnosticBucket()
{
return $this->diagnosticBucket;
}
/**
* Optional. Encryption settings for the cluster.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Optional. Port/endpoint configuration for this cluster
*
* @param EndpointConfig $endpointConfig
*/
public function setEndpointConfig(EndpointConfig $endpointConfig)
{
$this->endpointConfig = $endpointConfig;
}
/**
* @return EndpointConfig
*/
public function getEndpointConfig()
{
return $this->endpointConfig;
}
/**
* Optional. The shared Compute Engine config settings for all instances in a
* cluster.
*
* @param GceClusterConfig $gceClusterConfig
*/
public function setGceClusterConfig(GceClusterConfig $gceClusterConfig)
{
$this->gceClusterConfig = $gceClusterConfig;
}
/**
* @return GceClusterConfig
*/
public function getGceClusterConfig()
{
return $this->gceClusterConfig;
}
/**
* Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed
* to The Kubernetes Engine config for Dataproc clusters deployed to
* Kubernetes. These config settings are mutually exclusive with Compute
* Engine-based options, such as gce_cluster_config, master_config,
* worker_config, secondary_worker_config, and autoscaling_config.
*
* @deprecated
* @param GkeClusterConfig $gkeClusterConfig
*/
public function setGkeClusterConfig(GkeClusterConfig $gkeClusterConfig)
{
$this->gkeClusterConfig = $gkeClusterConfig;
}
/**
* @deprecated
* @return GkeClusterConfig
*/
public function getGkeClusterConfig()
{
return $this->gkeClusterConfig;
}
/**
* Optional. Commands to execute on each node after config is completed. By
* default, executables are run on master and all worker nodes. You can test a
* node's role metadata to run an executable on a master or worker node, as
* shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-
* Flavor:Google
* http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[
* "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ...
* worker specific actions ... fi
*
* @param NodeInitializationAction[] $initializationActions
*/
public function setInitializationActions($initializationActions)
{
$this->initializationActions = $initializationActions;
}
/**
* @return NodeInitializationAction[]
*/
public function getInitializationActions()
{
return $this->initializationActions;
}
/**
* Optional. Lifecycle setting for the cluster.
*
* @param LifecycleConfig $lifecycleConfig
*/
public function setLifecycleConfig(LifecycleConfig $lifecycleConfig)
{
$this->lifecycleConfig = $lifecycleConfig;
}
/**
* @return LifecycleConfig
*/
public function getLifecycleConfig()
{
return $this->lifecycleConfig;
}
/**
* Optional. The Compute Engine config settings for the cluster's master
* instance.
*
* @param InstanceGroupConfig $masterConfig
*/
public function setMasterConfig(InstanceGroupConfig $masterConfig)
{
$this->masterConfig = $masterConfig;
}
/**
* @return InstanceGroupConfig
*/
public function getMasterConfig()
{
return $this->masterConfig;
}
/**
* Optional. Metastore configuration.
*
* @param MetastoreConfig $metastoreConfig
*/
public function setMetastoreConfig(MetastoreConfig $metastoreConfig)
{
$this->metastoreConfig = $metastoreConfig;
}
/**
* @return MetastoreConfig
*/
public function getMetastoreConfig()
{
return $this->metastoreConfig;
}
/**
* Optional. The Compute Engine config settings for a cluster's secondary
* worker instances
*
* @param InstanceGroupConfig $secondaryWorkerConfig
*/
public function setSecondaryWorkerConfig(InstanceGroupConfig $secondaryWorkerConfig)
{
$this->secondaryWorkerConfig = $secondaryWorkerConfig;
}
/**
* @return InstanceGroupConfig
*/
public function getSecondaryWorkerConfig()
{
return $this->secondaryWorkerConfig;
}
/**
* Optional. Security settings for the cluster.
*
* @param SecurityConfig $securityConfig
*/
public function setSecurityConfig(SecurityConfig $securityConfig)
{
$this->securityConfig = $securityConfig;
}
/**
* @return SecurityConfig
*/
public function getSecurityConfig()
{
return $this->securityConfig;
}
/**
* Optional. The config settings for cluster software.
*
* @param SoftwareConfig $softwareConfig
*/
public function setSoftwareConfig(SoftwareConfig $softwareConfig)
{
$this->softwareConfig = $softwareConfig;
}
/**
* @return SoftwareConfig
*/
public function getSoftwareConfig()
{
return $this->softwareConfig;
}
/**
* Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
* data, such as Spark and MapReduce history files. If you do not specify a
* temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
* EU) for your cluster's temp bucket according to the Compute Engine zone
* where your cluster is deployed, and then create and manage this project-
* level, per-location bucket. The default bucket has a TTL of 90 days, but
* you can use any TTL (or none) if you specify a bucket (see Dataproc staging
* and temp buckets
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/staging-bucket)). This field requires a Cloud Storage bucket name,
* not a gs://... URI to a Cloud Storage bucket.
*
* @param string $tempBucket
*/
public function setTempBucket($tempBucket)
{
$this->tempBucket = $tempBucket;
}
/**
* @return string
*/
public function getTempBucket()
{
return $this->tempBucket;
}
/**
* Optional. The Compute Engine config settings for the cluster's worker
* instances.
*
* @param InstanceGroupConfig $workerConfig
*/
public function setWorkerConfig(InstanceGroupConfig $workerConfig)
{
$this->workerConfig = $workerConfig;
}
/**
* @return InstanceGroupConfig
*/
public function getWorkerConfig()
{
return $this->workerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterConfig::class, 'Google_Service_Dataproc_ClusterConfig');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterMetrics extends \Google\Model
{
/**
* The HDFS metrics.
*
* @var string[]
*/
public $hdfsMetrics;
/**
* YARN metrics.
*
* @var string[]
*/
public $yarnMetrics;
/**
* The HDFS metrics.
*
* @param string[] $hdfsMetrics
*/
public function setHdfsMetrics($hdfsMetrics)
{
$this->hdfsMetrics = $hdfsMetrics;
}
/**
* @return string[]
*/
public function getHdfsMetrics()
{
return $this->hdfsMetrics;
}
/**
* YARN metrics.
*
* @param string[] $yarnMetrics
*/
public function setYarnMetrics($yarnMetrics)
{
$this->yarnMetrics = $yarnMetrics;
}
/**
* @return string[]
*/
public function getYarnMetrics()
{
return $this->yarnMetrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterMetrics::class, 'Google_Service_Dataproc_ClusterMetrics');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterOperation extends \Google\Model
{
/**
* Output only. Indicates the operation is done.
*
* @var bool
*/
public $done;
/**
* Output only. Error, if operation failed.
*
* @var string
*/
public $error;
/**
* Output only. The id of the cluster operation.
*
* @var string
*/
public $operationId;
/**
* Output only. Indicates the operation is done.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* Output only. Error, if operation failed.
*
* @param string $error
*/
public function setError($error)
{
$this->error = $error;
}
/**
* @return string
*/
public function getError()
{
return $this->error;
}
/**
* Output only. The id of the cluster operation.
*
* @param string $operationId
*/
public function setOperationId($operationId)
{
$this->operationId = $operationId;
}
/**
* @return string
*/
public function getOperationId()
{
return $this->operationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterOperation::class, 'Google_Service_Dataproc_ClusterOperation');

View File

@@ -0,0 +1,217 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterOperationMetadata extends \Google\Collection
{
protected $collection_key = 'warnings';
/**
* Output only. Child operation ids
*
* @var string[]
*/
public $childOperationIds;
/**
* Output only. Name of the cluster for the operation.
*
* @var string
*/
public $clusterName;
/**
* Output only. Cluster UUID for the operation.
*
* @var string
*/
public $clusterUuid;
/**
* Output only. Short description of operation.
*
* @var string
*/
public $description;
/**
* Output only. Labels associated with the operation
*
* @var string[]
*/
public $labels;
/**
* Output only. The operation type.
*
* @var string
*/
public $operationType;
protected $statusType = ClusterOperationStatus::class;
protected $statusDataType = '';
protected $statusHistoryType = ClusterOperationStatus::class;
protected $statusHistoryDataType = 'array';
/**
* Output only. Errors encountered during operation execution.
*
* @var string[]
*/
public $warnings;
/**
* Output only. Child operation ids
*
* @param string[] $childOperationIds
*/
public function setChildOperationIds($childOperationIds)
{
$this->childOperationIds = $childOperationIds;
}
/**
* @return string[]
*/
public function getChildOperationIds()
{
return $this->childOperationIds;
}
/**
* Output only. Name of the cluster for the operation.
*
* @param string $clusterName
*/
public function setClusterName($clusterName)
{
$this->clusterName = $clusterName;
}
/**
* @return string
*/
public function getClusterName()
{
return $this->clusterName;
}
/**
* Output only. Cluster UUID for the operation.
*
* @param string $clusterUuid
*/
public function setClusterUuid($clusterUuid)
{
$this->clusterUuid = $clusterUuid;
}
/**
* @return string
*/
public function getClusterUuid()
{
return $this->clusterUuid;
}
/**
* Output only. Short description of operation.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. Labels associated with the operation
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The operation type.
*
* @param string $operationType
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return string
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* Output only. Current operation status.
*
* @param ClusterOperationStatus $status
*/
public function setStatus(ClusterOperationStatus $status)
{
$this->status = $status;
}
/**
* @return ClusterOperationStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* Output only. The previous operation status.
*
* @param ClusterOperationStatus[] $statusHistory
*/
public function setStatusHistory($statusHistory)
{
$this->statusHistory = $statusHistory;
}
/**
* @return ClusterOperationStatus[]
*/
public function getStatusHistory()
{
return $this->statusHistory;
}
/**
* Output only. Errors encountered during operation execution.
*
* @param string[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return string[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterOperationMetadata::class, 'Google_Service_Dataproc_ClusterOperationMetadata');

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterOperationStatus extends \Google\Model
{
/**
* Unused.
*/
public const STATE_UNKNOWN = 'UNKNOWN';
/**
* The operation has been created.
*/
public const STATE_PENDING = 'PENDING';
/**
* The operation is running.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The operation is done; either cancelled or completed.
*/
public const STATE_DONE = 'DONE';
/**
* Output only. A message containing any operation metadata details.
*
* @var string
*/
public $details;
/**
* Output only. A message containing the detailed operation state.
*
* @var string
*/
public $innerState;
/**
* Output only. A message containing the operation state.
*
* @var string
*/
public $state;
/**
* Output only. The time this state was entered.
*
* @var string
*/
public $stateStartTime;
/**
* Output only. A message containing any operation metadata details.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* Output only. A message containing the detailed operation state.
*
* @param string $innerState
*/
public function setInnerState($innerState)
{
$this->innerState = $innerState;
}
/**
* @return string
*/
public function getInnerState()
{
return $this->innerState;
}
/**
* Output only. A message containing the operation state.
*
* Accepted values: UNKNOWN, PENDING, RUNNING, DONE
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The time this state was entered.
*
* @param string $stateStartTime
*/
public function setStateStartTime($stateStartTime)
{
$this->stateStartTime = $stateStartTime;
}
/**
* @return string
*/
public function getStateStartTime()
{
return $this->stateStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterOperationStatus::class, 'Google_Service_Dataproc_ClusterOperationStatus');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterSelector extends \Google\Model
{
/**
* Required. The cluster labels. Cluster must have all labels to match.
*
* @var string[]
*/
public $clusterLabels;
/**
* Optional. The zone where workflow process executes. This parameter does not
* affect the selection of the cluster.If unspecified, the zone of the first
* cluster matching the selector is used.
*
* @var string
*/
public $zone;
/**
* Required. The cluster labels. Cluster must have all labels to match.
*
* @param string[] $clusterLabels
*/
public function setClusterLabels($clusterLabels)
{
$this->clusterLabels = $clusterLabels;
}
/**
* @return string[]
*/
public function getClusterLabels()
{
return $this->clusterLabels;
}
/**
* Optional. The zone where workflow process executes. This parameter does not
* affect the selection of the cluster.If unspecified, the zone of the first
* cluster matching the selector is used.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterSelector::class, 'Google_Service_Dataproc_ClusterSelector');

View File

@@ -0,0 +1,194 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterStatus extends \Google\Model
{
/**
* The cluster state is unknown.
*/
public const STATE_UNKNOWN = 'UNKNOWN';
/**
* The cluster is being created and set up. It is not ready for use.
*/
public const STATE_CREATING = 'CREATING';
/**
* The cluster is currently running and healthy. It is ready for use.Note: The
* cluster state changes from "creating" to "running" status after the master
* node(s), first two primary worker nodes (and the last primary worker node
* if primary workers > 2) are running.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The cluster encountered an error. It is not ready for use.
*/
public const STATE_ERROR = 'ERROR';
/**
* The cluster has encountered an error while being updated. Jobs can be
* submitted to the cluster, but the cluster cannot be updated.
*/
public const STATE_ERROR_DUE_TO_UPDATE = 'ERROR_DUE_TO_UPDATE';
/**
* The cluster is being deleted. It cannot be used.
*/
public const STATE_DELETING = 'DELETING';
/**
* The cluster is being updated. It continues to accept and process jobs.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The cluster is being stopped. It cannot be used.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* The cluster is currently stopped. It is not ready for use.
*/
public const STATE_STOPPED = 'STOPPED';
/**
* The cluster is being started. It is not ready for use.
*/
public const STATE_STARTING = 'STARTING';
/**
* The cluster is being repaired. It is not ready for use.
*/
public const STATE_REPAIRING = 'REPAIRING';
/**
* Cluster creation is currently waiting for resources to be available. Once
* all resources are available, it will transition to CREATING and then
* RUNNING.
*/
public const STATE_SCHEDULED = 'SCHEDULED';
/**
* The cluster substate is unknown.
*/
public const SUBSTATE_UNSPECIFIED = 'UNSPECIFIED';
/**
* The cluster is known to be in an unhealthy state (for example, critical
* daemons are not running or HDFS capacity is exhausted).Applies to RUNNING
* state.
*/
public const SUBSTATE_UNHEALTHY = 'UNHEALTHY';
/**
* The agent-reported status is out of date (may occur if Dataproc loses
* communication with Agent).Applies to RUNNING state.
*/
public const SUBSTATE_STALE_STATUS = 'STALE_STATUS';
/**
* Optional. Output only. Details of cluster's state.
*
* @var string
*/
public $detail;
/**
* Output only. The cluster's state.
*
* @var string
*/
public $state;
/**
* Output only. Time when this state was entered (see JSON representation of
* Timestamp (https://developers.google.com/protocol-
* buffers/docs/proto3#json)).
*
* @var string
*/
public $stateStartTime;
/**
* Output only. Additional state information that includes status reported by
* the agent.
*
* @var string
*/
public $substate;
/**
* Optional. Output only. Details of cluster's state.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Output only. The cluster's state.
*
* Accepted values: UNKNOWN, CREATING, RUNNING, ERROR, ERROR_DUE_TO_UPDATE,
* DELETING, UPDATING, STOPPING, STOPPED, STARTING, REPAIRING, SCHEDULED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Time when this state was entered (see JSON representation of
* Timestamp (https://developers.google.com/protocol-
* buffers/docs/proto3#json)).
*
* @param string $stateStartTime
*/
public function setStateStartTime($stateStartTime)
{
$this->stateStartTime = $stateStartTime;
}
/**
* @return string
*/
public function getStateStartTime()
{
return $this->stateStartTime;
}
/**
* Output only. Additional state information that includes status reported by
* the agent.
*
* Accepted values: UNSPECIFIED, UNHEALTHY, STALE_STATUS
*
* @param self::SUBSTATE_* $substate
*/
public function setSubstate($substate)
{
$this->substate = $substate;
}
/**
* @return self::SUBSTATE_*
*/
public function getSubstate()
{
return $this->substate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterStatus::class, 'Google_Service_Dataproc_ClusterStatus');

View File

@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ClusterToRepair extends \Google\Model
{
/**
* No action will be taken by default.
*/
public const CLUSTER_REPAIR_ACTION_CLUSTER_REPAIR_ACTION_UNSPECIFIED = 'CLUSTER_REPAIR_ACTION_UNSPECIFIED';
/**
* Repair cluster in ERROR_DUE_TO_UPDATE states.
*/
public const CLUSTER_REPAIR_ACTION_REPAIR_ERROR_DUE_TO_UPDATE_CLUSTER = 'REPAIR_ERROR_DUE_TO_UPDATE_CLUSTER';
/**
* Required. Repair action to take on the cluster resource.
*
* @var string
*/
public $clusterRepairAction;
/**
* Required. Repair action to take on the cluster resource.
*
* Accepted values: CLUSTER_REPAIR_ACTION_UNSPECIFIED,
* REPAIR_ERROR_DUE_TO_UPDATE_CLUSTER
*
* @param self::CLUSTER_REPAIR_ACTION_* $clusterRepairAction
*/
public function setClusterRepairAction($clusterRepairAction)
{
$this->clusterRepairAction = $clusterRepairAction;
}
/**
* @return self::CLUSTER_REPAIR_ACTION_*
*/
public function getClusterRepairAction()
{
return $this->clusterRepairAction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterToRepair::class, 'Google_Service_Dataproc_ClusterToRepair');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ConfidentialInstanceConfig extends \Google\Model
{
/**
* Optional. Defines whether the instance should have confidential compute
* enabled.
*
* @var bool
*/
public $enableConfidentialCompute;
/**
* Optional. Defines whether the instance should have confidential compute
* enabled.
*
* @param bool $enableConfidentialCompute
*/
public function setEnableConfidentialCompute($enableConfidentialCompute)
{
$this->enableConfidentialCompute = $enableConfidentialCompute;
}
/**
* @return bool
*/
public function getEnableConfidentialCompute()
{
return $this->enableConfidentialCompute;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfidentialInstanceConfig::class, 'Google_Service_Dataproc_ConfidentialInstanceConfig');

View File

@@ -0,0 +1,330 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ConsolidatedExecutorSummary extends \Google\Model
{
/**
* @var int
*/
public $activeTasks;
/**
* @var int
*/
public $completedTasks;
/**
* @var int
*/
public $count;
/**
* @var string
*/
public $diskUsed;
/**
* @var int
*/
public $failedTasks;
/**
* @var int
*/
public $isExcluded;
/**
* @var string
*/
public $maxMemory;
protected $memoryMetricsType = MemoryMetrics::class;
protected $memoryMetricsDataType = '';
/**
* @var string
*/
public $memoryUsed;
/**
* @var int
*/
public $rddBlocks;
/**
* @var int
*/
public $totalCores;
/**
* @var string
*/
public $totalDurationMillis;
/**
* @var string
*/
public $totalGcTimeMillis;
/**
* @var string
*/
public $totalInputBytes;
/**
* @var string
*/
public $totalShuffleRead;
/**
* @var string
*/
public $totalShuffleWrite;
/**
* @var int
*/
public $totalTasks;
/**
* @param int $activeTasks
*/
public function setActiveTasks($activeTasks)
{
$this->activeTasks = $activeTasks;
}
/**
* @return int
*/
public function getActiveTasks()
{
return $this->activeTasks;
}
/**
* @param int $completedTasks
*/
public function setCompletedTasks($completedTasks)
{
$this->completedTasks = $completedTasks;
}
/**
* @return int
*/
public function getCompletedTasks()
{
return $this->completedTasks;
}
/**
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* @param string $diskUsed
*/
public function setDiskUsed($diskUsed)
{
$this->diskUsed = $diskUsed;
}
/**
* @return string
*/
public function getDiskUsed()
{
return $this->diskUsed;
}
/**
* @param int $failedTasks
*/
public function setFailedTasks($failedTasks)
{
$this->failedTasks = $failedTasks;
}
/**
* @return int
*/
public function getFailedTasks()
{
return $this->failedTasks;
}
/**
* @param int $isExcluded
*/
public function setIsExcluded($isExcluded)
{
$this->isExcluded = $isExcluded;
}
/**
* @return int
*/
public function getIsExcluded()
{
return $this->isExcluded;
}
/**
* @param string $maxMemory
*/
public function setMaxMemory($maxMemory)
{
$this->maxMemory = $maxMemory;
}
/**
* @return string
*/
public function getMaxMemory()
{
return $this->maxMemory;
}
/**
* @param MemoryMetrics $memoryMetrics
*/
public function setMemoryMetrics(MemoryMetrics $memoryMetrics)
{
$this->memoryMetrics = $memoryMetrics;
}
/**
* @return MemoryMetrics
*/
public function getMemoryMetrics()
{
return $this->memoryMetrics;
}
/**
* @param string $memoryUsed
*/
public function setMemoryUsed($memoryUsed)
{
$this->memoryUsed = $memoryUsed;
}
/**
* @return string
*/
public function getMemoryUsed()
{
return $this->memoryUsed;
}
/**
* @param int $rddBlocks
*/
public function setRddBlocks($rddBlocks)
{
$this->rddBlocks = $rddBlocks;
}
/**
* @return int
*/
public function getRddBlocks()
{
return $this->rddBlocks;
}
/**
* @param int $totalCores
*/
public function setTotalCores($totalCores)
{
$this->totalCores = $totalCores;
}
/**
* @return int
*/
public function getTotalCores()
{
return $this->totalCores;
}
/**
* @param string $totalDurationMillis
*/
public function setTotalDurationMillis($totalDurationMillis)
{
$this->totalDurationMillis = $totalDurationMillis;
}
/**
* @return string
*/
public function getTotalDurationMillis()
{
return $this->totalDurationMillis;
}
/**
* @param string $totalGcTimeMillis
*/
public function setTotalGcTimeMillis($totalGcTimeMillis)
{
$this->totalGcTimeMillis = $totalGcTimeMillis;
}
/**
* @return string
*/
public function getTotalGcTimeMillis()
{
return $this->totalGcTimeMillis;
}
/**
* @param string $totalInputBytes
*/
public function setTotalInputBytes($totalInputBytes)
{
$this->totalInputBytes = $totalInputBytes;
}
/**
* @return string
*/
public function getTotalInputBytes()
{
return $this->totalInputBytes;
}
/**
* @param string $totalShuffleRead
*/
public function setTotalShuffleRead($totalShuffleRead)
{
$this->totalShuffleRead = $totalShuffleRead;
}
/**
* @return string
*/
public function getTotalShuffleRead()
{
return $this->totalShuffleRead;
}
/**
* @param string $totalShuffleWrite
*/
public function setTotalShuffleWrite($totalShuffleWrite)
{
$this->totalShuffleWrite = $totalShuffleWrite;
}
/**
* @return string
*/
public function getTotalShuffleWrite()
{
return $this->totalShuffleWrite;
}
/**
* @param int $totalTasks
*/
public function setTotalTasks($totalTasks)
{
$this->totalTasks = $totalTasks;
}
/**
* @return int
*/
public function getTotalTasks()
{
return $this->totalTasks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConsolidatedExecutorSummary::class, 'Google_Service_Dataproc_ConsolidatedExecutorSummary');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class DataprocEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataprocEmpty::class, 'Google_Service_Dataproc_DataprocEmpty');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class DataprocMetricConfig extends \Google\Collection
{
protected $collection_key = 'metrics';
protected $metricsType = Metric::class;
protected $metricsDataType = 'array';
/**
* Required. Metrics sources to enable.
*
* @param Metric[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return Metric[]
*/
public function getMetrics()
{
return $this->metrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataprocMetricConfig::class, 'Google_Service_Dataproc_DataprocMetricConfig');

View File

@@ -0,0 +1,214 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class DiagnoseClusterRequest extends \Google\Collection
{
/**
* Tarball Access unspecified. Falls back to default access of the bucket
*/
public const TARBALL_ACCESS_TARBALL_ACCESS_UNSPECIFIED = 'TARBALL_ACCESS_UNSPECIFIED';
/**
* Google Cloud Support group has read access to the diagnostic tarball
*/
public const TARBALL_ACCESS_GOOGLE_CLOUD_SUPPORT = 'GOOGLE_CLOUD_SUPPORT';
/**
* Google Cloud Dataproc Diagnose service account has read access to the
* diagnostic tarball
*/
public const TARBALL_ACCESS_GOOGLE_DATAPROC_DIAGNOSE = 'GOOGLE_DATAPROC_DIAGNOSE';
protected $collection_key = 'yarnApplicationIds';
protected $diagnosisIntervalType = Interval::class;
protected $diagnosisIntervalDataType = '';
/**
* Optional. DEPRECATED Specifies the job on which diagnosis is to be
* performed. Format: projects/{project}/regions/{region}/jobs/{job}
*
* @deprecated
* @var string
*/
public $job;
/**
* Optional. Specifies a list of jobs on which diagnosis is to be performed.
* Format: projects/{project}/regions/{region}/jobs/{job}
*
* @var string[]
*/
public $jobs;
/**
* Optional. (Optional) The access type to the diagnostic tarball. If not
* specified, falls back to default access of the bucket
*
* @var string
*/
public $tarballAccess;
/**
* Optional. (Optional) The output Cloud Storage directory for the diagnostic
* tarball. If not specified, a task-specific directory in the cluster's
* staging bucket will be used.
*
* @var string
*/
public $tarballGcsDir;
/**
* Optional. DEPRECATED Specifies the yarn application on which diagnosis is
* to be performed.
*
* @deprecated
* @var string
*/
public $yarnApplicationId;
/**
* Optional. Specifies a list of yarn applications on which diagnosis is to be
* performed.
*
* @var string[]
*/
public $yarnApplicationIds;
/**
* Optional. Time interval in which diagnosis should be carried out on the
* cluster.
*
* @param Interval $diagnosisInterval
*/
public function setDiagnosisInterval(Interval $diagnosisInterval)
{
$this->diagnosisInterval = $diagnosisInterval;
}
/**
* @return Interval
*/
public function getDiagnosisInterval()
{
return $this->diagnosisInterval;
}
/**
* Optional. DEPRECATED Specifies the job on which diagnosis is to be
* performed. Format: projects/{project}/regions/{region}/jobs/{job}
*
* @deprecated
* @param string $job
*/
public function setJob($job)
{
$this->job = $job;
}
/**
* @deprecated
* @return string
*/
public function getJob()
{
return $this->job;
}
/**
* Optional. Specifies a list of jobs on which diagnosis is to be performed.
* Format: projects/{project}/regions/{region}/jobs/{job}
*
* @param string[] $jobs
*/
public function setJobs($jobs)
{
$this->jobs = $jobs;
}
/**
* @return string[]
*/
public function getJobs()
{
return $this->jobs;
}
/**
* Optional. (Optional) The access type to the diagnostic tarball. If not
* specified, falls back to default access of the bucket
*
* Accepted values: TARBALL_ACCESS_UNSPECIFIED, GOOGLE_CLOUD_SUPPORT,
* GOOGLE_DATAPROC_DIAGNOSE
*
* @param self::TARBALL_ACCESS_* $tarballAccess
*/
public function setTarballAccess($tarballAccess)
{
$this->tarballAccess = $tarballAccess;
}
/**
* @return self::TARBALL_ACCESS_*
*/
public function getTarballAccess()
{
return $this->tarballAccess;
}
/**
* Optional. (Optional) The output Cloud Storage directory for the diagnostic
* tarball. If not specified, a task-specific directory in the cluster's
* staging bucket will be used.
*
* @param string $tarballGcsDir
*/
public function setTarballGcsDir($tarballGcsDir)
{
$this->tarballGcsDir = $tarballGcsDir;
}
/**
* @return string
*/
public function getTarballGcsDir()
{
return $this->tarballGcsDir;
}
/**
* Optional. DEPRECATED Specifies the yarn application on which diagnosis is
* to be performed.
*
* @deprecated
* @param string $yarnApplicationId
*/
public function setYarnApplicationId($yarnApplicationId)
{
$this->yarnApplicationId = $yarnApplicationId;
}
/**
* @deprecated
* @return string
*/
public function getYarnApplicationId()
{
return $this->yarnApplicationId;
}
/**
* Optional. Specifies a list of yarn applications on which diagnosis is to be
* performed.
*
* @param string[] $yarnApplicationIds
*/
public function setYarnApplicationIds($yarnApplicationIds)
{
$this->yarnApplicationIds = $yarnApplicationIds;
}
/**
* @return string[]
*/
public function getYarnApplicationIds()
{
return $this->yarnApplicationIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiagnoseClusterRequest::class, 'Google_Service_Dataproc_DiagnoseClusterRequest');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class DiagnoseClusterResults extends \Google\Model
{
/**
* Output only. The Cloud Storage URI of the diagnostic output. The output
* report is a plain text file with a summary of collected diagnostics.
*
* @var string
*/
public $outputUri;
/**
* Output only. The Cloud Storage URI of the diagnostic output. The output
* report is a plain text file with a summary of collected diagnostics.
*
* @param string $outputUri
*/
public function setOutputUri($outputUri)
{
$this->outputUri = $outputUri;
}
/**
* @return string
*/
public function getOutputUri()
{
return $this->outputUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiagnoseClusterResults::class, 'Google_Service_Dataproc_DiagnoseClusterResults');

View File

@@ -0,0 +1,192 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class DiskConfig extends \Google\Model
{
/**
* Optional. Indicates how many IOPS to provision for the disk. This sets the
* number of I/O operations per second that the disk can handle. This field is
* supported only if boot_disk_type is hyperdisk-balanced.
*
* @var string
*/
public $bootDiskProvisionedIops;
/**
* Optional. Indicates how much throughput to provision for the disk. This
* sets the number of throughput mb per second that the disk can handle.
* Values must be greater than or equal to 1. This field is supported only if
* boot_disk_type is hyperdisk-balanced.
*
* @var string
*/
public $bootDiskProvisionedThroughput;
/**
* Optional. Size in GB of the boot disk (default is 500GB).
*
* @var int
*/
public $bootDiskSizeGb;
/**
* Optional. Type of the boot disk (default is "pd-standard"). Valid values:
* "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd"
* (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard
* Disk Drive). See Disk types
* (https://cloud.google.com/compute/docs/disks#disk-types).
*
* @var string
*/
public $bootDiskType;
/**
* Optional. Interface type of local SSDs (default is "scsi"). Valid values:
* "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory
* Express). See local SSD performance
* (https://cloud.google.com/compute/docs/disks/local-ssd#performance).
*
* @var string
*/
public $localSsdInterface;
/**
* Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are
* not attached, the boot disk is used to store runtime logs and HDFS
* (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one
* or more SSDs are attached, this runtime bulk data is spread across them,
* and the boot disk contains only basic config and installed binaries.Note:
* Local SSD options may vary by machine type and number of vCPUs selected.
*
* @var int
*/
public $numLocalSsds;
/**
* Optional. Indicates how many IOPS to provision for the disk. This sets the
* number of I/O operations per second that the disk can handle. This field is
* supported only if boot_disk_type is hyperdisk-balanced.
*
* @param string $bootDiskProvisionedIops
*/
public function setBootDiskProvisionedIops($bootDiskProvisionedIops)
{
$this->bootDiskProvisionedIops = $bootDiskProvisionedIops;
}
/**
* @return string
*/
public function getBootDiskProvisionedIops()
{
return $this->bootDiskProvisionedIops;
}
/**
* Optional. Indicates how much throughput to provision for the disk. This
* sets the number of throughput mb per second that the disk can handle.
* Values must be greater than or equal to 1. This field is supported only if
* boot_disk_type is hyperdisk-balanced.
*
* @param string $bootDiskProvisionedThroughput
*/
public function setBootDiskProvisionedThroughput($bootDiskProvisionedThroughput)
{
$this->bootDiskProvisionedThroughput = $bootDiskProvisionedThroughput;
}
/**
* @return string
*/
public function getBootDiskProvisionedThroughput()
{
return $this->bootDiskProvisionedThroughput;
}
/**
* Optional. Size in GB of the boot disk (default is 500GB).
*
* @param int $bootDiskSizeGb
*/
public function setBootDiskSizeGb($bootDiskSizeGb)
{
$this->bootDiskSizeGb = $bootDiskSizeGb;
}
/**
* @return int
*/
public function getBootDiskSizeGb()
{
return $this->bootDiskSizeGb;
}
/**
* Optional. Type of the boot disk (default is "pd-standard"). Valid values:
* "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd"
* (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard
* Disk Drive). See Disk types
* (https://cloud.google.com/compute/docs/disks#disk-types).
*
* @param string $bootDiskType
*/
public function setBootDiskType($bootDiskType)
{
$this->bootDiskType = $bootDiskType;
}
/**
* @return string
*/
public function getBootDiskType()
{
return $this->bootDiskType;
}
/**
* Optional. Interface type of local SSDs (default is "scsi"). Valid values:
* "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory
* Express). See local SSD performance
* (https://cloud.google.com/compute/docs/disks/local-ssd#performance).
*
* @param string $localSsdInterface
*/
public function setLocalSsdInterface($localSsdInterface)
{
$this->localSsdInterface = $localSsdInterface;
}
/**
* @return string
*/
public function getLocalSsdInterface()
{
return $this->localSsdInterface;
}
/**
* Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are
* not attached, the boot disk is used to store runtime logs and HDFS
* (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one
* or more SSDs are attached, this runtime bulk data is spread across them,
* and the boot disk contains only basic config and installed binaries.Note:
* Local SSD options may vary by machine type and number of vCPUs selected.
*
* @param int $numLocalSsds
*/
public function setNumLocalSsds($numLocalSsds)
{
$this->numLocalSsds = $numLocalSsds;
}
/**
* @return int
*/
public function getNumLocalSsds()
{
return $this->numLocalSsds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskConfig::class, 'Google_Service_Dataproc_DiskConfig');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class DriverSchedulingConfig extends \Google\Model
{
/**
* Required. The amount of memory in MB the driver is requesting.
*
* @var int
*/
public $memoryMb;
/**
* Required. The number of vCPUs the driver is requesting.
*
* @var int
*/
public $vcores;
/**
* Required. The amount of memory in MB the driver is requesting.
*
* @param int $memoryMb
*/
public function setMemoryMb($memoryMb)
{
$this->memoryMb = $memoryMb;
}
/**
* @return int
*/
public function getMemoryMb()
{
return $this->memoryMb;
}
/**
* Required. The number of vCPUs the driver is requesting.
*
* @param int $vcores
*/
public function setVcores($vcores)
{
$this->vcores = $vcores;
}
/**
* @return int
*/
public function getVcores()
{
return $this->vcores;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriverSchedulingConfig::class, 'Google_Service_Dataproc_DriverSchedulingConfig');

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class EncryptionConfig extends \Google\Model
{
/**
* Optional. The Cloud KMS key resource name to use for persistent disk
* encryption for all instances in the cluster. See Use CMEK with cluster data
* (https://cloud.google.com//dataproc/docs/concepts/configuring-
* clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more
* information.
*
* @var string
*/
public $gcePdKmsKeyName;
/**
* Optional. The Cloud KMS key resource name to use for cluster persistent
* disk and job argument encryption. See Use CMEK with cluster data
* (https://cloud.google.com//dataproc/docs/concepts/configuring-
* clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more
* information.When this key resource name is provided, the following job
* arguments of the following job types submitted to the cluster are encrypted
* using CMEK: FlinkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob)
* HadoopJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob)
* SparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob)
* SparkRJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob)
* PySparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob)
* SparkSqlJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob)
* scriptVariables and queryList.queries HiveJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob)
* scriptVariables and queryList.queries PigJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob)
* scriptVariables and queryList.queries PrestoJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob)
* scriptVariables and queryList.queries
*
* @var string
*/
public $kmsKey;
/**
* Optional. The Cloud KMS key resource name to use for persistent disk
* encryption for all instances in the cluster. See Use CMEK with cluster data
* (https://cloud.google.com//dataproc/docs/concepts/configuring-
* clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more
* information.
*
* @param string $gcePdKmsKeyName
*/
public function setGcePdKmsKeyName($gcePdKmsKeyName)
{
$this->gcePdKmsKeyName = $gcePdKmsKeyName;
}
/**
* @return string
*/
public function getGcePdKmsKeyName()
{
return $this->gcePdKmsKeyName;
}
/**
* Optional. The Cloud KMS key resource name to use for cluster persistent
* disk and job argument encryption. See Use CMEK with cluster data
* (https://cloud.google.com//dataproc/docs/concepts/configuring-
* clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more
* information.When this key resource name is provided, the following job
* arguments of the following job types submitted to the cluster are encrypted
* using CMEK: FlinkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob)
* HadoopJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob)
* SparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob)
* SparkRJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob)
* PySparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob)
* SparkSqlJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob)
* scriptVariables and queryList.queries HiveJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob)
* scriptVariables and queryList.queries PigJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob)
* scriptVariables and queryList.queries PrestoJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob)
* scriptVariables and queryList.queries
*
* @param string $kmsKey
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfig::class, 'Google_Service_Dataproc_EncryptionConfig');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class EndpointConfig extends \Google\Model
{
/**
* Optional. If true, enable http access to specific ports on the cluster from
* external sources. Defaults to false.
*
* @var bool
*/
public $enableHttpPortAccess;
/**
* Output only. The map of port descriptions to URLs. Will only be populated
* if enable_http_port_access is true.
*
* @var string[]
*/
public $httpPorts;
/**
* Optional. If true, enable http access to specific ports on the cluster from
* external sources. Defaults to false.
*
* @param bool $enableHttpPortAccess
*/
public function setEnableHttpPortAccess($enableHttpPortAccess)
{
$this->enableHttpPortAccess = $enableHttpPortAccess;
}
/**
* @return bool
*/
public function getEnableHttpPortAccess()
{
return $this->enableHttpPortAccess;
}
/**
* Output only. The map of port descriptions to URLs. Will only be populated
* if enable_http_port_access is true.
*
* @param string[] $httpPorts
*/
public function setHttpPorts($httpPorts)
{
$this->httpPorts = $httpPorts;
}
/**
* @return string[]
*/
public function getHttpPorts()
{
return $this->httpPorts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointConfig::class, 'Google_Service_Dataproc_EndpointConfig');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class EnvironmentConfig extends \Google\Model
{
protected $executionConfigType = ExecutionConfig::class;
protected $executionConfigDataType = '';
protected $peripheralsConfigType = PeripheralsConfig::class;
protected $peripheralsConfigDataType = '';
/**
* Optional. Execution configuration for a workload.
*
* @param ExecutionConfig $executionConfig
*/
public function setExecutionConfig(ExecutionConfig $executionConfig)
{
$this->executionConfig = $executionConfig;
}
/**
* @return ExecutionConfig
*/
public function getExecutionConfig()
{
return $this->executionConfig;
}
/**
* Optional. Peripherals configuration that workload has access to.
*
* @param PeripheralsConfig $peripheralsConfig
*/
public function setPeripheralsConfig(PeripheralsConfig $peripheralsConfig)
{
$this->peripheralsConfig = $peripheralsConfig;
}
/**
* @return PeripheralsConfig
*/
public function getPeripheralsConfig()
{
return $this->peripheralsConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvironmentConfig::class, 'Google_Service_Dataproc_EnvironmentConfig');

View File

@@ -0,0 +1,276 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ExecutionConfig extends \Google\Collection
{
protected $collection_key = 'networkTags';
protected $authenticationConfigType = AuthenticationConfig::class;
protected $authenticationConfigDataType = '';
/**
* Optional. Applies to sessions only. The duration to keep the session alive
* while it's idling. Exceeding this threshold causes the session to
* terminate. This field cannot be set on a batch workload. Minimum value is
* 10 minutes; maximum value is 14 days (see JSON representation of Duration
* (https://developers.google.com/protocol-buffers/docs/proto3#json)).
* Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for
* an interactive session, the conditions are treated as OR conditions: the
* workload will be terminated when it has been idle for idle_ttl or when ttl
* has been exceeded, whichever occurs first.
*
* @var string
*/
public $idleTtl;
/**
* Optional. The Cloud KMS key to use for encryption.
*
* @var string
*/
public $kmsKey;
/**
* Optional. Tags used for network traffic control.
*
* @var string[]
*/
public $networkTags;
/**
* Optional. Network URI to connect workload to.
*
* @var string
*/
public $networkUri;
/**
* Optional. Service account that used to execute workload.
*
* @var string
*/
public $serviceAccount;
/**
* Optional. A Cloud Storage bucket used to stage workload dependencies,
* config files, and store workload output and other ephemeral data, such as
* Spark history files. If you do not specify a staging bucket, Cloud Dataproc
* will determine a Cloud Storage location according to the region where your
* workload is running, and then create and manage project-level, per-location
* staging and temporary buckets. This field requires a Cloud Storage bucket
* name, not a gs://... URI to a Cloud Storage bucket.
*
* @var string
*/
public $stagingBucket;
/**
* Optional. Subnetwork URI to connect workload to.
*
* @var string
*/
public $subnetworkUri;
/**
* Optional. The duration after which the workload will be terminated,
* specified as the JSON representation for Duration
* (https://protobuf.dev/programming-guides/proto3/#json). When the workload
* exceeds this duration, it will be unconditionally terminated without
* waiting for ongoing work to finish. If ttl is not specified for a batch
* workload, the workload will be allowed to run until it exits naturally (or
* run forever without exiting). If ttl is not specified for an interactive
* session, it defaults to 24 hours. If ttl is not specified for a batch that
* uses 2.1+ runtime version, it defaults to 4 hours. Minimum value is 10
* minutes; maximum value is 14 days. If both ttl and idle_ttl are specified
* (for an interactive session), the conditions are treated as OR conditions:
* the workload will be terminated when it has been idle for idle_ttl or when
* ttl has been exceeded, whichever occurs first.
*
* @var string
*/
public $ttl;
/**
* Optional. Authentication configuration used to set the default identity for
* the workload execution. The config specifies the type of identity (service
* account or user) that will be used by workloads to access resources on the
* project(s).
*
* @param AuthenticationConfig $authenticationConfig
*/
public function setAuthenticationConfig(AuthenticationConfig $authenticationConfig)
{
$this->authenticationConfig = $authenticationConfig;
}
/**
* @return AuthenticationConfig
*/
public function getAuthenticationConfig()
{
return $this->authenticationConfig;
}
/**
* Optional. Applies to sessions only. The duration to keep the session alive
* while it's idling. Exceeding this threshold causes the session to
* terminate. This field cannot be set on a batch workload. Minimum value is
* 10 minutes; maximum value is 14 days (see JSON representation of Duration
* (https://developers.google.com/protocol-buffers/docs/proto3#json)).
* Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for
* an interactive session, the conditions are treated as OR conditions: the
* workload will be terminated when it has been idle for idle_ttl or when ttl
* has been exceeded, whichever occurs first.
*
* @param string $idleTtl
*/
public function setIdleTtl($idleTtl)
{
$this->idleTtl = $idleTtl;
}
/**
* @return string
*/
public function getIdleTtl()
{
return $this->idleTtl;
}
/**
* Optional. The Cloud KMS key to use for encryption.
*
* @param string $kmsKey
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* Optional. Tags used for network traffic control.
*
* @param string[] $networkTags
*/
public function setNetworkTags($networkTags)
{
$this->networkTags = $networkTags;
}
/**
* @return string[]
*/
public function getNetworkTags()
{
return $this->networkTags;
}
/**
* Optional. Network URI to connect workload to.
*
* @param string $networkUri
*/
public function setNetworkUri($networkUri)
{
$this->networkUri = $networkUri;
}
/**
* @return string
*/
public function getNetworkUri()
{
return $this->networkUri;
}
/**
* Optional. Service account that used to execute workload.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. A Cloud Storage bucket used to stage workload dependencies,
* config files, and store workload output and other ephemeral data, such as
* Spark history files. If you do not specify a staging bucket, Cloud Dataproc
* will determine a Cloud Storage location according to the region where your
* workload is running, and then create and manage project-level, per-location
* staging and temporary buckets. This field requires a Cloud Storage bucket
* name, not a gs://... URI to a Cloud Storage bucket.
*
* @param string $stagingBucket
*/
public function setStagingBucket($stagingBucket)
{
$this->stagingBucket = $stagingBucket;
}
/**
* @return string
*/
public function getStagingBucket()
{
return $this->stagingBucket;
}
/**
* Optional. Subnetwork URI to connect workload to.
*
* @param string $subnetworkUri
*/
public function setSubnetworkUri($subnetworkUri)
{
$this->subnetworkUri = $subnetworkUri;
}
/**
* @return string
*/
public function getSubnetworkUri()
{
return $this->subnetworkUri;
}
/**
* Optional. The duration after which the workload will be terminated,
* specified as the JSON representation for Duration
* (https://protobuf.dev/programming-guides/proto3/#json). When the workload
* exceeds this duration, it will be unconditionally terminated without
* waiting for ongoing work to finish. If ttl is not specified for a batch
* workload, the workload will be allowed to run until it exits naturally (or
* run forever without exiting). If ttl is not specified for an interactive
* session, it defaults to 24 hours. If ttl is not specified for a batch that
* uses 2.1+ runtime version, it defaults to 4 hours. Minimum value is 10
* minutes; maximum value is 14 days. If both ttl and idle_ttl are specified
* (for an interactive session), the conditions are treated as OR conditions:
* the workload will be terminated when it has been idle for idle_ttl or when
* ttl has been exceeded, whichever occurs first.
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutionConfig::class, 'Google_Service_Dataproc_ExecutionConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ExecutorMetrics extends \Google\Model
{
/**
* @var string[]
*/
public $metrics;
/**
* @param string[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return string[]
*/
public function getMetrics()
{
return $this->metrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutorMetrics::class, 'Google_Service_Dataproc_ExecutorMetrics');

View File

@@ -0,0 +1,178 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ExecutorMetricsDistributions extends \Google\Collection
{
protected $collection_key = 'taskTimeMillis';
public $diskBytesSpilled;
public $failedTasks;
public $inputBytes;
public $inputRecords;
public $killedTasks;
public $memoryBytesSpilled;
public $outputBytes;
public $outputRecords;
protected $peakMemoryMetricsType = ExecutorPeakMetricsDistributions::class;
protected $peakMemoryMetricsDataType = '';
public $quantiles;
public $shuffleRead;
public $shuffleReadRecords;
public $shuffleWrite;
public $shuffleWriteRecords;
public $succeededTasks;
public $taskTimeMillis;
public function setDiskBytesSpilled($diskBytesSpilled)
{
$this->diskBytesSpilled = $diskBytesSpilled;
}
public function getDiskBytesSpilled()
{
return $this->diskBytesSpilled;
}
public function setFailedTasks($failedTasks)
{
$this->failedTasks = $failedTasks;
}
public function getFailedTasks()
{
return $this->failedTasks;
}
public function setInputBytes($inputBytes)
{
$this->inputBytes = $inputBytes;
}
public function getInputBytes()
{
return $this->inputBytes;
}
public function setInputRecords($inputRecords)
{
$this->inputRecords = $inputRecords;
}
public function getInputRecords()
{
return $this->inputRecords;
}
public function setKilledTasks($killedTasks)
{
$this->killedTasks = $killedTasks;
}
public function getKilledTasks()
{
return $this->killedTasks;
}
public function setMemoryBytesSpilled($memoryBytesSpilled)
{
$this->memoryBytesSpilled = $memoryBytesSpilled;
}
public function getMemoryBytesSpilled()
{
return $this->memoryBytesSpilled;
}
public function setOutputBytes($outputBytes)
{
$this->outputBytes = $outputBytes;
}
public function getOutputBytes()
{
return $this->outputBytes;
}
public function setOutputRecords($outputRecords)
{
$this->outputRecords = $outputRecords;
}
public function getOutputRecords()
{
return $this->outputRecords;
}
/**
* @param ExecutorPeakMetricsDistributions $peakMemoryMetrics
*/
public function setPeakMemoryMetrics(ExecutorPeakMetricsDistributions $peakMemoryMetrics)
{
$this->peakMemoryMetrics = $peakMemoryMetrics;
}
/**
* @return ExecutorPeakMetricsDistributions
*/
public function getPeakMemoryMetrics()
{
return $this->peakMemoryMetrics;
}
public function setQuantiles($quantiles)
{
$this->quantiles = $quantiles;
}
public function getQuantiles()
{
return $this->quantiles;
}
public function setShuffleRead($shuffleRead)
{
$this->shuffleRead = $shuffleRead;
}
public function getShuffleRead()
{
return $this->shuffleRead;
}
public function setShuffleReadRecords($shuffleReadRecords)
{
$this->shuffleReadRecords = $shuffleReadRecords;
}
public function getShuffleReadRecords()
{
return $this->shuffleReadRecords;
}
public function setShuffleWrite($shuffleWrite)
{
$this->shuffleWrite = $shuffleWrite;
}
public function getShuffleWrite()
{
return $this->shuffleWrite;
}
public function setShuffleWriteRecords($shuffleWriteRecords)
{
$this->shuffleWriteRecords = $shuffleWriteRecords;
}
public function getShuffleWriteRecords()
{
return $this->shuffleWriteRecords;
}
public function setSucceededTasks($succeededTasks)
{
$this->succeededTasks = $succeededTasks;
}
public function getSucceededTasks()
{
return $this->succeededTasks;
}
public function setTaskTimeMillis($taskTimeMillis)
{
$this->taskTimeMillis = $taskTimeMillis;
}
public function getTaskTimeMillis()
{
return $this->taskTimeMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutorMetricsDistributions::class, 'Google_Service_Dataproc_ExecutorMetricsDistributions');

View File

@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ExecutorPeakMetricsDistributions extends \Google\Collection
{
protected $collection_key = 'quantiles';
protected $executorMetricsType = ExecutorMetrics::class;
protected $executorMetricsDataType = 'array';
public $quantiles;
/**
* @param ExecutorMetrics[] $executorMetrics
*/
public function setExecutorMetrics($executorMetrics)
{
$this->executorMetrics = $executorMetrics;
}
/**
* @return ExecutorMetrics[]
*/
public function getExecutorMetrics()
{
return $this->executorMetrics;
}
public function setQuantiles($quantiles)
{
$this->quantiles = $quantiles;
}
public function getQuantiles()
{
return $this->quantiles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutorPeakMetricsDistributions::class, 'Google_Service_Dataproc_ExecutorPeakMetricsDistributions');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ExecutorResourceRequest extends \Google\Model
{
/**
* @var string
*/
public $amount;
/**
* @var string
*/
public $discoveryScript;
/**
* @var string
*/
public $resourceName;
/**
* @var string
*/
public $vendor;
/**
* @param string $amount
*/
public function setAmount($amount)
{
$this->amount = $amount;
}
/**
* @return string
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param string $discoveryScript
*/
public function setDiscoveryScript($discoveryScript)
{
$this->discoveryScript = $discoveryScript;
}
/**
* @return string
*/
public function getDiscoveryScript()
{
return $this->discoveryScript;
}
/**
* @param string $resourceName
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param string $vendor
*/
public function setVendor($vendor)
{
$this->vendor = $vendor;
}
/**
* @return string
*/
public function getVendor()
{
return $this->vendor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutorResourceRequest::class, 'Google_Service_Dataproc_ExecutorResourceRequest');

View File

@@ -0,0 +1,366 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ExecutorStageSummary extends \Google\Model
{
/**
* @var string
*/
public $diskBytesSpilled;
/**
* @var string
*/
public $executorId;
/**
* @var int
*/
public $failedTasks;
/**
* @var string
*/
public $inputBytes;
/**
* @var string
*/
public $inputRecords;
/**
* @var bool
*/
public $isExcludedForStage;
/**
* @var int
*/
public $killedTasks;
/**
* @var string
*/
public $memoryBytesSpilled;
/**
* @var string
*/
public $outputBytes;
/**
* @var string
*/
public $outputRecords;
protected $peakMemoryMetricsType = ExecutorMetrics::class;
protected $peakMemoryMetricsDataType = '';
/**
* @var string
*/
public $shuffleRead;
/**
* @var string
*/
public $shuffleReadRecords;
/**
* @var string
*/
public $shuffleWrite;
/**
* @var string
*/
public $shuffleWriteRecords;
/**
* @var int
*/
public $stageAttemptId;
/**
* @var string
*/
public $stageId;
/**
* @var int
*/
public $succeededTasks;
/**
* @var string
*/
public $taskTimeMillis;
/**
* @param string $diskBytesSpilled
*/
public function setDiskBytesSpilled($diskBytesSpilled)
{
$this->diskBytesSpilled = $diskBytesSpilled;
}
/**
* @return string
*/
public function getDiskBytesSpilled()
{
return $this->diskBytesSpilled;
}
/**
* @param string $executorId
*/
public function setExecutorId($executorId)
{
$this->executorId = $executorId;
}
/**
* @return string
*/
public function getExecutorId()
{
return $this->executorId;
}
/**
* @param int $failedTasks
*/
public function setFailedTasks($failedTasks)
{
$this->failedTasks = $failedTasks;
}
/**
* @return int
*/
public function getFailedTasks()
{
return $this->failedTasks;
}
/**
* @param string $inputBytes
*/
public function setInputBytes($inputBytes)
{
$this->inputBytes = $inputBytes;
}
/**
* @return string
*/
public function getInputBytes()
{
return $this->inputBytes;
}
/**
* @param string $inputRecords
*/
public function setInputRecords($inputRecords)
{
$this->inputRecords = $inputRecords;
}
/**
* @return string
*/
public function getInputRecords()
{
return $this->inputRecords;
}
/**
* @param bool $isExcludedForStage
*/
public function setIsExcludedForStage($isExcludedForStage)
{
$this->isExcludedForStage = $isExcludedForStage;
}
/**
* @return bool
*/
public function getIsExcludedForStage()
{
return $this->isExcludedForStage;
}
/**
* @param int $killedTasks
*/
public function setKilledTasks($killedTasks)
{
$this->killedTasks = $killedTasks;
}
/**
* @return int
*/
public function getKilledTasks()
{
return $this->killedTasks;
}
/**
* @param string $memoryBytesSpilled
*/
public function setMemoryBytesSpilled($memoryBytesSpilled)
{
$this->memoryBytesSpilled = $memoryBytesSpilled;
}
/**
* @return string
*/
public function getMemoryBytesSpilled()
{
return $this->memoryBytesSpilled;
}
/**
* @param string $outputBytes
*/
public function setOutputBytes($outputBytes)
{
$this->outputBytes = $outputBytes;
}
/**
* @return string
*/
public function getOutputBytes()
{
return $this->outputBytes;
}
/**
* @param string $outputRecords
*/
public function setOutputRecords($outputRecords)
{
$this->outputRecords = $outputRecords;
}
/**
* @return string
*/
public function getOutputRecords()
{
return $this->outputRecords;
}
/**
* @param ExecutorMetrics $peakMemoryMetrics
*/
public function setPeakMemoryMetrics(ExecutorMetrics $peakMemoryMetrics)
{
$this->peakMemoryMetrics = $peakMemoryMetrics;
}
/**
* @return ExecutorMetrics
*/
public function getPeakMemoryMetrics()
{
return $this->peakMemoryMetrics;
}
/**
* @param string $shuffleRead
*/
public function setShuffleRead($shuffleRead)
{
$this->shuffleRead = $shuffleRead;
}
/**
* @return string
*/
public function getShuffleRead()
{
return $this->shuffleRead;
}
/**
* @param string $shuffleReadRecords
*/
public function setShuffleReadRecords($shuffleReadRecords)
{
$this->shuffleReadRecords = $shuffleReadRecords;
}
/**
* @return string
*/
public function getShuffleReadRecords()
{
return $this->shuffleReadRecords;
}
/**
* @param string $shuffleWrite
*/
public function setShuffleWrite($shuffleWrite)
{
$this->shuffleWrite = $shuffleWrite;
}
/**
* @return string
*/
public function getShuffleWrite()
{
return $this->shuffleWrite;
}
/**
* @param string $shuffleWriteRecords
*/
public function setShuffleWriteRecords($shuffleWriteRecords)
{
$this->shuffleWriteRecords = $shuffleWriteRecords;
}
/**
* @return string
*/
public function getShuffleWriteRecords()
{
return $this->shuffleWriteRecords;
}
/**
* @param int $stageAttemptId
*/
public function setStageAttemptId($stageAttemptId)
{
$this->stageAttemptId = $stageAttemptId;
}
/**
* @return int
*/
public function getStageAttemptId()
{
return $this->stageAttemptId;
}
/**
* @param string $stageId
*/
public function setStageId($stageId)
{
$this->stageId = $stageId;
}
/**
* @return string
*/
public function getStageId()
{
return $this->stageId;
}
/**
* @param int $succeededTasks
*/
public function setSucceededTasks($succeededTasks)
{
$this->succeededTasks = $succeededTasks;
}
/**
* @return int
*/
public function getSucceededTasks()
{
return $this->succeededTasks;
}
/**
* @param string $taskTimeMillis
*/
public function setTaskTimeMillis($taskTimeMillis)
{
$this->taskTimeMillis = $taskTimeMillis;
}
/**
* @return string
*/
public function getTaskTimeMillis()
{
return $this->taskTimeMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutorStageSummary::class, 'Google_Service_Dataproc_ExecutorStageSummary');

View File

@@ -0,0 +1,543 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class ExecutorSummary extends \Google\Collection
{
protected $collection_key = 'excludedInStages';
/**
* @var int
*/
public $activeTasks;
/**
* @var string
*/
public $addTime;
/**
* @var string[]
*/
public $attributes;
/**
* @var int
*/
public $completedTasks;
/**
* @var string
*/
public $diskUsed;
/**
* @var string[]
*/
public $excludedInStages;
/**
* @var string
*/
public $executorId;
/**
* @var string[]
*/
public $executorLogs;
/**
* @var int
*/
public $failedTasks;
/**
* @var string
*/
public $hostPort;
/**
* @var bool
*/
public $isActive;
/**
* @var bool
*/
public $isExcluded;
/**
* @var string
*/
public $maxMemory;
/**
* @var int
*/
public $maxTasks;
protected $memoryMetricsType = MemoryMetrics::class;
protected $memoryMetricsDataType = '';
/**
* @var string
*/
public $memoryUsed;
protected $peakMemoryMetricsType = ExecutorMetrics::class;
protected $peakMemoryMetricsDataType = '';
/**
* @var int
*/
public $rddBlocks;
/**
* @var string
*/
public $removeReason;
/**
* @var string
*/
public $removeTime;
/**
* @var int
*/
public $resourceProfileId;
protected $resourcesType = ResourceInformation::class;
protected $resourcesDataType = 'map';
/**
* @var int
*/
public $totalCores;
/**
* @var string
*/
public $totalDurationMillis;
/**
* @var string
*/
public $totalGcTimeMillis;
/**
* @var string
*/
public $totalInputBytes;
/**
* @var string
*/
public $totalShuffleRead;
/**
* @var string
*/
public $totalShuffleWrite;
/**
* @var int
*/
public $totalTasks;
/**
* @param int $activeTasks
*/
public function setActiveTasks($activeTasks)
{
$this->activeTasks = $activeTasks;
}
/**
* @return int
*/
public function getActiveTasks()
{
return $this->activeTasks;
}
/**
* @param string $addTime
*/
public function setAddTime($addTime)
{
$this->addTime = $addTime;
}
/**
* @return string
*/
public function getAddTime()
{
return $this->addTime;
}
/**
* @param string[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return string[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @param int $completedTasks
*/
public function setCompletedTasks($completedTasks)
{
$this->completedTasks = $completedTasks;
}
/**
* @return int
*/
public function getCompletedTasks()
{
return $this->completedTasks;
}
/**
* @param string $diskUsed
*/
public function setDiskUsed($diskUsed)
{
$this->diskUsed = $diskUsed;
}
/**
* @return string
*/
public function getDiskUsed()
{
return $this->diskUsed;
}
/**
* @param string[] $excludedInStages
*/
public function setExcludedInStages($excludedInStages)
{
$this->excludedInStages = $excludedInStages;
}
/**
* @return string[]
*/
public function getExcludedInStages()
{
return $this->excludedInStages;
}
/**
* @param string $executorId
*/
public function setExecutorId($executorId)
{
$this->executorId = $executorId;
}
/**
* @return string
*/
public function getExecutorId()
{
return $this->executorId;
}
/**
* @param string[] $executorLogs
*/
public function setExecutorLogs($executorLogs)
{
$this->executorLogs = $executorLogs;
}
/**
* @return string[]
*/
public function getExecutorLogs()
{
return $this->executorLogs;
}
/**
* @param int $failedTasks
*/
public function setFailedTasks($failedTasks)
{
$this->failedTasks = $failedTasks;
}
/**
* @return int
*/
public function getFailedTasks()
{
return $this->failedTasks;
}
/**
* @param string $hostPort
*/
public function setHostPort($hostPort)
{
$this->hostPort = $hostPort;
}
/**
* @return string
*/
public function getHostPort()
{
return $this->hostPort;
}
/**
* @param bool $isActive
*/
public function setIsActive($isActive)
{
$this->isActive = $isActive;
}
/**
* @return bool
*/
public function getIsActive()
{
return $this->isActive;
}
/**
* @param bool $isExcluded
*/
public function setIsExcluded($isExcluded)
{
$this->isExcluded = $isExcluded;
}
/**
* @return bool
*/
public function getIsExcluded()
{
return $this->isExcluded;
}
/**
* @param string $maxMemory
*/
public function setMaxMemory($maxMemory)
{
$this->maxMemory = $maxMemory;
}
/**
* @return string
*/
public function getMaxMemory()
{
return $this->maxMemory;
}
/**
* @param int $maxTasks
*/
public function setMaxTasks($maxTasks)
{
$this->maxTasks = $maxTasks;
}
/**
* @return int
*/
public function getMaxTasks()
{
return $this->maxTasks;
}
/**
* @param MemoryMetrics $memoryMetrics
*/
public function setMemoryMetrics(MemoryMetrics $memoryMetrics)
{
$this->memoryMetrics = $memoryMetrics;
}
/**
* @return MemoryMetrics
*/
public function getMemoryMetrics()
{
return $this->memoryMetrics;
}
/**
* @param string $memoryUsed
*/
public function setMemoryUsed($memoryUsed)
{
$this->memoryUsed = $memoryUsed;
}
/**
* @return string
*/
public function getMemoryUsed()
{
return $this->memoryUsed;
}
/**
* @param ExecutorMetrics $peakMemoryMetrics
*/
public function setPeakMemoryMetrics(ExecutorMetrics $peakMemoryMetrics)
{
$this->peakMemoryMetrics = $peakMemoryMetrics;
}
/**
* @return ExecutorMetrics
*/
public function getPeakMemoryMetrics()
{
return $this->peakMemoryMetrics;
}
/**
* @param int $rddBlocks
*/
public function setRddBlocks($rddBlocks)
{
$this->rddBlocks = $rddBlocks;
}
/**
* @return int
*/
public function getRddBlocks()
{
return $this->rddBlocks;
}
/**
* @param string $removeReason
*/
public function setRemoveReason($removeReason)
{
$this->removeReason = $removeReason;
}
/**
* @return string
*/
public function getRemoveReason()
{
return $this->removeReason;
}
/**
* @param string $removeTime
*/
public function setRemoveTime($removeTime)
{
$this->removeTime = $removeTime;
}
/**
* @return string
*/
public function getRemoveTime()
{
return $this->removeTime;
}
/**
* @param int $resourceProfileId
*/
public function setResourceProfileId($resourceProfileId)
{
$this->resourceProfileId = $resourceProfileId;
}
/**
* @return int
*/
public function getResourceProfileId()
{
return $this->resourceProfileId;
}
/**
* @param ResourceInformation[] $resources
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return ResourceInformation[]
*/
public function getResources()
{
return $this->resources;
}
/**
* @param int $totalCores
*/
public function setTotalCores($totalCores)
{
$this->totalCores = $totalCores;
}
/**
* @return int
*/
public function getTotalCores()
{
return $this->totalCores;
}
/**
* @param string $totalDurationMillis
*/
public function setTotalDurationMillis($totalDurationMillis)
{
$this->totalDurationMillis = $totalDurationMillis;
}
/**
* @return string
*/
public function getTotalDurationMillis()
{
return $this->totalDurationMillis;
}
/**
* @param string $totalGcTimeMillis
*/
public function setTotalGcTimeMillis($totalGcTimeMillis)
{
$this->totalGcTimeMillis = $totalGcTimeMillis;
}
/**
* @return string
*/
public function getTotalGcTimeMillis()
{
return $this->totalGcTimeMillis;
}
/**
* @param string $totalInputBytes
*/
public function setTotalInputBytes($totalInputBytes)
{
$this->totalInputBytes = $totalInputBytes;
}
/**
* @return string
*/
public function getTotalInputBytes()
{
return $this->totalInputBytes;
}
/**
* @param string $totalShuffleRead
*/
public function setTotalShuffleRead($totalShuffleRead)
{
$this->totalShuffleRead = $totalShuffleRead;
}
/**
* @return string
*/
public function getTotalShuffleRead()
{
return $this->totalShuffleRead;
}
/**
* @param string $totalShuffleWrite
*/
public function setTotalShuffleWrite($totalShuffleWrite)
{
$this->totalShuffleWrite = $totalShuffleWrite;
}
/**
* @return string
*/
public function getTotalShuffleWrite()
{
return $this->totalShuffleWrite;
}
/**
* @param int $totalTasks
*/
public function setTotalTasks($totalTasks)
{
$this->totalTasks = $totalTasks;
}
/**
* @return int
*/
public function getTotalTasks()
{
return $this->totalTasks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutorSummary::class, 'Google_Service_Dataproc_ExecutorSummary');

View File

@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Dataproc_Expr');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class FallbackReason extends \Google\Model
{
/**
* Optional. Fallback node information.
*
* @var string
*/
public $fallbackNode;
/**
* Optional. Fallback to Spark reason.
*
* @var string
*/
public $fallbackReason;
/**
* Optional. Fallback node information.
*
* @param string $fallbackNode
*/
public function setFallbackNode($fallbackNode)
{
$this->fallbackNode = $fallbackNode;
}
/**
* @return string
*/
public function getFallbackNode()
{
return $this->fallbackNode;
}
/**
* Optional. Fallback to Spark reason.
*
* @param string $fallbackReason
*/
public function setFallbackReason($fallbackReason)
{
$this->fallbackReason = $fallbackReason;
}
/**
* @return string
*/
public function getFallbackReason()
{
return $this->fallbackReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FallbackReason::class, 'Google_Service_Dataproc_FallbackReason');

View File

@@ -0,0 +1,193 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class FlinkJob extends \Google\Collection
{
protected $collection_key = 'jarFileUris';
/**
* Optional. The arguments to pass to the driver. Do not include arguments,
* such as --conf, that can be set as job properties, since a collision might
* occur that causes an incorrect job submission.
*
* @var string[]
*/
public $args;
/**
* Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink
* driver and tasks.
*
* @var string[]
*/
public $jarFileUris;
protected $loggingConfigType = LoggingConfig::class;
protected $loggingConfigDataType = '';
/**
* The name of the driver's main class. The jar file that contains the class
* must be in the default CLASSPATH or specified in jarFileUris.
*
* @var string
*/
public $mainClass;
/**
* The HCFS URI of the jar file that contains the main class.
*
* @var string
*/
public $mainJarFileUri;
/**
* Optional. A mapping of property names to values, used to configure Flink.
* Properties that conflict with values set by the Dataproc API might be
* overwritten. Can include properties set in /etc/flink/conf/flink-
* defaults.conf and classes in user code.
*
* @var string[]
*/
public $properties;
/**
* Optional. HCFS URI of the savepoint, which contains the last saved progress
* for starting the current job.
*
* @var string
*/
public $savepointUri;
/**
* Optional. The arguments to pass to the driver. Do not include arguments,
* such as --conf, that can be set as job properties, since a collision might
* occur that causes an incorrect job submission.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink
* driver and tasks.
*
* @param string[] $jarFileUris
*/
public function setJarFileUris($jarFileUris)
{
$this->jarFileUris = $jarFileUris;
}
/**
* @return string[]
*/
public function getJarFileUris()
{
return $this->jarFileUris;
}
/**
* Optional. The runtime log config for job execution.
*
* @param LoggingConfig $loggingConfig
*/
public function setLoggingConfig(LoggingConfig $loggingConfig)
{
$this->loggingConfig = $loggingConfig;
}
/**
* @return LoggingConfig
*/
public function getLoggingConfig()
{
return $this->loggingConfig;
}
/**
* The name of the driver's main class. The jar file that contains the class
* must be in the default CLASSPATH or specified in jarFileUris.
*
* @param string $mainClass
*/
public function setMainClass($mainClass)
{
$this->mainClass = $mainClass;
}
/**
* @return string
*/
public function getMainClass()
{
return $this->mainClass;
}
/**
* The HCFS URI of the jar file that contains the main class.
*
* @param string $mainJarFileUri
*/
public function setMainJarFileUri($mainJarFileUri)
{
$this->mainJarFileUri = $mainJarFileUri;
}
/**
* @return string
*/
public function getMainJarFileUri()
{
return $this->mainJarFileUri;
}
/**
* Optional. A mapping of property names to values, used to configure Flink.
* Properties that conflict with values set by the Dataproc API might be
* overwritten. Can include properties set in /etc/flink/conf/flink-
* defaults.conf and classes in user code.
*
* @param string[] $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return string[]
*/
public function getProperties()
{
return $this->properties;
}
/**
* Optional. HCFS URI of the savepoint, which contains the last saved progress
* for starting the current job.
*
* @param string $savepointUri
*/
public function setSavepointUri($savepointUri)
{
$this->savepointUri = $savepointUri;
}
/**
* @return string
*/
public function getSavepointUri()
{
return $this->savepointUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FlinkJob::class, 'Google_Service_Dataproc_FlinkJob');

View File

@@ -0,0 +1,481 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GceClusterConfig extends \Google\Collection
{
/**
* If unspecified, Compute Engine default behavior will apply, which is the
* same as INHERIT_FROM_SUBNETWORK.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 'PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED';
/**
* Private access to and from Google Services configuration inherited from the
* subnetwork configuration. This is the default Compute Engine behavior.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_INHERIT_FROM_SUBNETWORK = 'INHERIT_FROM_SUBNETWORK';
/**
* Enables outbound private IPv6 access to Google Services from the Dataproc
* cluster.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_OUTBOUND = 'OUTBOUND';
/**
* Enables bidirectional private IPv6 access between Google Services and the
* Dataproc cluster.
*/
public const PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 'BIDIRECTIONAL';
protected $collection_key = 'tags';
/**
* Optional. An optional list of Compute Engine zones where the Dataproc
* cluster will not be located when Auto Zone is enabled. Only one of zone_uri
* or auto_zone_exclude_zone_uris can be set. If both are omitted, the service
* will pick a zone in the cluster Compute Engine region. If
* auto_zone_exclude_zone_uris is set and there is more than one non-excluded
* zone, the service will pick one of the non-excluded zones. Otherwise,
* cluster creation will fail with INVALID_ARGUMENT error.A full URL, partial
* URI, or short name are valid. Examples:
* https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
* projects/[project_id]/zones/[zone] [zone]
*
* @var string[]
*/
public $autoZoneExcludeZoneUris;
protected $confidentialInstanceConfigType = ConfidentialInstanceConfig::class;
protected $confidentialInstanceConfigDataType = '';
/**
* Optional. This setting applies to subnetwork-enabled networks. It is set to
* true by default in clusters created with image versions 2.2.x.When set to
* true: All cluster VMs have internal IP addresses. Google Private Access
* (https://cloud.google.com/vpc/docs/private-google-access) must be enabled
* to access Dataproc and other Google Cloud APIs. Off-cluster dependencies
* must be configured to be accessible without external IP addresses.When set
* to false: Cluster VMs are not restricted to internal IP addresses.
* Ephemeral external IP addresses are assigned to each cluster VM.
*
* @var bool
*/
public $internalIpOnly;
/**
* Optional. The Compute Engine metadata entries to add to all instances (see
* Project and instance metadata
* (https://cloud.google.com/compute/docs/storing-retrieving-
* metadata#project_and_instance_metadata)).
*
* @var string[]
*/
public $metadata;
/**
* Optional. The Compute Engine network to be used for machine communications.
* Cannot be specified with subnetwork_uri. If neither network_uri nor
* subnetwork_uri is specified, the "default" network of the project is used,
* if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks
* (https://cloud.google.com/compute/docs/subnetworks) for more information).A
* full URL, partial URI, or short name are valid. Examples: https://www.googl
* eapis.com/compute/v1/projects/[project_id]/global/networks/default
* projects/[project_id]/global/networks/default default
*
* @var string
*/
public $networkUri;
protected $nodeGroupAffinityType = NodeGroupAffinity::class;
protected $nodeGroupAffinityDataType = '';
/**
* Optional. The type of IPv6 access for a cluster.
*
* @var string
*/
public $privateIpv6GoogleAccess;
protected $reservationAffinityType = ReservationAffinity::class;
protected $reservationAffinityDataType = '';
/**
* Optional. Resource manager tags (https://cloud.google.com/resource-
* manager/docs/tags/tags-creating-and-managing) to add to all instances (see
* Use secure tags in Dataproc
* (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
*
* @var string[]
*/
public $resourceManagerTags;
/**
* Optional. The Dataproc service account
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/service-accounts#service_accounts_in_dataproc) (also see VM Data
* Plane identity
* (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-
* principals#vm_service_account_data_plane_identity)) used by Dataproc
* cluster VM instances to access Google Cloud Platform services.If not
* specified, the Compute Engine default service account
* (https://cloud.google.com/compute/docs/access/service-
* accounts#default_service_account) is used.
*
* @var string
*/
public $serviceAccount;
/**
* Optional. The URIs of service account scopes to be included in Compute
* Engine instances. The following base set of scopes is always included:
* https://www.googleapis.com/auth/cloud.useraccounts.readonly
* https://www.googleapis.com/auth/devstorage.read_write
* https://www.googleapis.com/auth/logging.writeIf no scopes are specified,
* the following defaults are also provided:
* https://www.googleapis.com/auth/bigquery
* https://www.googleapis.com/auth/bigtable.admin.table
* https://www.googleapis.com/auth/bigtable.data
* https://www.googleapis.com/auth/devstorage.full_control
*
* @var string[]
*/
public $serviceAccountScopes;
protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class;
protected $shieldedInstanceConfigDataType = '';
/**
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.A full URL, partial
* URI, or short name are valid. Examples: https://www.googleapis.com/compute/
* v1/projects/[project_id]/regions/[region]/subnetworks/sub0
* projects/[project_id]/regions/[region]/subnetworks/sub0 sub0
*
* @var string
*/
public $subnetworkUri;
/**
* The Compute Engine network tags to add to all instances (see Tagging
* instances (https://cloud.google.com/vpc/docs/add-remove-network-tags)).
*
* @var string[]
*/
public $tags;
/**
* Optional. The Compute Engine zone where the Dataproc cluster will be
* located. If omitted, the service will pick a zone in the cluster's Compute
* Engine region. On a get request, zone will always be present.A full URL,
* partial URI, or short name are valid. Examples:
* https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
* projects/[project_id]/zones/[zone] [zone]
*
* @var string
*/
public $zoneUri;
/**
* Optional. An optional list of Compute Engine zones where the Dataproc
* cluster will not be located when Auto Zone is enabled. Only one of zone_uri
* or auto_zone_exclude_zone_uris can be set. If both are omitted, the service
* will pick a zone in the cluster Compute Engine region. If
* auto_zone_exclude_zone_uris is set and there is more than one non-excluded
* zone, the service will pick one of the non-excluded zones. Otherwise,
* cluster creation will fail with INVALID_ARGUMENT error.A full URL, partial
* URI, or short name are valid. Examples:
* https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
* projects/[project_id]/zones/[zone] [zone]
*
* @param string[] $autoZoneExcludeZoneUris
*/
public function setAutoZoneExcludeZoneUris($autoZoneExcludeZoneUris)
{
$this->autoZoneExcludeZoneUris = $autoZoneExcludeZoneUris;
}
/**
* @return string[]
*/
public function getAutoZoneExcludeZoneUris()
{
return $this->autoZoneExcludeZoneUris;
}
/**
* Optional. Confidential Instance Config for clusters using Confidential VMs
* (https://cloud.google.com/compute/confidential-vm/docs).
*
* @param ConfidentialInstanceConfig $confidentialInstanceConfig
*/
public function setConfidentialInstanceConfig(ConfidentialInstanceConfig $confidentialInstanceConfig)
{
$this->confidentialInstanceConfig = $confidentialInstanceConfig;
}
/**
* @return ConfidentialInstanceConfig
*/
public function getConfidentialInstanceConfig()
{
return $this->confidentialInstanceConfig;
}
/**
* Optional. This setting applies to subnetwork-enabled networks. It is set to
* true by default in clusters created with image versions 2.2.x.When set to
* true: All cluster VMs have internal IP addresses. Google Private Access
* (https://cloud.google.com/vpc/docs/private-google-access) must be enabled
* to access Dataproc and other Google Cloud APIs. Off-cluster dependencies
* must be configured to be accessible without external IP addresses.When set
* to false: Cluster VMs are not restricted to internal IP addresses.
* Ephemeral external IP addresses are assigned to each cluster VM.
*
* @param bool $internalIpOnly
*/
public function setInternalIpOnly($internalIpOnly)
{
$this->internalIpOnly = $internalIpOnly;
}
/**
* @return bool
*/
public function getInternalIpOnly()
{
return $this->internalIpOnly;
}
/**
* Optional. The Compute Engine metadata entries to add to all instances (see
* Project and instance metadata
* (https://cloud.google.com/compute/docs/storing-retrieving-
* metadata#project_and_instance_metadata)).
*
* @param string[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Optional. The Compute Engine network to be used for machine communications.
* Cannot be specified with subnetwork_uri. If neither network_uri nor
* subnetwork_uri is specified, the "default" network of the project is used,
* if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks
* (https://cloud.google.com/compute/docs/subnetworks) for more information).A
* full URL, partial URI, or short name are valid. Examples: https://www.googl
* eapis.com/compute/v1/projects/[project_id]/global/networks/default
* projects/[project_id]/global/networks/default default
*
* @param string $networkUri
*/
public function setNetworkUri($networkUri)
{
$this->networkUri = $networkUri;
}
/**
* @return string
*/
public function getNetworkUri()
{
return $this->networkUri;
}
/**
* Optional. Node Group Affinity for sole-tenant clusters.
*
* @param NodeGroupAffinity $nodeGroupAffinity
*/
public function setNodeGroupAffinity(NodeGroupAffinity $nodeGroupAffinity)
{
$this->nodeGroupAffinity = $nodeGroupAffinity;
}
/**
* @return NodeGroupAffinity
*/
public function getNodeGroupAffinity()
{
return $this->nodeGroupAffinity;
}
/**
* Optional. The type of IPv6 access for a cluster.
*
* Accepted values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,
* INHERIT_FROM_SUBNETWORK, OUTBOUND, BIDIRECTIONAL
*
* @param self::PRIVATE_IPV6_GOOGLE_ACCESS_* $privateIpv6GoogleAccess
*/
public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess)
{
$this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess;
}
/**
* @return self::PRIVATE_IPV6_GOOGLE_ACCESS_*
*/
public function getPrivateIpv6GoogleAccess()
{
return $this->privateIpv6GoogleAccess;
}
/**
* Optional. Reservation Affinity for consuming Zonal reservation.
*
* @param ReservationAffinity $reservationAffinity
*/
public function setReservationAffinity(ReservationAffinity $reservationAffinity)
{
$this->reservationAffinity = $reservationAffinity;
}
/**
* @return ReservationAffinity
*/
public function getReservationAffinity()
{
return $this->reservationAffinity;
}
/**
* Optional. Resource manager tags (https://cloud.google.com/resource-
* manager/docs/tags/tags-creating-and-managing) to add to all instances (see
* Use secure tags in Dataproc
* (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
*
* @param string[] $resourceManagerTags
*/
public function setResourceManagerTags($resourceManagerTags)
{
$this->resourceManagerTags = $resourceManagerTags;
}
/**
* @return string[]
*/
public function getResourceManagerTags()
{
return $this->resourceManagerTags;
}
/**
* Optional. The Dataproc service account
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/service-accounts#service_accounts_in_dataproc) (also see VM Data
* Plane identity
* (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-
* principals#vm_service_account_data_plane_identity)) used by Dataproc
* cluster VM instances to access Google Cloud Platform services.If not
* specified, the Compute Engine default service account
* (https://cloud.google.com/compute/docs/access/service-
* accounts#default_service_account) is used.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. The URIs of service account scopes to be included in Compute
* Engine instances. The following base set of scopes is always included:
* https://www.googleapis.com/auth/cloud.useraccounts.readonly
* https://www.googleapis.com/auth/devstorage.read_write
* https://www.googleapis.com/auth/logging.writeIf no scopes are specified,
* the following defaults are also provided:
* https://www.googleapis.com/auth/bigquery
* https://www.googleapis.com/auth/bigtable.admin.table
* https://www.googleapis.com/auth/bigtable.data
* https://www.googleapis.com/auth/devstorage.full_control
*
* @param string[] $serviceAccountScopes
*/
public function setServiceAccountScopes($serviceAccountScopes)
{
$this->serviceAccountScopes = $serviceAccountScopes;
}
/**
* @return string[]
*/
public function getServiceAccountScopes()
{
return $this->serviceAccountScopes;
}
/**
* Optional. Shielded Instance Config for clusters using Compute Engine
* Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-
* vm).
*
* @param ShieldedInstanceConfig $shieldedInstanceConfig
*/
public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig)
{
$this->shieldedInstanceConfig = $shieldedInstanceConfig;
}
/**
* @return ShieldedInstanceConfig
*/
public function getShieldedInstanceConfig()
{
return $this->shieldedInstanceConfig;
}
/**
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.A full URL, partial
* URI, or short name are valid. Examples: https://www.googleapis.com/compute/
* v1/projects/[project_id]/regions/[region]/subnetworks/sub0
* projects/[project_id]/regions/[region]/subnetworks/sub0 sub0
*
* @param string $subnetworkUri
*/
public function setSubnetworkUri($subnetworkUri)
{
$this->subnetworkUri = $subnetworkUri;
}
/**
* @return string
*/
public function getSubnetworkUri()
{
return $this->subnetworkUri;
}
/**
* The Compute Engine network tags to add to all instances (see Tagging
* instances (https://cloud.google.com/vpc/docs/add-remove-network-tags)).
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* Optional. The Compute Engine zone where the Dataproc cluster will be
* located. If omitted, the service will pick a zone in the cluster's Compute
* Engine region. On a get request, zone will always be present.A full URL,
* partial URI, or short name are valid. Examples:
* https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
* projects/[project_id]/zones/[zone] [zone]
*
* @param string $zoneUri
*/
public function setZoneUri($zoneUri)
{
$this->zoneUri = $zoneUri;
}
/**
* @return string
*/
public function getZoneUri()
{
return $this->zoneUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceClusterConfig::class, 'Google_Service_Dataproc_GceClusterConfig');

View File

@@ -0,0 +1,167 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GceNodePoolOperationMetadata extends \Google\Collection
{
protected $collection_key = 'warnings';
/**
* @var string
*/
public $clusterUuid;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $gceNodePoolId;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $operationType;
protected $statusType = ClusterOperationStatus::class;
protected $statusDataType = '';
protected $statusHistoryType = ClusterOperationStatus::class;
protected $statusHistoryDataType = 'array';
/**
* @var string[]
*/
public $warnings;
/**
* @param string
*/
public function setClusterUuid($clusterUuid)
{
$this->clusterUuid = $clusterUuid;
}
/**
* @return string
*/
public function getClusterUuid()
{
return $this->clusterUuid;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setGceNodePoolId($gceNodePoolId)
{
$this->gceNodePoolId = $gceNodePoolId;
}
/**
* @return string
*/
public function getGceNodePoolId()
{
return $this->gceNodePoolId;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return string
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* @param ClusterOperationStatus
*/
public function setStatus(ClusterOperationStatus $status)
{
$this->status = $status;
}
/**
* @return ClusterOperationStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* @param ClusterOperationStatus[]
*/
public function setStatusHistory($statusHistory)
{
$this->statusHistory = $statusHistory;
}
/**
* @return ClusterOperationStatus[]
*/
public function getStatusHistory()
{
return $this->statusHistory;
}
/**
* @param string[]
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return string[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceNodePoolOperationMetadata::class, 'Google_Service_Dataproc_GceNodePoolOperationMetadata');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GetIamPolicyRequest extends \Google\Model
{
protected $optionsType = GetPolicyOptions::class;
protected $optionsDataType = '';
/**
* OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy.
*
* @param GetPolicyOptions $options
*/
public function setOptions(GetPolicyOptions $options)
{
$this->options = $options;
}
/**
* @return GetPolicyOptions
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetIamPolicyRequest::class, 'Google_Service_Dataproc_GetIamPolicyRequest');

View File

@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GetPolicyOptions extends \Google\Model
{
/**
* Optional. The maximum policy version that will be used to format the
* policy.Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected.Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset.The policy in the response
* might use the policy version that you specified, or it might use a lower
* policy version. For example, if you specify version 3, but the policy has
* no conditional role bindings, the response uses version 1.To learn which
* resources support conditions in their IAM policies, see the IAM
* documentation (https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $requestedPolicyVersion;
/**
* Optional. The maximum policy version that will be used to format the
* policy.Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected.Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset.The policy in the response
* might use the policy version that you specified, or it might use a lower
* policy version. For example, if you specify version 3, but the policy has
* no conditional role bindings, the response uses version 1.To learn which
* resources support conditions in their IAM policies, see the IAM
* documentation (https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $requestedPolicyVersion
*/
public function setRequestedPolicyVersion($requestedPolicyVersion)
{
$this->requestedPolicyVersion = $requestedPolicyVersion;
}
/**
* @return int
*/
public function getRequestedPolicyVersion()
{
return $this->requestedPolicyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPolicyOptions::class, 'Google_Service_Dataproc_GetPolicyOptions');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GkeClusterConfig extends \Google\Collection
{
protected $collection_key = 'nodePoolTarget';
/**
* Optional. A target GKE cluster to deploy to. It must be in the same project
* and region as the Dataproc cluster (the GKE cluster can be zonal or
* regional). Format:
* 'projects/{project}/locations/{location}/clusters/{cluster_id}'
*
* @var string
*/
public $gkeClusterTarget;
protected $namespacedGkeDeploymentTargetType = NamespacedGkeDeploymentTarget::class;
protected $namespacedGkeDeploymentTargetDataType = '';
protected $nodePoolTargetType = GkeNodePoolTarget::class;
protected $nodePoolTargetDataType = 'array';
/**
* Optional. A target GKE cluster to deploy to. It must be in the same project
* and region as the Dataproc cluster (the GKE cluster can be zonal or
* regional). Format:
* 'projects/{project}/locations/{location}/clusters/{cluster_id}'
*
* @param string $gkeClusterTarget
*/
public function setGkeClusterTarget($gkeClusterTarget)
{
$this->gkeClusterTarget = $gkeClusterTarget;
}
/**
* @return string
*/
public function getGkeClusterTarget()
{
return $this->gkeClusterTarget;
}
/**
* Optional. Deprecated. Use gkeClusterTarget. Used only for the deprecated
* beta. A target for the deployment.
*
* @deprecated
* @param NamespacedGkeDeploymentTarget $namespacedGkeDeploymentTarget
*/
public function setNamespacedGkeDeploymentTarget(NamespacedGkeDeploymentTarget $namespacedGkeDeploymentTarget)
{
$this->namespacedGkeDeploymentTarget = $namespacedGkeDeploymentTarget;
}
/**
* @deprecated
* @return NamespacedGkeDeploymentTarget
*/
public function getNamespacedGkeDeploymentTarget()
{
return $this->namespacedGkeDeploymentTarget;
}
/**
* Optional. GKE node pools where workloads will be scheduled. At least one
* node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a
* GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT
* GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget.
* All node pools must have the same location settings.
*
* @param GkeNodePoolTarget[] $nodePoolTarget
*/
public function setNodePoolTarget($nodePoolTarget)
{
$this->nodePoolTarget = $nodePoolTarget;
}
/**
* @return GkeNodePoolTarget[]
*/
public function getNodePoolTarget()
{
return $this->nodePoolTarget;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeClusterConfig::class, 'Google_Service_Dataproc_GkeClusterConfig');

View File

@@ -0,0 +1,220 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GkeNodeConfig extends \Google\Collection
{
protected $collection_key = 'accelerators';
protected $acceleratorsType = GkeNodePoolAcceleratorConfig::class;
protected $acceleratorsDataType = 'array';
/**
* Optional. The Customer Managed Encryption Key (CMEK)
* (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to
* encrypt the boot disk attached to each node in the node pool. Specify the
* key using the following format: projects/{project}/locations/{location}/key
* Rings/{key_ring}/cryptoKeys/{crypto_key}
*
* @var string
*/
public $bootDiskKmsKey;
/**
* Optional. The number of local SSD disks to attach to the node, which is
* limited by the maximum number of disks allowable per zone (see Adding Local
* SSDs (https://cloud.google.com/compute/docs/disks/local-ssd)).
*
* @var int
*/
public $localSsdCount;
/**
* Optional. The name of a Compute Engine machine type
* (https://cloud.google.com/compute/docs/machine-types).
*
* @var string
*/
public $machineType;
/**
* Optional. Minimum CPU platform
* (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
* to be used by this instance. The instance may be scheduled on the specified
* or a newer CPU platform. Specify the friendly names of CPU platforms, such
* as "Intel Haswell"` or Intel Sandy Bridge".
*
* @var string
*/
public $minCpuPlatform;
/**
* Optional. Whether the nodes are created as legacy preemptible VM instances
* (https://cloud.google.com/compute/docs/instances/preemptible). Also see
* Spot VMs, preemptible VM instances without a maximum lifetime. Legacy and
* Spot preemptible nodes cannot be used in a node pool with the CONTROLLER
* role or in the DEFAULT node pool if the CONTROLLER role is not assigned
* (the DEFAULT node pool will assume the CONTROLLER role).
*
* @var bool
*/
public $preemptible;
/**
* Optional. Whether the nodes are created as Spot VM instances
* (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the
* latest update to legacy preemptible VMs. Spot VMs do not have a maximum
* lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool
* with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role
* is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
*
* @var bool
*/
public $spot;
/**
* Optional. A list of hardware accelerators
* (https://cloud.google.com/compute/docs/gpus) to attach to each node.
*
* @param GkeNodePoolAcceleratorConfig[] $accelerators
*/
public function setAccelerators($accelerators)
{
$this->accelerators = $accelerators;
}
/**
* @return GkeNodePoolAcceleratorConfig[]
*/
public function getAccelerators()
{
return $this->accelerators;
}
/**
* Optional. The Customer Managed Encryption Key (CMEK)
* (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to
* encrypt the boot disk attached to each node in the node pool. Specify the
* key using the following format: projects/{project}/locations/{location}/key
* Rings/{key_ring}/cryptoKeys/{crypto_key}
*
* @param string $bootDiskKmsKey
*/
public function setBootDiskKmsKey($bootDiskKmsKey)
{
$this->bootDiskKmsKey = $bootDiskKmsKey;
}
/**
* @return string
*/
public function getBootDiskKmsKey()
{
return $this->bootDiskKmsKey;
}
/**
* Optional. The number of local SSD disks to attach to the node, which is
* limited by the maximum number of disks allowable per zone (see Adding Local
* SSDs (https://cloud.google.com/compute/docs/disks/local-ssd)).
*
* @param int $localSsdCount
*/
public function setLocalSsdCount($localSsdCount)
{
$this->localSsdCount = $localSsdCount;
}
/**
* @return int
*/
public function getLocalSsdCount()
{
return $this->localSsdCount;
}
/**
* Optional. The name of a Compute Engine machine type
* (https://cloud.google.com/compute/docs/machine-types).
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Optional. Minimum CPU platform
* (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
* to be used by this instance. The instance may be scheduled on the specified
* or a newer CPU platform. Specify the friendly names of CPU platforms, such
* as "Intel Haswell"` or Intel Sandy Bridge".
*
* @param string $minCpuPlatform
*/
public function setMinCpuPlatform($minCpuPlatform)
{
$this->minCpuPlatform = $minCpuPlatform;
}
/**
* @return string
*/
public function getMinCpuPlatform()
{
return $this->minCpuPlatform;
}
/**
* Optional. Whether the nodes are created as legacy preemptible VM instances
* (https://cloud.google.com/compute/docs/instances/preemptible). Also see
* Spot VMs, preemptible VM instances without a maximum lifetime. Legacy and
* Spot preemptible nodes cannot be used in a node pool with the CONTROLLER
* role or in the DEFAULT node pool if the CONTROLLER role is not assigned
* (the DEFAULT node pool will assume the CONTROLLER role).
*
* @param bool $preemptible
*/
public function setPreemptible($preemptible)
{
$this->preemptible = $preemptible;
}
/**
* @return bool
*/
public function getPreemptible()
{
return $this->preemptible;
}
/**
* Optional. Whether the nodes are created as Spot VM instances
* (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the
* latest update to legacy preemptible VMs. Spot VMs do not have a maximum
* lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool
* with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role
* is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
*
* @param bool $spot
*/
public function setSpot($spot)
{
$this->spot = $spot;
}
/**
* @return bool
*/
public function getSpot()
{
return $this->spot;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeNodeConfig::class, 'Google_Service_Dataproc_GkeNodeConfig');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GkeNodePoolAcceleratorConfig extends \Google\Model
{
/**
* The number of accelerator cards exposed to an instance.
*
* @var string
*/
public $acceleratorCount;
/**
* The accelerator type resource namename (see GPUs on Compute Engine).
*
* @var string
*/
public $acceleratorType;
/**
* Size of partitions to create on the GPU. Valid values are described in the
* NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-
* guide/#partitioning).
*
* @var string
*/
public $gpuPartitionSize;
/**
* The number of accelerator cards exposed to an instance.
*
* @param string $acceleratorCount
*/
public function setAcceleratorCount($acceleratorCount)
{
$this->acceleratorCount = $acceleratorCount;
}
/**
* @return string
*/
public function getAcceleratorCount()
{
return $this->acceleratorCount;
}
/**
* The accelerator type resource namename (see GPUs on Compute Engine).
*
* @param string $acceleratorType
*/
public function setAcceleratorType($acceleratorType)
{
$this->acceleratorType = $acceleratorType;
}
/**
* @return string
*/
public function getAcceleratorType()
{
return $this->acceleratorType;
}
/**
* Size of partitions to create on the GPU. Valid values are described in the
* NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-
* guide/#partitioning).
*
* @param string $gpuPartitionSize
*/
public function setGpuPartitionSize($gpuPartitionSize)
{
$this->gpuPartitionSize = $gpuPartitionSize;
}
/**
* @return string
*/
public function getGpuPartitionSize()
{
return $this->gpuPartitionSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeNodePoolAcceleratorConfig::class, 'Google_Service_Dataproc_GkeNodePoolAcceleratorConfig');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GkeNodePoolAutoscalingConfig extends \Google\Model
{
/**
* The maximum number of nodes in the node pool. Must be >= min_node_count,
* and must be > 0. Note: Quota must be sufficient to scale up the cluster.
*
* @var int
*/
public $maxNodeCount;
/**
* The minimum number of nodes in the node pool. Must be >= 0 and <=
* max_node_count.
*
* @var int
*/
public $minNodeCount;
/**
* The maximum number of nodes in the node pool. Must be >= min_node_count,
* and must be > 0. Note: Quota must be sufficient to scale up the cluster.
*
* @param int $maxNodeCount
*/
public function setMaxNodeCount($maxNodeCount)
{
$this->maxNodeCount = $maxNodeCount;
}
/**
* @return int
*/
public function getMaxNodeCount()
{
return $this->maxNodeCount;
}
/**
* The minimum number of nodes in the node pool. Must be >= 0 and <=
* max_node_count.
*
* @param int $minNodeCount
*/
public function setMinNodeCount($minNodeCount)
{
$this->minNodeCount = $minNodeCount;
}
/**
* @return int
*/
public function getMinNodeCount()
{
return $this->minNodeCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeNodePoolAutoscalingConfig::class, 'Google_Service_Dataproc_GkeNodePoolAutoscalingConfig');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GkeNodePoolConfig extends \Google\Collection
{
protected $collection_key = 'locations';
protected $autoscalingType = GkeNodePoolAutoscalingConfig::class;
protected $autoscalingDataType = '';
protected $configType = GkeNodeConfig::class;
protected $configDataType = '';
/**
* Optional. The list of Compute Engine zones
* (https://cloud.google.com/compute/docs/zones#available) where node pool
* nodes associated with a Dataproc on GKE virtual cluster will be
* located.Note: All node pools associated with a virtual cluster must be
* located in the same region as the virtual cluster, and they must be located
* in the same zone within that region.If a location is not specified during
* node pool creation, Dataproc on GKE will choose the zone.
*
* @var string[]
*/
public $locations;
/**
* Optional. The autoscaler configuration for this node pool. The autoscaler
* is enabled only when a valid configuration is present.
*
* @param GkeNodePoolAutoscalingConfig $autoscaling
*/
public function setAutoscaling(GkeNodePoolAutoscalingConfig $autoscaling)
{
$this->autoscaling = $autoscaling;
}
/**
* @return GkeNodePoolAutoscalingConfig
*/
public function getAutoscaling()
{
return $this->autoscaling;
}
/**
* Optional. The node pool configuration.
*
* @param GkeNodeConfig $config
*/
public function setConfig(GkeNodeConfig $config)
{
$this->config = $config;
}
/**
* @return GkeNodeConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* Optional. The list of Compute Engine zones
* (https://cloud.google.com/compute/docs/zones#available) where node pool
* nodes associated with a Dataproc on GKE virtual cluster will be
* located.Note: All node pools associated with a virtual cluster must be
* located in the same region as the virtual cluster, and they must be located
* in the same zone within that region.If a location is not specified during
* node pool creation, Dataproc on GKE will choose the zone.
*
* @param string[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return string[]
*/
public function getLocations()
{
return $this->locations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeNodePoolConfig::class, 'Google_Service_Dataproc_GkeNodePoolConfig');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GkeNodePoolTarget extends \Google\Collection
{
protected $collection_key = 'roles';
/**
* Required. The target GKE node pool. Format: 'projects/{project}/locations/{
* location}/clusters/{cluster}/nodePools/{node_pool}'
*
* @var string
*/
public $nodePool;
protected $nodePoolConfigType = GkeNodePoolConfig::class;
protected $nodePoolConfigDataType = '';
/**
* Required. The roles associated with the GKE node pool.
*
* @var string[]
*/
public $roles;
/**
* Required. The target GKE node pool. Format: 'projects/{project}/locations/{
* location}/clusters/{cluster}/nodePools/{node_pool}'
*
* @param string $nodePool
*/
public function setNodePool($nodePool)
{
$this->nodePool = $nodePool;
}
/**
* @return string
*/
public function getNodePool()
{
return $this->nodePool;
}
/**
* Input only. The configuration for the GKE node pool.If specified, Dataproc
* attempts to create a node pool with the specified shape. If one with the
* same name already exists, it is verified against all specified fields. If a
* field differs, the virtual cluster creation will fail.If omitted, any node
* pool with the specified name is used. If a node pool with the specified
* name does not exist, Dataproc create a node pool with default values.This
* is an input only field. It will not be returned by the API.
*
* @param GkeNodePoolConfig $nodePoolConfig
*/
public function setNodePoolConfig(GkeNodePoolConfig $nodePoolConfig)
{
$this->nodePoolConfig = $nodePoolConfig;
}
/**
* @return GkeNodePoolConfig
*/
public function getNodePoolConfig()
{
return $this->nodePoolConfig;
}
/**
* Required. The roles associated with the GKE node pool.
*
* @param string[] $roles
*/
public function setRoles($roles)
{
$this->roles = $roles;
}
/**
* @return string[]
*/
public function getRoles()
{
return $this->roles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeNodePoolTarget::class, 'Google_Service_Dataproc_GkeNodePoolTarget');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig extends \Google\Model
{
/**
* Optional. The Cloud KMS key name to use for encrypting workflow template
* job arguments.When this this key is provided, the following workflow
* template job arguments
* (https://cloud.google.com/dataproc/docs/concepts/workflows/use-
* workflows#adding_jobs_to_a_template), if present, are CMEK encrypted
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/customer-managed-encryption#use_cmek_with_workflow_template_data):
* FlinkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob)
* HadoopJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob)
* SparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob)
* SparkRJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob)
* PySparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob)
* SparkSqlJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob)
* scriptVariables and queryList.queries HiveJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob)
* scriptVariables and queryList.queries PigJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob)
* scriptVariables and queryList.queries PrestoJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob)
* scriptVariables and queryList.queries
*
* @var string
*/
public $kmsKey;
/**
* Optional. The Cloud KMS key name to use for encrypting workflow template
* job arguments.When this this key is provided, the following workflow
* template job arguments
* (https://cloud.google.com/dataproc/docs/concepts/workflows/use-
* workflows#adding_jobs_to_a_template), if present, are CMEK encrypted
* (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/customer-managed-encryption#use_cmek_with_workflow_template_data):
* FlinkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob)
* HadoopJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob)
* SparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob)
* SparkRJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob)
* PySparkJob args
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob)
* SparkSqlJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob)
* scriptVariables and queryList.queries HiveJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob)
* scriptVariables and queryList.queries PigJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob)
* scriptVariables and queryList.queries PrestoJob
* (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob)
* scriptVariables and queryList.queries
*
* @param string $kmsKey
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig::class, 'Google_Service_Dataproc_GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig');

View File

@@ -0,0 +1,227 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class HadoopJob extends \Google\Collection
{
protected $collection_key = 'jarFileUris';
/**
* Optional. HCFS URIs of archives to be extracted in the working directory of
* Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz,
* or .zip.
*
* @var string[]
*/
public $archiveUris;
/**
* Optional. The arguments to pass to the driver. Do not include arguments,
* such as -libjars or -Dfoo=bar, that can be set as job properties, since a
* collision might occur that causes an incorrect job submission.
*
* @var string[]
*/
public $args;
/**
* Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to
* the working directory of Hadoop drivers and distributed tasks. Useful for
* naively parallel tasks.
*
* @var string[]
*/
public $fileUris;
/**
* Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
* tasks.
*
* @var string[]
*/
public $jarFileUris;
protected $loggingConfigType = LoggingConfig::class;
protected $loggingConfigDataType = '';
/**
* The name of the driver's main class. The jar file containing the class must
* be in the default CLASSPATH or specified in jar_file_uris.
*
* @var string
*/
public $mainClass;
/**
* The HCFS URI of the jar file containing the main class. Examples:
* 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
* 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:home/usr/lib/hadoop-
* mapreduce/hadoop-mapreduce-examples.jar'
*
* @var string
*/
public $mainJarFileUri;
/**
* Optional. A mapping of property names to values, used to configure Hadoop.
* Properties that conflict with values set by the Dataproc API might be
* overwritten. Can include properties set in /etc/hadoop/conf-site and
* classes in user code.
*
* @var string[]
*/
public $properties;
/**
* Optional. HCFS URIs of archives to be extracted in the working directory of
* Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz,
* or .zip.
*
* @param string[] $archiveUris
*/
public function setArchiveUris($archiveUris)
{
$this->archiveUris = $archiveUris;
}
/**
* @return string[]
*/
public function getArchiveUris()
{
return $this->archiveUris;
}
/**
* Optional. The arguments to pass to the driver. Do not include arguments,
* such as -libjars or -Dfoo=bar, that can be set as job properties, since a
* collision might occur that causes an incorrect job submission.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to
* the working directory of Hadoop drivers and distributed tasks. Useful for
* naively parallel tasks.
*
* @param string[] $fileUris
*/
public function setFileUris($fileUris)
{
$this->fileUris = $fileUris;
}
/**
* @return string[]
*/
public function getFileUris()
{
return $this->fileUris;
}
/**
* Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
* tasks.
*
* @param string[] $jarFileUris
*/
public function setJarFileUris($jarFileUris)
{
$this->jarFileUris = $jarFileUris;
}
/**
* @return string[]
*/
public function getJarFileUris()
{
return $this->jarFileUris;
}
/**
* Optional. The runtime log config for job execution.
*
* @param LoggingConfig $loggingConfig
*/
public function setLoggingConfig(LoggingConfig $loggingConfig)
{
$this->loggingConfig = $loggingConfig;
}
/**
* @return LoggingConfig
*/
public function getLoggingConfig()
{
return $this->loggingConfig;
}
/**
* The name of the driver's main class. The jar file containing the class must
* be in the default CLASSPATH or specified in jar_file_uris.
*
* @param string $mainClass
*/
public function setMainClass($mainClass)
{
$this->mainClass = $mainClass;
}
/**
* @return string
*/
public function getMainClass()
{
return $this->mainClass;
}
/**
* The HCFS URI of the jar file containing the main class. Examples:
* 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
* 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:home/usr/lib/hadoop-
* mapreduce/hadoop-mapreduce-examples.jar'
*
* @param string $mainJarFileUri
*/
public function setMainJarFileUri($mainJarFileUri)
{
$this->mainJarFileUri = $mainJarFileUri;
}
/**
* @return string
*/
public function getMainJarFileUri()
{
return $this->mainJarFileUri;
}
/**
* Optional. A mapping of property names to values, used to configure Hadoop.
* Properties that conflict with values set by the Dataproc API might be
* overwritten. Can include properties set in /etc/hadoop/conf-site and
* classes in user code.
*
* @param string[] $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return string[]
*/
public function getProperties()
{
return $this->properties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HadoopJob::class, 'Google_Service_Dataproc_HadoopJob');

View File

@@ -0,0 +1,169 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class HiveJob extends \Google\Collection
{
protected $collection_key = 'jarFileUris';
/**
* Optional. Whether to continue executing queries if a query fails. The
* default value is false. Setting to true can be useful when executing
* independent parallel queries.
*
* @var bool
*/
public $continueOnFailure;
/**
* Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server
* and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
*
* @var string[]
*/
public $jarFileUris;
/**
* Optional. A mapping of property names and values, used to configure Hive.
* Properties that conflict with values set by the Dataproc API might be
* overwritten. Can include properties set in /etc/hadoop/conf-site.xml,
* /etc/hive/conf/hive-site.xml, and classes in user code.
*
* @var string[]
*/
public $properties;
/**
* The HCFS URI of the script that contains Hive queries.
*
* @var string
*/
public $queryFileUri;
protected $queryListType = QueryList::class;
protected $queryListDataType = '';
/**
* Optional. Mapping of query variable names to values (equivalent to the Hive
* command: SET name="value";).
*
* @var string[]
*/
public $scriptVariables;
/**
* Optional. Whether to continue executing queries if a query fails. The
* default value is false. Setting to true can be useful when executing
* independent parallel queries.
*
* @param bool $continueOnFailure
*/
public function setContinueOnFailure($continueOnFailure)
{
$this->continueOnFailure = $continueOnFailure;
}
/**
* @return bool
*/
public function getContinueOnFailure()
{
return $this->continueOnFailure;
}
/**
* Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server
* and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
*
* @param string[] $jarFileUris
*/
public function setJarFileUris($jarFileUris)
{
$this->jarFileUris = $jarFileUris;
}
/**
* @return string[]
*/
public function getJarFileUris()
{
return $this->jarFileUris;
}
/**
* Optional. A mapping of property names and values, used to configure Hive.
* Properties that conflict with values set by the Dataproc API might be
* overwritten. Can include properties set in /etc/hadoop/conf-site.xml,
* /etc/hive/conf/hive-site.xml, and classes in user code.
*
* @param string[] $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return string[]
*/
public function getProperties()
{
return $this->properties;
}
/**
* The HCFS URI of the script that contains Hive queries.
*
* @param string $queryFileUri
*/
public function setQueryFileUri($queryFileUri)
{
$this->queryFileUri = $queryFileUri;
}
/**
* @return string
*/
public function getQueryFileUri()
{
return $this->queryFileUri;
}
/**
* A list of queries.
*
* @param QueryList $queryList
*/
public function setQueryList(QueryList $queryList)
{
$this->queryList = $queryList;
}
/**
* @return QueryList
*/
public function getQueryList()
{
return $this->queryList;
}
/**
* Optional. Mapping of query variable names to values (equivalent to the Hive
* command: SET name="value";).
*
* @param string[] $scriptVariables
*/
public function setScriptVariables($scriptVariables)
{
$this->scriptVariables = $scriptVariables;
}
/**
* @return string[]
*/
public function getScriptVariables()
{
return $this->scriptVariables;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HiveJob::class, 'Google_Service_Dataproc_HiveJob');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class IdentityConfig extends \Google\Model
{
/**
* Required. Map of user to service account.
*
* @var string[]
*/
public $userServiceAccountMapping;
/**
* Required. Map of user to service account.
*
* @param string[] $userServiceAccountMapping
*/
public function setUserServiceAccountMapping($userServiceAccountMapping)
{
$this->userServiceAccountMapping = $userServiceAccountMapping;
}
/**
* @return string[]
*/
public function getUserServiceAccountMapping()
{
return $this->userServiceAccountMapping;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IdentityConfig::class, 'Google_Service_Dataproc_IdentityConfig');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InjectCredentialsRequest extends \Google\Model
{
/**
* Required. The cluster UUID.
*
* @var string
*/
public $clusterUuid;
/**
* Required. The encrypted credentials being injected in to the cluster.The
* client is responsible for encrypting the credentials in a way that is
* supported by the cluster.A wrapped value is used here so that the actual
* contents of the encrypted credentials are not written to audit logs.
*
* @var string
*/
public $credentialsCiphertext;
/**
* Required. The cluster UUID.
*
* @param string $clusterUuid
*/
public function setClusterUuid($clusterUuid)
{
$this->clusterUuid = $clusterUuid;
}
/**
* @return string
*/
public function getClusterUuid()
{
return $this->clusterUuid;
}
/**
* Required. The encrypted credentials being injected in to the cluster.The
* client is responsible for encrypting the credentials in a way that is
* supported by the cluster.A wrapped value is used here so that the actual
* contents of the encrypted credentials are not written to audit logs.
*
* @param string $credentialsCiphertext
*/
public function setCredentialsCiphertext($credentialsCiphertext)
{
$this->credentialsCiphertext = $credentialsCiphertext;
}
/**
* @return string
*/
public function getCredentialsCiphertext()
{
return $this->credentialsCiphertext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InjectCredentialsRequest::class, 'Google_Service_Dataproc_InjectCredentialsRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InjectSessionCredentialsRequest extends \Google\Model
{
/**
* @var string
*/
public $credentialsCiphertext;
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setCredentialsCiphertext($credentialsCiphertext)
{
$this->credentialsCiphertext = $credentialsCiphertext;
}
/**
* @return string
*/
public function getCredentialsCiphertext()
{
return $this->credentialsCiphertext;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InjectSessionCredentialsRequest::class, 'Google_Service_Dataproc_InjectSessionCredentialsRequest');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InjectableCredentialsConfig extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InjectableCredentialsConfig::class, 'Google_Service_Dataproc_InjectableCredentialsConfig');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InputMetrics extends \Google\Model
{
/**
* @var string
*/
public $bytesRead;
/**
* @var string
*/
public $recordsRead;
/**
* @param string $bytesRead
*/
public function setBytesRead($bytesRead)
{
$this->bytesRead = $bytesRead;
}
/**
* @return string
*/
public function getBytesRead()
{
return $this->bytesRead;
}
/**
* @param string $recordsRead
*/
public function setRecordsRead($recordsRead)
{
$this->recordsRead = $recordsRead;
}
/**
* @return string
*/
public function getRecordsRead()
{
return $this->recordsRead;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InputMetrics::class, 'Google_Service_Dataproc_InputMetrics');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InputQuantileMetrics extends \Google\Model
{
protected $bytesReadType = Quantiles::class;
protected $bytesReadDataType = '';
protected $recordsReadType = Quantiles::class;
protected $recordsReadDataType = '';
/**
* @param Quantiles $bytesRead
*/
public function setBytesRead(Quantiles $bytesRead)
{
$this->bytesRead = $bytesRead;
}
/**
* @return Quantiles
*/
public function getBytesRead()
{
return $this->bytesRead;
}
/**
* @param Quantiles $recordsRead
*/
public function setRecordsRead(Quantiles $recordsRead)
{
$this->recordsRead = $recordsRead;
}
/**
* @return Quantiles
*/
public function getRecordsRead()
{
return $this->recordsRead;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InputQuantileMetrics::class, 'Google_Service_Dataproc_InputQuantileMetrics');

View File

@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InstanceFlexibilityPolicy extends \Google\Collection
{
protected $collection_key = 'instanceSelectionResults';
protected $instanceSelectionListType = InstanceSelection::class;
protected $instanceSelectionListDataType = 'array';
protected $instanceSelectionResultsType = InstanceSelectionResult::class;
protected $instanceSelectionResultsDataType = 'array';
protected $provisioningModelMixType = ProvisioningModelMix::class;
protected $provisioningModelMixDataType = '';
/**
* Optional. List of instance selection options that the group will use when
* creating new VMs.
*
* @param InstanceSelection[] $instanceSelectionList
*/
public function setInstanceSelectionList($instanceSelectionList)
{
$this->instanceSelectionList = $instanceSelectionList;
}
/**
* @return InstanceSelection[]
*/
public function getInstanceSelectionList()
{
return $this->instanceSelectionList;
}
/**
* Output only. A list of instance selection results in the group.
*
* @param InstanceSelectionResult[] $instanceSelectionResults
*/
public function setInstanceSelectionResults($instanceSelectionResults)
{
$this->instanceSelectionResults = $instanceSelectionResults;
}
/**
* @return InstanceSelectionResult[]
*/
public function getInstanceSelectionResults()
{
return $this->instanceSelectionResults;
}
/**
* Optional. Defines how the Group selects the provisioning model to ensure
* required reliability.
*
* @param ProvisioningModelMix $provisioningModelMix
*/
public function setProvisioningModelMix(ProvisioningModelMix $provisioningModelMix)
{
$this->provisioningModelMix = $provisioningModelMix;
}
/**
* @return ProvisioningModelMix
*/
public function getProvisioningModelMix()
{
return $this->provisioningModelMix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceFlexibilityPolicy::class, 'Google_Service_Dataproc_InstanceFlexibilityPolicy');

View File

@@ -0,0 +1,130 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InstanceGroupAutoscalingPolicyConfig extends \Google\Model
{
/**
* Required. Maximum number of instances for this group. Required for primary
* workers. Note that by default, clusters will not use secondary workers.
* Required for secondary workers if the minimum secondary instances is
* set.Primary workers - Bounds: [min_instances, ). Secondary workers -
* Bounds: [min_instances, ). Default: 0.
*
* @var int
*/
public $maxInstances;
/**
* Optional. Minimum number of instances for this group.Primary workers -
* Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0,
* max_instances. Default: 0.
*
* @var int
*/
public $minInstances;
/**
* Optional. Weight for the instance group, which is used to determine the
* fraction of total workers in the cluster from this instance group. For
* example, if primary workers have weight 2, and secondary workers have
* weight 1, the cluster will have approximately 2 primary workers for each
* secondary worker.The cluster may not reach the specified balance if
* constrained by min/max bounds or other autoscaling settings. For example,
* if max_instances for secondary workers is 0, then only primary workers will
* be added. The cluster can also be out of balance when created.If weight is
* not set on any instance group, the cluster will default to equal weight for
* all groups: the cluster will attempt to maintain an equal number of workers
* in each group within the configured size bounds for each group. If weight
* is set for one group only, the cluster will default to zero weight on the
* unset group. For example if weight is set only on primary workers, the
* cluster will use primary workers only and no secondary workers.
*
* @var int
*/
public $weight;
/**
* Required. Maximum number of instances for this group. Required for primary
* workers. Note that by default, clusters will not use secondary workers.
* Required for secondary workers if the minimum secondary instances is
* set.Primary workers - Bounds: [min_instances, ). Secondary workers -
* Bounds: [min_instances, ). Default: 0.
*
* @param int $maxInstances
*/
public function setMaxInstances($maxInstances)
{
$this->maxInstances = $maxInstances;
}
/**
* @return int
*/
public function getMaxInstances()
{
return $this->maxInstances;
}
/**
* Optional. Minimum number of instances for this group.Primary workers -
* Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0,
* max_instances. Default: 0.
*
* @param int $minInstances
*/
public function setMinInstances($minInstances)
{
$this->minInstances = $minInstances;
}
/**
* @return int
*/
public function getMinInstances()
{
return $this->minInstances;
}
/**
* Optional. Weight for the instance group, which is used to determine the
* fraction of total workers in the cluster from this instance group. For
* example, if primary workers have weight 2, and secondary workers have
* weight 1, the cluster will have approximately 2 primary workers for each
* secondary worker.The cluster may not reach the specified balance if
* constrained by min/max bounds or other autoscaling settings. For example,
* if max_instances for secondary workers is 0, then only primary workers will
* be added. The cluster can also be out of balance when created.If weight is
* not set on any instance group, the cluster will default to equal weight for
* all groups: the cluster will attempt to maintain an equal number of workers
* in each group within the configured size bounds for each group. If weight
* is set for one group only, the cluster will default to zero weight on the
* unset group. For example if weight is set only on primary workers, the
* cluster will use primary workers only and no secondary workers.
*
* @param int $weight
*/
public function setWeight($weight)
{
$this->weight = $weight;
}
/**
* @return int
*/
public function getWeight()
{
return $this->weight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceGroupAutoscalingPolicyConfig::class, 'Google_Service_Dataproc_InstanceGroupAutoscalingPolicyConfig');

View File

@@ -0,0 +1,407 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InstanceGroupConfig extends \Google\Collection
{
/**
* Preemptibility is unspecified, the system will choose the appropriate
* setting for each instance group.
*/
public const PREEMPTIBILITY_PREEMPTIBILITY_UNSPECIFIED = 'PREEMPTIBILITY_UNSPECIFIED';
/**
* Instances are non-preemptible.This option is allowed for all instance
* groups and is the only valid value for Master and Worker instance groups.
*/
public const PREEMPTIBILITY_NON_PREEMPTIBLE = 'NON_PREEMPTIBLE';
/**
* Instances are preemptible
* (https://cloud.google.com/compute/docs/instances/preemptible).This option
* is allowed only for secondary worker
* (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
* groups.
*/
public const PREEMPTIBILITY_PREEMPTIBLE = 'PREEMPTIBLE';
/**
* Instances are Spot VMs
* (https://cloud.google.com/compute/docs/instances/spot).This option is
* allowed only for secondary worker
* (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
* groups. Spot VMs are the latest version of preemptible VMs
* (https://cloud.google.com/compute/docs/instances/preemptible), and provide
* additional features.
*/
public const PREEMPTIBILITY_SPOT = 'SPOT';
protected $collection_key = 'instanceReferences';
protected $acceleratorsType = AcceleratorConfig::class;
protected $acceleratorsDataType = 'array';
protected $diskConfigType = DiskConfig::class;
protected $diskConfigDataType = '';
/**
* Optional. The Compute Engine image resource used for cluster instances.The
* URI can represent an image or image family.Image examples: https://www.goog
* leapis.com/compute/v1/projects/[project_id]/global/images/[image-id]
* projects/[project_id]/global/images/[image-id] image-idImage family
* examples. Dataproc will use the most recent image from the family: https://
* www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[c
* ustom-image-family-name]
* projects/[project_id]/global/images/family/[custom-image-family-name]If the
* URI is unspecified, it will be inferred from SoftwareConfig.image_version
* or the system default.
*
* @var string
*/
public $imageUri;
protected $instanceFlexibilityPolicyType = InstanceFlexibilityPolicy::class;
protected $instanceFlexibilityPolicyDataType = '';
/**
* Output only. The list of instance names. Dataproc derives the names from
* cluster_name, num_instances, and the instance group.
*
* @var string[]
*/
public $instanceNames;
protected $instanceReferencesType = InstanceReference::class;
protected $instanceReferencesDataType = 'array';
/**
* Output only. Specifies that this instance group contains preemptible
* instances.
*
* @var bool
*/
public $isPreemptible;
/**
* Optional. The Compute Engine machine type used for cluster instances.A full
* URL, partial URI, or short name are valid. Examples: https://www.googleapis
* .com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-
* standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
* n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone
* Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/auto-zone#using_auto_zone_placement) feature, you must use the
* short name of the machine type resource, for example, n1-standard-2.
*
* @var string
*/
public $machineTypeUri;
protected $managedGroupConfigType = ManagedGroupConfig::class;
protected $managedGroupConfigDataType = '';
/**
* Optional. Specifies the minimum cpu platform for the Instance Group. See
* Dataproc -> Minimum CPU Platform
* (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
*
* @var string
*/
public $minCpuPlatform;
/**
* Optional. The minimum number of primary worker instances to create. If
* min_num_instances is set, cluster creation will succeed if the number of
* primary workers created is at least equal to the min_num_instances
* number.Example: Cluster creation request with num_instances = 5 and
* min_num_instances = 3: If 4 VMs are created and 1 instance fails, the
* failed VM is deleted. The cluster is resized to 4 instances and placed in a
* RUNNING state. If 2 instances are created and 3 instances fail, the cluster
* in placed in an ERROR state. The failed VMs are not deleted.
*
* @var int
*/
public $minNumInstances;
/**
* Optional. The number of VM instances in the instance group. For HA cluster
* master_config groups, must be set to 3. For standard cluster master_config
* groups, must be set to 1.
*
* @var int
*/
public $numInstances;
/**
* Optional. Specifies the preemptibility of the instance group.The default
* value for master and worker groups is NON_PREEMPTIBLE. This default cannot
* be changed.The default value for secondary instances is PREEMPTIBLE.
*
* @var string
*/
public $preemptibility;
protected $startupConfigType = StartupConfig::class;
protected $startupConfigDataType = '';
/**
* Optional. The Compute Engine accelerator configuration for these instances.
*
* @param AcceleratorConfig[] $accelerators
*/
public function setAccelerators($accelerators)
{
$this->accelerators = $accelerators;
}
/**
* @return AcceleratorConfig[]
*/
public function getAccelerators()
{
return $this->accelerators;
}
/**
* Optional. Disk option config settings.
*
* @param DiskConfig $diskConfig
*/
public function setDiskConfig(DiskConfig $diskConfig)
{
$this->diskConfig = $diskConfig;
}
/**
* @return DiskConfig
*/
public function getDiskConfig()
{
return $this->diskConfig;
}
/**
* Optional. The Compute Engine image resource used for cluster instances.The
* URI can represent an image or image family.Image examples: https://www.goog
* leapis.com/compute/v1/projects/[project_id]/global/images/[image-id]
* projects/[project_id]/global/images/[image-id] image-idImage family
* examples. Dataproc will use the most recent image from the family: https://
* www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[c
* ustom-image-family-name]
* projects/[project_id]/global/images/family/[custom-image-family-name]If the
* URI is unspecified, it will be inferred from SoftwareConfig.image_version
* or the system default.
*
* @param string $imageUri
*/
public function setImageUri($imageUri)
{
$this->imageUri = $imageUri;
}
/**
* @return string
*/
public function getImageUri()
{
return $this->imageUri;
}
/**
* Optional. Instance flexibility Policy allowing a mixture of VM shapes and
* provisioning models.
*
* @param InstanceFlexibilityPolicy $instanceFlexibilityPolicy
*/
public function setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy $instanceFlexibilityPolicy)
{
$this->instanceFlexibilityPolicy = $instanceFlexibilityPolicy;
}
/**
* @return InstanceFlexibilityPolicy
*/
public function getInstanceFlexibilityPolicy()
{
return $this->instanceFlexibilityPolicy;
}
/**
* Output only. The list of instance names. Dataproc derives the names from
* cluster_name, num_instances, and the instance group.
*
* @param string[] $instanceNames
*/
public function setInstanceNames($instanceNames)
{
$this->instanceNames = $instanceNames;
}
/**
* @return string[]
*/
public function getInstanceNames()
{
return $this->instanceNames;
}
/**
* Output only. List of references to Compute Engine instances.
*
* @param InstanceReference[] $instanceReferences
*/
public function setInstanceReferences($instanceReferences)
{
$this->instanceReferences = $instanceReferences;
}
/**
* @return InstanceReference[]
*/
public function getInstanceReferences()
{
return $this->instanceReferences;
}
/**
* Output only. Specifies that this instance group contains preemptible
* instances.
*
* @param bool $isPreemptible
*/
public function setIsPreemptible($isPreemptible)
{
$this->isPreemptible = $isPreemptible;
}
/**
* @return bool
*/
public function getIsPreemptible()
{
return $this->isPreemptible;
}
/**
* Optional. The Compute Engine machine type used for cluster instances.A full
* URL, partial URI, or short name are valid. Examples: https://www.googleapis
* .com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-
* standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2
* n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone
* Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-
* clusters/auto-zone#using_auto_zone_placement) feature, you must use the
* short name of the machine type resource, for example, n1-standard-2.
*
* @param string $machineTypeUri
*/
public function setMachineTypeUri($machineTypeUri)
{
$this->machineTypeUri = $machineTypeUri;
}
/**
* @return string
*/
public function getMachineTypeUri()
{
return $this->machineTypeUri;
}
/**
* Output only. The config for Compute Engine Instance Group Manager that
* manages this group. This is only used for preemptible instance groups.
*
* @param ManagedGroupConfig $managedGroupConfig
*/
public function setManagedGroupConfig(ManagedGroupConfig $managedGroupConfig)
{
$this->managedGroupConfig = $managedGroupConfig;
}
/**
* @return ManagedGroupConfig
*/
public function getManagedGroupConfig()
{
return $this->managedGroupConfig;
}
/**
* Optional. Specifies the minimum cpu platform for the Instance Group. See
* Dataproc -> Minimum CPU Platform
* (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
*
* @param string $minCpuPlatform
*/
public function setMinCpuPlatform($minCpuPlatform)
{
$this->minCpuPlatform = $minCpuPlatform;
}
/**
* @return string
*/
public function getMinCpuPlatform()
{
return $this->minCpuPlatform;
}
/**
* Optional. The minimum number of primary worker instances to create. If
* min_num_instances is set, cluster creation will succeed if the number of
* primary workers created is at least equal to the min_num_instances
* number.Example: Cluster creation request with num_instances = 5 and
* min_num_instances = 3: If 4 VMs are created and 1 instance fails, the
* failed VM is deleted. The cluster is resized to 4 instances and placed in a
* RUNNING state. If 2 instances are created and 3 instances fail, the cluster
* in placed in an ERROR state. The failed VMs are not deleted.
*
* @param int $minNumInstances
*/
public function setMinNumInstances($minNumInstances)
{
$this->minNumInstances = $minNumInstances;
}
/**
* @return int
*/
public function getMinNumInstances()
{
return $this->minNumInstances;
}
/**
* Optional. The number of VM instances in the instance group. For HA cluster
* master_config groups, must be set to 3. For standard cluster master_config
* groups, must be set to 1.
*
* @param int $numInstances
*/
public function setNumInstances($numInstances)
{
$this->numInstances = $numInstances;
}
/**
* @return int
*/
public function getNumInstances()
{
return $this->numInstances;
}
/**
* Optional. Specifies the preemptibility of the instance group.The default
* value for master and worker groups is NON_PREEMPTIBLE. This default cannot
* be changed.The default value for secondary instances is PREEMPTIBLE.
*
* Accepted values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE,
* SPOT
*
* @param self::PREEMPTIBILITY_* $preemptibility
*/
public function setPreemptibility($preemptibility)
{
$this->preemptibility = $preemptibility;
}
/**
* @return self::PREEMPTIBILITY_*
*/
public function getPreemptibility()
{
return $this->preemptibility;
}
/**
* Optional. Configuration to handle the startup of instances during cluster
* create and update process.
*
* @param StartupConfig $startupConfig
*/
public function setStartupConfig(StartupConfig $startupConfig)
{
$this->startupConfig = $startupConfig;
}
/**
* @return StartupConfig
*/
public function getStartupConfig()
{
return $this->startupConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceGroupConfig::class, 'Google_Service_Dataproc_InstanceGroupConfig');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InstanceReference extends \Google\Model
{
/**
* The unique identifier of the Compute Engine instance.
*
* @var string
*/
public $instanceId;
/**
* The user-friendly name of the Compute Engine instance.
*
* @var string
*/
public $instanceName;
/**
* The public ECIES key used for sharing data with this instance.
*
* @var string
*/
public $publicEciesKey;
/**
* The public RSA key used for sharing data with this instance.
*
* @var string
*/
public $publicKey;
/**
* The unique identifier of the Compute Engine instance.
*
* @param string $instanceId
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* The user-friendly name of the Compute Engine instance.
*
* @param string $instanceName
*/
public function setInstanceName($instanceName)
{
$this->instanceName = $instanceName;
}
/**
* @return string
*/
public function getInstanceName()
{
return $this->instanceName;
}
/**
* The public ECIES key used for sharing data with this instance.
*
* @param string $publicEciesKey
*/
public function setPublicEciesKey($publicEciesKey)
{
$this->publicEciesKey = $publicEciesKey;
}
/**
* @return string
*/
public function getPublicEciesKey()
{
return $this->publicEciesKey;
}
/**
* The public RSA key used for sharing data with this instance.
*
* @param string $publicKey
*/
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey()
{
return $this->publicKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceReference::class, 'Google_Service_Dataproc_InstanceReference');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InstanceSelection extends \Google\Collection
{
protected $collection_key = 'machineTypes';
/**
* Optional. Full machine-type names, e.g. "n1-standard-16".
*
* @var string[]
*/
public $machineTypes;
/**
* Optional. Preference of this instance selection. Lower number means higher
* preference. Dataproc will first try to create a VM based on the machine-
* type with priority rank and fallback to next rank based on availability.
* Machine types and instance selections with the same priority have the same
* preference.
*
* @var int
*/
public $rank;
/**
* Optional. Full machine-type names, e.g. "n1-standard-16".
*
* @param string[] $machineTypes
*/
public function setMachineTypes($machineTypes)
{
$this->machineTypes = $machineTypes;
}
/**
* @return string[]
*/
public function getMachineTypes()
{
return $this->machineTypes;
}
/**
* Optional. Preference of this instance selection. Lower number means higher
* preference. Dataproc will first try to create a VM based on the machine-
* type with priority rank and fallback to next rank based on availability.
* Machine types and instance selections with the same priority have the same
* preference.
*
* @param int $rank
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return int
*/
public function getRank()
{
return $this->rank;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceSelection::class, 'Google_Service_Dataproc_InstanceSelection');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InstanceSelectionResult extends \Google\Model
{
/**
* Output only. Full machine-type names, e.g. "n1-standard-16".
*
* @var string
*/
public $machineType;
/**
* Output only. Number of VM provisioned with the machine_type.
*
* @var int
*/
public $vmCount;
/**
* Output only. Full machine-type names, e.g. "n1-standard-16".
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Output only. Number of VM provisioned with the machine_type.
*
* @param int $vmCount
*/
public function setVmCount($vmCount)
{
$this->vmCount = $vmCount;
}
/**
* @return int
*/
public function getVmCount()
{
return $this->vmCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceSelectionResult::class, 'Google_Service_Dataproc_InstanceSelectionResult');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class InstantiateWorkflowTemplateRequest extends \Google\Model
{
/**
* Optional. Map from parameter names to values that should be used for those
* parameters. Values may not exceed 1000 characters.
*
* @var string[]
*/
public $parameters;
/**
* Optional. A tag that prevents multiple concurrent workflow instances with
* the same tag from running. This mitigates risk of concurrent instances
* started due to retries.It is recommended to always set this value to a UUID
* (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must
* contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
* hyphens (-). The maximum length is 40 characters.
*
* @var string
*/
public $requestId;
/**
* Optional. The version of workflow template to instantiate. If specified,
* the workflow will be instantiated only if the current version of the
* workflow template has the supplied version.This option cannot be used to
* instantiate a previous version of workflow template.
*
* @var int
*/
public $version;
/**
* Optional. Map from parameter names to values that should be used for those
* parameters. Values may not exceed 1000 characters.
*
* @param string[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* Optional. A tag that prevents multiple concurrent workflow instances with
* the same tag from running. This mitigates risk of concurrent instances
* started due to retries.It is recommended to always set this value to a UUID
* (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must
* contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
* hyphens (-). The maximum length is 40 characters.
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Optional. The version of workflow template to instantiate. If specified,
* the workflow will be instantiated only if the current version of the
* workflow template has the supplied version.This option cannot be used to
* instantiate a previous version of workflow template.
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstantiateWorkflowTemplateRequest::class, 'Google_Service_Dataproc_InstantiateWorkflowTemplateRequest');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class Interval extends \Google\Model
{
/**
* Optional. Exclusive end of the interval.If specified, a Timestamp matching
* this interval will have to be before the end.
*
* @var string
*/
public $endTime;
/**
* Optional. Inclusive start of the interval.If specified, a Timestamp
* matching this interval will have to be the same or after the start.
*
* @var string
*/
public $startTime;
/**
* Optional. Exclusive end of the interval.If specified, a Timestamp matching
* this interval will have to be before the end.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Optional. Inclusive start of the interval.If specified, a Timestamp
* matching this interval will have to be the same or after the start.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Interval::class, 'Google_Service_Dataproc_Interval');

View File

@@ -0,0 +1,475 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class Job extends \Google\Collection
{
protected $collection_key = 'yarnApplications';
/**
* Output only. Indicates whether the job is completed. If the value is false,
* the job is still in progress. If true, the job is completed, and
* status.state field will indicate if it was successful, failed, or
* cancelled.
*
* @var bool
*/
public $done;
/**
* Output only. If present, the location of miscellaneous control files which
* can be used as part of job setup and handling. If not present, control
* files might be placed in the same location as driver_output_uri.
*
* @var string
*/
public $driverControlFilesUri;
/**
* Output only. A URI pointing to the location of the stdout of the job's
* driver program.
*
* @var string
*/
public $driverOutputResourceUri;
protected $driverSchedulingConfigType = DriverSchedulingConfig::class;
protected $driverSchedulingConfigDataType = '';
protected $flinkJobType = FlinkJob::class;
protected $flinkJobDataType = '';
protected $hadoopJobType = HadoopJob::class;
protected $hadoopJobDataType = '';
protected $hiveJobType = HiveJob::class;
protected $hiveJobDataType = '';
/**
* Output only. A UUID that uniquely identifies a job within the project over
* time. This is in contrast to a user-settable reference.job_id that might be
* reused over time.
*
* @var string
*/
public $jobUuid;
/**
* Optional. The labels to associate with this job. Label keys must contain 1
* to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with a job.
*
* @var string[]
*/
public $labels;
protected $pigJobType = PigJob::class;
protected $pigJobDataType = '';
protected $placementType = JobPlacement::class;
protected $placementDataType = '';
protected $prestoJobType = PrestoJob::class;
protected $prestoJobDataType = '';
protected $pysparkJobType = PySparkJob::class;
protected $pysparkJobDataType = '';
protected $referenceType = JobReference::class;
protected $referenceDataType = '';
protected $schedulingType = JobScheduling::class;
protected $schedulingDataType = '';
protected $sparkJobType = SparkJob::class;
protected $sparkJobDataType = '';
protected $sparkRJobType = SparkRJob::class;
protected $sparkRJobDataType = '';
protected $sparkSqlJobType = SparkSqlJob::class;
protected $sparkSqlJobDataType = '';
protected $statusType = JobStatus::class;
protected $statusDataType = '';
protected $statusHistoryType = JobStatus::class;
protected $statusHistoryDataType = 'array';
protected $trinoJobType = TrinoJob::class;
protected $trinoJobDataType = '';
protected $yarnApplicationsType = YarnApplication::class;
protected $yarnApplicationsDataType = 'array';
/**
* Output only. Indicates whether the job is completed. If the value is false,
* the job is still in progress. If true, the job is completed, and
* status.state field will indicate if it was successful, failed, or
* cancelled.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* Output only. If present, the location of miscellaneous control files which
* can be used as part of job setup and handling. If not present, control
* files might be placed in the same location as driver_output_uri.
*
* @param string $driverControlFilesUri
*/
public function setDriverControlFilesUri($driverControlFilesUri)
{
$this->driverControlFilesUri = $driverControlFilesUri;
}
/**
* @return string
*/
public function getDriverControlFilesUri()
{
return $this->driverControlFilesUri;
}
/**
* Output only. A URI pointing to the location of the stdout of the job's
* driver program.
*
* @param string $driverOutputResourceUri
*/
public function setDriverOutputResourceUri($driverOutputResourceUri)
{
$this->driverOutputResourceUri = $driverOutputResourceUri;
}
/**
* @return string
*/
public function getDriverOutputResourceUri()
{
return $this->driverOutputResourceUri;
}
/**
* Optional. Driver scheduling configuration.
*
* @param DriverSchedulingConfig $driverSchedulingConfig
*/
public function setDriverSchedulingConfig(DriverSchedulingConfig $driverSchedulingConfig)
{
$this->driverSchedulingConfig = $driverSchedulingConfig;
}
/**
* @return DriverSchedulingConfig
*/
public function getDriverSchedulingConfig()
{
return $this->driverSchedulingConfig;
}
/**
* Optional. Job is a Flink job.
*
* @param FlinkJob $flinkJob
*/
public function setFlinkJob(FlinkJob $flinkJob)
{
$this->flinkJob = $flinkJob;
}
/**
* @return FlinkJob
*/
public function getFlinkJob()
{
return $this->flinkJob;
}
/**
* Optional. Job is a Hadoop job.
*
* @param HadoopJob $hadoopJob
*/
public function setHadoopJob(HadoopJob $hadoopJob)
{
$this->hadoopJob = $hadoopJob;
}
/**
* @return HadoopJob
*/
public function getHadoopJob()
{
return $this->hadoopJob;
}
/**
* Optional. Job is a Hive job.
*
* @param HiveJob $hiveJob
*/
public function setHiveJob(HiveJob $hiveJob)
{
$this->hiveJob = $hiveJob;
}
/**
* @return HiveJob
*/
public function getHiveJob()
{
return $this->hiveJob;
}
/**
* Output only. A UUID that uniquely identifies a job within the project over
* time. This is in contrast to a user-settable reference.job_id that might be
* reused over time.
*
* @param string $jobUuid
*/
public function setJobUuid($jobUuid)
{
$this->jobUuid = $jobUuid;
}
/**
* @return string
*/
public function getJobUuid()
{
return $this->jobUuid;
}
/**
* Optional. The labels to associate with this job. Label keys must contain 1
* to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if
* present, must contain 1 to 63 characters, and must conform to RFC 1035
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
* associated with a job.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Job is a Pig job.
*
* @param PigJob $pigJob
*/
public function setPigJob(PigJob $pigJob)
{
$this->pigJob = $pigJob;
}
/**
* @return PigJob
*/
public function getPigJob()
{
return $this->pigJob;
}
/**
* Required. Job information, including how, when, and where to run the job.
*
* @param JobPlacement $placement
*/
public function setPlacement(JobPlacement $placement)
{
$this->placement = $placement;
}
/**
* @return JobPlacement
*/
public function getPlacement()
{
return $this->placement;
}
/**
* Optional. Job is a Presto job.
*
* @param PrestoJob $prestoJob
*/
public function setPrestoJob(PrestoJob $prestoJob)
{
$this->prestoJob = $prestoJob;
}
/**
* @return PrestoJob
*/
public function getPrestoJob()
{
return $this->prestoJob;
}
/**
* Optional. Job is a PySpark job.
*
* @param PySparkJob $pysparkJob
*/
public function setPysparkJob(PySparkJob $pysparkJob)
{
$this->pysparkJob = $pysparkJob;
}
/**
* @return PySparkJob
*/
public function getPysparkJob()
{
return $this->pysparkJob;
}
/**
* Optional. The fully qualified reference to the job, which can be used to
* obtain the equivalent REST path of the job resource. If this property is
* not specified when a job is created, the server generates a job_id.
*
* @param JobReference $reference
*/
public function setReference(JobReference $reference)
{
$this->reference = $reference;
}
/**
* @return JobReference
*/
public function getReference()
{
return $this->reference;
}
/**
* Optional. Job scheduling configuration.
*
* @param JobScheduling $scheduling
*/
public function setScheduling(JobScheduling $scheduling)
{
$this->scheduling = $scheduling;
}
/**
* @return JobScheduling
*/
public function getScheduling()
{
return $this->scheduling;
}
/**
* Optional. Job is a Spark job.
*
* @param SparkJob $sparkJob
*/
public function setSparkJob(SparkJob $sparkJob)
{
$this->sparkJob = $sparkJob;
}
/**
* @return SparkJob
*/
public function getSparkJob()
{
return $this->sparkJob;
}
/**
* Optional. Job is a SparkR job.
*
* @param SparkRJob $sparkRJob
*/
public function setSparkRJob(SparkRJob $sparkRJob)
{
$this->sparkRJob = $sparkRJob;
}
/**
* @return SparkRJob
*/
public function getSparkRJob()
{
return $this->sparkRJob;
}
/**
* Optional. Job is a SparkSql job.
*
* @param SparkSqlJob $sparkSqlJob
*/
public function setSparkSqlJob(SparkSqlJob $sparkSqlJob)
{
$this->sparkSqlJob = $sparkSqlJob;
}
/**
* @return SparkSqlJob
*/
public function getSparkSqlJob()
{
return $this->sparkSqlJob;
}
/**
* Output only. The job status. Additional application-specific status
* information might be contained in the type_job and yarn_applications
* fields.
*
* @param JobStatus $status
*/
public function setStatus(JobStatus $status)
{
$this->status = $status;
}
/**
* @return JobStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* Output only. The previous job status.
*
* @param JobStatus[] $statusHistory
*/
public function setStatusHistory($statusHistory)
{
$this->statusHistory = $statusHistory;
}
/**
* @return JobStatus[]
*/
public function getStatusHistory()
{
return $this->statusHistory;
}
/**
* Optional. Job is a Trino job.
*
* @param TrinoJob $trinoJob
*/
public function setTrinoJob(TrinoJob $trinoJob)
{
$this->trinoJob = $trinoJob;
}
/**
* @return TrinoJob
*/
public function getTrinoJob()
{
return $this->trinoJob;
}
/**
* Output only. The collection of YARN applications spun up by this job.Beta
* Feature: This report is available for testing purposes only. It might be
* changed before final release.
*
* @param YarnApplication[] $yarnApplications
*/
public function setYarnApplications($yarnApplications)
{
$this->yarnApplications = $yarnApplications;
}
/**
* @return YarnApplication[]
*/
public function getYarnApplications()
{
return $this->yarnApplications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Job::class, 'Google_Service_Dataproc_Job');

View File

@@ -0,0 +1,428 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class JobData extends \Google\Collection
{
public const STATUS_JOB_EXECUTION_STATUS_UNSPECIFIED = 'JOB_EXECUTION_STATUS_UNSPECIFIED';
public const STATUS_JOB_EXECUTION_STATUS_RUNNING = 'JOB_EXECUTION_STATUS_RUNNING';
public const STATUS_JOB_EXECUTION_STATUS_SUCCEEDED = 'JOB_EXECUTION_STATUS_SUCCEEDED';
public const STATUS_JOB_EXECUTION_STATUS_FAILED = 'JOB_EXECUTION_STATUS_FAILED';
public const STATUS_JOB_EXECUTION_STATUS_UNKNOWN = 'JOB_EXECUTION_STATUS_UNKNOWN';
protected $collection_key = 'stageIds';
/**
* @var string
*/
public $completionTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $jobGroup;
/**
* @var string
*/
public $jobId;
/**
* @var int[]
*/
public $killTasksSummary;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $numActiveStages;
/**
* @var int
*/
public $numActiveTasks;
/**
* @var int
*/
public $numCompletedIndices;
/**
* @var int
*/
public $numCompletedStages;
/**
* @var int
*/
public $numCompletedTasks;
/**
* @var int
*/
public $numFailedStages;
/**
* @var int
*/
public $numFailedTasks;
/**
* @var int
*/
public $numKilledTasks;
/**
* @var int
*/
public $numSkippedStages;
/**
* @var int
*/
public $numSkippedTasks;
/**
* @var int
*/
public $numTasks;
/**
* @var int[]
*/
public $skippedStages;
/**
* @var string
*/
public $sqlExecutionId;
/**
* @var string[]
*/
public $stageIds;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $submissionTime;
/**
* @param string $completionTime
*/
public function setCompletionTime($completionTime)
{
$this->completionTime = $completionTime;
}
/**
* @return string
*/
public function getCompletionTime()
{
return $this->completionTime;
}
/**
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string $jobGroup
*/
public function setJobGroup($jobGroup)
{
$this->jobGroup = $jobGroup;
}
/**
* @return string
*/
public function getJobGroup()
{
return $this->jobGroup;
}
/**
* @param string $jobId
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* @param int[] $killTasksSummary
*/
public function setKillTasksSummary($killTasksSummary)
{
$this->killTasksSummary = $killTasksSummary;
}
/**
* @return int[]
*/
public function getKillTasksSummary()
{
return $this->killTasksSummary;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param int $numActiveStages
*/
public function setNumActiveStages($numActiveStages)
{
$this->numActiveStages = $numActiveStages;
}
/**
* @return int
*/
public function getNumActiveStages()
{
return $this->numActiveStages;
}
/**
* @param int $numActiveTasks
*/
public function setNumActiveTasks($numActiveTasks)
{
$this->numActiveTasks = $numActiveTasks;
}
/**
* @return int
*/
public function getNumActiveTasks()
{
return $this->numActiveTasks;
}
/**
* @param int $numCompletedIndices
*/
public function setNumCompletedIndices($numCompletedIndices)
{
$this->numCompletedIndices = $numCompletedIndices;
}
/**
* @return int
*/
public function getNumCompletedIndices()
{
return $this->numCompletedIndices;
}
/**
* @param int $numCompletedStages
*/
public function setNumCompletedStages($numCompletedStages)
{
$this->numCompletedStages = $numCompletedStages;
}
/**
* @return int
*/
public function getNumCompletedStages()
{
return $this->numCompletedStages;
}
/**
* @param int $numCompletedTasks
*/
public function setNumCompletedTasks($numCompletedTasks)
{
$this->numCompletedTasks = $numCompletedTasks;
}
/**
* @return int
*/
public function getNumCompletedTasks()
{
return $this->numCompletedTasks;
}
/**
* @param int $numFailedStages
*/
public function setNumFailedStages($numFailedStages)
{
$this->numFailedStages = $numFailedStages;
}
/**
* @return int
*/
public function getNumFailedStages()
{
return $this->numFailedStages;
}
/**
* @param int $numFailedTasks
*/
public function setNumFailedTasks($numFailedTasks)
{
$this->numFailedTasks = $numFailedTasks;
}
/**
* @return int
*/
public function getNumFailedTasks()
{
return $this->numFailedTasks;
}
/**
* @param int $numKilledTasks
*/
public function setNumKilledTasks($numKilledTasks)
{
$this->numKilledTasks = $numKilledTasks;
}
/**
* @return int
*/
public function getNumKilledTasks()
{
return $this->numKilledTasks;
}
/**
* @param int $numSkippedStages
*/
public function setNumSkippedStages($numSkippedStages)
{
$this->numSkippedStages = $numSkippedStages;
}
/**
* @return int
*/
public function getNumSkippedStages()
{
return $this->numSkippedStages;
}
/**
* @param int $numSkippedTasks
*/
public function setNumSkippedTasks($numSkippedTasks)
{
$this->numSkippedTasks = $numSkippedTasks;
}
/**
* @return int
*/
public function getNumSkippedTasks()
{
return $this->numSkippedTasks;
}
/**
* @param int $numTasks
*/
public function setNumTasks($numTasks)
{
$this->numTasks = $numTasks;
}
/**
* @return int
*/
public function getNumTasks()
{
return $this->numTasks;
}
/**
* @param int[] $skippedStages
*/
public function setSkippedStages($skippedStages)
{
$this->skippedStages = $skippedStages;
}
/**
* @return int[]
*/
public function getSkippedStages()
{
return $this->skippedStages;
}
/**
* @param string $sqlExecutionId
*/
public function setSqlExecutionId($sqlExecutionId)
{
$this->sqlExecutionId = $sqlExecutionId;
}
/**
* @return string
*/
public function getSqlExecutionId()
{
return $this->sqlExecutionId;
}
/**
* @param string[] $stageIds
*/
public function setStageIds($stageIds)
{
$this->stageIds = $stageIds;
}
/**
* @return string[]
*/
public function getStageIds()
{
return $this->stageIds;
}
/**
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string $submissionTime
*/
public function setSubmissionTime($submissionTime)
{
$this->submissionTime = $submissionTime;
}
/**
* @return string
*/
public function getSubmissionTime()
{
return $this->submissionTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobData::class, 'Google_Service_Dataproc_JobData');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class JobMetadata extends \Google\Model
{
/**
* Output only. The job id.
*
* @var string
*/
public $jobId;
/**
* Output only. Operation type.
*
* @var string
*/
public $operationType;
/**
* Output only. Job submission time.
*
* @var string
*/
public $startTime;
protected $statusType = JobStatus::class;
protected $statusDataType = '';
/**
* Output only. The job id.
*
* @param string $jobId
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* Output only. Operation type.
*
* @param string $operationType
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return string
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* Output only. Job submission time.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. Most recent job status.
*
* @param JobStatus $status
*/
public function setStatus(JobStatus $status)
{
$this->status = $status;
}
/**
* @return JobStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobMetadata::class, 'Google_Service_Dataproc_JobMetadata');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dataproc;
class JobPlacement extends \Google\Model
{
/**
* Optional. Cluster labels to identify a cluster where the job will be
* submitted.
*
* @var string[]
*/
public $clusterLabels;
/**
* Required. The name of the cluster where the job will be submitted.
*
* @var string
*/
public $clusterName;
/**
* Output only. A cluster UUID generated by the Dataproc service when the job
* is submitted.
*
* @var string
*/
public $clusterUuid;
/**
* Optional. Cluster labels to identify a cluster where the job will be
* submitted.
*
* @param string[] $clusterLabels
*/
public function setClusterLabels($clusterLabels)
{
$this->clusterLabels = $clusterLabels;
}
/**
* @return string[]
*/
public function getClusterLabels()
{
return $this->clusterLabels;
}
/**
* Required. The name of the cluster where the job will be submitted.
*
* @param string $clusterName
*/
public function setClusterName($clusterName)
{
$this->clusterName = $clusterName;
}
/**
* @return string
*/
public function getClusterName()
{
return $this->clusterName;
}
/**
* Output only. A cluster UUID generated by the Dataproc service when the job
* is submitted.
*
* @param string $clusterUuid
*/
public function setClusterUuid($clusterUuid)
{
$this->clusterUuid = $clusterUuid;
}
/**
* @return string
*/
public function getClusterUuid()
{
return $this->clusterUuid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobPlacement::class, 'Google_Service_Dataproc_JobPlacement');

Some files were not shown because too many files have changed in this diff Show More