gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,85 @@
<?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\CloudComposer;
class AirflowMetadataRetentionPolicyConfig extends \Google\Model
{
/**
* Default mode doesn't change environment parameters.
*/
public const RETENTION_MODE_RETENTION_MODE_UNSPECIFIED = 'RETENTION_MODE_UNSPECIFIED';
/**
* Retention policy is enabled.
*/
public const RETENTION_MODE_RETENTION_MODE_ENABLED = 'RETENTION_MODE_ENABLED';
/**
* Retention policy is disabled.
*/
public const RETENTION_MODE_RETENTION_MODE_DISABLED = 'RETENTION_MODE_DISABLED';
/**
* Optional. How many days data should be retained for.
*
* @var int
*/
public $retentionDays;
/**
* Optional. Retention can be either enabled or disabled.
*
* @var string
*/
public $retentionMode;
/**
* Optional. How many days data should be retained for.
*
* @param int $retentionDays
*/
public function setRetentionDays($retentionDays)
{
$this->retentionDays = $retentionDays;
}
/**
* @return int
*/
public function getRetentionDays()
{
return $this->retentionDays;
}
/**
* Optional. Retention can be either enabled or disabled.
*
* Accepted values: RETENTION_MODE_UNSPECIFIED, RETENTION_MODE_ENABLED,
* RETENTION_MODE_DISABLED
*
* @param self::RETENTION_MODE_* $retentionMode
*/
public function setRetentionMode($retentionMode)
{
$this->retentionMode = $retentionMode;
}
/**
* @return self::RETENTION_MODE_*
*/
public function getRetentionMode()
{
return $this->retentionMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AirflowMetadataRetentionPolicyConfig::class, 'Google_Service_CloudComposer_AirflowMetadataRetentionPolicyConfig');
@@ -0,0 +1,82 @@
<?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\CloudComposer;
class AllowedIpRange extends \Google\Model
{
/**
* Optional. User-provided description. It must contain at most 300
* characters.
*
* @var string
*/
public $description;
/**
* IP address or range, defined using CIDR notation, of requests that this
* rule applies to. Examples: `192.168.1.1` or `192.168.0.0/16` or
* `2001:db8::/32` or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. IP range
* prefixes should be properly truncated. For example, `1.2.3.4/24` should be
* truncated to `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` should be
* truncated to `2001:db8::/32`.
*
* @var string
*/
public $value;
/**
* Optional. User-provided description. It must contain at most 300
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* IP address or range, defined using CIDR notation, of requests that this
* rule applies to. Examples: `192.168.1.1` or `192.168.0.0/16` or
* `2001:db8::/32` or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. IP range
* prefixes should be properly truncated. For example, `1.2.3.4/24` should be
* truncated to `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` should be
* truncated to `2001:db8::/32`.
*
* @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(AllowedIpRange::class, 'Google_Service_CloudComposer_AllowedIpRange');
@@ -0,0 +1,84 @@
<?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\CloudComposer;
class CheckUpgradeRequest extends \Google\Model
{
/**
* Optional. The version of the software running in the environment. This
* encapsulates both the version of Cloud Composer functionality and the
* version of Apache Airflow. It must match the regular expression `composer-
* ([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-
* 9]+(\.[0-9]+)?)?)`. When used as input, the server also checks if the
* provided version is supported and denies the request for an unsupported
* version. The Cloud Composer portion of the image version is a full
* [semantic version](https://semver.org), or an alias in the form of major
* version number or `latest`. When an alias is provided, the server replaces
* it with the current Cloud Composer version that satisfies the alias. The
* Apache Airflow portion of the image version is a full semantic version that
* points to one of the supported Apache Airflow versions, or an alias in the
* form of only major or major.minor versions specified. When an alias is
* provided, the server replaces it with the latest Apache Airflow version
* that satisfies the alias and is supported in the given Cloud Composer
* version. In all cases, the resolved image version is stored in the same
* field. See also [version list](/composer/docs/concepts/versioning/composer-
* versions) and [versioning
* overview](/composer/docs/concepts/versioning/composer-versioning-overview).
*
* @var string
*/
public $imageVersion;
/**
* Optional. The version of the software running in the environment. This
* encapsulates both the version of Cloud Composer functionality and the
* version of Apache Airflow. It must match the regular expression `composer-
* ([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-
* 9]+(\.[0-9]+)?)?)`. When used as input, the server also checks if the
* provided version is supported and denies the request for an unsupported
* version. The Cloud Composer portion of the image version is a full
* [semantic version](https://semver.org), or an alias in the form of major
* version number or `latest`. When an alias is provided, the server replaces
* it with the current Cloud Composer version that satisfies the alias. The
* Apache Airflow portion of the image version is a full semantic version that
* points to one of the supported Apache Airflow versions, or an alias in the
* form of only major or major.minor versions specified. When an alias is
* provided, the server replaces it with the latest Apache Airflow version
* that satisfies the alias and is supported in the given Cloud Composer
* version. In all cases, the resolved image version is stored in the same
* field. See also [version list](/composer/docs/concepts/versioning/composer-
* versions) and [versioning
* overview](/composer/docs/concepts/versioning/composer-versioning-overview).
*
* @param string $imageVersion
*/
public function setImageVersion($imageVersion)
{
$this->imageVersion = $imageVersion;
}
/**
* @return string
*/
public function getImageVersion()
{
return $this->imageVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckUpgradeRequest::class, 'Google_Service_CloudComposer_CheckUpgradeRequest');
@@ -0,0 +1,174 @@
<?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\CloudComposer;
class CheckUpgradeResponse extends \Google\Collection
{
/**
* It is unknown whether build had conflicts or not.
*/
public const CONTAINS_PYPI_MODULES_CONFLICT_CONFLICT_RESULT_UNSPECIFIED = 'CONFLICT_RESULT_UNSPECIFIED';
/**
* There were python packages conflicts.
*/
public const CONTAINS_PYPI_MODULES_CONFLICT_CONFLICT = 'CONFLICT';
/**
* There were no python packages conflicts.
*/
public const CONTAINS_PYPI_MODULES_CONFLICT_NO_CONFLICT = 'NO_CONFLICT';
protected $collection_key = 'configConflicts';
/**
* Output only. Url for a docker build log of an upgraded image.
*
* @var string
*/
public $buildLogUri;
protected $configConflictsType = ConfigConflict::class;
protected $configConflictsDataType = 'array';
/**
* Output only. Whether build has succeeded or failed on modules conflicts.
*
* @var string
*/
public $containsPypiModulesConflict;
/**
* Composer image for which the build was happening.
*
* @var string
*/
public $imageVersion;
/**
* Output only. Extract from a docker image build log containing information
* about pypi modules conflicts.
*
* @var string
*/
public $pypiConflictBuildLogExtract;
/**
* Pypi dependencies specified in the environment configuration, at the time
* when the build was triggered.
*
* @var string[]
*/
public $pypiDependencies;
/**
* Output only. Url for a docker build log of an upgraded image.
*
* @param string $buildLogUri
*/
public function setBuildLogUri($buildLogUri)
{
$this->buildLogUri = $buildLogUri;
}
/**
* @return string
*/
public function getBuildLogUri()
{
return $this->buildLogUri;
}
/**
* Output only. Contains information about environment configuration that is
* incompatible with the new image version, except for pypi modules conflicts.
*
* @param ConfigConflict[] $configConflicts
*/
public function setConfigConflicts($configConflicts)
{
$this->configConflicts = $configConflicts;
}
/**
* @return ConfigConflict[]
*/
public function getConfigConflicts()
{
return $this->configConflicts;
}
/**
* Output only. Whether build has succeeded or failed on modules conflicts.
*
* Accepted values: CONFLICT_RESULT_UNSPECIFIED, CONFLICT, NO_CONFLICT
*
* @param self::CONTAINS_PYPI_MODULES_CONFLICT_* $containsPypiModulesConflict
*/
public function setContainsPypiModulesConflict($containsPypiModulesConflict)
{
$this->containsPypiModulesConflict = $containsPypiModulesConflict;
}
/**
* @return self::CONTAINS_PYPI_MODULES_CONFLICT_*
*/
public function getContainsPypiModulesConflict()
{
return $this->containsPypiModulesConflict;
}
/**
* Composer image for which the build was happening.
*
* @param string $imageVersion
*/
public function setImageVersion($imageVersion)
{
$this->imageVersion = $imageVersion;
}
/**
* @return string
*/
public function getImageVersion()
{
return $this->imageVersion;
}
/**
* Output only. Extract from a docker image build log containing information
* about pypi modules conflicts.
*
* @param string $pypiConflictBuildLogExtract
*/
public function setPypiConflictBuildLogExtract($pypiConflictBuildLogExtract)
{
$this->pypiConflictBuildLogExtract = $pypiConflictBuildLogExtract;
}
/**
* @return string
*/
public function getPypiConflictBuildLogExtract()
{
return $this->pypiConflictBuildLogExtract;
}
/**
* Pypi dependencies specified in the environment configuration, at the time
* when the build was triggered.
*
* @param string[] $pypiDependencies
*/
public function setPypiDependencies($pypiDependencies)
{
$this->pypiDependencies = $pypiDependencies;
}
/**
* @return string[]
*/
public function getPypiDependencies()
{
return $this->pypiDependencies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckUpgradeResponse::class, 'Google_Service_CloudComposer_CheckUpgradeResponse');
@@ -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\CloudComposer;
class CidrBlock extends \Google\Model
{
/**
* CIDR block that must be specified in CIDR notation.
*
* @var string
*/
public $cidrBlock;
/**
* User-defined name that identifies the CIDR block.
*
* @var string
*/
public $displayName;
/**
* CIDR block that must be specified in CIDR notation.
*
* @param string $cidrBlock
*/
public function setCidrBlock($cidrBlock)
{
$this->cidrBlock = $cidrBlock;
}
/**
* @return string
*/
public function getCidrBlock()
{
return $this->cidrBlock;
}
/**
* User-defined name that identifies the CIDR block.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CidrBlock::class, 'Google_Service_CloudComposer_CidrBlock');
@@ -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\CloudComposer;
class CloudDataLineageIntegration extends \Google\Model
{
/**
* Optional. Whether or not Cloud Data Lineage integration is enabled.
*
* @var bool
*/
public $enabled;
/**
* Optional. Whether or not Cloud Data Lineage integration is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudDataLineageIntegration::class, 'Google_Service_CloudComposer_CloudDataLineageIntegration');
@@ -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\CloudComposer;
class ComposerEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComposerEmpty::class, 'Google_Service_CloudComposer_ComposerEmpty');
@@ -0,0 +1,128 @@
<?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\CloudComposer;
class ComposerWorkload extends \Google\Model
{
/**
* Not able to determine the type of the workload.
*/
public const TYPE_COMPOSER_WORKLOAD_TYPE_UNSPECIFIED = 'COMPOSER_WORKLOAD_TYPE_UNSPECIFIED';
/**
* Celery worker.
*/
public const TYPE_CELERY_WORKER = 'CELERY_WORKER';
/**
* Kubernetes worker.
*/
public const TYPE_KUBERNETES_WORKER = 'KUBERNETES_WORKER';
/**
* Workload created by Kubernetes Pod Operator.
*/
public const TYPE_KUBERNETES_OPERATOR_POD = 'KUBERNETES_OPERATOR_POD';
/**
* Airflow scheduler.
*/
public const TYPE_SCHEDULER = 'SCHEDULER';
/**
* Airflow Dag processor.
*/
public const TYPE_DAG_PROCESSOR = 'DAG_PROCESSOR';
/**
* Airflow triggerer.
*/
public const TYPE_TRIGGERER = 'TRIGGERER';
/**
* Airflow web server UI.
*/
public const TYPE_WEB_SERVER = 'WEB_SERVER';
/**
* Redis.
*/
public const TYPE_REDIS = 'REDIS';
/**
* Name of a workload.
*
* @var string
*/
public $name;
protected $statusType = ComposerWorkloadStatus::class;
protected $statusDataType = '';
/**
* Type of a workload.
*
* @var string
*/
public $type;
/**
* Name of a workload.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Status of a workload.
*
* @param ComposerWorkloadStatus $status
*/
public function setStatus(ComposerWorkloadStatus $status)
{
$this->status = $status;
}
/**
* @return ComposerWorkloadStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* Type of a workload.
*
* Accepted values: COMPOSER_WORKLOAD_TYPE_UNSPECIFIED, CELERY_WORKER,
* KUBERNETES_WORKER, KUBERNETES_OPERATOR_POD, SCHEDULER, DAG_PROCESSOR,
* TRIGGERER, WEB_SERVER, REDIS
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComposerWorkload::class, 'Google_Service_CloudComposer_ComposerWorkload');
@@ -0,0 +1,123 @@
<?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\CloudComposer;
class ComposerWorkloadStatus extends \Google\Model
{
/**
* Not able to determine the status of the workload.
*/
public const STATE_COMPOSER_WORKLOAD_STATE_UNSPECIFIED = 'COMPOSER_WORKLOAD_STATE_UNSPECIFIED';
/**
* Workload is in pending state and has not yet started.
*/
public const STATE_PENDING = 'PENDING';
/**
* Workload is running fine.
*/
public const STATE_OK = 'OK';
/**
* Workload is running but there are some non-critical problems.
*/
public const STATE_WARNING = 'WARNING';
/**
* Workload is not running due to an error.
*/
public const STATE_ERROR = 'ERROR';
/**
* Workload has finished execution with success.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* Workload has finished execution with failure.
*/
public const STATE_FAILED = 'FAILED';
/**
* Output only. Detailed message of the status.
*
* @var string
*/
public $detailedStatusMessage;
/**
* Output only. Workload state.
*
* @var string
*/
public $state;
/**
* Output only. Text to provide more descriptive status.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Detailed message of the status.
*
* @param string $detailedStatusMessage
*/
public function setDetailedStatusMessage($detailedStatusMessage)
{
$this->detailedStatusMessage = $detailedStatusMessage;
}
/**
* @return string
*/
public function getDetailedStatusMessage()
{
return $this->detailedStatusMessage;
}
/**
* Output only. Workload state.
*
* Accepted values: COMPOSER_WORKLOAD_STATE_UNSPECIFIED, PENDING, OK, WARNING,
* ERROR, SUCCEEDED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Text to provide more descriptive status.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComposerWorkloadStatus::class, 'Google_Service_CloudComposer_ComposerWorkloadStatus');
@@ -0,0 +1,85 @@
<?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\CloudComposer;
class ConfigConflict extends \Google\Model
{
/**
* Conflict type is unknown.
*/
public const TYPE_CONFLICT_TYPE_UNSPECIFIED = 'CONFLICT_TYPE_UNSPECIFIED';
/**
* Conflict is blocking, the upgrade would fail.
*/
public const TYPE_BLOCKING = 'BLOCKING';
/**
* Conflict is non-blocking. The upgrade would succeed, but the environment
* configuration would be changed.
*/
public const TYPE_NON_BLOCKING = 'NON_BLOCKING';
/**
* Conflict message.
*
* @var string
*/
public $message;
/**
* Conflict type. It can be blocking or non-blocking.
*
* @var string
*/
public $type;
/**
* Conflict message.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Conflict type. It can be blocking or non-blocking.
*
* Accepted values: CONFLICT_TYPE_UNSPECIFIED, BLOCKING, NON_BLOCKING
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigConflict::class, 'Google_Service_CloudComposer_ConfigConflict');
@@ -0,0 +1,120 @@
<?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\CloudComposer;
class DagProcessorResource extends \Google\Model
{
/**
* Optional. The number of DAG processors. If not provided or set to 0, a
* single DAG processor instance will be created.
*
* @var int
*/
public $count;
/**
* Optional. CPU request and limit for a single Airflow DAG processor replica.
*
* @var float
*/
public $cpu;
/**
* Optional. Memory (GB) request and limit for a single Airflow DAG processor
* replica.
*
* @var float
*/
public $memoryGb;
/**
* Optional. Storage (GB) request and limit for a single Airflow DAG processor
* replica.
*
* @var float
*/
public $storageGb;
/**
* Optional. The number of DAG processors. If not provided or set to 0, a
* single DAG processor instance will be created.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Optional. CPU request and limit for a single Airflow DAG processor replica.
*
* @param float $cpu
*/
public function setCpu($cpu)
{
$this->cpu = $cpu;
}
/**
* @return float
*/
public function getCpu()
{
return $this->cpu;
}
/**
* Optional. Memory (GB) request and limit for a single Airflow DAG processor
* replica.
*
* @param float $memoryGb
*/
public function setMemoryGb($memoryGb)
{
$this->memoryGb = $memoryGb;
}
/**
* @return float
*/
public function getMemoryGb()
{
return $this->memoryGb;
}
/**
* Optional. Storage (GB) request and limit for a single Airflow DAG processor
* replica.
*
* @param float $storageGb
*/
public function setStorageGb($storageGb)
{
$this->storageGb = $storageGb;
}
/**
* @return float
*/
public function getStorageGb()
{
return $this->storageGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DagProcessorResource::class, 'Google_Service_CloudComposer_DagProcessorResource');
@@ -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\CloudComposer;
class DataRetentionConfig extends \Google\Model
{
protected $airflowMetadataRetentionConfigType = AirflowMetadataRetentionPolicyConfig::class;
protected $airflowMetadataRetentionConfigDataType = '';
protected $taskLogsRetentionConfigType = TaskLogsRetentionConfig::class;
protected $taskLogsRetentionConfigDataType = '';
/**
* Optional. The retention policy for airflow metadata database.
*
* @param AirflowMetadataRetentionPolicyConfig $airflowMetadataRetentionConfig
*/
public function setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig $airflowMetadataRetentionConfig)
{
$this->airflowMetadataRetentionConfig = $airflowMetadataRetentionConfig;
}
/**
* @return AirflowMetadataRetentionPolicyConfig
*/
public function getAirflowMetadataRetentionConfig()
{
return $this->airflowMetadataRetentionConfig;
}
/**
* Optional. The configuration settings for task logs retention
*
* @param TaskLogsRetentionConfig $taskLogsRetentionConfig
*/
public function setTaskLogsRetentionConfig(TaskLogsRetentionConfig $taskLogsRetentionConfig)
{
$this->taskLogsRetentionConfig = $taskLogsRetentionConfig;
}
/**
* @return TaskLogsRetentionConfig
*/
public function getTaskLogsRetentionConfig()
{
return $this->taskLogsRetentionConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataRetentionConfig::class, 'Google_Service_CloudComposer_DataRetentionConfig');
@@ -0,0 +1,86 @@
<?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\CloudComposer;
class DatabaseConfig extends \Google\Model
{
/**
* Optional. Cloud SQL machine type used by Airflow database. It has to be one
* of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or
* db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
* Supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @var string
*/
public $machineType;
/**
* Optional. The Compute Engine zone where the Airflow database is created. If
* zone is provided, it must be in the region selected for the environment. If
* zone is not provided, a zone is automatically selected. The zone can only
* be set during environment creation. Supported for Cloud Composer
* environments in versions composer-2.*.*-airflow-*.*.*.
*
* @var string
*/
public $zone;
/**
* Optional. Cloud SQL machine type used by Airflow database. It has to be one
* of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or
* db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
* Supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Optional. The Compute Engine zone where the Airflow database is created. If
* zone is provided, it must be in the region selected for the environment. If
* zone is not provided, a zone is automatically selected. The zone can only
* be set during environment creation. Supported for Cloud Composer
* environments in versions composer-2.*.*-airflow-*.*.*.
*
* @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(DatabaseConfig::class, 'Google_Service_CloudComposer_DatabaseConfig');
@@ -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\CloudComposer;
class DatabaseFailoverRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseFailoverRequest::class, 'Google_Service_CloudComposer_DatabaseFailoverRequest');
@@ -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\CloudComposer;
class DatabaseFailoverResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseFailoverResponse::class, 'Google_Service_CloudComposer_DatabaseFailoverResponse');
@@ -0,0 +1,100 @@
<?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\CloudComposer;
class Date extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_CloudComposer_Date');
@@ -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\CloudComposer;
class EncryptionConfig extends \Google\Model
{
/**
* Optional. Customer-managed Encryption Key available through Google's Key
* Management Service. Cannot be updated. If not specified, Google-managed key
* will be used.
*
* @var string
*/
public $kmsKeyName;
/**
* Optional. Customer-managed Encryption Key available through Google's Key
* Management Service. Cannot be updated. If not specified, Google-managed key
* will be used.
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfig::class, 'Google_Service_CloudComposer_EncryptionConfig');
@@ -0,0 +1,284 @@
<?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\CloudComposer;
class Environment extends \Google\Model
{
/**
* The state of the environment is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The environment is in the process of being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The environment is currently running and healthy. It is ready for use.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The environment is being updated. It remains usable but cannot receive
* additional update requests or be deleted at this time.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The environment is undergoing deletion. It cannot be used.
*/
public const STATE_DELETING = 'DELETING';
/**
* The environment has encountered an error and cannot be used.
*/
public const STATE_ERROR = 'ERROR';
protected $configType = EnvironmentConfig::class;
protected $configDataType = '';
/**
* Output only. The time at which this environment was created.
*
* @var string
*/
public $createTime;
/**
* Optional. User-defined labels for this environment. The labels map can
* contain no more than 64 entries. Entries of the labels map are UTF8 strings
* that comply with the following restrictions: * Keys must conform to regexp:
* \p{Ll}\p{Lo}{0,62} * Values must conform to regexp:
* [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally
* constrained to be <= 128 bytes in size.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the environment, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* EnvironmentId must start with a lowercase letter followed by up to 63
* lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
*
* @var string
*/
public $name;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* The current state of the environment.
*
* @var string
*/
public $state;
protected $storageConfigType = StorageConfig::class;
protected $storageConfigDataType = '';
/**
* Output only. The time at which this environment was last modified.
*
* @var string
*/
public $updateTime;
/**
* Output only. The UUID (Universally Unique IDentifier) associated with this
* environment. This value is generated when the environment is created.
*
* @var string
*/
public $uuid;
/**
* Optional. Configuration parameters for this environment.
*
* @param EnvironmentConfig $config
*/
public function setConfig(EnvironmentConfig $config)
{
$this->config = $config;
}
/**
* @return EnvironmentConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* Output only. The time at which this environment was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User-defined labels for this environment. The labels map can
* contain no more than 64 entries. Entries of the labels map are UTF8 strings
* that comply with the following restrictions: * Keys must conform to regexp:
* \p{Ll}\p{Lo}{0,62} * Values must conform to regexp:
* [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally
* constrained to be <= 128 bytes in size.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the environment, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* EnvironmentId must start with a lowercase letter followed by up to 63
* lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* The current state of the environment.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, RUNNING, UPDATING, DELETING,
* ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional. Storage configuration for this environment.
*
* @param StorageConfig $storageConfig
*/
public function setStorageConfig(StorageConfig $storageConfig)
{
$this->storageConfig = $storageConfig;
}
/**
* @return StorageConfig
*/
public function getStorageConfig()
{
return $this->storageConfig;
}
/**
* Output only. The time at which this environment was last modified.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The UUID (Universally Unique IDentifier) associated with this
* environment. This value is generated when the environment is created.
*
* @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(Environment::class, 'Google_Service_CloudComposer_Environment');
@@ -0,0 +1,487 @@
<?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\CloudComposer;
class EnvironmentConfig extends \Google\Model
{
/**
* The size of the environment is unspecified.
*/
public const ENVIRONMENT_SIZE_ENVIRONMENT_SIZE_UNSPECIFIED = 'ENVIRONMENT_SIZE_UNSPECIFIED';
/**
* The environment size is small.
*/
public const ENVIRONMENT_SIZE_ENVIRONMENT_SIZE_SMALL = 'ENVIRONMENT_SIZE_SMALL';
/**
* The environment size is medium.
*/
public const ENVIRONMENT_SIZE_ENVIRONMENT_SIZE_MEDIUM = 'ENVIRONMENT_SIZE_MEDIUM';
/**
* The environment size is large.
*/
public const ENVIRONMENT_SIZE_ENVIRONMENT_SIZE_LARGE = 'ENVIRONMENT_SIZE_LARGE';
/**
* The environment size is extra large.
*/
public const ENVIRONMENT_SIZE_ENVIRONMENT_SIZE_EXTRA_LARGE = 'ENVIRONMENT_SIZE_EXTRA_LARGE';
/**
* Default mode doesn't change environment parameters.
*/
public const RESILIENCE_MODE_RESILIENCE_MODE_UNSPECIFIED = 'RESILIENCE_MODE_UNSPECIFIED';
/**
* Enabled High Resilience mode, including Cloud SQL HA.
*/
public const RESILIENCE_MODE_HIGH_RESILIENCE = 'HIGH_RESILIENCE';
/**
* Output only. The 'bring your own identity' variant of the URI of the Apache
* Airflow Web UI hosted within this environment, to be accessed with external
* identities using workforce identity federation (see [Access environments
* with workforce identity federation](/composer/docs/composer-2/access-
* environments-with-workforce-identity-federation)).
*
* @var string
*/
public $airflowByoidUri;
/**
* Output only. The URI of the Apache Airflow Web UI hosted within this
* environment (see [Airflow web interface](/composer/docs/how-
* to/accessing/airflow-web-interface)).
*
* @var string
*/
public $airflowUri;
/**
* Output only. The Cloud Storage prefix of the DAGs for this environment.
* Although Cloud Storage objects reside in a flat namespace, a hierarchical
* file tree can be simulated using "/"-delimited object name prefixes. DAG
* objects for this environment reside in a simulated directory with the given
* prefix.
*
* @var string
*/
public $dagGcsPrefix;
protected $dataRetentionConfigType = DataRetentionConfig::class;
protected $dataRetentionConfigDataType = '';
protected $databaseConfigType = DatabaseConfig::class;
protected $databaseConfigDataType = '';
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* Optional. The size of the Cloud Composer environment. This field is
* supported for Cloud Composer environments in versions
* composer-2.*.*-airflow-*.*.* and newer.
*
* @var string
*/
public $environmentSize;
/**
* Output only. The Kubernetes Engine cluster used to run this environment.
*
* @var string
*/
public $gkeCluster;
protected $maintenanceWindowType = MaintenanceWindow::class;
protected $maintenanceWindowDataType = '';
protected $masterAuthorizedNetworksConfigType = MasterAuthorizedNetworksConfig::class;
protected $masterAuthorizedNetworksConfigDataType = '';
protected $nodeConfigType = NodeConfig::class;
protected $nodeConfigDataType = '';
/**
* The number of nodes in the Kubernetes Engine cluster that will be used to
* run this environment. This field is supported for Cloud Composer
* environments in versions composer-1.*.*-airflow-*.*.*.
*
* @var int
*/
public $nodeCount;
protected $privateEnvironmentConfigType = PrivateEnvironmentConfig::class;
protected $privateEnvironmentConfigDataType = '';
protected $recoveryConfigType = RecoveryConfig::class;
protected $recoveryConfigDataType = '';
/**
* Optional. Resilience mode of the Cloud Composer Environment. This field is
* supported for Cloud Composer environments in versions
* composer-2.2.0-airflow-*.*.* and newer.
*
* @var string
*/
public $resilienceMode;
protected $softwareConfigType = SoftwareConfig::class;
protected $softwareConfigDataType = '';
protected $webServerConfigType = WebServerConfig::class;
protected $webServerConfigDataType = '';
protected $webServerNetworkAccessControlType = WebServerNetworkAccessControl::class;
protected $webServerNetworkAccessControlDataType = '';
protected $workloadsConfigType = WorkloadsConfig::class;
protected $workloadsConfigDataType = '';
/**
* Output only. The 'bring your own identity' variant of the URI of the Apache
* Airflow Web UI hosted within this environment, to be accessed with external
* identities using workforce identity federation (see [Access environments
* with workforce identity federation](/composer/docs/composer-2/access-
* environments-with-workforce-identity-federation)).
*
* @param string $airflowByoidUri
*/
public function setAirflowByoidUri($airflowByoidUri)
{
$this->airflowByoidUri = $airflowByoidUri;
}
/**
* @return string
*/
public function getAirflowByoidUri()
{
return $this->airflowByoidUri;
}
/**
* Output only. The URI of the Apache Airflow Web UI hosted within this
* environment (see [Airflow web interface](/composer/docs/how-
* to/accessing/airflow-web-interface)).
*
* @param string $airflowUri
*/
public function setAirflowUri($airflowUri)
{
$this->airflowUri = $airflowUri;
}
/**
* @return string
*/
public function getAirflowUri()
{
return $this->airflowUri;
}
/**
* Output only. The Cloud Storage prefix of the DAGs for this environment.
* Although Cloud Storage objects reside in a flat namespace, a hierarchical
* file tree can be simulated using "/"-delimited object name prefixes. DAG
* objects for this environment reside in a simulated directory with the given
* prefix.
*
* @param string $dagGcsPrefix
*/
public function setDagGcsPrefix($dagGcsPrefix)
{
$this->dagGcsPrefix = $dagGcsPrefix;
}
/**
* @return string
*/
public function getDagGcsPrefix()
{
return $this->dagGcsPrefix;
}
/**
* Optional. The configuration setting for Airflow database data retention
* mechanism.
*
* @param DataRetentionConfig $dataRetentionConfig
*/
public function setDataRetentionConfig(DataRetentionConfig $dataRetentionConfig)
{
$this->dataRetentionConfig = $dataRetentionConfig;
}
/**
* @return DataRetentionConfig
*/
public function getDataRetentionConfig()
{
return $this->dataRetentionConfig;
}
/**
* Optional. The configuration settings for Cloud SQL instance used internally
* by Apache Airflow software.
*
* @param DatabaseConfig $databaseConfig
*/
public function setDatabaseConfig(DatabaseConfig $databaseConfig)
{
$this->databaseConfig = $databaseConfig;
}
/**
* @return DatabaseConfig
*/
public function getDatabaseConfig()
{
return $this->databaseConfig;
}
/**
* Optional. The encryption options for the Cloud Composer environment and its
* dependencies. Cannot be updated.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Optional. The size of the Cloud Composer environment. This field is
* supported for Cloud Composer environments in versions
* composer-2.*.*-airflow-*.*.* and newer.
*
* Accepted values: ENVIRONMENT_SIZE_UNSPECIFIED, ENVIRONMENT_SIZE_SMALL,
* ENVIRONMENT_SIZE_MEDIUM, ENVIRONMENT_SIZE_LARGE,
* ENVIRONMENT_SIZE_EXTRA_LARGE
*
* @param self::ENVIRONMENT_SIZE_* $environmentSize
*/
public function setEnvironmentSize($environmentSize)
{
$this->environmentSize = $environmentSize;
}
/**
* @return self::ENVIRONMENT_SIZE_*
*/
public function getEnvironmentSize()
{
return $this->environmentSize;
}
/**
* Output only. The Kubernetes Engine cluster used to run this environment.
*
* @param string $gkeCluster
*/
public function setGkeCluster($gkeCluster)
{
$this->gkeCluster = $gkeCluster;
}
/**
* @return string
*/
public function getGkeCluster()
{
return $this->gkeCluster;
}
/**
* Optional. The maintenance window is the period when Cloud Composer
* components may undergo maintenance. It is defined so that maintenance is
* not executed during peak hours or critical time periods. The system will
* not be under maintenance for every occurrence of this window, but when
* maintenance is planned, it will be scheduled during the window. The
* maintenance window period must encompass at least 12 hours per week. This
* may be split into multiple chunks, each with a size of at least 4 hours. If
* this value is omitted, the default value for maintenance window is applied.
* By default, maintenance windows are from 00:00:00 to 04:00:00 (GMT) on
* Friday, Saturday, and Sunday every week.
*
* @param MaintenanceWindow $maintenanceWindow
*/
public function setMaintenanceWindow(MaintenanceWindow $maintenanceWindow)
{
$this->maintenanceWindow = $maintenanceWindow;
}
/**
* @return MaintenanceWindow
*/
public function getMaintenanceWindow()
{
return $this->maintenanceWindow;
}
/**
* Optional. The configuration options for GKE cluster master authorized
* networks. By default master authorized networks feature is: - in case of
* private environment: enabled with no external networks allowlisted. - in
* case of public environment: disabled.
*
* @param MasterAuthorizedNetworksConfig $masterAuthorizedNetworksConfig
*/
public function setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig $masterAuthorizedNetworksConfig)
{
$this->masterAuthorizedNetworksConfig = $masterAuthorizedNetworksConfig;
}
/**
* @return MasterAuthorizedNetworksConfig
*/
public function getMasterAuthorizedNetworksConfig()
{
return $this->masterAuthorizedNetworksConfig;
}
/**
* Optional. The configuration used for the Kubernetes Engine cluster.
*
* @param NodeConfig $nodeConfig
*/
public function setNodeConfig(NodeConfig $nodeConfig)
{
$this->nodeConfig = $nodeConfig;
}
/**
* @return NodeConfig
*/
public function getNodeConfig()
{
return $this->nodeConfig;
}
/**
* The number of nodes in the Kubernetes Engine cluster that will be used to
* run this environment. This field is supported for Cloud Composer
* environments in versions composer-1.*.*-airflow-*.*.*.
*
* @param int $nodeCount
*/
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
/**
* @return int
*/
public function getNodeCount()
{
return $this->nodeCount;
}
/**
* Optional. The configuration used for the Private IP Cloud Composer
* environment.
*
* @param PrivateEnvironmentConfig $privateEnvironmentConfig
*/
public function setPrivateEnvironmentConfig(PrivateEnvironmentConfig $privateEnvironmentConfig)
{
$this->privateEnvironmentConfig = $privateEnvironmentConfig;
}
/**
* @return PrivateEnvironmentConfig
*/
public function getPrivateEnvironmentConfig()
{
return $this->privateEnvironmentConfig;
}
/**
* Optional. The Recovery settings configuration of an environment. This field
* is supported for Cloud Composer environments in versions
* composer-2.*.*-airflow-*.*.* and newer.
*
* @param RecoveryConfig $recoveryConfig
*/
public function setRecoveryConfig(RecoveryConfig $recoveryConfig)
{
$this->recoveryConfig = $recoveryConfig;
}
/**
* @return RecoveryConfig
*/
public function getRecoveryConfig()
{
return $this->recoveryConfig;
}
/**
* Optional. Resilience mode of the Cloud Composer Environment. This field is
* supported for Cloud Composer environments in versions
* composer-2.2.0-airflow-*.*.* and newer.
*
* Accepted values: RESILIENCE_MODE_UNSPECIFIED, HIGH_RESILIENCE
*
* @param self::RESILIENCE_MODE_* $resilienceMode
*/
public function setResilienceMode($resilienceMode)
{
$this->resilienceMode = $resilienceMode;
}
/**
* @return self::RESILIENCE_MODE_*
*/
public function getResilienceMode()
{
return $this->resilienceMode;
}
/**
* Optional. The configuration settings for software inside the environment.
*
* @param SoftwareConfig $softwareConfig
*/
public function setSoftwareConfig(SoftwareConfig $softwareConfig)
{
$this->softwareConfig = $softwareConfig;
}
/**
* @return SoftwareConfig
*/
public function getSoftwareConfig()
{
return $this->softwareConfig;
}
/**
* Optional. The configuration settings for the Airflow web server App Engine
* instance.
*
* @param WebServerConfig $webServerConfig
*/
public function setWebServerConfig(WebServerConfig $webServerConfig)
{
$this->webServerConfig = $webServerConfig;
}
/**
* @return WebServerConfig
*/
public function getWebServerConfig()
{
return $this->webServerConfig;
}
/**
* Optional. The network-level access control policy for the Airflow web
* server. If unspecified, no network-level access restrictions will be
* applied.
*
* @param WebServerNetworkAccessControl $webServerNetworkAccessControl
*/
public function setWebServerNetworkAccessControl(WebServerNetworkAccessControl $webServerNetworkAccessControl)
{
$this->webServerNetworkAccessControl = $webServerNetworkAccessControl;
}
/**
* @return WebServerNetworkAccessControl
*/
public function getWebServerNetworkAccessControl()
{
return $this->webServerNetworkAccessControl;
}
/**
* Optional. The workloads configuration settings for the GKE cluster
* associated with the Cloud Composer environment. The GKE cluster runs
* Airflow scheduler, web server and workers workloads. This field is
* supported for Cloud Composer environments in versions
* composer-2.*.*-airflow-*.*.* and newer.
*
* @param WorkloadsConfig $workloadsConfig
*/
public function setWorkloadsConfig(WorkloadsConfig $workloadsConfig)
{
$this->workloadsConfig = $workloadsConfig;
}
/**
* @return WorkloadsConfig
*/
public function getWorkloadsConfig()
{
return $this->workloadsConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvironmentConfig::class, 'Google_Service_CloudComposer_EnvironmentConfig');
@@ -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\CloudComposer;
class ExecuteAirflowCommandRequest extends \Google\Collection
{
protected $collection_key = 'parameters';
/**
* Airflow command.
*
* @var string
*/
public $command;
/**
* Parameters for the Airflow command/subcommand as an array of arguments. It
* may contain positional arguments like `["my-dag-id"]`, key-value parameters
* like `["--foo=bar"]` or `["--foo","bar"]`, or other flags like `["-f"]`.
*
* @var string[]
*/
public $parameters;
/**
* Airflow subcommand.
*
* @var string
*/
public $subcommand;
/**
* Airflow command.
*
* @param string $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* Parameters for the Airflow command/subcommand as an array of arguments. It
* may contain positional arguments like `["my-dag-id"]`, key-value parameters
* like `["--foo=bar"]` or `["--foo","bar"]`, or other flags like `["-f"]`.
*
* @param string[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* Airflow subcommand.
*
* @param string $subcommand
*/
public function setSubcommand($subcommand)
{
$this->subcommand = $subcommand;
}
/**
* @return string
*/
public function getSubcommand()
{
return $this->subcommand;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteAirflowCommandRequest::class, 'Google_Service_CloudComposer_ExecuteAirflowCommandRequest');
@@ -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\CloudComposer;
class ExecuteAirflowCommandResponse extends \Google\Model
{
/**
* Error message. Empty if there was no error.
*
* @var string
*/
public $error;
/**
* The unique ID of the command execution for polling.
*
* @var string
*/
public $executionId;
/**
* The name of the pod where the command is executed.
*
* @var string
*/
public $pod;
/**
* The namespace of the pod where the command is executed.
*
* @var string
*/
public $podNamespace;
/**
* Error message. Empty if there was no error.
*
* @param string $error
*/
public function setError($error)
{
$this->error = $error;
}
/**
* @return string
*/
public function getError()
{
return $this->error;
}
/**
* The unique ID of the command execution for polling.
*
* @param string $executionId
*/
public function setExecutionId($executionId)
{
$this->executionId = $executionId;
}
/**
* @return string
*/
public function getExecutionId()
{
return $this->executionId;
}
/**
* The name of the pod where the command is executed.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* The namespace of the pod where the command is executed.
*
* @param string $podNamespace
*/
public function setPodNamespace($podNamespace)
{
$this->podNamespace = $podNamespace;
}
/**
* @return string
*/
public function getPodNamespace()
{
return $this->podNamespace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteAirflowCommandResponse::class, 'Google_Service_CloudComposer_ExecuteAirflowCommandResponse');
@@ -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\CloudComposer;
class ExitInfo extends \Google\Model
{
/**
* Error message. Empty if there was no error.
*
* @var string
*/
public $error;
/**
* The exit code from the command execution.
*
* @var int
*/
public $exitCode;
/**
* Error message. Empty if there was no error.
*
* @param string $error
*/
public function setError($error)
{
$this->error = $error;
}
/**
* @return string
*/
public function getError()
{
return $this->error;
}
/**
* The exit code from the command execution.
*
* @param int $exitCode
*/
public function setExitCode($exitCode)
{
$this->exitCode = $exitCode;
}
/**
* @return int
*/
public function getExitCode()
{
return $this->exitCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExitInfo::class, 'Google_Service_CloudComposer_ExitInfo');
@@ -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\CloudComposer;
class FetchDatabasePropertiesResponse extends \Google\Model
{
/**
* The availability status of the failover replica. A false status indicates
* that the failover replica is out of sync. The primary instance can only
* fail over to the failover replica when the status is true.
*
* @var bool
*/
public $isFailoverReplicaAvailable;
/**
* The Compute Engine zone that the instance is currently serving from.
*
* @var string
*/
public $primaryGceZone;
/**
* The Compute Engine zone that the failover instance is currently serving
* from for a regional Cloud SQL instance.
*
* @var string
*/
public $secondaryGceZone;
/**
* The availability status of the failover replica. A false status indicates
* that the failover replica is out of sync. The primary instance can only
* fail over to the failover replica when the status is true.
*
* @param bool $isFailoverReplicaAvailable
*/
public function setIsFailoverReplicaAvailable($isFailoverReplicaAvailable)
{
$this->isFailoverReplicaAvailable = $isFailoverReplicaAvailable;
}
/**
* @return bool
*/
public function getIsFailoverReplicaAvailable()
{
return $this->isFailoverReplicaAvailable;
}
/**
* The Compute Engine zone that the instance is currently serving from.
*
* @param string $primaryGceZone
*/
public function setPrimaryGceZone($primaryGceZone)
{
$this->primaryGceZone = $primaryGceZone;
}
/**
* @return string
*/
public function getPrimaryGceZone()
{
return $this->primaryGceZone;
}
/**
* The Compute Engine zone that the failover instance is currently serving
* from for a regional Cloud SQL instance.
*
* @param string $secondaryGceZone
*/
public function setSecondaryGceZone($secondaryGceZone)
{
$this->secondaryGceZone = $secondaryGceZone;
}
/**
* @return string
*/
public function getSecondaryGceZone()
{
return $this->secondaryGceZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchDatabasePropertiesResponse::class, 'Google_Service_CloudComposer_FetchDatabasePropertiesResponse');
@@ -0,0 +1,190 @@
<?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\CloudComposer;
class IPAllocationPolicy extends \Google\Model
{
/**
* Optional. The IP address range used to allocate IP addresses to pods in the
* GKE cluster. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true. Set to blank to have GKE choose a range with the
* default size. Set to /netmask (e.g. `/14`) to have GKE choose a range with
* a specific netmask. Set to a
* [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
* notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
* `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
* to use.
*
* @var string
*/
public $clusterIpv4CidrBlock;
/**
* Optional. The name of the GKE cluster's secondary range used to allocate IP
* addresses to pods. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true.
*
* @var string
*/
public $clusterSecondaryRangeName;
/**
* Optional. The IP address range of the services IP addresses in this GKE
* cluster. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true. Set to blank to have GKE choose a range with the
* default size. Set to /netmask (e.g. `/14`) to have GKE choose a range with
* a specific netmask. Set to a
* [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
* notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
* `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
* to use.
*
* @var string
*/
public $servicesIpv4CidrBlock;
/**
* Optional. The name of the services' secondary range used to allocate IP
* addresses to the GKE cluster. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true.
*
* @var string
*/
public $servicesSecondaryRangeName;
/**
* Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`,
* a VPC-native cluster is created. This field is only supported for Cloud
* Composer environments in versions composer-1.*.*-airflow-*.*.*.
* Environments in newer versions always use VPC-native GKE clusters.
*
* @var bool
*/
public $useIpAliases;
/**
* Optional. The IP address range used to allocate IP addresses to pods in the
* GKE cluster. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true. Set to blank to have GKE choose a range with the
* default size. Set to /netmask (e.g. `/14`) to have GKE choose a range with
* a specific netmask. Set to a
* [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
* notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
* `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
* to use.
*
* @param string $clusterIpv4CidrBlock
*/
public function setClusterIpv4CidrBlock($clusterIpv4CidrBlock)
{
$this->clusterIpv4CidrBlock = $clusterIpv4CidrBlock;
}
/**
* @return string
*/
public function getClusterIpv4CidrBlock()
{
return $this->clusterIpv4CidrBlock;
}
/**
* Optional. The name of the GKE cluster's secondary range used to allocate IP
* addresses to pods. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true.
*
* @param string $clusterSecondaryRangeName
*/
public function setClusterSecondaryRangeName($clusterSecondaryRangeName)
{
$this->clusterSecondaryRangeName = $clusterSecondaryRangeName;
}
/**
* @return string
*/
public function getClusterSecondaryRangeName()
{
return $this->clusterSecondaryRangeName;
}
/**
* Optional. The IP address range of the services IP addresses in this GKE
* cluster. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true. Set to blank to have GKE choose a range with the
* default size. Set to /netmask (e.g. `/14`) to have GKE choose a range with
* a specific netmask. Set to a
* [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
* notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
* `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
* to use.
*
* @param string $servicesIpv4CidrBlock
*/
public function setServicesIpv4CidrBlock($servicesIpv4CidrBlock)
{
$this->servicesIpv4CidrBlock = $servicesIpv4CidrBlock;
}
/**
* @return string
*/
public function getServicesIpv4CidrBlock()
{
return $this->servicesIpv4CidrBlock;
}
/**
* Optional. The name of the services' secondary range used to allocate IP
* addresses to the GKE cluster. For Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*, this field is applicable only when
* `use_ip_aliases` is true.
*
* @param string $servicesSecondaryRangeName
*/
public function setServicesSecondaryRangeName($servicesSecondaryRangeName)
{
$this->servicesSecondaryRangeName = $servicesSecondaryRangeName;
}
/**
* @return string
*/
public function getServicesSecondaryRangeName()
{
return $this->servicesSecondaryRangeName;
}
/**
* Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`,
* a VPC-native cluster is created. This field is only supported for Cloud
* Composer environments in versions composer-1.*.*-airflow-*.*.*.
* Environments in newer versions always use VPC-native GKE clusters.
*
* @param bool $useIpAliases
*/
public function setUseIpAliases($useIpAliases)
{
$this->useIpAliases = $useIpAliases;
}
/**
* @return bool
*/
public function getUseIpAliases()
{
return $this->useIpAliases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IPAllocationPolicy::class, 'Google_Service_CloudComposer_IPAllocationPolicy');
@@ -0,0 +1,161 @@
<?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\CloudComposer;
class ImageVersion extends \Google\Collection
{
protected $collection_key = 'supportedPythonVersions';
/**
* Whether it is impossible to create an environment with the image version.
*
* @var bool
*/
public $creationDisabled;
/**
* The string identifier of the ImageVersion, in the form:
* "composer-x.y.z-airflow-a.b.c"
*
* @var string
*/
public $imageVersionId;
/**
* Whether this is the default ImageVersion used by Composer during
* environment creation if no input ImageVersion is specified.
*
* @var bool
*/
public $isDefault;
protected $releaseDateType = Date::class;
protected $releaseDateDataType = '';
/**
* supported python versions
*
* @var string[]
*/
public $supportedPythonVersions;
/**
* Whether it is impossible to upgrade an environment running with the image
* version.
*
* @var bool
*/
public $upgradeDisabled;
/**
* Whether it is impossible to create an environment with the image version.
*
* @param bool $creationDisabled
*/
public function setCreationDisabled($creationDisabled)
{
$this->creationDisabled = $creationDisabled;
}
/**
* @return bool
*/
public function getCreationDisabled()
{
return $this->creationDisabled;
}
/**
* The string identifier of the ImageVersion, in the form:
* "composer-x.y.z-airflow-a.b.c"
*
* @param string $imageVersionId
*/
public function setImageVersionId($imageVersionId)
{
$this->imageVersionId = $imageVersionId;
}
/**
* @return string
*/
public function getImageVersionId()
{
return $this->imageVersionId;
}
/**
* Whether this is the default ImageVersion used by Composer during
* environment creation if no input ImageVersion is specified.
*
* @param bool $isDefault
*/
public function setIsDefault($isDefault)
{
$this->isDefault = $isDefault;
}
/**
* @return bool
*/
public function getIsDefault()
{
return $this->isDefault;
}
/**
* The date of the version release.
*
* @param Date $releaseDate
*/
public function setReleaseDate(Date $releaseDate)
{
$this->releaseDate = $releaseDate;
}
/**
* @return Date
*/
public function getReleaseDate()
{
return $this->releaseDate;
}
/**
* supported python versions
*
* @param string[] $supportedPythonVersions
*/
public function setSupportedPythonVersions($supportedPythonVersions)
{
$this->supportedPythonVersions = $supportedPythonVersions;
}
/**
* @return string[]
*/
public function getSupportedPythonVersions()
{
return $this->supportedPythonVersions;
}
/**
* Whether it is impossible to upgrade an environment running with the image
* version.
*
* @param bool $upgradeDisabled
*/
public function setUpgradeDisabled($upgradeDisabled)
{
$this->upgradeDisabled = $upgradeDisabled;
}
/**
* @return bool
*/
public function getUpgradeDisabled()
{
return $this->upgradeDisabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageVersion::class, 'Google_Service_CloudComposer_ImageVersion');
@@ -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\CloudComposer;
class Line extends \Google\Model
{
/**
* Text content of the log line.
*
* @var string
*/
public $content;
/**
* Number of the line.
*
* @var int
*/
public $lineNumber;
/**
* Text content of the log line.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Number of the line.
*
* @param int $lineNumber
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return int
*/
public function getLineNumber()
{
return $this->lineNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Line::class, 'Google_Service_CloudComposer_Line');
@@ -0,0 +1,67 @@
<?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\CloudComposer;
class ListEnvironmentsResponse extends \Google\Collection
{
protected $collection_key = 'environments';
protected $environmentsType = Environment::class;
protected $environmentsDataType = 'array';
/**
* The page token used to query for the next page if one exists.
*
* @var string
*/
public $nextPageToken;
/**
* The list of environments returned by a ListEnvironmentsRequest.
*
* @param Environment[] $environments
*/
public function setEnvironments($environments)
{
$this->environments = $environments;
}
/**
* @return Environment[]
*/
public function getEnvironments()
{
return $this->environments;
}
/**
* The page token used to query for the next page if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListEnvironmentsResponse::class, 'Google_Service_CloudComposer_ListEnvironmentsResponse');
@@ -0,0 +1,67 @@
<?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\CloudComposer;
class ListImageVersionsResponse extends \Google\Collection
{
protected $collection_key = 'imageVersions';
protected $imageVersionsType = ImageVersion::class;
protected $imageVersionsDataType = 'array';
/**
* The page token used to query for the next page if one exists.
*
* @var string
*/
public $nextPageToken;
/**
* The list of supported ImageVersions in a location.
*
* @param ImageVersion[] $imageVersions
*/
public function setImageVersions($imageVersions)
{
$this->imageVersions = $imageVersions;
}
/**
* @return ImageVersion[]
*/
public function getImageVersions()
{
return $this->imageVersions;
}
/**
* The page token used to query for the next page if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListImageVersionsResponse::class, 'Google_Service_CloudComposer_ListImageVersionsResponse');
@@ -0,0 +1,95 @@
<?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\CloudComposer;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_CloudComposer_ListOperationsResponse');
@@ -0,0 +1,67 @@
<?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\CloudComposer;
class ListUserWorkloadsConfigMapsResponse extends \Google\Collection
{
protected $collection_key = 'userWorkloadsConfigMaps';
/**
* The page token used to query for the next page if one exists.
*
* @var string
*/
public $nextPageToken;
protected $userWorkloadsConfigMapsType = UserWorkloadsConfigMap::class;
protected $userWorkloadsConfigMapsDataType = 'array';
/**
* The page token used to query for the next page if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of ConfigMaps returned by a ListUserWorkloadsConfigMapsRequest.
*
* @param UserWorkloadsConfigMap[] $userWorkloadsConfigMaps
*/
public function setUserWorkloadsConfigMaps($userWorkloadsConfigMaps)
{
$this->userWorkloadsConfigMaps = $userWorkloadsConfigMaps;
}
/**
* @return UserWorkloadsConfigMap[]
*/
public function getUserWorkloadsConfigMaps()
{
return $this->userWorkloadsConfigMaps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUserWorkloadsConfigMapsResponse::class, 'Google_Service_CloudComposer_ListUserWorkloadsConfigMapsResponse');
@@ -0,0 +1,67 @@
<?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\CloudComposer;
class ListUserWorkloadsSecretsResponse extends \Google\Collection
{
protected $collection_key = 'userWorkloadsSecrets';
/**
* The page token used to query for the next page if one exists.
*
* @var string
*/
public $nextPageToken;
protected $userWorkloadsSecretsType = UserWorkloadsSecret::class;
protected $userWorkloadsSecretsDataType = 'array';
/**
* The page token used to query for the next page if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of Secrets returned by a ListUserWorkloadsSecretsRequest.
*
* @param UserWorkloadsSecret[] $userWorkloadsSecrets
*/
public function setUserWorkloadsSecrets($userWorkloadsSecrets)
{
$this->userWorkloadsSecrets = $userWorkloadsSecrets;
}
/**
* @return UserWorkloadsSecret[]
*/
public function getUserWorkloadsSecrets()
{
return $this->userWorkloadsSecrets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUserWorkloadsSecretsResponse::class, 'Google_Service_CloudComposer_ListUserWorkloadsSecretsResponse');
@@ -0,0 +1,67 @@
<?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\CloudComposer;
class ListWorkloadsResponse extends \Google\Collection
{
protected $collection_key = 'workloads';
/**
* The page token used to query for the next page if one exists.
*
* @var string
*/
public $nextPageToken;
protected $workloadsType = ComposerWorkload::class;
protected $workloadsDataType = 'array';
/**
* The page token used to query for the next page if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of environment workloads.
*
* @param ComposerWorkload[] $workloads
*/
public function setWorkloads($workloads)
{
$this->workloads = $workloads;
}
/**
* @return ComposerWorkload[]
*/
public function getWorkloads()
{
return $this->workloads;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkloadsResponse::class, 'Google_Service_CloudComposer_ListWorkloadsResponse');
@@ -0,0 +1,146 @@
<?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\CloudComposer;
class LoadSnapshotRequest extends \Google\Model
{
/**
* Whether or not to skip setting Airflow overrides when loading the
* environment's state.
*
* @var bool
*/
public $skipAirflowOverridesSetting;
/**
* Whether or not to skip setting environment variables when loading the
* environment's state.
*
* @var bool
*/
public $skipEnvironmentVariablesSetting;
/**
* Whether or not to skip copying Cloud Storage data when loading the
* environment's state.
*
* @var bool
*/
public $skipGcsDataCopying;
/**
* Whether or not to skip installing Pypi packages when loading the
* environment's state.
*
* @var bool
*/
public $skipPypiPackagesInstallation;
/**
* A Cloud Storage path to a snapshot to load, e.g.: "gs://my-
* bucket/snapshots/project_location_environment_timestamp".
*
* @var string
*/
public $snapshotPath;
/**
* Whether or not to skip setting Airflow overrides when loading the
* environment's state.
*
* @param bool $skipAirflowOverridesSetting
*/
public function setSkipAirflowOverridesSetting($skipAirflowOverridesSetting)
{
$this->skipAirflowOverridesSetting = $skipAirflowOverridesSetting;
}
/**
* @return bool
*/
public function getSkipAirflowOverridesSetting()
{
return $this->skipAirflowOverridesSetting;
}
/**
* Whether or not to skip setting environment variables when loading the
* environment's state.
*
* @param bool $skipEnvironmentVariablesSetting
*/
public function setSkipEnvironmentVariablesSetting($skipEnvironmentVariablesSetting)
{
$this->skipEnvironmentVariablesSetting = $skipEnvironmentVariablesSetting;
}
/**
* @return bool
*/
public function getSkipEnvironmentVariablesSetting()
{
return $this->skipEnvironmentVariablesSetting;
}
/**
* Whether or not to skip copying Cloud Storage data when loading the
* environment's state.
*
* @param bool $skipGcsDataCopying
*/
public function setSkipGcsDataCopying($skipGcsDataCopying)
{
$this->skipGcsDataCopying = $skipGcsDataCopying;
}
/**
* @return bool
*/
public function getSkipGcsDataCopying()
{
return $this->skipGcsDataCopying;
}
/**
* Whether or not to skip installing Pypi packages when loading the
* environment's state.
*
* @param bool $skipPypiPackagesInstallation
*/
public function setSkipPypiPackagesInstallation($skipPypiPackagesInstallation)
{
$this->skipPypiPackagesInstallation = $skipPypiPackagesInstallation;
}
/**
* @return bool
*/
public function getSkipPypiPackagesInstallation()
{
return $this->skipPypiPackagesInstallation;
}
/**
* A Cloud Storage path to a snapshot to load, e.g.: "gs://my-
* bucket/snapshots/project_location_environment_timestamp".
*
* @param string $snapshotPath
*/
public function setSnapshotPath($snapshotPath)
{
$this->snapshotPath = $snapshotPath;
}
/**
* @return string
*/
public function getSnapshotPath()
{
return $this->snapshotPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoadSnapshotRequest::class, 'Google_Service_CloudComposer_LoadSnapshotRequest');
@@ -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\CloudComposer;
class LoadSnapshotResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoadSnapshotResponse::class, 'Google_Service_CloudComposer_LoadSnapshotResponse');
@@ -0,0 +1,102 @@
<?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\CloudComposer;
class MaintenanceWindow extends \Google\Model
{
/**
* Required. Maintenance window end time. It is used only to calculate the
* duration of the maintenance window. The value for end-time must be in the
* future, relative to `start_time`.
*
* @var string
*/
public $endTime;
/**
* Required. Maintenance window recurrence. Format is a subset of
* [RFC-5545](https://tools.ietf.org/html/rfc5545) `RRULE`. The only allowed
* values for `FREQ` field are `FREQ=DAILY` and `FREQ=WEEKLY;BYDAY=...`
* Example values: `FREQ=WEEKLY;BYDAY=TU,WE`, `FREQ=DAILY`.
*
* @var string
*/
public $recurrence;
/**
* Required. Start time of the first recurrence of the maintenance window.
*
* @var string
*/
public $startTime;
/**
* Required. Maintenance window end time. It is used only to calculate the
* duration of the maintenance window. The value for end-time must be in the
* future, relative to `start_time`.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Required. Maintenance window recurrence. Format is a subset of
* [RFC-5545](https://tools.ietf.org/html/rfc5545) `RRULE`. The only allowed
* values for `FREQ` field are `FREQ=DAILY` and `FREQ=WEEKLY;BYDAY=...`
* Example values: `FREQ=WEEKLY;BYDAY=TU,WE`, `FREQ=DAILY`.
*
* @param string $recurrence
*/
public function setRecurrence($recurrence)
{
$this->recurrence = $recurrence;
}
/**
* @return string
*/
public function getRecurrence()
{
return $this->recurrence;
}
/**
* Required. Start time of the first recurrence of the maintenance window.
*
* @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(MaintenanceWindow::class, 'Google_Service_CloudComposer_MaintenanceWindow');
@@ -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\CloudComposer;
class MasterAuthorizedNetworksConfig extends \Google\Collection
{
protected $collection_key = 'cidrBlocks';
protected $cidrBlocksType = CidrBlock::class;
protected $cidrBlocksDataType = 'array';
/**
* Optional. Whether or not master authorized networks feature is enabled.
*
* @var bool
*/
public $enabled;
/**
* Up to 50 external networks that could access Kubernetes master through
* HTTPS.
*
* @param CidrBlock[] $cidrBlocks
*/
public function setCidrBlocks($cidrBlocks)
{
$this->cidrBlocks = $cidrBlocks;
}
/**
* @return CidrBlock[]
*/
public function getCidrBlocks()
{
return $this->cidrBlocks;
}
/**
* Optional. Whether or not master authorized networks feature is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MasterAuthorizedNetworksConfig::class, 'Google_Service_CloudComposer_MasterAuthorizedNetworksConfig');
@@ -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\CloudComposer;
class NetworkingConfig extends \Google\Model
{
/**
* No specific connection type was requested, so the environment uses the
* default value corresponding to the rest of its configuration.
*/
public const CONNECTION_TYPE_CONNECTION_TYPE_UNSPECIFIED = 'CONNECTION_TYPE_UNSPECIFIED';
/**
* Requests the use of VPC peerings for connecting the Customer and Tenant
* projects.
*/
public const CONNECTION_TYPE_VPC_PEERING = 'VPC_PEERING';
/**
* Requests the use of Private Service Connect for connecting the Customer and
* Tenant projects.
*/
public const CONNECTION_TYPE_PRIVATE_SERVICE_CONNECT = 'PRIVATE_SERVICE_CONNECT';
/**
* Optional. Indicates the user requested specific connection type between
* Tenant and Customer projects. You cannot set networking connection type in
* public IP environment.
*
* @var string
*/
public $connectionType;
/**
* Optional. Indicates the user requested specific connection type between
* Tenant and Customer projects. You cannot set networking connection type in
* public IP environment.
*
* Accepted values: CONNECTION_TYPE_UNSPECIFIED, VPC_PEERING,
* PRIVATE_SERVICE_CONNECT
*
* @param self::CONNECTION_TYPE_* $connectionType
*/
public function setConnectionType($connectionType)
{
$this->connectionType = $connectionType;
}
/**
* @return self::CONNECTION_TYPE_*
*/
public function getConnectionType()
{
return $this->connectionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkingConfig::class, 'Google_Service_CloudComposer_NetworkingConfig');
@@ -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\CloudComposer;
class NodeConfig extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* Optional. The IP range in CIDR notation to use internally by Cloud
* Composer. IP addresses are not reserved - and the same range can be used by
* multiple Cloud Composer environments. In case of overlap, IPs from this
* range will not be accessible in the user's VPC network. Cannot be updated.
* If not specified, the default value of '100.64.128.0/20' is used. This
* field is supported for Cloud Composer environments in versions
* composer-3-airflow-*.*.*-build.* and newer.
*
* @var string
*/
public $composerInternalIpv4CidrBlock;
/**
* Optional. Network Attachment that Cloud Composer environment is connected
* to, which provides connectivity with a user's VPC network. Takes precedence
* over network and subnetwork settings. If not provided, but network and
* subnetwork are defined during environment, it will be provisioned. If not
* provided and network and subnetwork are also empty, then connectivity to
* user's VPC network is disabled. Network attachment must be provided in
* format
* projects/{project}/regions/{region}/networkAttachments/{networkAttachment}.
* This field is supported for Cloud Composer environments in versions
* composer-3-airflow-*.*.*-build.* and newer.
*
* @var string
*/
public $composerNetworkAttachment;
/**
* Optional. The disk size in GB used for node VMs. Minimum size is 30GB. If
* unspecified, defaults to 100GB. Cannot be updated. This field is supported
* for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
*
* @var int
*/
public $diskSizeGb;
/**
* Optional. Deploys 'ip-masq-agent' daemon set in the GKE cluster and defines
* nonMasqueradeCIDRs equals to pod IP range so IP masquerading is used for
* all destination addresses, except between pods traffic. See:
* https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent
*
* @var bool
*/
public $enableIpMasqAgent;
protected $ipAllocationPolicyType = IPAllocationPolicy::class;
protected $ipAllocationPolicyDataType = '';
/**
* Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
* to deploy the VMs used to run the Apache Airflow software, specified as a
* [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/zones/{zoneId}". This `location` must belong to the
* enclosing environment's project and location. If both this field and
* `nodeConfig.machineType` are specified, `nodeConfig.machineType` must
* belong to this `location`; if both are unspecified, the service will pick a
* zone in the Compute Engine region corresponding to the Cloud Composer
* location, and propagate that choice to both fields. If only one field
* (`location` or `nodeConfig.machineType`) is specified, the location
* information from the specified field will be propagated to the unspecified
* field. This field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @var string
*/
public $location;
/**
* Optional. The Compute Engine [machine type](/compute/docs/machine-types)
* used for cluster instances, specified as a [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}". The
* `machineType` must belong to the enclosing environment's project and
* location. If both this field and `nodeConfig.location` are specified, this
* `machineType` must belong to the `nodeConfig.location`; if both are
* unspecified, the service will pick a zone in the Compute Engine region
* corresponding to the Cloud Composer location, and propagate that choice to
* both fields. If exactly one of this field and `nodeConfig.location` is
* specified, the location information from the specified field will be
* propagated to the unspecified field. The `machineTypeId` must not be a
* [shared-core machine type](/compute/docs/machine-types#sharedcore). If this
* field is unspecified, the `machineTypeId` defaults to "n1-standard-1". This
* field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @var string
*/
public $machineType;
/**
* Optional. The Compute Engine network to be used for machine communications,
* specified as a [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/global/networks/{networkId}". If unspecified, the
* "default" network ID in the environment's project is used. If a [Custom
* Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets) is provided,
* `nodeConfig.subnetwork` must also be provided. For [Shared
* VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
* `nodeConfig.subnetwork`.
*
* @var string
*/
public $network;
/**
* Optional. The set of Google API scopes to be made available on all node
* VMs. If `oauth_scopes` is empty, defaults to
* ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated. This
* field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @var string[]
*/
public $oauthScopes;
/**
* Optional. The Google Cloud Platform Service Account to be used by the node
* VMs. If a service account is not specified, the "default" Compute Engine
* service account is used. Cannot be updated.
*
* @var string
*/
public $serviceAccount;
/**
* Optional. The Compute Engine subnetwork to be used for machine
* communications, specified as a [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}" If a
* subnetwork is provided, `nodeConfig.network` must also be provided, and the
* subnetwork must belong to the enclosing environment's project and location.
*
* @var string
*/
public $subnetwork;
/**
* Optional. The list of instance tags applied to all node VMs. Tags are used
* to identify valid sources or targets for network firewalls. Each tag within
* the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
* Cannot be updated.
*
* @var string[]
*/
public $tags;
/**
* Optional. The IP range in CIDR notation to use internally by Cloud
* Composer. IP addresses are not reserved - and the same range can be used by
* multiple Cloud Composer environments. In case of overlap, IPs from this
* range will not be accessible in the user's VPC network. Cannot be updated.
* If not specified, the default value of '100.64.128.0/20' is used. This
* field is supported for Cloud Composer environments in versions
* composer-3-airflow-*.*.*-build.* and newer.
*
* @param string $composerInternalIpv4CidrBlock
*/
public function setComposerInternalIpv4CidrBlock($composerInternalIpv4CidrBlock)
{
$this->composerInternalIpv4CidrBlock = $composerInternalIpv4CidrBlock;
}
/**
* @return string
*/
public function getComposerInternalIpv4CidrBlock()
{
return $this->composerInternalIpv4CidrBlock;
}
/**
* Optional. Network Attachment that Cloud Composer environment is connected
* to, which provides connectivity with a user's VPC network. Takes precedence
* over network and subnetwork settings. If not provided, but network and
* subnetwork are defined during environment, it will be provisioned. If not
* provided and network and subnetwork are also empty, then connectivity to
* user's VPC network is disabled. Network attachment must be provided in
* format
* projects/{project}/regions/{region}/networkAttachments/{networkAttachment}.
* This field is supported for Cloud Composer environments in versions
* composer-3-airflow-*.*.*-build.* and newer.
*
* @param string $composerNetworkAttachment
*/
public function setComposerNetworkAttachment($composerNetworkAttachment)
{
$this->composerNetworkAttachment = $composerNetworkAttachment;
}
/**
* @return string
*/
public function getComposerNetworkAttachment()
{
return $this->composerNetworkAttachment;
}
/**
* Optional. The disk size in GB used for node VMs. Minimum size is 30GB. If
* unspecified, defaults to 100GB. Cannot be updated. This field is supported
* for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
*
* @param int $diskSizeGb
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return int
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* Optional. Deploys 'ip-masq-agent' daemon set in the GKE cluster and defines
* nonMasqueradeCIDRs equals to pod IP range so IP masquerading is used for
* all destination addresses, except between pods traffic. See:
* https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent
*
* @param bool $enableIpMasqAgent
*/
public function setEnableIpMasqAgent($enableIpMasqAgent)
{
$this->enableIpMasqAgent = $enableIpMasqAgent;
}
/**
* @return bool
*/
public function getEnableIpMasqAgent()
{
return $this->enableIpMasqAgent;
}
/**
* Optional. The configuration for controlling how IPs are allocated in the
* GKE cluster.
*
* @param IPAllocationPolicy $ipAllocationPolicy
*/
public function setIpAllocationPolicy(IPAllocationPolicy $ipAllocationPolicy)
{
$this->ipAllocationPolicy = $ipAllocationPolicy;
}
/**
* @return IPAllocationPolicy
*/
public function getIpAllocationPolicy()
{
return $this->ipAllocationPolicy;
}
/**
* Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
* to deploy the VMs used to run the Apache Airflow software, specified as a
* [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/zones/{zoneId}". This `location` must belong to the
* enclosing environment's project and location. If both this field and
* `nodeConfig.machineType` are specified, `nodeConfig.machineType` must
* belong to this `location`; if both are unspecified, the service will pick a
* zone in the Compute Engine region corresponding to the Cloud Composer
* location, and propagate that choice to both fields. If only one field
* (`location` or `nodeConfig.machineType`) is specified, the location
* information from the specified field will be propagated to the unspecified
* field. This field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. The Compute Engine [machine type](/compute/docs/machine-types)
* used for cluster instances, specified as a [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}". The
* `machineType` must belong to the enclosing environment's project and
* location. If both this field and `nodeConfig.location` are specified, this
* `machineType` must belong to the `nodeConfig.location`; if both are
* unspecified, the service will pick a zone in the Compute Engine region
* corresponding to the Cloud Composer location, and propagate that choice to
* both fields. If exactly one of this field and `nodeConfig.location` is
* specified, the location information from the specified field will be
* propagated to the unspecified field. The `machineTypeId` must not be a
* [shared-core machine type](/compute/docs/machine-types#sharedcore). If this
* field is unspecified, the `machineTypeId` defaults to "n1-standard-1". This
* field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Optional. The Compute Engine network to be used for machine communications,
* specified as a [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/global/networks/{networkId}". If unspecified, the
* "default" network ID in the environment's project is used. If a [Custom
* Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets) is provided,
* `nodeConfig.subnetwork` must also be provided. For [Shared
* VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
* `nodeConfig.subnetwork`.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Optional. The set of Google API scopes to be made available on all node
* VMs. If `oauth_scopes` is empty, defaults to
* ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated. This
* field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @param string[] $oauthScopes
*/
public function setOauthScopes($oauthScopes)
{
$this->oauthScopes = $oauthScopes;
}
/**
* @return string[]
*/
public function getOauthScopes()
{
return $this->oauthScopes;
}
/**
* Optional. The Google Cloud Platform Service Account to be used by the node
* VMs. If a service account is not specified, the "default" Compute Engine
* service account is used. Cannot be updated.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. The Compute Engine subnetwork to be used for machine
* communications, specified as a [relative resource
* name](/apis/design/resource_names#relative_resource_name). For example:
* "projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}" If a
* subnetwork is provided, `nodeConfig.network` must also be provided, and the
* subnetwork must belong to the enclosing environment's project and location.
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* Optional. The list of instance tags applied to all node VMs. Tags are used
* to identify valid sources or targets for network firewalls. Each tag within
* the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
* Cannot be updated.
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NodeConfig::class, 'Google_Service_CloudComposer_NodeConfig');
@@ -0,0 +1,158 @@
<?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\CloudComposer;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_CloudComposer_Operation');
@@ -0,0 +1,226 @@
<?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\CloudComposer;
class OperationMetadata extends \Google\Model
{
/**
* Unused.
*/
public const OPERATION_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* A resource creation operation.
*/
public const OPERATION_TYPE_CREATE = 'CREATE';
/**
* A resource deletion operation.
*/
public const OPERATION_TYPE_DELETE = 'DELETE';
/**
* A resource update operation.
*/
public const OPERATION_TYPE_UPDATE = 'UPDATE';
/**
* A resource check operation.
*/
public const OPERATION_TYPE_CHECK = 'CHECK';
/**
* Saves snapshot of the resource operation.
*/
public const OPERATION_TYPE_SAVE_SNAPSHOT = 'SAVE_SNAPSHOT';
/**
* Loads snapshot of the resource operation.
*/
public const OPERATION_TYPE_LOAD_SNAPSHOT = 'LOAD_SNAPSHOT';
/**
* Triggers failover of environment's Cloud SQL instance (only for highly
* resilient environments).
*/
public const OPERATION_TYPE_DATABASE_FAILOVER = 'DATABASE_FAILOVER';
/**
* Migrates resource to a new major version.
*/
public const OPERATION_TYPE_MIGRATE = 'MIGRATE';
/**
* Unused.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The operation has been created but is not yet started.
*/
public const STATE_PENDING = 'PENDING';
/**
* The operation is underway.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The operation completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
public const STATE_SUCCESSFUL = 'SUCCESSFUL';
/**
* The operation is no longer running but did not succeed.
*/
public const STATE_FAILED = 'FAILED';
/**
* Output only. The time the operation was submitted to the server.
*
* @var string
*/
public $createTime;
/**
* Output only. The time when the operation terminated, regardless of its
* success. This field is unset if the operation is still ongoing.
*
* @var string
*/
public $endTime;
/**
* Output only. The type of operation being performed.
*
* @var string
*/
public $operationType;
/**
* Output only. The resource being operated on, as a [relative resource name](
* /apis/design/resource_names#relative_resource_name).
*
* @var string
*/
public $resource;
/**
* Output only. The UUID of the resource being operated on.
*
* @var string
*/
public $resourceUuid;
/**
* Output only. The current operation state.
*
* @var string
*/
public $state;
/**
* Output only. The time the operation was submitted to the server.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time when the operation terminated, regardless of its
* success. This field is unset if the operation is still ongoing.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. The type of operation being performed.
*
* Accepted values: TYPE_UNSPECIFIED, CREATE, DELETE, UPDATE, CHECK,
* SAVE_SNAPSHOT, LOAD_SNAPSHOT, DATABASE_FAILOVER, MIGRATE
*
* @param self::OPERATION_TYPE_* $operationType
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return self::OPERATION_TYPE_*
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* Output only. The resource being operated on, as a [relative resource name](
* /apis/design/resource_names#relative_resource_name).
*
* @param string $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* Output only. The UUID of the resource being operated on.
*
* @param string $resourceUuid
*/
public function setResourceUuid($resourceUuid)
{
$this->resourceUuid = $resourceUuid;
}
/**
* @return string
*/
public function getResourceUuid()
{
return $this->resourceUuid;
}
/**
* Output only. The current operation state.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, RUNNING, SUCCEEDED,
* SUCCESSFUL, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_CloudComposer_OperationMetadata');
@@ -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\CloudComposer;
class PollAirflowCommandRequest extends \Google\Model
{
/**
* The unique ID of the command execution.
*
* @var string
*/
public $executionId;
/**
* Line number from which new logs should be fetched.
*
* @var int
*/
public $nextLineNumber;
/**
* The name of the pod where the command is executed.
*
* @var string
*/
public $pod;
/**
* The namespace of the pod where the command is executed.
*
* @var string
*/
public $podNamespace;
/**
* The unique ID of the command execution.
*
* @param string $executionId
*/
public function setExecutionId($executionId)
{
$this->executionId = $executionId;
}
/**
* @return string
*/
public function getExecutionId()
{
return $this->executionId;
}
/**
* Line number from which new logs should be fetched.
*
* @param int $nextLineNumber
*/
public function setNextLineNumber($nextLineNumber)
{
$this->nextLineNumber = $nextLineNumber;
}
/**
* @return int
*/
public function getNextLineNumber()
{
return $this->nextLineNumber;
}
/**
* The name of the pod where the command is executed.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* The namespace of the pod where the command is executed.
*
* @param string $podNamespace
*/
public function setPodNamespace($podNamespace)
{
$this->podNamespace = $podNamespace;
}
/**
* @return string
*/
public function getPodNamespace()
{
return $this->podNamespace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PollAirflowCommandRequest::class, 'Google_Service_CloudComposer_PollAirflowCommandRequest');
@@ -0,0 +1,86 @@
<?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\CloudComposer;
class PollAirflowCommandResponse extends \Google\Collection
{
protected $collection_key = 'output';
protected $exitInfoType = ExitInfo::class;
protected $exitInfoDataType = '';
protected $outputType = Line::class;
protected $outputDataType = 'array';
/**
* Whether the command execution has finished and there is no more output.
*
* @var bool
*/
public $outputEnd;
/**
* The result exit status of the command.
*
* @param ExitInfo $exitInfo
*/
public function setExitInfo(ExitInfo $exitInfo)
{
$this->exitInfo = $exitInfo;
}
/**
* @return ExitInfo
*/
public function getExitInfo()
{
return $this->exitInfo;
}
/**
* Output from the command execution. It may not contain the full output and
* the caller may need to poll for more lines.
*
* @param Line[] $output
*/
public function setOutput($output)
{
$this->output = $output;
}
/**
* @return Line[]
*/
public function getOutput()
{
return $this->output;
}
/**
* Whether the command execution has finished and there is no more output.
*
* @param bool $outputEnd
*/
public function setOutputEnd($outputEnd)
{
$this->outputEnd = $outputEnd;
}
/**
* @return bool
*/
public function getOutputEnd()
{
return $this->outputEnd;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PollAirflowCommandResponse::class, 'Google_Service_CloudComposer_PollAirflowCommandResponse');
@@ -0,0 +1,104 @@
<?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\CloudComposer;
class PrivateClusterConfig extends \Google\Model
{
/**
* Optional. If `true`, access to the public endpoint of the GKE cluster is
* denied.
*
* @var bool
*/
public $enablePrivateEndpoint;
/**
* Optional. The CIDR block from which IPv4 range for GKE master will be
* reserved. If left blank, the default value of '172.16.0.0/23' is used.
*
* @var string
*/
public $masterIpv4CidrBlock;
/**
* Output only. The IP range in CIDR notation to use for the hosted master
* network. This range is used for assigning internal IP addresses to the GKE
* cluster master or set of masters and to the internal load balancer virtual
* IP. This range must not overlap with any other ranges in use within the
* cluster's network.
*
* @var string
*/
public $masterIpv4ReservedRange;
/**
* Optional. If `true`, access to the public endpoint of the GKE cluster is
* denied.
*
* @param bool $enablePrivateEndpoint
*/
public function setEnablePrivateEndpoint($enablePrivateEndpoint)
{
$this->enablePrivateEndpoint = $enablePrivateEndpoint;
}
/**
* @return bool
*/
public function getEnablePrivateEndpoint()
{
return $this->enablePrivateEndpoint;
}
/**
* Optional. The CIDR block from which IPv4 range for GKE master will be
* reserved. If left blank, the default value of '172.16.0.0/23' is used.
*
* @param string $masterIpv4CidrBlock
*/
public function setMasterIpv4CidrBlock($masterIpv4CidrBlock)
{
$this->masterIpv4CidrBlock = $masterIpv4CidrBlock;
}
/**
* @return string
*/
public function getMasterIpv4CidrBlock()
{
return $this->masterIpv4CidrBlock;
}
/**
* Output only. The IP range in CIDR notation to use for the hosted master
* network. This range is used for assigning internal IP addresses to the GKE
* cluster master or set of masters and to the internal load balancer virtual
* IP. This range must not overlap with any other ranges in use within the
* cluster's network.
*
* @param string $masterIpv4ReservedRange
*/
public function setMasterIpv4ReservedRange($masterIpv4ReservedRange)
{
$this->masterIpv4ReservedRange = $masterIpv4ReservedRange;
}
/**
* @return string
*/
public function getMasterIpv4ReservedRange()
{
return $this->masterIpv4ReservedRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrivateClusterConfig::class, 'Google_Service_CloudComposer_PrivateClusterConfig');
@@ -0,0 +1,356 @@
<?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\CloudComposer;
class PrivateEnvironmentConfig extends \Google\Model
{
/**
* Default networking type.
*/
public const NETWORKING_TYPE_NETWORKING_TYPE_UNSPECIFIED = 'NETWORKING_TYPE_UNSPECIFIED';
/**
* Private IP Cloud Composer environment with no access to the internet.
*/
public const NETWORKING_TYPE_PRIVATE = 'PRIVATE';
/**
* Cloud Composer environment with access to the internet.
*/
public const NETWORKING_TYPE_PUBLIC = 'PUBLIC';
/**
* Optional. When specified, the environment will use Private Service Connect
* instead of VPC peerings to connect to Cloud SQL in the Tenant Project, and
* the PSC endpoint in the Customer Project will use an IP address from this
* subnetwork.
*
* @var string
*/
public $cloudComposerConnectionSubnetwork;
/**
* Optional. The CIDR block from which IP range for Cloud Composer Network in
* tenant project will be reserved. Needs to be disjoint from
* private_cluster_config.master_ipv4_cidr_block and
* cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer
* environments in versions composer-2.*.*-airflow-*.*.* and newer.
*
* @var string
*/
public $cloudComposerNetworkIpv4CidrBlock;
/**
* Output only. The IP range reserved for the tenant project's Cloud Composer
* network. This field is supported for Cloud Composer environments in
* versions composer-2.*.*-airflow-*.*.* and newer.
*
* @var string
*/
public $cloudComposerNetworkIpv4ReservedRange;
/**
* Optional. The CIDR block from which IP range in tenant project will be
* reserved for Cloud SQL. Needs to be disjoint from
* `web_server_ipv4_cidr_block`.
*
* @var string
*/
public $cloudSqlIpv4CidrBlock;
/**
* Optional. If `true`, builds performed during operations that install Python
* packages have only private connectivity to Google services (including
* Artifact Registry) and VPC network (if either `NodeConfig.network` and
* `NodeConfig.subnetwork` fields or `NodeConfig.composer_network_attachment`
* field are specified). If `false`, the builds also have access to the
* internet. This field is supported for Cloud Composer environments in
* versions composer-3-airflow-*.*.*-build.* and newer.
*
* @var bool
*/
public $enablePrivateBuildsOnly;
/**
* Optional. If `true`, a Private IP Cloud Composer environment is created. If
* this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set
* to true for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*. This field is going to be deprecated. Use
* `networking_type` instead.
*
* @var bool
*/
public $enablePrivateEnvironment;
/**
* Optional. When enabled, IPs from public (non-RFC1918) ranges can be used
* for `IPAllocationPolicy.cluster_ipv4_cidr_block` and
* `IPAllocationPolicy.service_ipv4_cidr_block`.
*
* @var bool
*/
public $enablePrivatelyUsedPublicIps;
protected $networkingConfigType = NetworkingConfig::class;
protected $networkingConfigDataType = '';
/**
* Optional. Networking type for the environment, either private or public.
*
* @var string
*/
public $networkingType;
protected $privateClusterConfigType = PrivateClusterConfig::class;
protected $privateClusterConfigDataType = '';
/**
* Optional. The CIDR block from which IP range for web server will be
* reserved. Needs to be disjoint from
* `private_cluster_config.master_ipv4_cidr_block` and
* `cloud_sql_ipv4_cidr_block`. This field is supported for Cloud Composer
* environments in versions composer-1.*.*-airflow-*.*.*.
*
* @var string
*/
public $webServerIpv4CidrBlock;
/**
* Output only. The IP range reserved for the tenant project's App Engine VMs.
* This field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @var string
*/
public $webServerIpv4ReservedRange;
/**
* Optional. When specified, the environment will use Private Service Connect
* instead of VPC peerings to connect to Cloud SQL in the Tenant Project, and
* the PSC endpoint in the Customer Project will use an IP address from this
* subnetwork.
*
* @param string $cloudComposerConnectionSubnetwork
*/
public function setCloudComposerConnectionSubnetwork($cloudComposerConnectionSubnetwork)
{
$this->cloudComposerConnectionSubnetwork = $cloudComposerConnectionSubnetwork;
}
/**
* @return string
*/
public function getCloudComposerConnectionSubnetwork()
{
return $this->cloudComposerConnectionSubnetwork;
}
/**
* Optional. The CIDR block from which IP range for Cloud Composer Network in
* tenant project will be reserved. Needs to be disjoint from
* private_cluster_config.master_ipv4_cidr_block and
* cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer
* environments in versions composer-2.*.*-airflow-*.*.* and newer.
*
* @param string $cloudComposerNetworkIpv4CidrBlock
*/
public function setCloudComposerNetworkIpv4CidrBlock($cloudComposerNetworkIpv4CidrBlock)
{
$this->cloudComposerNetworkIpv4CidrBlock = $cloudComposerNetworkIpv4CidrBlock;
}
/**
* @return string
*/
public function getCloudComposerNetworkIpv4CidrBlock()
{
return $this->cloudComposerNetworkIpv4CidrBlock;
}
/**
* Output only. The IP range reserved for the tenant project's Cloud Composer
* network. This field is supported for Cloud Composer environments in
* versions composer-2.*.*-airflow-*.*.* and newer.
*
* @param string $cloudComposerNetworkIpv4ReservedRange
*/
public function setCloudComposerNetworkIpv4ReservedRange($cloudComposerNetworkIpv4ReservedRange)
{
$this->cloudComposerNetworkIpv4ReservedRange = $cloudComposerNetworkIpv4ReservedRange;
}
/**
* @return string
*/
public function getCloudComposerNetworkIpv4ReservedRange()
{
return $this->cloudComposerNetworkIpv4ReservedRange;
}
/**
* Optional. The CIDR block from which IP range in tenant project will be
* reserved for Cloud SQL. Needs to be disjoint from
* `web_server_ipv4_cidr_block`.
*
* @param string $cloudSqlIpv4CidrBlock
*/
public function setCloudSqlIpv4CidrBlock($cloudSqlIpv4CidrBlock)
{
$this->cloudSqlIpv4CidrBlock = $cloudSqlIpv4CidrBlock;
}
/**
* @return string
*/
public function getCloudSqlIpv4CidrBlock()
{
return $this->cloudSqlIpv4CidrBlock;
}
/**
* Optional. If `true`, builds performed during operations that install Python
* packages have only private connectivity to Google services (including
* Artifact Registry) and VPC network (if either `NodeConfig.network` and
* `NodeConfig.subnetwork` fields or `NodeConfig.composer_network_attachment`
* field are specified). If `false`, the builds also have access to the
* internet. This field is supported for Cloud Composer environments in
* versions composer-3-airflow-*.*.*-build.* and newer.
*
* @param bool $enablePrivateBuildsOnly
*/
public function setEnablePrivateBuildsOnly($enablePrivateBuildsOnly)
{
$this->enablePrivateBuildsOnly = $enablePrivateBuildsOnly;
}
/**
* @return bool
*/
public function getEnablePrivateBuildsOnly()
{
return $this->enablePrivateBuildsOnly;
}
/**
* Optional. If `true`, a Private IP Cloud Composer environment is created. If
* this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set
* to true for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*. This field is going to be deprecated. Use
* `networking_type` instead.
*
* @param bool $enablePrivateEnvironment
*/
public function setEnablePrivateEnvironment($enablePrivateEnvironment)
{
$this->enablePrivateEnvironment = $enablePrivateEnvironment;
}
/**
* @return bool
*/
public function getEnablePrivateEnvironment()
{
return $this->enablePrivateEnvironment;
}
/**
* Optional. When enabled, IPs from public (non-RFC1918) ranges can be used
* for `IPAllocationPolicy.cluster_ipv4_cidr_block` and
* `IPAllocationPolicy.service_ipv4_cidr_block`.
*
* @param bool $enablePrivatelyUsedPublicIps
*/
public function setEnablePrivatelyUsedPublicIps($enablePrivatelyUsedPublicIps)
{
$this->enablePrivatelyUsedPublicIps = $enablePrivatelyUsedPublicIps;
}
/**
* @return bool
*/
public function getEnablePrivatelyUsedPublicIps()
{
return $this->enablePrivatelyUsedPublicIps;
}
/**
* Optional. Configuration for the network connections configuration in the
* environment.
*
* @param NetworkingConfig $networkingConfig
*/
public function setNetworkingConfig(NetworkingConfig $networkingConfig)
{
$this->networkingConfig = $networkingConfig;
}
/**
* @return NetworkingConfig
*/
public function getNetworkingConfig()
{
return $this->networkingConfig;
}
/**
* Optional. Networking type for the environment, either private or public.
*
* Accepted values: NETWORKING_TYPE_UNSPECIFIED, PRIVATE, PUBLIC
*
* @param self::NETWORKING_TYPE_* $networkingType
*/
public function setNetworkingType($networkingType)
{
$this->networkingType = $networkingType;
}
/**
* @return self::NETWORKING_TYPE_*
*/
public function getNetworkingType()
{
return $this->networkingType;
}
/**
* Optional. Configuration for the private GKE cluster for a Private IP Cloud
* Composer environment.
*
* @param PrivateClusterConfig $privateClusterConfig
*/
public function setPrivateClusterConfig(PrivateClusterConfig $privateClusterConfig)
{
$this->privateClusterConfig = $privateClusterConfig;
}
/**
* @return PrivateClusterConfig
*/
public function getPrivateClusterConfig()
{
return $this->privateClusterConfig;
}
/**
* Optional. The CIDR block from which IP range for web server will be
* reserved. Needs to be disjoint from
* `private_cluster_config.master_ipv4_cidr_block` and
* `cloud_sql_ipv4_cidr_block`. This field is supported for Cloud Composer
* environments in versions composer-1.*.*-airflow-*.*.*.
*
* @param string $webServerIpv4CidrBlock
*/
public function setWebServerIpv4CidrBlock($webServerIpv4CidrBlock)
{
$this->webServerIpv4CidrBlock = $webServerIpv4CidrBlock;
}
/**
* @return string
*/
public function getWebServerIpv4CidrBlock()
{
return $this->webServerIpv4CidrBlock;
}
/**
* Output only. The IP range reserved for the tenant project's App Engine VMs.
* This field is supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
*
* @param string $webServerIpv4ReservedRange
*/
public function setWebServerIpv4ReservedRange($webServerIpv4ReservedRange)
{
$this->webServerIpv4ReservedRange = $webServerIpv4ReservedRange;
}
/**
* @return string
*/
public function getWebServerIpv4ReservedRange()
{
return $this->webServerIpv4ReservedRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrivateEnvironmentConfig::class, 'Google_Service_CloudComposer_PrivateEnvironmentConfig');
@@ -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\CloudComposer;
class RecoveryConfig extends \Google\Model
{
protected $scheduledSnapshotsConfigType = ScheduledSnapshotsConfig::class;
protected $scheduledSnapshotsConfigDataType = '';
/**
* Optional. The configuration for scheduled snapshot creation mechanism.
*
* @param ScheduledSnapshotsConfig $scheduledSnapshotsConfig
*/
public function setScheduledSnapshotsConfig(ScheduledSnapshotsConfig $scheduledSnapshotsConfig)
{
$this->scheduledSnapshotsConfig = $scheduledSnapshotsConfig;
}
/**
* @return ScheduledSnapshotsConfig
*/
public function getScheduledSnapshotsConfig()
{
return $this->scheduledSnapshotsConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecoveryConfig::class, 'Google_Service_CloudComposer_RecoveryConfig');
@@ -0,0 +1,33 @@
<?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\CloudComposer\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $projects = $composerService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudComposer_Resource_Projects');
@@ -0,0 +1,33 @@
<?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\CloudComposer\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $locations = $composerService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudComposer_Resource_ProjectsLocations');
@@ -0,0 +1,362 @@
<?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\CloudComposer\Resource;
use Google\Service\CloudComposer\CheckUpgradeRequest;
use Google\Service\CloudComposer\DatabaseFailoverRequest;
use Google\Service\CloudComposer\Environment;
use Google\Service\CloudComposer\ExecuteAirflowCommandRequest;
use Google\Service\CloudComposer\ExecuteAirflowCommandResponse;
use Google\Service\CloudComposer\FetchDatabasePropertiesResponse;
use Google\Service\CloudComposer\ListEnvironmentsResponse;
use Google\Service\CloudComposer\LoadSnapshotRequest;
use Google\Service\CloudComposer\Operation;
use Google\Service\CloudComposer\PollAirflowCommandRequest;
use Google\Service\CloudComposer\PollAirflowCommandResponse;
use Google\Service\CloudComposer\RestartWebServerRequest;
use Google\Service\CloudComposer\SaveSnapshotRequest;
use Google\Service\CloudComposer\StopAirflowCommandRequest;
use Google\Service\CloudComposer\StopAirflowCommandResponse;
/**
* The "environments" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $environments = $composerService->projects_locations_environments;
* </code>
*/
class ProjectsLocationsEnvironments extends \Google\Service\Resource
{
/**
* Check if an upgrade operation on the environment will succeed. In case of
* problems detailed info can be found in the returned Operation.
* (environments.checkUpgrade)
*
* @param string $environment Required. The resource name of the environment to
* check upgrade for, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param CheckUpgradeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function checkUpgrade($environment, CheckUpgradeRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('checkUpgrade', [$params], Operation::class);
}
/**
* Create a new environment. (environments.create)
*
* @param string $parent The parent must be of the form
* "projects/{projectId}/locations/{locationId}".
* @param Environment $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Environment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Triggers database failover (only for highly resilient environments).
* (environments.databaseFailover)
*
* @param string $environment Target environment:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param DatabaseFailoverRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function databaseFailover($environment, DatabaseFailoverRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('databaseFailover', [$params], Operation::class);
}
/**
* Delete an environment. (environments.delete)
*
* @param string $name The environment to delete, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Executes Airflow CLI command. (environments.executeAirflowCommand)
*
* @param string $environment The resource name of the environment in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}".
* @param ExecuteAirflowCommandRequest $postBody
* @param array $optParams Optional parameters.
* @return ExecuteAirflowCommandResponse
* @throws \Google\Service\Exception
*/
public function executeAirflowCommand($environment, ExecuteAirflowCommandRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('executeAirflowCommand', [$params], ExecuteAirflowCommandResponse::class);
}
/**
* Fetches database properties. (environments.fetchDatabaseProperties)
*
* @param string $environment Required. The resource name of the environment, in
* the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param array $optParams Optional parameters.
* @return FetchDatabasePropertiesResponse
* @throws \Google\Service\Exception
*/
public function fetchDatabaseProperties($environment, $optParams = [])
{
$params = ['environment' => $environment];
$params = array_merge($params, $optParams);
return $this->call('fetchDatabaseProperties', [$params], FetchDatabasePropertiesResponse::class);
}
/**
* Get an existing environment. (environments.get)
*
* @param string $name The resource name of the environment to get, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param array $optParams Optional parameters.
* @return Environment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Environment::class);
}
/**
* List environments. (environments.listProjectsLocationsEnvironments)
*
* @param string $parent List environments in the given project and location, in
* the form: "projects/{projectId}/locations/{locationId}"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of environments to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListEnvironmentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEnvironments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEnvironmentsResponse::class);
}
/**
* Loads a snapshot of a Cloud Composer environment. As a result of this
* operation, a snapshot of environment's specified in LoadSnapshotRequest is
* loaded into the environment. (environments.loadSnapshot)
*
* @param string $environment The resource name of the target environment in the
* form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param LoadSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function loadSnapshot($environment, LoadSnapshotRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('loadSnapshot', [$params], Operation::class);
}
/**
* Update an environment. (environments.patch)
*
* @param string $name The relative resource name of the environment to update,
* in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param Environment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A comma-separated list of paths,
* relative to `Environment`, of fields to update. For example, to set the
* version of scikit-learn to install in the environment to 0.19.0 and to remove
* an existing installation of numpy, the `updateMask` parameter would include
* the following two `paths` values: "config.softwareConfig.pypiPackages.scikit-
* learn" and "config.softwareConfig.pypiPackages.numpy". The included patch
* environment would specify the scikit-learn version as follows: { "config":{
* "softwareConfig":{ "pypiPackages":{ "scikit-learn":"==0.19.0" } } } } Note
* that in the above example, any existing PyPI packages other than scikit-learn
* and numpy will be unaffected. Only one update type may be included in a
* single request's `updateMask`. For example, one cannot update both the PyPI
* packages and labels in the same request. However, it is possible to update
* multiple members of a map field simultaneously in the same request. For
* example, to set the labels "label1" and "label2" while clearing "label3"
* (assuming it already exists), one can provide the paths "labels.label1",
* "labels.label2", and "labels.label3" and populate the patch environment as
* follows: { "labels":{ "label1":"new-label1-value" "label2":"new-label2-value"
* } } Note that in the above example, any existing labels that are not included
* in the `updateMask` will be unaffected. It is also possible to replace an
* entire map field by providing the map field's path in the `updateMask`. The
* new value of the field will be that which is provided in the patch
* environment. For example, to delete all pre-existing user-specified PyPI
* packages and install botocore at version 1.7.14, the `updateMask` would
* contain the path "config.softwareConfig.pypiPackages", and the patch
* environment would be the following: { "config":{ "softwareConfig":{
* "pypiPackages":{ "botocore":"==1.7.14" } } } } **Note:** Only the following
* fields can be updated: * `config.softwareConfig.pypiPackages` * Replace all
* custom custom PyPI packages. If a replacement package map is not included in
* `environment`, all custom PyPI packages are cleared. It is an error to
* provide both this mask and a mask specifying an individual package. *
* `config.softwareConfig.pypiPackages.`packagename * Update the custom PyPI
* package *packagename*, preserving other packages. To delete the package,
* include it in `updateMask`, and omit the mapping for it in
* `environment.config.softwareConfig.pypiPackages`. It is an error to provide
* both a mask of this form and the `config.softwareConfig.pypiPackages` mask. *
* `labels` * Replace all environment labels. If a replacement labels map is not
* included in `environment`, all labels are cleared. It is an error to provide
* both this mask and a mask specifying one or more individual labels. *
* `labels.`labelName * Set the label named *labelName*, while preserving other
* labels. To delete the label, include it in `updateMask` and omit its mapping
* in `environment.labels`. It is an error to provide both a mask of this form
* and the `labels` mask. * `config.nodeCount` * Horizontally scale the number
* of nodes in the environment. An integer greater than or equal to 3 must be
* provided in the `config.nodeCount` field. Supported for Cloud Composer
* environments in versions composer-1.*.*-airflow-*.*.*. *
* `config.webServerNetworkAccessControl` * Replace the environment's current
* `WebServerNetworkAccessControl`. *
* `config.softwareConfig.airflowConfigOverrides` * Replace all Apache Airflow
* config overrides. If a replacement config overrides map is not included in
* `environment`, all config overrides are cleared. It is an error to provide
* both this mask and a mask specifying one or more individual config overrides.
* * `config.softwareConfig.airflowConfigOverrides.`section-name * Override the
* Apache Airflow config property *name* in the section named *section*,
* preserving other properties. To delete the property override, include it in
* `updateMask` and omit its mapping in
* `environment.config.softwareConfig.airflowConfigOverrides`. It is an error to
* provide both a mask of this form and the
* `config.softwareConfig.airflowConfigOverrides` mask. *
* `config.softwareConfig.envVariables` * Replace all environment variables. If
* a replacement environment variable map is not included in `environment`, all
* custom environment variables are cleared. *
* `config.softwareConfig.schedulerCount` * Horizontally scale the number of
* schedulers in Airflow. A positive integer not greater than the number of
* nodes must be provided in the `config.softwareConfig.schedulerCount` field.
* Supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-2.*.*. * `config.databaseConfig.machineType` * Cloud
* SQL machine type used by Airflow database. It has to be one of:
* db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16.
* Supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*. * `config.webServerConfig.machineType` *
* Machine type on which Airflow web server is running. It has to be one of:
* composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8.
* Supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Environment $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Polls Airflow CLI command execution and fetches logs.
* (environments.pollAirflowCommand)
*
* @param string $environment The resource name of the environment in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param PollAirflowCommandRequest $postBody
* @param array $optParams Optional parameters.
* @return PollAirflowCommandResponse
* @throws \Google\Service\Exception
*/
public function pollAirflowCommand($environment, PollAirflowCommandRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('pollAirflowCommand', [$params], PollAirflowCommandResponse::class);
}
/**
* Restart Airflow web server. (environments.restartWebServer)
*
* @param string $name Required. The resource name of the environment to restart
* the web server for, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param RestartWebServerRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restartWebServer($name, RestartWebServerRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restartWebServer', [$params], Operation::class);
}
/**
* Creates a snapshots of a Cloud Composer environment. As a result of this
* operation, snapshot of environment's state is stored in a location specified
* in the SaveSnapshotRequest. (environments.saveSnapshot)
*
* @param string $environment The resource name of the source environment in the
* form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param SaveSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function saveSnapshot($environment, SaveSnapshotRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('saveSnapshot', [$params], Operation::class);
}
/**
* Stops Airflow CLI command execution. (environments.stopAirflowCommand)
*
* @param string $environment The resource name of the environment in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}".
* @param StopAirflowCommandRequest $postBody
* @param array $optParams Optional parameters.
* @return StopAirflowCommandResponse
* @throws \Google\Service\Exception
*/
public function stopAirflowCommand($environment, StopAirflowCommandRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stopAirflowCommand', [$params], StopAirflowCommandResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEnvironments::class, 'Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironments');
@@ -0,0 +1,133 @@
<?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\CloudComposer\Resource;
use Google\Service\CloudComposer\ComposerEmpty;
use Google\Service\CloudComposer\ListUserWorkloadsConfigMapsResponse;
use Google\Service\CloudComposer\UserWorkloadsConfigMap;
/**
* The "userWorkloadsConfigMaps" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $userWorkloadsConfigMaps = $composerService->projects_locations_environments_userWorkloadsConfigMaps;
* </code>
*/
class ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps extends \Google\Service\Resource
{
/**
* Creates a user workloads ConfigMap. This method is supported for Cloud
* Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsConfigMaps.create)
*
* @param string $parent Required. The environment name to create a ConfigMap
* for, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param UserWorkloadsConfigMap $postBody
* @param array $optParams Optional parameters.
* @return UserWorkloadsConfigMap
* @throws \Google\Service\Exception
*/
public function create($parent, UserWorkloadsConfigMap $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], UserWorkloadsConfigMap::class);
}
/**
* Deletes a user workloads ConfigMap. This method is supported for Cloud
* Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsConfigMaps.delete)
*
* @param string $name Required. The ConfigMap to delete, in the form: "projects
* /{projectId}/locations/{locationId}/environments/{environmentId}/userWorkload
* sConfigMaps/{userWorkloadsConfigMapId}"
* @param array $optParams Optional parameters.
* @return ComposerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ComposerEmpty::class);
}
/**
* Gets an existing user workloads ConfigMap. This method is supported for Cloud
* Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsConfigMaps.get)
*
* @param string $name Required. The resource name of the ConfigMap to get, in
* the form: "projects/{projectId}/locations/{locationId}/environments/{environm
* entId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
* @param array $optParams Optional parameters.
* @return UserWorkloadsConfigMap
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UserWorkloadsConfigMap::class);
}
/**
* Lists user workloads ConfigMaps. This method is supported for Cloud Composer
* environments in versions composer-3-airflow-*.*.*-build.* and newer. (userWor
* kloadsConfigMaps.listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps)
*
* @param string $parent Required. List ConfigMaps in the given environment, in
* the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of ConfigMaps to return.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous List request, if any.
* @return ListUserWorkloadsConfigMapsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUserWorkloadsConfigMapsResponse::class);
}
/**
* Updates a user workloads ConfigMap. This method is supported for Cloud
* Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsConfigMaps.update)
*
* @param string $name Identifier. The resource name of the ConfigMap, in the
* form: "projects/{projectId}/locations/{locationId}/environments/{environmentI
* d}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
* @param UserWorkloadsConfigMap $postBody
* @param array $optParams Optional parameters.
* @return UserWorkloadsConfigMap
* @throws \Google\Service\Exception
*/
public function update($name, UserWorkloadsConfigMap $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], UserWorkloadsConfigMap::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps::class, 'Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps');
@@ -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\CloudComposer\Resource;
use Google\Service\CloudComposer\ComposerEmpty;
use Google\Service\CloudComposer\ListUserWorkloadsSecretsResponse;
use Google\Service\CloudComposer\UserWorkloadsSecret;
/**
* The "userWorkloadsSecrets" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $userWorkloadsSecrets = $composerService->projects_locations_environments_userWorkloadsSecrets;
* </code>
*/
class ProjectsLocationsEnvironmentsUserWorkloadsSecrets extends \Google\Service\Resource
{
/**
* Creates a user workloads Secret. This method is supported for Cloud Composer
* environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsSecrets.create)
*
* @param string $parent Required. The environment name to create a Secret for,
* in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param UserWorkloadsSecret $postBody
* @param array $optParams Optional parameters.
* @return UserWorkloadsSecret
* @throws \Google\Service\Exception
*/
public function create($parent, UserWorkloadsSecret $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], UserWorkloadsSecret::class);
}
/**
* Deletes a user workloads Secret. This method is supported for Cloud Composer
* environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsSecrets.delete)
*
* @param string $name Required. The Secret to delete, in the form: "projects/{p
* rojectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSe
* crets/{userWorkloadsSecretId}"
* @param array $optParams Optional parameters.
* @return ComposerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ComposerEmpty::class);
}
/**
* Gets an existing user workloads Secret. Values of the "data" field in the
* response are cleared. This method is supported for Cloud Composer
* environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsSecrets.get)
*
* @param string $name Required. The resource name of the Secret to get, in the
* form: "projects/{projectId}/locations/{locationId}/environments/{environmentI
* d}/userWorkloadsSecrets/{userWorkloadsSecretId}"
* @param array $optParams Optional parameters.
* @return UserWorkloadsSecret
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UserWorkloadsSecret::class);
}
/**
* Lists user workloads Secrets. This method is supported for Cloud Composer
* environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsSecrets.listProjectsLocationsEnvironmentsUserWorkloadsSecrets)
*
* @param string $parent Required. List Secrets in the given environment, in the
* form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of Secrets to return.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous List request, if any.
* @return ListUserWorkloadsSecretsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEnvironmentsUserWorkloadsSecrets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUserWorkloadsSecretsResponse::class);
}
/**
* Updates a user workloads Secret. This method is supported for Cloud Composer
* environments in versions composer-3-airflow-*.*.*-build.* and newer.
* (userWorkloadsSecrets.update)
*
* @param string $name Identifier. The resource name of the Secret, in the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}/use
* rWorkloadsSecrets/{userWorkloadsSecretId}"
* @param UserWorkloadsSecret $postBody
* @param array $optParams Optional parameters.
* @return UserWorkloadsSecret
* @throws \Google\Service\Exception
*/
public function update($name, UserWorkloadsSecret $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], UserWorkloadsSecret::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEnvironmentsUserWorkloadsSecrets::class, 'Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironmentsUserWorkloadsSecrets');
@@ -0,0 +1,64 @@
<?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\CloudComposer\Resource;
use Google\Service\CloudComposer\ListWorkloadsResponse;
/**
* The "workloads" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $workloads = $composerService->projects_locations_environments_workloads;
* </code>
*/
class ProjectsLocationsEnvironmentsWorkloads extends \Google\Service\Resource
{
/**
* Lists workloads in a Cloud Composer environment. Workload is a unit that runs
* a single Composer component. This method is supported for Cloud Composer
* environments in versions composer-2.*.*-airflow-*.*.* and newer.
* (workloads.listProjectsLocationsEnvironmentsWorkloads)
*
* @param string $parent Required. The environment name to get workloads for, in
* the form:
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The list filter. Currently only supports
* equality on the type field. The value of a field specified in the filter
* expression must be one ComposerWorkloadType enum option. It's possible to get
* multiple types using "OR" operator, e.g.: "type=SCHEDULER OR
* type=CELERY_WORKER". If not specified, all items are returned.
* @opt_param int pageSize Optional. The maximum number of environments to
* return.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous List request, if any.
* @return ListWorkloadsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEnvironmentsWorkloads($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkloadsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEnvironmentsWorkloads::class, 'Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironmentsWorkloads');
@@ -0,0 +1,57 @@
<?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\CloudComposer\Resource;
use Google\Service\CloudComposer\ListImageVersionsResponse;
/**
* The "imageVersions" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $imageVersions = $composerService->projects_locations_imageVersions;
* </code>
*/
class ProjectsLocationsImageVersions extends \Google\Service\Resource
{
/**
* List ImageVersions for provided location.
* (imageVersions.listProjectsLocationsImageVersions)
*
* @param string $parent List ImageVersions in the given project and location,
* in the form: "projects/{projectId}/locations/{locationId}"
* @param array $optParams Optional parameters.
*
* @opt_param bool includePastReleases Whether or not image versions from old
* releases should be included.
* @opt_param int pageSize The maximum number of image_versions to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListImageVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsImageVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListImageVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsImageVersions::class, 'Google_Service_CloudComposer_Resource_ProjectsLocationsImageVersions');
@@ -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\CloudComposer\Resource;
use Google\Service\CloudComposer\ComposerEmpty;
use Google\Service\CloudComposer\ListOperationsResponse;
use Google\Service\CloudComposer\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $composerService = new Google\Service\CloudComposer(...);
* $operations = $composerService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return ComposerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ComposerEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_CloudComposer_Resource_ProjectsLocationsOperations');
@@ -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\CloudComposer;
class RestartWebServerRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestartWebServerRequest::class, 'Google_Service_CloudComposer_RestartWebServerRequest');
@@ -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\CloudComposer;
class SaveSnapshotRequest extends \Google\Model
{
/**
* Location in a Cloud Storage where the snapshot is going to be stored, e.g.:
* "gs://my-bucket/snapshots".
*
* @var string
*/
public $snapshotLocation;
/**
* Location in a Cloud Storage where the snapshot is going to be stored, e.g.:
* "gs://my-bucket/snapshots".
*
* @param string $snapshotLocation
*/
public function setSnapshotLocation($snapshotLocation)
{
$this->snapshotLocation = $snapshotLocation;
}
/**
* @return string
*/
public function getSnapshotLocation()
{
return $this->snapshotLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SaveSnapshotRequest::class, 'Google_Service_CloudComposer_SaveSnapshotRequest');
@@ -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\CloudComposer;
class SaveSnapshotResponse extends \Google\Model
{
/**
* The fully-resolved Cloud Storage path of the created snapshot, e.g.:
* "gs://my-bucket/snapshots/project_location_environment_timestamp". This
* field is populated only if the snapshot creation was successful.
*
* @var string
*/
public $snapshotPath;
/**
* The fully-resolved Cloud Storage path of the created snapshot, e.g.:
* "gs://my-bucket/snapshots/project_location_environment_timestamp". This
* field is populated only if the snapshot creation was successful.
*
* @param string $snapshotPath
*/
public function setSnapshotPath($snapshotPath)
{
$this->snapshotPath = $snapshotPath;
}
/**
* @return string
*/
public function getSnapshotPath()
{
return $this->snapshotPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SaveSnapshotResponse::class, 'Google_Service_CloudComposer_SaveSnapshotResponse');
@@ -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\CloudComposer;
class ScheduledSnapshotsConfig extends \Google\Model
{
/**
* Optional. Whether scheduled snapshots creation is enabled.
*
* @var bool
*/
public $enabled;
/**
* Optional. The cron expression representing the time when snapshots creation
* mechanism runs. This field is subject to additional validation around
* frequency of execution.
*
* @var string
*/
public $snapshotCreationSchedule;
/**
* Optional. The Cloud Storage location for storing automatically created
* snapshots.
*
* @var string
*/
public $snapshotLocation;
/**
* Optional. Time zone that sets the context to interpret
* snapshot_creation_schedule.
*
* @var string
*/
public $timeZone;
/**
* Optional. Whether scheduled snapshots creation is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Optional. The cron expression representing the time when snapshots creation
* mechanism runs. This field is subject to additional validation around
* frequency of execution.
*
* @param string $snapshotCreationSchedule
*/
public function setSnapshotCreationSchedule($snapshotCreationSchedule)
{
$this->snapshotCreationSchedule = $snapshotCreationSchedule;
}
/**
* @return string
*/
public function getSnapshotCreationSchedule()
{
return $this->snapshotCreationSchedule;
}
/**
* Optional. The Cloud Storage location for storing automatically created
* snapshots.
*
* @param string $snapshotLocation
*/
public function setSnapshotLocation($snapshotLocation)
{
$this->snapshotLocation = $snapshotLocation;
}
/**
* @return string
*/
public function getSnapshotLocation()
{
return $this->snapshotLocation;
}
/**
* Optional. Time zone that sets the context to interpret
* snapshot_creation_schedule.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScheduledSnapshotsConfig::class, 'Google_Service_CloudComposer_ScheduledSnapshotsConfig');
@@ -0,0 +1,118 @@
<?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\CloudComposer;
class SchedulerResource extends \Google\Model
{
/**
* Optional. The number of schedulers.
*
* @var int
*/
public $count;
/**
* Optional. CPU request and limit for a single Airflow scheduler replica.
*
* @var float
*/
public $cpu;
/**
* Optional. Memory (GB) request and limit for a single Airflow scheduler
* replica.
*
* @var float
*/
public $memoryGb;
/**
* Optional. Storage (GB) request and limit for a single Airflow scheduler
* replica.
*
* @var float
*/
public $storageGb;
/**
* Optional. The number of schedulers.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Optional. CPU request and limit for a single Airflow scheduler replica.
*
* @param float $cpu
*/
public function setCpu($cpu)
{
$this->cpu = $cpu;
}
/**
* @return float
*/
public function getCpu()
{
return $this->cpu;
}
/**
* Optional. Memory (GB) request and limit for a single Airflow scheduler
* replica.
*
* @param float $memoryGb
*/
public function setMemoryGb($memoryGb)
{
$this->memoryGb = $memoryGb;
}
/**
* @return float
*/
public function getMemoryGb()
{
return $this->memoryGb;
}
/**
* Optional. Storage (GB) request and limit for a single Airflow scheduler
* replica.
*
* @param float $storageGb
*/
public function setStorageGb($storageGb)
{
$this->storageGb = $storageGb;
}
/**
* @return float
*/
public function getStorageGb()
{
return $this->storageGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SchedulerResource::class, 'Google_Service_CloudComposer_SchedulerResource');
@@ -0,0 +1,315 @@
<?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\CloudComposer;
class SoftwareConfig extends \Google\Model
{
/**
* Default mode.
*/
public const WEB_SERVER_PLUGINS_MODE_WEB_SERVER_PLUGINS_MODE_UNSPECIFIED = 'WEB_SERVER_PLUGINS_MODE_UNSPECIFIED';
/**
* Web server plugins are not supported.
*/
public const WEB_SERVER_PLUGINS_MODE_PLUGINS_DISABLED = 'PLUGINS_DISABLED';
/**
* Web server plugins are supported.
*/
public const WEB_SERVER_PLUGINS_MODE_PLUGINS_ENABLED = 'PLUGINS_ENABLED';
/**
* Optional. Apache Airflow configuration properties to override. Property
* keys contain the section and property names, separated by a hyphen, for
* example "core-dags_are_paused_at_creation". Section names must not contain
* hyphens ("-"), opening square brackets ("["), or closing square brackets
* ("]"). The property name must not be empty and must not contain an equals
* sign ("=") or semicolon (";"). Section and property names must not contain
* a period ("."). Apache Airflow configuration property names must be written
* in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values
* can contain any character, and can be written in any lower/upper case
* format. Certain Apache Airflow configuration property values are
* [blocked](/composer/docs/concepts/airflow-configurations), and cannot be
* overridden.
*
* @var string[]
*/
public $airflowConfigOverrides;
protected $cloudDataLineageIntegrationType = CloudDataLineageIntegration::class;
protected $cloudDataLineageIntegrationDataType = '';
/**
* Optional. Additional environment variables to provide to the Apache Airflow
* scheduler, worker, and webserver processes. Environment variable names must
* match the regular expression `a-zA-Z_*`. They cannot specify Apache Airflow
* software configuration overrides (they cannot match the regular expression
* `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
* following reserved names: * `AIRFLOW_HOME` * `C_FORCE_ROOT` *
* `CONTAINER_NAME` * `DAGS_FOLDER` * `GCP_PROJECT` * `GCS_BUCKET` *
* `GKE_CLUSTER_NAME` * `SQL_DATABASE` * `SQL_INSTANCE` * `SQL_PASSWORD` *
* `SQL_PROJECT` * `SQL_REGION` * `SQL_USER`
*
* @var string[]
*/
public $envVariables;
/**
* Optional. The version of the software running in the environment. This
* encapsulates both the version of Cloud Composer functionality and the
* version of Apache Airflow. It must match the regular expression `composer-
* ([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-
* 9]+(\.[0-9]+)?)?)`. When used as input, the server also checks if the
* provided version is supported and denies the request for an unsupported
* version. The Cloud Composer portion of the image version is a full
* [semantic version](https://semver.org), or an alias in the form of major
* version number or `latest`. When an alias is provided, the server replaces
* it with the current Cloud Composer version that satisfies the alias. The
* Apache Airflow portion of the image version is a full semantic version that
* points to one of the supported Apache Airflow versions, or an alias in the
* form of only major or major.minor versions specified. When an alias is
* provided, the server replaces it with the latest Apache Airflow version
* that satisfies the alias and is supported in the given Cloud Composer
* version. In all cases, the resolved image version is stored in the same
* field. See also [version list](/composer/docs/concepts/versioning/composer-
* versions) and [versioning
* overview](/composer/docs/concepts/versioning/composer-versioning-overview).
*
* @var string
*/
public $imageVersion;
/**
* Optional. Custom Python Package Index (PyPI) packages to be installed in
* the environment. Keys refer to the lowercase package name such as "numpy"
* and values are the lowercase extras and version specifier such as
* "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a
* package without pinning it to a version specifier, use the empty string as
* the value.
*
* @var string[]
*/
public $pypiPackages;
/**
* Optional. The major version of Python used to run the Apache Airflow
* scheduler, worker, and webserver processes. Can be set to '2' or '3'. If
* not specified, the default is '3'. Cannot be updated. This field is only
* supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*. Environments in newer versions always use
* Python major version 3.
*
* @var string
*/
public $pythonVersion;
/**
* Optional. The number of schedulers for Airflow. This field is supported for
* Cloud Composer environments in versions composer-1.*.*-airflow-2.*.*.
*
* @var int
*/
public $schedulerCount;
/**
* Optional. Whether or not the web server uses custom plugins. If
* unspecified, the field defaults to `PLUGINS_ENABLED`. This field is
* supported for Cloud Composer environments in versions
* composer-3-airflow-*.*.*-build.* and newer.
*
* @var string
*/
public $webServerPluginsMode;
/**
* Optional. Apache Airflow configuration properties to override. Property
* keys contain the section and property names, separated by a hyphen, for
* example "core-dags_are_paused_at_creation". Section names must not contain
* hyphens ("-"), opening square brackets ("["), or closing square brackets
* ("]"). The property name must not be empty and must not contain an equals
* sign ("=") or semicolon (";"). Section and property names must not contain
* a period ("."). Apache Airflow configuration property names must be written
* in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values
* can contain any character, and can be written in any lower/upper case
* format. Certain Apache Airflow configuration property values are
* [blocked](/composer/docs/concepts/airflow-configurations), and cannot be
* overridden.
*
* @param string[] $airflowConfigOverrides
*/
public function setAirflowConfigOverrides($airflowConfigOverrides)
{
$this->airflowConfigOverrides = $airflowConfigOverrides;
}
/**
* @return string[]
*/
public function getAirflowConfigOverrides()
{
return $this->airflowConfigOverrides;
}
/**
* Optional. The configuration for Cloud Data Lineage integration.
*
* @param CloudDataLineageIntegration $cloudDataLineageIntegration
*/
public function setCloudDataLineageIntegration(CloudDataLineageIntegration $cloudDataLineageIntegration)
{
$this->cloudDataLineageIntegration = $cloudDataLineageIntegration;
}
/**
* @return CloudDataLineageIntegration
*/
public function getCloudDataLineageIntegration()
{
return $this->cloudDataLineageIntegration;
}
/**
* Optional. Additional environment variables to provide to the Apache Airflow
* scheduler, worker, and webserver processes. Environment variable names must
* match the regular expression `a-zA-Z_*`. They cannot specify Apache Airflow
* software configuration overrides (they cannot match the regular expression
* `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
* following reserved names: * `AIRFLOW_HOME` * `C_FORCE_ROOT` *
* `CONTAINER_NAME` * `DAGS_FOLDER` * `GCP_PROJECT` * `GCS_BUCKET` *
* `GKE_CLUSTER_NAME` * `SQL_DATABASE` * `SQL_INSTANCE` * `SQL_PASSWORD` *
* `SQL_PROJECT` * `SQL_REGION` * `SQL_USER`
*
* @param string[] $envVariables
*/
public function setEnvVariables($envVariables)
{
$this->envVariables = $envVariables;
}
/**
* @return string[]
*/
public function getEnvVariables()
{
return $this->envVariables;
}
/**
* Optional. The version of the software running in the environment. This
* encapsulates both the version of Cloud Composer functionality and the
* version of Apache Airflow. It must match the regular expression `composer-
* ([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-
* 9]+(\.[0-9]+)?)?)`. When used as input, the server also checks if the
* provided version is supported and denies the request for an unsupported
* version. The Cloud Composer portion of the image version is a full
* [semantic version](https://semver.org), or an alias in the form of major
* version number or `latest`. When an alias is provided, the server replaces
* it with the current Cloud Composer version that satisfies the alias. The
* Apache Airflow portion of the image version is a full semantic version that
* points to one of the supported Apache Airflow versions, or an alias in the
* form of only major or major.minor versions specified. When an alias is
* provided, the server replaces it with the latest Apache Airflow version
* that satisfies the alias and is supported in the given Cloud Composer
* version. In all cases, the resolved image version is stored in the same
* field. See also [version list](/composer/docs/concepts/versioning/composer-
* versions) and [versioning
* overview](/composer/docs/concepts/versioning/composer-versioning-overview).
*
* @param string $imageVersion
*/
public function setImageVersion($imageVersion)
{
$this->imageVersion = $imageVersion;
}
/**
* @return string
*/
public function getImageVersion()
{
return $this->imageVersion;
}
/**
* Optional. Custom Python Package Index (PyPI) packages to be installed in
* the environment. Keys refer to the lowercase package name such as "numpy"
* and values are the lowercase extras and version specifier such as
* "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a
* package without pinning it to a version specifier, use the empty string as
* the value.
*
* @param string[] $pypiPackages
*/
public function setPypiPackages($pypiPackages)
{
$this->pypiPackages = $pypiPackages;
}
/**
* @return string[]
*/
public function getPypiPackages()
{
return $this->pypiPackages;
}
/**
* Optional. The major version of Python used to run the Apache Airflow
* scheduler, worker, and webserver processes. Can be set to '2' or '3'. If
* not specified, the default is '3'. Cannot be updated. This field is only
* supported for Cloud Composer environments in versions
* composer-1.*.*-airflow-*.*.*. Environments in newer versions always use
* Python major version 3.
*
* @param string $pythonVersion
*/
public function setPythonVersion($pythonVersion)
{
$this->pythonVersion = $pythonVersion;
}
/**
* @return string
*/
public function getPythonVersion()
{
return $this->pythonVersion;
}
/**
* Optional. The number of schedulers for Airflow. This field is supported for
* Cloud Composer environments in versions composer-1.*.*-airflow-2.*.*.
*
* @param int $schedulerCount
*/
public function setSchedulerCount($schedulerCount)
{
$this->schedulerCount = $schedulerCount;
}
/**
* @return int
*/
public function getSchedulerCount()
{
return $this->schedulerCount;
}
/**
* Optional. Whether or not the web server uses custom plugins. If
* unspecified, the field defaults to `PLUGINS_ENABLED`. This field is
* supported for Cloud Composer environments in versions
* composer-3-airflow-*.*.*-build.* and newer.
*
* Accepted values: WEB_SERVER_PLUGINS_MODE_UNSPECIFIED, PLUGINS_DISABLED,
* PLUGINS_ENABLED
*
* @param self::WEB_SERVER_PLUGINS_MODE_* $webServerPluginsMode
*/
public function setWebServerPluginsMode($webServerPluginsMode)
{
$this->webServerPluginsMode = $webServerPluginsMode;
}
/**
* @return self::WEB_SERVER_PLUGINS_MODE_*
*/
public function getWebServerPluginsMode()
{
return $this->webServerPluginsMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SoftwareConfig::class, 'Google_Service_CloudComposer_SoftwareConfig');
@@ -0,0 +1,99 @@
<?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\CloudComposer;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_CloudComposer_Status');
@@ -0,0 +1,116 @@
<?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\CloudComposer;
class StopAirflowCommandRequest extends \Google\Model
{
/**
* The unique ID of the command execution.
*
* @var string
*/
public $executionId;
/**
* If true, the execution is terminated forcefully (SIGKILL). If false, the
* execution is stopped gracefully, giving it time for cleanup.
*
* @var bool
*/
public $force;
/**
* The name of the pod where the command is executed.
*
* @var string
*/
public $pod;
/**
* The namespace of the pod where the command is executed.
*
* @var string
*/
public $podNamespace;
/**
* The unique ID of the command execution.
*
* @param string $executionId
*/
public function setExecutionId($executionId)
{
$this->executionId = $executionId;
}
/**
* @return string
*/
public function getExecutionId()
{
return $this->executionId;
}
/**
* If true, the execution is terminated forcefully (SIGKILL). If false, the
* execution is stopped gracefully, giving it time for cleanup.
*
* @param bool $force
*/
public function setForce($force)
{
$this->force = $force;
}
/**
* @return bool
*/
public function getForce()
{
return $this->force;
}
/**
* The name of the pod where the command is executed.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* The namespace of the pod where the command is executed.
*
* @param string $podNamespace
*/
public function setPodNamespace($podNamespace)
{
$this->podNamespace = $podNamespace;
}
/**
* @return string
*/
public function getPodNamespace()
{
return $this->podNamespace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopAirflowCommandRequest::class, 'Google_Service_CloudComposer_StopAirflowCommandRequest');
@@ -0,0 +1,71 @@
<?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\CloudComposer;
class StopAirflowCommandResponse extends \Google\Collection
{
protected $collection_key = 'output';
/**
* Whether the execution is still running.
*
* @var bool
*/
public $isDone;
/**
* Output message from stopping execution request.
*
* @var string[]
*/
public $output;
/**
* Whether the execution is still running.
*
* @param bool $isDone
*/
public function setIsDone($isDone)
{
$this->isDone = $isDone;
}
/**
* @return bool
*/
public function getIsDone()
{
return $this->isDone;
}
/**
* Output message from stopping execution request.
*
* @param string[] $output
*/
public function setOutput($output)
{
$this->output = $output;
}
/**
* @return string[]
*/
public function getOutput()
{
return $this->output;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopAirflowCommandResponse::class, 'Google_Service_CloudComposer_StopAirflowCommandResponse');
@@ -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\CloudComposer;
class StorageConfig extends \Google\Model
{
/**
* Optional. The name of the Cloud Storage bucket used by the environment. No
* `gs://` prefix.
*
* @var string
*/
public $bucket;
/**
* Optional. The name of the Cloud Storage bucket used by the environment. No
* `gs://` prefix.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageConfig::class, 'Google_Service_CloudComposer_StorageConfig');
@@ -0,0 +1,64 @@
<?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\CloudComposer;
class TaskLogsRetentionConfig extends \Google\Model
{
/**
* This configuration is not specified by the user.
*/
public const STORAGE_MODE_TASK_LOGS_STORAGE_MODE_UNSPECIFIED = 'TASK_LOGS_STORAGE_MODE_UNSPECIFIED';
/**
* Store task logs in Cloud Logging and in the environment's Cloud Storage
* bucket.
*/
public const STORAGE_MODE_CLOUD_LOGGING_AND_CLOUD_STORAGE = 'CLOUD_LOGGING_AND_CLOUD_STORAGE';
/**
* Store task logs in Cloud Logging only.
*/
public const STORAGE_MODE_CLOUD_LOGGING_ONLY = 'CLOUD_LOGGING_ONLY';
/**
* Optional. The mode of storage for Airflow workers task logs.
*
* @var string
*/
public $storageMode;
/**
* Optional. The mode of storage for Airflow workers task logs.
*
* Accepted values: TASK_LOGS_STORAGE_MODE_UNSPECIFIED,
* CLOUD_LOGGING_AND_CLOUD_STORAGE, CLOUD_LOGGING_ONLY
*
* @param self::STORAGE_MODE_* $storageMode
*/
public function setStorageMode($storageMode)
{
$this->storageMode = $storageMode;
}
/**
* @return self::STORAGE_MODE_*
*/
public function getStorageMode()
{
return $this->storageMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskLogsRetentionConfig::class, 'Google_Service_CloudComposer_TaskLogsRetentionConfig');
@@ -0,0 +1,94 @@
<?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\CloudComposer;
class TriggererResource extends \Google\Model
{
/**
* Optional. The number of triggerers.
*
* @var int
*/
public $count;
/**
* Optional. CPU request and limit for a single Airflow triggerer replica.
*
* @var float
*/
public $cpu;
/**
* Optional. Memory (GB) request and limit for a single Airflow triggerer
* replica.
*
* @var float
*/
public $memoryGb;
/**
* Optional. The number of triggerers.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Optional. CPU request and limit for a single Airflow triggerer replica.
*
* @param float $cpu
*/
public function setCpu($cpu)
{
$this->cpu = $cpu;
}
/**
* @return float
*/
public function getCpu()
{
return $this->cpu;
}
/**
* Optional. Memory (GB) request and limit for a single Airflow triggerer
* replica.
*
* @param float $memoryGb
*/
public function setMemoryGb($memoryGb)
{
$this->memoryGb = $memoryGb;
}
/**
* @return float
*/
public function getMemoryGb()
{
return $this->memoryGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TriggererResource::class, 'Google_Service_CloudComposer_TriggererResource');
@@ -0,0 +1,80 @@
<?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\CloudComposer;
class UserWorkloadsConfigMap extends \Google\Model
{
/**
* Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
* pairs. For details see:
* https://kubernetes.io/docs/concepts/configuration/configmap/ Example: {
* "example_key": "example_value", "another_key": "another_value" }
*
* @var string[]
*/
public $data;
/**
* Identifier. The resource name of the ConfigMap, in the form: "projects/{pro
* jectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsCo
* nfigMaps/{userWorkloadsConfigMapId}"
*
* @var string
*/
public $name;
/**
* Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
* pairs. For details see:
* https://kubernetes.io/docs/concepts/configuration/configmap/ Example: {
* "example_key": "example_value", "another_key": "another_value" }
*
* @param string[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string[]
*/
public function getData()
{
return $this->data;
}
/**
* Identifier. The resource name of the ConfigMap, in the form: "projects/{pro
* jectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsCo
* nfigMaps/{userWorkloadsConfigMapId}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserWorkloadsConfigMap::class, 'Google_Service_CloudComposer_UserWorkloadsConfigMap');
@@ -0,0 +1,84 @@
<?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\CloudComposer;
class UserWorkloadsSecret extends \Google\Model
{
/**
* Optional. The "data" field of Kubernetes Secret, organized in key-value
* pairs, which can contain sensitive values such as a password, a token, or a
* key. The values for all keys have to be base64-encoded strings. For details
* see: https://kubernetes.io/docs/concepts/configuration/secret/ Example: {
* "example": "ZXhhbXBsZV92YWx1ZQ==", "another-example":
* "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" }
*
* @var string[]
*/
public $data;
/**
* Identifier. The resource name of the Secret, in the form: "projects/{projec
* tId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecre
* ts/{userWorkloadsSecretId}"
*
* @var string
*/
public $name;
/**
* Optional. The "data" field of Kubernetes Secret, organized in key-value
* pairs, which can contain sensitive values such as a password, a token, or a
* key. The values for all keys have to be base64-encoded strings. For details
* see: https://kubernetes.io/docs/concepts/configuration/secret/ Example: {
* "example": "ZXhhbXBsZV92YWx1ZQ==", "another-example":
* "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" }
*
* @param string[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string[]
*/
public function getData()
{
return $this->data;
}
/**
* Identifier. The resource name of the Secret, in the form: "projects/{projec
* tId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecre
* ts/{userWorkloadsSecretId}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserWorkloadsSecret::class, 'Google_Service_CloudComposer_UserWorkloadsSecret');
@@ -0,0 +1,56 @@
<?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\CloudComposer;
class WebServerConfig extends \Google\Model
{
/**
* Optional. Machine type on which Airflow web server is running. It has to be
* one of: composer-n1-webserver-2, composer-n1-webserver-4 or
* composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be
* used. Value custom is returned only in response, if Airflow web server
* parameters were manually changed to a non-standard values.
*
* @var string
*/
public $machineType;
/**
* Optional. Machine type on which Airflow web server is running. It has to be
* one of: composer-n1-webserver-2, composer-n1-webserver-4 or
* composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be
* used. Value custom is returned only in response, if Airflow web server
* parameters were manually changed to a non-standard values.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WebServerConfig::class, 'Google_Service_CloudComposer_WebServerConfig');
@@ -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\CloudComposer;
class WebServerNetworkAccessControl extends \Google\Collection
{
protected $collection_key = 'allowedIpRanges';
protected $allowedIpRangesType = AllowedIpRange::class;
protected $allowedIpRangesDataType = 'array';
/**
* A collection of allowed IP ranges with descriptions.
*
* @param AllowedIpRange[] $allowedIpRanges
*/
public function setAllowedIpRanges($allowedIpRanges)
{
$this->allowedIpRanges = $allowedIpRanges;
}
/**
* @return AllowedIpRange[]
*/
public function getAllowedIpRanges()
{
return $this->allowedIpRanges;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WebServerNetworkAccessControl::class, 'Google_Service_CloudComposer_WebServerNetworkAccessControl');
@@ -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\CloudComposer;
class WebServerResource extends \Google\Model
{
/**
* Optional. CPU request and limit for Airflow web server.
*
* @var float
*/
public $cpu;
/**
* Optional. Memory (GB) request and limit for Airflow web server.
*
* @var float
*/
public $memoryGb;
/**
* Optional. Storage (GB) request and limit for Airflow web server.
*
* @var float
*/
public $storageGb;
/**
* Optional. CPU request and limit for Airflow web server.
*
* @param float $cpu
*/
public function setCpu($cpu)
{
$this->cpu = $cpu;
}
/**
* @return float
*/
public function getCpu()
{
return $this->cpu;
}
/**
* Optional. Memory (GB) request and limit for Airflow web server.
*
* @param float $memoryGb
*/
public function setMemoryGb($memoryGb)
{
$this->memoryGb = $memoryGb;
}
/**
* @return float
*/
public function getMemoryGb()
{
return $this->memoryGb;
}
/**
* Optional. Storage (GB) request and limit for Airflow web server.
*
* @param float $storageGb
*/
public function setStorageGb($storageGb)
{
$this->storageGb = $storageGb;
}
/**
* @return float
*/
public function getStorageGb()
{
return $this->storageGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WebServerResource::class, 'Google_Service_CloudComposer_WebServerResource');
@@ -0,0 +1,140 @@
<?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\CloudComposer;
class WorkerResource extends \Google\Model
{
/**
* Optional. CPU request and limit for a single Airflow worker replica.
*
* @var float
*/
public $cpu;
/**
* Optional. Maximum number of workers for autoscaling.
*
* @var int
*/
public $maxCount;
/**
* Optional. Memory (GB) request and limit for a single Airflow worker
* replica.
*
* @var float
*/
public $memoryGb;
/**
* Optional. Minimum number of workers for autoscaling.
*
* @var int
*/
public $minCount;
/**
* Optional. Storage (GB) request and limit for a single Airflow worker
* replica.
*
* @var float
*/
public $storageGb;
/**
* Optional. CPU request and limit for a single Airflow worker replica.
*
* @param float $cpu
*/
public function setCpu($cpu)
{
$this->cpu = $cpu;
}
/**
* @return float
*/
public function getCpu()
{
return $this->cpu;
}
/**
* Optional. Maximum number of workers for autoscaling.
*
* @param int $maxCount
*/
public function setMaxCount($maxCount)
{
$this->maxCount = $maxCount;
}
/**
* @return int
*/
public function getMaxCount()
{
return $this->maxCount;
}
/**
* Optional. Memory (GB) request and limit for a single Airflow worker
* replica.
*
* @param float $memoryGb
*/
public function setMemoryGb($memoryGb)
{
$this->memoryGb = $memoryGb;
}
/**
* @return float
*/
public function getMemoryGb()
{
return $this->memoryGb;
}
/**
* Optional. Minimum number of workers for autoscaling.
*
* @param int $minCount
*/
public function setMinCount($minCount)
{
$this->minCount = $minCount;
}
/**
* @return int
*/
public function getMinCount()
{
return $this->minCount;
}
/**
* Optional. Storage (GB) request and limit for a single Airflow worker
* replica.
*
* @param float $storageGb
*/
public function setStorageGb($storageGb)
{
$this->storageGb = $storageGb;
}
/**
* @return float
*/
public function getStorageGb()
{
return $this->storageGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkerResource::class, 'Google_Service_CloudComposer_WorkerResource');
@@ -0,0 +1,118 @@
<?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\CloudComposer;
class WorkloadsConfig extends \Google\Model
{
protected $dagProcessorType = DagProcessorResource::class;
protected $dagProcessorDataType = '';
protected $schedulerType = SchedulerResource::class;
protected $schedulerDataType = '';
protected $triggererType = TriggererResource::class;
protected $triggererDataType = '';
protected $webServerType = WebServerResource::class;
protected $webServerDataType = '';
protected $workerType = WorkerResource::class;
protected $workerDataType = '';
/**
* Optional. Resources used by Airflow DAG processors. This field is supported
* for Cloud Composer environments in versions
* composer-3-airflow-*.*.*-build.* and newer.
*
* @param DagProcessorResource $dagProcessor
*/
public function setDagProcessor(DagProcessorResource $dagProcessor)
{
$this->dagProcessor = $dagProcessor;
}
/**
* @return DagProcessorResource
*/
public function getDagProcessor()
{
return $this->dagProcessor;
}
/**
* Optional. Resources used by Airflow schedulers.
*
* @param SchedulerResource $scheduler
*/
public function setScheduler(SchedulerResource $scheduler)
{
$this->scheduler = $scheduler;
}
/**
* @return SchedulerResource
*/
public function getScheduler()
{
return $this->scheduler;
}
/**
* Optional. Resources used by Airflow triggerers.
*
* @param TriggererResource $triggerer
*/
public function setTriggerer(TriggererResource $triggerer)
{
$this->triggerer = $triggerer;
}
/**
* @return TriggererResource
*/
public function getTriggerer()
{
return $this->triggerer;
}
/**
* Optional. Resources used by Airflow web server.
*
* @param WebServerResource $webServer
*/
public function setWebServer(WebServerResource $webServer)
{
$this->webServer = $webServer;
}
/**
* @return WebServerResource
*/
public function getWebServer()
{
return $this->webServer;
}
/**
* Optional. Resources used by Airflow workers.
*
* @param WorkerResource $worker
*/
public function setWorker(WorkerResource $worker)
{
$this->worker = $worker;
}
/**
* @return WorkerResource
*/
public function getWorker()
{
return $this->worker;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkloadsConfig::class, 'Google_Service_CloudComposer_WorkloadsConfig');