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

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

View File

@@ -0,0 +1,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\DeploymentManager;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_DeploymentManager_AuditConfig');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_DeploymentManager_AuditLogConfig');

View File

@@ -0,0 +1,216 @@
<?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\DeploymentManager;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_DeploymentManager_Binding');

View File

@@ -0,0 +1,153 @@
<?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\DeploymentManager;
class BulkInsertOperationStatus extends \Google\Model
{
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Rolling forward - creating VMs.
*/
public const STATUS_CREATING = 'CREATING';
/**
* Rolling back - cleaning up after an error.
*/
public const STATUS_ROLLING_BACK = 'ROLLING_BACK';
/**
* Done
*/
public const STATUS_DONE = 'DONE';
/**
* [Output Only] Count of VMs successfully created so far.
*
* @var int
*/
public $createdVmCount;
/**
* [Output Only] Count of VMs that got deleted during rollback.
*
* @var int
*/
public $deletedVmCount;
/**
* [Output Only] Count of VMs that started creating but encountered an error.
*
* @var int
*/
public $failedToCreateVmCount;
/**
* [Output Only] Creation status of BulkInsert operation - information if the
* flow is rolling forward or rolling back.
*
* @var string
*/
public $status;
/**
* [Output Only] Count of VMs originally planned to be created.
*
* @var int
*/
public $targetVmCount;
/**
* [Output Only] Count of VMs successfully created so far.
*
* @param int $createdVmCount
*/
public function setCreatedVmCount($createdVmCount)
{
$this->createdVmCount = $createdVmCount;
}
/**
* @return int
*/
public function getCreatedVmCount()
{
return $this->createdVmCount;
}
/**
* [Output Only] Count of VMs that got deleted during rollback.
*
* @param int $deletedVmCount
*/
public function setDeletedVmCount($deletedVmCount)
{
$this->deletedVmCount = $deletedVmCount;
}
/**
* @return int
*/
public function getDeletedVmCount()
{
return $this->deletedVmCount;
}
/**
* [Output Only] Count of VMs that started creating but encountered an error.
*
* @param int $failedToCreateVmCount
*/
public function setFailedToCreateVmCount($failedToCreateVmCount)
{
$this->failedToCreateVmCount = $failedToCreateVmCount;
}
/**
* @return int
*/
public function getFailedToCreateVmCount()
{
return $this->failedToCreateVmCount;
}
/**
* [Output Only] Creation status of BulkInsert operation - information if the
* flow is rolling forward or rolling back.
*
* Accepted values: STATUS_UNSPECIFIED, CREATING, ROLLING_BACK, DONE
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* [Output Only] Count of VMs originally planned to be created.
*
* @param int $targetVmCount
*/
public function setTargetVmCount($targetVmCount)
{
$this->targetVmCount = $targetVmCount;
}
/**
* @return int
*/
public function getTargetVmCount()
{
return $this->targetVmCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BulkInsertOperationStatus::class, 'Google_Service_DeploymentManager_BulkInsertOperationStatus');

View File

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

View File

@@ -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\DeploymentManager;
class DebugInfo extends \Google\Collection
{
protected $collection_key = 'stackEntries';
/**
* Additional debugging information provided by the server.
*
* @var string
*/
public $detail;
/**
* The stack trace entries indicating where the error occurred.
*
* @var string[]
*/
public $stackEntries;
/**
* Additional debugging information provided by the server.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* The stack trace entries indicating where the error occurred.
*
* @param string[] $stackEntries
*/
public function setStackEntries($stackEntries)
{
$this->stackEntries = $stackEntries;
}
/**
* @return string[]
*/
public function getStackEntries()
{
return $this->stackEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugInfo::class, 'Google_Service_DeploymentManager_DebugInfo');

View File

@@ -0,0 +1,309 @@
<?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\DeploymentManager;
class Deployment extends \Google\Collection
{
protected $collection_key = 'labels';
/**
* An optional user-provided description of the deployment.
*
* @var string
*/
public $description;
/**
* Provides a fingerprint to use in requests to modify a deployment, such as
* `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a
* randomly generated value that must be provided with `update()`, `stop()`,
* and `cancelPreview()` requests to perform optimistic locking. This ensures
* optimistic concurrency so that only one request happens at a time. The
* fingerprint is initially generated by Deployment Manager and changes after
* every request to modify data. To get the latest fingerprint value, perform
* a `get()` request to a deployment.
*
* @var string
*/
public $fingerprint;
/**
* @var string
*/
public $id;
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @var string
*/
public $insertTime;
protected $labelsType = DeploymentLabelEntry::class;
protected $labelsDataType = 'array';
/**
* Output only. URL of the manifest representing the last manifest that was
* successfully deployed. If no manifest has been successfully deployed, this
* field will be absent.
*
* @var string
*/
public $manifest;
/**
* Name of the resource; provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply with RFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
* must be a lowercase letter, and all following characters must be a dash,
* lowercase letter, or digit, except the last character, which cannot be a
* dash.
*
* @var string
*/
public $name;
protected $operationType = Operation::class;
protected $operationDataType = '';
/**
* Output only. Server defined URL for the resource.
*
* @var string
*/
public $selfLink;
protected $targetType = TargetConfiguration::class;
protected $targetDataType = '';
protected $updateType = DeploymentUpdate::class;
protected $updateDataType = '';
/**
* Output only. Update timestamp in RFC3339 text format.
*
* @var string
*/
public $updateTime;
/**
* An optional user-provided description of the deployment.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Provides a fingerprint to use in requests to modify a deployment, such as
* `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a
* randomly generated value that must be provided with `update()`, `stop()`,
* and `cancelPreview()` requests to perform optimistic locking. This ensures
* optimistic concurrency so that only one request happens at a time. The
* fingerprint is initially generated by Deployment Manager and changes after
* every request to modify data. To get the latest fingerprint value, perform
* a `get()` request to a deployment.
*
* @param string $fingerprint
*/
public function setFingerprint($fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return string
*/
public function getFingerprint()
{
return $this->fingerprint;
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* Map of One Platform labels; provided by the client when the resource is
* created or updated. Specifically: Label keys must be between 1 and 63
* characters long and must conform to the following regular expression:
* `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63
* characters long and must conform to the regular expression
* `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
*
* @param DeploymentLabelEntry[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return DeploymentLabelEntry[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. URL of the manifest representing the last manifest that was
* successfully deployed. If no manifest has been successfully deployed, this
* field will be absent.
*
* @param string $manifest
*/
public function setManifest($manifest)
{
$this->manifest = $manifest;
}
/**
* @return string
*/
public function getManifest()
{
return $this->manifest;
}
/**
* Name of the resource; provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply with RFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
* must be a lowercase letter, and all following characters must be a dash,
* lowercase letter, or digit, except the last character, which cannot be a
* dash.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The Operation that most recently ran, or is currently running,
* on this deployment.
*
* @param Operation $operation
*/
public function setOperation(Operation $operation)
{
$this->operation = $operation;
}
/**
* @return Operation
*/
public function getOperation()
{
return $this->operation;
}
/**
* Output only. Server defined URL for the resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Input Only] The parameters that define your deployment, including the
* deployment configuration and relevant templates.
*
* @param TargetConfiguration $target
*/
public function setTarget(TargetConfiguration $target)
{
$this->target = $target;
}
/**
* @return TargetConfiguration
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. If Deployment Manager is currently updating or previewing an
* update to this deployment, the updated configuration appears here.
*
* @param DeploymentUpdate $update
*/
public function setUpdate(DeploymentUpdate $update)
{
$this->update = $update;
}
/**
* @return DeploymentUpdate
*/
public function getUpdate()
{
return $this->update;
}
/**
* Output only. Update timestamp in RFC3339 text format.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployment::class, 'Google_Service_DeploymentManager_Deployment');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class DeploymentLabelEntry extends \Google\Model
{
/**
* Key of the label
*
* @var string
*/
public $key;
/**
* Value of the label
*
* @var string
*/
public $value;
/**
* Key of the label
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Value of the label
*
* @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(DeploymentLabelEntry::class, 'Google_Service_DeploymentManager_DeploymentLabelEntry');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class DeploymentUpdate extends \Google\Collection
{
protected $collection_key = 'labels';
/**
* Output only. An optional user-provided description of the deployment after
* the current update has been applied.
*
* @var string
*/
public $description;
protected $labelsType = DeploymentUpdateLabelEntry::class;
protected $labelsDataType = 'array';
/**
* Output only. URL of the manifest representing the update configuration of
* this deployment.
*
* @var string
*/
public $manifest;
/**
* Output only. An optional user-provided description of the deployment after
* the current update has been applied.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Map of One Platform labels; provided by the client when the resource is
* created or updated. Specifically: Label keys must be between 1 and 63
* characters long and must conform to the following regular expression:
* `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63
* characters long and must conform to the regular expression
* `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
*
* @param DeploymentUpdateLabelEntry[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return DeploymentUpdateLabelEntry[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. URL of the manifest representing the update configuration of
* this deployment.
*
* @param string $manifest
*/
public function setManifest($manifest)
{
$this->manifest = $manifest;
}
/**
* @return string
*/
public function getManifest()
{
return $this->manifest;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentUpdate::class, 'Google_Service_DeploymentManager_DeploymentUpdate');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class DeploymentUpdateLabelEntry extends \Google\Model
{
/**
* Key of the label
*
* @var string
*/
public $key;
/**
* Value of the label
*
* @var string
*/
public $value;
/**
* Key of the label
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Value of the label
*
* @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(DeploymentUpdateLabelEntry::class, 'Google_Service_DeploymentManager_DeploymentUpdateLabelEntry');

View File

@@ -0,0 +1,285 @@
<?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\DeploymentManager;
class DeploymentmanagerResource extends \Google\Collection
{
protected $collection_key = 'warnings';
protected $accessControlType = ResourceAccessControl::class;
protected $accessControlDataType = '';
/**
* Output only. The evaluated properties of the resource with references
* expanded. Returned as serialized YAML.
*
* @var string
*/
public $finalProperties;
/**
* @var string
*/
public $id;
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @var string
*/
public $insertTime;
/**
* Output only. URL of the manifest representing the current configuration of
* this resource.
*
* @var string
*/
public $manifest;
/**
* Output only. The name of the resource as it appears in the YAML config.
*
* @var string
*/
public $name;
/**
* Output only. The current properties of the resource before any references
* have been filled in. Returned as serialized YAML.
*
* @var string
*/
public $properties;
/**
* Output only. The type of the resource, for example `compute.v1.instance`,
* or `cloudfunctions.v1beta1.function`.
*
* @var string
*/
public $type;
protected $updateType = ResourceUpdate::class;
protected $updateDataType = '';
/**
* Output only. Update timestamp in RFC3339 text format.
*
* @var string
*/
public $updateTime;
/**
* Output only. The URL of the actual resource.
*
* @var string
*/
public $url;
protected $warningsType = DeploymentmanagerResourceWarnings::class;
protected $warningsDataType = 'array';
/**
* The Access Control Policy set on this resource.
*
* @param ResourceAccessControl $accessControl
*/
public function setAccessControl(ResourceAccessControl $accessControl)
{
$this->accessControl = $accessControl;
}
/**
* @return ResourceAccessControl
*/
public function getAccessControl()
{
return $this->accessControl;
}
/**
* Output only. The evaluated properties of the resource with references
* expanded. Returned as serialized YAML.
*
* @param string $finalProperties
*/
public function setFinalProperties($finalProperties)
{
$this->finalProperties = $finalProperties;
}
/**
* @return string
*/
public function getFinalProperties()
{
return $this->finalProperties;
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* Output only. URL of the manifest representing the current configuration of
* this resource.
*
* @param string $manifest
*/
public function setManifest($manifest)
{
$this->manifest = $manifest;
}
/**
* @return string
*/
public function getManifest()
{
return $this->manifest;
}
/**
* Output only. The name of the resource as it appears in the YAML config.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The current properties of the resource before any references
* have been filled in. Returned as serialized YAML.
*
* @param string $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return string
*/
public function getProperties()
{
return $this->properties;
}
/**
* Output only. The type of the resource, for example `compute.v1.instance`,
* or `cloudfunctions.v1beta1.function`.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Output only. If Deployment Manager is currently updating or previewing an
* update to this resource, the updated configuration appears here.
*
* @param ResourceUpdate $update
*/
public function setUpdate(ResourceUpdate $update)
{
$this->update = $update;
}
/**
* @return ResourceUpdate
*/
public function getUpdate()
{
return $this->update;
}
/**
* Output only. Update timestamp in RFC3339 text format.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The URL of the actual resource.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Output only. If warning messages are generated during processing of this
* resource, this field will be populated.
*
* @param DeploymentmanagerResourceWarnings[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return DeploymentmanagerResourceWarnings[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentmanagerResource::class, 'Google_Service_DeploymentManager_DeploymentmanagerResource');

View File

@@ -0,0 +1,282 @@
<?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\DeploymentManager;
class DeploymentmanagerResourceWarnings extends \Google\Collection
{
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* Warning that network endpoint was not detached.
*/
public const CODE_NETWORK_ENDPOINT_NOT_DETACHED = 'NETWORK_ENDPOINT_NOT_DETACHED';
/**
* Current page contains less results than requested but a next page token
* exists.
*/
public const CODE_PAGE_MISSING_RESULTS = 'PAGE_MISSING_RESULTS';
/**
* Warning that SSL policy resource in the response does not contain
* information about the list of enabled features.
*/
public const CODE_SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED = 'SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED';
/**
* Warning that a resource is not found.
*/
public const CODE_RESOURCE_NOT_FOUND_WARNING = 'RESOURCE_NOT_FOUND_WARNING';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* Indicates that a VM is using global DNS. Can also be used to indicate that
* a resource has attributes that could result in the creation of a VM that
* uses global DNS.
*/
public const CODE_RESOURCE_USES_GLOBAL_DNS = 'RESOURCE_USES_GLOBAL_DNS';
/**
* Resource can't be retrieved due to api quota exceeded.
*/
public const CODE_RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED';
/**
* Upcoming maintenance schedule is unavailable for the resource.
*/
public const CODE_UPCOMING_MAINTENANCES_UNAVAILABLE = 'UPCOMING_MAINTENANCES_UNAVAILABLE';
/**
* Reserved entries for quickly adding new warnings without breaking dependent
* clients.
*/
public const CODE_RESERVED_ENTRY_136 = 'RESERVED_ENTRY_136';
public const CODE_RESERVED_ENTRY_139 = 'RESERVED_ENTRY_139';
public const CODE_RESERVED_ENTRY_141 = 'RESERVED_ENTRY_141';
public const CODE_RESERVED_ENTRY_142 = 'RESERVED_ENTRY_142';
public const CODE_RESERVED_ENTRY_143 = 'RESERVED_ENTRY_143';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = DeploymentmanagerResourceWarningsData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: DEPRECATED_RESOURCE_USED, NO_RESULTS_ON_PAGE, UNREACHABLE,
* NEXT_HOP_ADDRESS_NOT_ASSIGNED, NEXT_HOP_INSTANCE_NOT_FOUND,
* NEXT_HOP_INSTANCE_NOT_ON_NETWORK, NEXT_HOP_CANNOT_IP_FORWARD,
* NEXT_HOP_NOT_RUNNING, INJECTED_KERNELS_DEPRECATED, REQUIRED_TOS_AGREEMENT,
* DISK_SIZE_LARGER_THAN_IMAGE_SIZE, RESOURCE_NOT_DELETED,
* SINGLE_INSTANCE_PROPERTY_TEMPLATE, NOT_CRITICAL_ERROR, CLEANUP_FAILED,
* FIELD_VALUE_OVERRIDEN, RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING,
* NETWORK_ENDPOINT_NOT_DETACHED, PAGE_MISSING_RESULTS,
* SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED, RESOURCE_NOT_FOUND_WARNING,
* MISSING_TYPE_DEPENDENCY, EXTERNAL_API_WARNING, SCHEMA_VALIDATION_IGNORED,
* UNDECLARED_PROPERTIES, EXPERIMENTAL_TYPE_USED, DEPRECATED_TYPE_USED,
* PARTIAL_SUCCESS, LARGE_DEPLOYMENT_WARNING,
* NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB, LIST_OVERHEAD_QUOTA_EXCEED,
* QUOTA_INFO_UNAVAILABLE, RESOURCE_USES_GLOBAL_DNS, RATE_LIMIT_EXCEEDED,
* UPCOMING_MAINTENANCES_UNAVAILABLE, RESERVED_ENTRY_136, RESERVED_ENTRY_139,
* RESERVED_ENTRY_141, RESERVED_ENTRY_142, RESERVED_ENTRY_143
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param DeploymentmanagerResourceWarningsData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return DeploymentmanagerResourceWarningsData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @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(DeploymentmanagerResourceWarnings::class, 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarnings');

View File

@@ -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\DeploymentManager;
class DeploymentmanagerResourceWarningsData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @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(DeploymentmanagerResourceWarningsData::class, 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarningsData');

View File

@@ -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\DeploymentManager;
class DeploymentsCancelPreviewRequest extends \Google\Model
{
/**
* Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a
* randomly generated value that must be provided in `cancelPreview()`
* requests to perform optimistic locking. This ensures optimistic concurrency
* so that the deployment does not have conflicting requests (e.g. if someone
* attempts to make a new update request while another user attempts to cancel
* a preview, this would prevent one of the requests). The fingerprint is
* initially generated by Deployment Manager and changes after every request
* to modify a deployment. To get the latest fingerprint value, perform a
* `get()` request on the deployment.
*
* @var string
*/
public $fingerprint;
/**
* Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a
* randomly generated value that must be provided in `cancelPreview()`
* requests to perform optimistic locking. This ensures optimistic concurrency
* so that the deployment does not have conflicting requests (e.g. if someone
* attempts to make a new update request while another user attempts to cancel
* a preview, this would prevent one of the requests). The fingerprint is
* initially generated by Deployment Manager and changes after every request
* to modify a deployment. To get the latest fingerprint value, perform a
* `get()` request on the deployment.
*
* @param string $fingerprint
*/
public function setFingerprint($fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return string
*/
public function getFingerprint()
{
return $this->fingerprint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentsCancelPreviewRequest::class, 'Google_Service_DeploymentManager_DeploymentsCancelPreviewRequest');

View File

@@ -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\DeploymentManager;
class DeploymentsListResponse extends \Google\Collection
{
protected $collection_key = 'deployments';
protected $deploymentsType = Deployment::class;
protected $deploymentsDataType = 'array';
/**
* Output only. A token used to continue a truncated list request.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. The deployments contained in this response.
*
* @param Deployment[] $deployments
*/
public function setDeployments($deployments)
{
$this->deployments = $deployments;
}
/**
* @return Deployment[]
*/
public function getDeployments()
{
return $this->deployments;
}
/**
* Output only. A token used to continue a truncated list request.
*
* @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(DeploymentsListResponse::class, 'Google_Service_DeploymentManager_DeploymentsListResponse');

View File

@@ -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\DeploymentManager;
class DeploymentsStopRequest extends \Google\Model
{
/**
* Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly
* generated value that must be provided in `stop()` requests to perform
* optimistic locking. This ensures optimistic concurrency so that the
* deployment does not have conflicting requests (e.g. if someone attempts to
* make a new update request while another user attempts to stop an ongoing
* update request, this would prevent a collision). The fingerprint is
* initially generated by Deployment Manager and changes after every request
* to modify a deployment. To get the latest fingerprint value, perform a
* `get()` request on the deployment.
*
* @var string
*/
public $fingerprint;
/**
* Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly
* generated value that must be provided in `stop()` requests to perform
* optimistic locking. This ensures optimistic concurrency so that the
* deployment does not have conflicting requests (e.g. if someone attempts to
* make a new update request while another user attempts to stop an ongoing
* update request, this would prevent a collision). The fingerprint is
* initially generated by Deployment Manager and changes after every request
* to modify a deployment. To get the latest fingerprint value, perform a
* `get()` request on the deployment.
*
* @param string $fingerprint
*/
public function setFingerprint($fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return string
*/
public function getFingerprint()
{
return $this->fingerprint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentsStopRequest::class, 'Google_Service_DeploymentManager_DeploymentsStopRequest');

View File

@@ -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\DeploymentManager;
class ErrorInfo extends \Google\Model
{
/**
* The logical grouping to which the "reason" belongs. The error domain is
* typically the registered service name of the tool or product that generates
* the error. Example: "pubsub.googleapis.com". If the error is generated by
* some common infrastructure, the error domain must be a globally unique
* value that identifies the infrastructure. For Google API infrastructure,
* the error domain is "googleapis.com".
*
* @var string
*/
public $domain;
/**
* Additional structured details about this error. Keys must match a regular
* expression of `a-z+` but should ideally be lowerCamelCase. Also, they must
* be limited to 64 characters in length. When identifying the current value
* of an exceeded limit, the units should be contained in the key, not the
* value. For example, rather than `{"instanceLimit": "100/request"}`, should
* be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds
* the number of instances that can be created in a single (batch) request.
*
* @var string[]
*/
public $metadatas;
/**
* The reason of the error. This is a constant value that identifies the
* proximate cause of the error. Error reasons are unique within a particular
* domain of errors. This should be at most 63 characters and match a regular
* expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @var string
*/
public $reason;
/**
* The logical grouping to which the "reason" belongs. The error domain is
* typically the registered service name of the tool or product that generates
* the error. Example: "pubsub.googleapis.com". If the error is generated by
* some common infrastructure, the error domain must be a globally unique
* value that identifies the infrastructure. For Google API infrastructure,
* the error domain is "googleapis.com".
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Additional structured details about this error. Keys must match a regular
* expression of `a-z+` but should ideally be lowerCamelCase. Also, they must
* be limited to 64 characters in length. When identifying the current value
* of an exceeded limit, the units should be contained in the key, not the
* value. For example, rather than `{"instanceLimit": "100/request"}`, should
* be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds
* the number of instances that can be created in a single (batch) request.
*
* @param string[] $metadatas
*/
public function setMetadatas($metadatas)
{
$this->metadatas = $metadatas;
}
/**
* @return string[]
*/
public function getMetadatas()
{
return $this->metadatas;
}
/**
* The reason of the error. This is a constant value that identifies the
* proximate cause of the error. Error reasons are unique within a particular
* domain of errors. This should be at most 63 characters and match a regular
* expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorInfo::class, 'Google_Service_DeploymentManager_ErrorInfo');

View File

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

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class FirewallPolicyRuleOperationMetadata extends \Google\Model
{
/**
* The priority allocated for the firewall policy rule if query parameters
* specified minPriority/maxPriority.
*
* @var int
*/
public $allocatedPriority;
/**
* The priority allocated for the firewall policy rule if query parameters
* specified minPriority/maxPriority.
*
* @param int $allocatedPriority
*/
public function setAllocatedPriority($allocatedPriority)
{
$this->allocatedPriority = $allocatedPriority;
}
/**
* @return int
*/
public function getAllocatedPriority()
{
return $this->allocatedPriority;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirewallPolicyRuleOperationMetadata::class, 'Google_Service_DeploymentManager_FirewallPolicyRuleOperationMetadata');

View File

@@ -0,0 +1,112 @@
<?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\DeploymentManager;
class GlobalSetPolicyRequest extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* Flatten Policy to create a backward compatible wire-format. Deprecated. Use
* 'policy' to specify the etag.
*
* @var string
*/
public $etag;
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* Update mask for the policy.
*
* @var string
*/
public $updateMask;
/**
* Flatten Policy to create a backward compatible wire-format. Deprecated. Use
* 'policy' to specify bindings.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* Flatten Policy to create a backward compatible wire-format. Deprecated. Use
* 'policy' to specify the etag.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* REQUIRED: The complete policy to be applied to the 'resource'. The size of
* the policy is limited to a few 10s of KB. An empty policy is in general a
* valid policy but certain services (like Projects) might reject them.
*
* @param Policy $policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* Update mask for the policy.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GlobalSetPolicyRequest::class, 'Google_Service_DeploymentManager_GlobalSetPolicyRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class Help extends \Google\Collection
{
protected $collection_key = 'links';
protected $linksType = HelpLink::class;
protected $linksDataType = 'array';
/**
* URL(s) pointing to additional information on handling the current error.
*
* @param HelpLink[] $links
*/
public function setLinks($links)
{
$this->links = $links;
}
/**
* @return HelpLink[]
*/
public function getLinks()
{
return $this->links;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Help::class, 'Google_Service_DeploymentManager_Help');

View File

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

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class ImportFile extends \Google\Model
{
/**
* The contents of the file.
*
* @var string
*/
public $content;
/**
* The name of the file.
*
* @var string
*/
public $name;
/**
* The contents of the file.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* The name of the file.
*
* @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(ImportFile::class, 'Google_Service_DeploymentManager_ImportFile');

View File

@@ -0,0 +1,69 @@
<?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\DeploymentManager;
class InstancesBulkInsertOperationMetadata extends \Google\Model
{
/**
* [Output Only] The machine type of the VMs that were created used internally
* only by KCP flex bulk insert.
*
* @var string
*/
public $machineType;
protected $perLocationStatusType = BulkInsertOperationStatus::class;
protected $perLocationStatusDataType = 'map';
/**
* [Output Only] The machine type of the VMs that were created used internally
* only by KCP flex bulk insert.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Status information per location (location name is key). Example key:
* zones/us-central1-a
*
* @param BulkInsertOperationStatus[] $perLocationStatus
*/
public function setPerLocationStatus($perLocationStatus)
{
$this->perLocationStatus = $perLocationStatus;
}
/**
* @return BulkInsertOperationStatus[]
*/
public function getPerLocationStatus()
{
return $this->perLocationStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesBulkInsertOperationMetadata::class, 'Google_Service_DeploymentManager_InstancesBulkInsertOperationMetadata');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class LocalizedMessage extends \Google\Model
{
/**
* The locale used following the specification defined at https://www.rfc-
* editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
*
* @var string
*/
public $locale;
/**
* The localized error message in the above locale.
*
* @var string
*/
public $message;
/**
* The locale used following the specification defined at https://www.rfc-
* editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* The localized error message in the above locale.
*
* @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(LocalizedMessage::class, 'Google_Service_DeploymentManager_LocalizedMessage');

View File

@@ -0,0 +1,237 @@
<?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\DeploymentManager;
class Manifest extends \Google\Collection
{
protected $collection_key = 'imports';
protected $configType = ConfigFile::class;
protected $configDataType = '';
/**
* Output only. The fully-expanded configuration file, including any templates
* and references.
*
* @var string
*/
public $expandedConfig;
/**
* @var string
*/
public $id;
protected $importsType = ImportFile::class;
protected $importsDataType = 'array';
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @var string
*/
public $insertTime;
/**
* Output only. The YAML layout for this manifest.
*
* @var string
*/
public $layout;
/**
* Output only. The computed size of the fully expanded manifest.
*
* @var string
*/
public $manifestSizeBytes;
/**
* Output only. The size limit for expanded manifests in the project.
*
* @var string
*/
public $manifestSizeLimitBytes;
/**
* Output only. The name of the manifest.
*
* @var string
*/
public $name;
/**
* Output only. Self link for the manifest.
*
* @var string
*/
public $selfLink;
/**
* Output only. The YAML configuration for this manifest.
*
* @param ConfigFile $config
*/
public function setConfig(ConfigFile $config)
{
$this->config = $config;
}
/**
* @return ConfigFile
*/
public function getConfig()
{
return $this->config;
}
/**
* Output only. The fully-expanded configuration file, including any templates
* and references.
*
* @param string $expandedConfig
*/
public function setExpandedConfig($expandedConfig)
{
$this->expandedConfig = $expandedConfig;
}
/**
* @return string
*/
public function getExpandedConfig()
{
return $this->expandedConfig;
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. The imported files for this manifest.
*
* @param ImportFile[] $imports
*/
public function setImports($imports)
{
$this->imports = $imports;
}
/**
* @return ImportFile[]
*/
public function getImports()
{
return $this->imports;
}
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* Output only. The YAML layout for this manifest.
*
* @param string $layout
*/
public function setLayout($layout)
{
$this->layout = $layout;
}
/**
* @return string
*/
public function getLayout()
{
return $this->layout;
}
/**
* Output only. The computed size of the fully expanded manifest.
*
* @param string $manifestSizeBytes
*/
public function setManifestSizeBytes($manifestSizeBytes)
{
$this->manifestSizeBytes = $manifestSizeBytes;
}
/**
* @return string
*/
public function getManifestSizeBytes()
{
return $this->manifestSizeBytes;
}
/**
* Output only. The size limit for expanded manifests in the project.
*
* @param string $manifestSizeLimitBytes
*/
public function setManifestSizeLimitBytes($manifestSizeLimitBytes)
{
$this->manifestSizeLimitBytes = $manifestSizeLimitBytes;
}
/**
* @return string
*/
public function getManifestSizeLimitBytes()
{
return $this->manifestSizeLimitBytes;
}
/**
* Output only. The name of the manifest.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Self link for the manifest.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Manifest::class, 'Google_Service_DeploymentManager_Manifest');

View File

@@ -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\DeploymentManager;
class ManifestsListResponse extends \Google\Collection
{
protected $collection_key = 'manifests';
protected $manifestsType = Manifest::class;
protected $manifestsDataType = 'array';
/**
* Output only. A token used to continue a truncated list request.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. Manifests contained in this list response.
*
* @param Manifest[] $manifests
*/
public function setManifests($manifests)
{
$this->manifests = $manifests;
}
/**
* @return Manifest[]
*/
public function getManifests()
{
return $this->manifests;
}
/**
* Output only. A token used to continue a truncated list request.
*
* @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(ManifestsListResponse::class, 'Google_Service_DeploymentManager_ManifestsListResponse');

View File

@@ -0,0 +1,699 @@
<?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\DeploymentManager;
class Operation extends \Google\Collection
{
public const STATUS_PENDING = 'PENDING';
public const STATUS_RUNNING = 'RUNNING';
public const STATUS_DONE = 'DONE';
protected $collection_key = 'warnings';
/**
* [Output Only] The value of `requestId` if you provided it in the request.
* Not present otherwise.
*
* @var string
*/
public $clientOperationId;
/**
* [Deprecated] This field is deprecated.
*
* @var string
*/
public $creationTimestamp;
/**
* [Output Only] A textual description of the operation, which is set when the
* operation is created.
*
* @var string
*/
public $description;
/**
* [Output Only] The time that this operation was completed. This value is in
* RFC3339 text format.
*
* @var string
*/
public $endTime;
protected $errorType = OperationError::class;
protected $errorDataType = '';
protected $firewallPolicyRuleOperationMetadataType = FirewallPolicyRuleOperationMetadata::class;
protected $firewallPolicyRuleOperationMetadataDataType = '';
/**
* [Output Only] If the operation fails, this field contains the HTTP error
* message that was returned, such as `NOT FOUND`.
*
* @var string
*/
public $httpErrorMessage;
/**
* [Output Only] If the operation fails, this field contains the HTTP error
* status code that was returned. For example, a `404` means the resource was
* not found.
*
* @var int
*/
public $httpErrorStatusCode;
/**
* [Output Only] The unique identifier for the operation. This identifier is
* defined by the server.
*
* @var string
*/
public $id;
/**
* [Output Only] The time that this operation was requested. This value is in
* RFC3339 text format.
*
* @var string
*/
public $insertTime;
protected $instancesBulkInsertOperationMetadataType = InstancesBulkInsertOperationMetadata::class;
protected $instancesBulkInsertOperationMetadataDataType = '';
/**
* Output only. [Output Only] Type of the resource. Always `compute#operation`
* for Operation resources.
*
* @var string
*/
public $kind;
/**
* [Output Only] Name of the operation.
*
* @var string
*/
public $name;
/**
* Output only. [Output Only] An ID that represents a group of operations,
* such as when a group of operations results from a `bulkInsert` API request.
*
* @var string
*/
public $operationGroupId;
/**
* [Output Only] The type of operation, such as `insert`, `update`, or
* `delete`, and so on.
*
* @var string
*/
public $operationType;
/**
* [Output Only] An optional progress indicator that ranges from 0 to 100.
* There is no requirement that this be linear or support any granularity of
* operations. This should not be used to guess when the operation will be
* complete. This number should monotonically increase as the operation
* progresses.
*
* @var int
*/
public $progress;
/**
* [Output Only] The URL of the region where the operation resides. Only
* applicable when performing regional operations.
*
* @var string
*/
public $region;
/**
* [Output Only] Server-defined URL for the resource.
*
* @var string
*/
public $selfLink;
/**
* Output only. [Output Only] Server-defined URL for this resource with the
* resource id.
*
* @var string
*/
public $selfLinkWithId;
protected $setAutoscalerLinkOperationMetadataType = SetAutoscalerLinkOperationMetadata::class;
protected $setAutoscalerLinkOperationMetadataDataType = '';
protected $setCommonInstanceMetadataOperationMetadataType = SetCommonInstanceMetadataOperationMetadata::class;
protected $setCommonInstanceMetadataOperationMetadataDataType = '';
/**
* [Output Only] The time that this operation was started by the server. This
* value is in RFC3339 text format.
*
* @var string
*/
public $startTime;
/**
* [Output Only] The status of the operation, which can be one of the
* following: `PENDING`, `RUNNING`, or `DONE`.
*
* @var string
*/
public $status;
/**
* [Output Only] An optional textual description of the current status of the
* operation.
*
* @var string
*/
public $statusMessage;
/**
* [Output Only] The unique target ID, which identifies a specific incarnation
* of the target resource.
*
* @var string
*/
public $targetId;
/**
* [Output Only] The URL of the resource that the operation modifies. For
* operations related to creating a snapshot, this points to the disk that the
* snapshot was created from.
*
* @var string
*/
public $targetLink;
/**
* [Output Only] User who requested the operation, for example:
* `user@example.com` or `alice_smith_identifier
* (global/workforcePools/example-com-us-employees)`.
*
* @var string
*/
public $user;
protected $warningsType = OperationWarnings::class;
protected $warningsDataType = 'array';
/**
* [Output Only] The URL of the zone where the operation resides. Only
* applicable when performing per-zone operations.
*
* @var string
*/
public $zone;
/**
* [Output Only] The value of `requestId` if you provided it in the request.
* Not present otherwise.
*
* @param string $clientOperationId
*/
public function setClientOperationId($clientOperationId)
{
$this->clientOperationId = $clientOperationId;
}
/**
* @return string
*/
public function getClientOperationId()
{
return $this->clientOperationId;
}
/**
* [Deprecated] This field is deprecated.
*
* @param string $creationTimestamp
*/
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
/**
* @return string
*/
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
/**
* [Output Only] A textual description of the operation, which is set when the
* operation is created.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* [Output Only] The time that this operation was completed. This value is in
* RFC3339 text format.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* [Output Only] If errors are generated during processing of the operation,
* this field will be populated.
*
* @param OperationError $error
*/
public function setError(OperationError $error)
{
$this->error = $error;
}
/**
* @return OperationError
*/
public function getError()
{
return $this->error;
}
/**
* @param FirewallPolicyRuleOperationMetadata $firewallPolicyRuleOperationMetadata
*/
public function setFirewallPolicyRuleOperationMetadata(FirewallPolicyRuleOperationMetadata $firewallPolicyRuleOperationMetadata)
{
$this->firewallPolicyRuleOperationMetadata = $firewallPolicyRuleOperationMetadata;
}
/**
* @return FirewallPolicyRuleOperationMetadata
*/
public function getFirewallPolicyRuleOperationMetadata()
{
return $this->firewallPolicyRuleOperationMetadata;
}
/**
* [Output Only] If the operation fails, this field contains the HTTP error
* message that was returned, such as `NOT FOUND`.
*
* @param string $httpErrorMessage
*/
public function setHttpErrorMessage($httpErrorMessage)
{
$this->httpErrorMessage = $httpErrorMessage;
}
/**
* @return string
*/
public function getHttpErrorMessage()
{
return $this->httpErrorMessage;
}
/**
* [Output Only] If the operation fails, this field contains the HTTP error
* status code that was returned. For example, a `404` means the resource was
* not found.
*
* @param int $httpErrorStatusCode
*/
public function setHttpErrorStatusCode($httpErrorStatusCode)
{
$this->httpErrorStatusCode = $httpErrorStatusCode;
}
/**
* @return int
*/
public function getHttpErrorStatusCode()
{
return $this->httpErrorStatusCode;
}
/**
* [Output Only] The unique identifier for the operation. This identifier is
* defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* [Output Only] The time that this operation was requested. This value is in
* RFC3339 text format.
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* @param InstancesBulkInsertOperationMetadata $instancesBulkInsertOperationMetadata
*/
public function setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOperationMetadata $instancesBulkInsertOperationMetadata)
{
$this->instancesBulkInsertOperationMetadata = $instancesBulkInsertOperationMetadata;
}
/**
* @return InstancesBulkInsertOperationMetadata
*/
public function getInstancesBulkInsertOperationMetadata()
{
return $this->instancesBulkInsertOperationMetadata;
}
/**
* Output only. [Output Only] Type of the resource. Always `compute#operation`
* for Operation resources.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] Name of the operation.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. [Output Only] An ID that represents a group of operations,
* such as when a group of operations results from a `bulkInsert` API request.
*
* @param string $operationGroupId
*/
public function setOperationGroupId($operationGroupId)
{
$this->operationGroupId = $operationGroupId;
}
/**
* @return string
*/
public function getOperationGroupId()
{
return $this->operationGroupId;
}
/**
* [Output Only] The type of operation, such as `insert`, `update`, or
* `delete`, and so on.
*
* @param string $operationType
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return string
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* [Output Only] An optional progress indicator that ranges from 0 to 100.
* There is no requirement that this be linear or support any granularity of
* operations. This should not be used to guess when the operation will be
* complete. This number should monotonically increase as the operation
* progresses.
*
* @param int $progress
*/
public function setProgress($progress)
{
$this->progress = $progress;
}
/**
* @return int
*/
public function getProgress()
{
return $this->progress;
}
/**
* [Output Only] The URL of the region where the operation resides. Only
* applicable when performing regional operations.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* [Output Only] Server-defined URL for the resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. [Output Only] Server-defined URL for this resource with the
* resource id.
*
* @param string $selfLinkWithId
*/
public function setSelfLinkWithId($selfLinkWithId)
{
$this->selfLinkWithId = $selfLinkWithId;
}
/**
* @return string
*/
public function getSelfLinkWithId()
{
return $this->selfLinkWithId;
}
/**
* This field is used internally by the Autoscaler team and should not be
* promoted to "alpha/beta/v1".
*
* @param SetAutoscalerLinkOperationMetadata $setAutoscalerLinkOperationMetadata
*/
public function setSetAutoscalerLinkOperationMetadata(SetAutoscalerLinkOperationMetadata $setAutoscalerLinkOperationMetadata)
{
$this->setAutoscalerLinkOperationMetadata = $setAutoscalerLinkOperationMetadata;
}
/**
* @return SetAutoscalerLinkOperationMetadata
*/
public function getSetAutoscalerLinkOperationMetadata()
{
return $this->setAutoscalerLinkOperationMetadata;
}
/**
* Output only. [Output Only] If the operation is for
* projects.setCommonInstanceMetadata, this field will contain information on
* all underlying zonal actions and their state.
*
* @param SetCommonInstanceMetadataOperationMetadata $setCommonInstanceMetadataOperationMetadata
*/
public function setSetCommonInstanceMetadataOperationMetadata(SetCommonInstanceMetadataOperationMetadata $setCommonInstanceMetadataOperationMetadata)
{
$this->setCommonInstanceMetadataOperationMetadata = $setCommonInstanceMetadataOperationMetadata;
}
/**
* @return SetCommonInstanceMetadataOperationMetadata
*/
public function getSetCommonInstanceMetadataOperationMetadata()
{
return $this->setCommonInstanceMetadataOperationMetadata;
}
/**
* [Output Only] The time that this operation was started by the server. This
* value is in RFC3339 text format.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* [Output Only] The status of the operation, which can be one of the
* following: `PENDING`, `RUNNING`, or `DONE`.
*
* Accepted values: PENDING, RUNNING, DONE
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* [Output Only] An optional textual description of the current status of the
* operation.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* [Output Only] The unique target ID, which identifies a specific incarnation
* of the target resource.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* [Output Only] The URL of the resource that the operation modifies. For
* operations related to creating a snapshot, this points to the disk that the
* snapshot was created from.
*
* @param string $targetLink
*/
public function setTargetLink($targetLink)
{
$this->targetLink = $targetLink;
}
/**
* @return string
*/
public function getTargetLink()
{
return $this->targetLink;
}
/**
* [Output Only] User who requested the operation, for example:
* `user@example.com` or `alice_smith_identifier
* (global/workforcePools/example-com-us-employees)`.
*
* @param string $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
/**
* [Output Only] If warning messages are generated during processing of the
* operation, this field will be populated.
*
* @param OperationWarnings[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return OperationWarnings[]
*/
public function getWarnings()
{
return $this->warnings;
}
/**
* [Output Only] The URL of the zone where the operation resides. Only
* applicable when performing per-zone operations.
*
* @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(Operation::class, 'Google_Service_DeploymentManager_Operation');

View File

@@ -0,0 +1,46 @@
<?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\DeploymentManager;
class OperationError extends \Google\Collection
{
protected $collection_key = 'errors';
protected $errorsType = OperationErrorErrors::class;
protected $errorsDataType = 'array';
/**
* [Output Only] The array of errors encountered while processing this
* operation.
*
* @param OperationErrorErrors[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return OperationErrorErrors[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationError::class, 'Google_Service_DeploymentManager_OperationError');

View File

@@ -0,0 +1,162 @@
<?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\DeploymentManager;
class OperationErrorErrors extends \Google\Collection
{
protected $collection_key = 'errorDetails';
/**
* Output only. [Output Only] Optional error details WARNING: DO NOT MAKE
* VISIBLE This is for internal use-only (like componentization) (thus the
* visibility "none") and in case of public exposure it is strongly
* recommended to follow pattern of: https://aip.dev/193 and expose as details
* field.
*
* @var string[]
*/
public $arguments;
/**
* [Output Only] The error type identifier for this error.
*
* @var string
*/
public $code;
protected $debugInfoType = DebugInfo::class;
protected $debugInfoDataType = '';
protected $errorDetailsType = OperationErrorErrorsErrorDetails::class;
protected $errorDetailsDataType = 'array';
/**
* [Output Only] Indicates the field in the request that caused the error.
* This property is optional.
*
* @var string
*/
public $location;
/**
* [Output Only] An optional, human-readable error message.
*
* @var string
*/
public $message;
/**
* Output only. [Output Only] Optional error details WARNING: DO NOT MAKE
* VISIBLE This is for internal use-only (like componentization) (thus the
* visibility "none") and in case of public exposure it is strongly
* recommended to follow pattern of: https://aip.dev/193 and expose as details
* field.
*
* @param string[] $arguments
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return string[]
*/
public function getArguments()
{
return $this->arguments;
}
/**
* [Output Only] The error type identifier for this error.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param DebugInfo $debugInfo
*/
public function setDebugInfo(DebugInfo $debugInfo)
{
$this->debugInfo = $debugInfo;
}
/**
* @return DebugInfo
*/
public function getDebugInfo()
{
return $this->debugInfo;
}
/**
* [Output Only] An optional list of messages that contain the error details.
* There is a set of defined message types to use for providing details.The
* syntax depends on the error code. For example, QuotaExceededInfo will have
* details when the error code is QUOTA_EXCEEDED.
*
* @param OperationErrorErrorsErrorDetails[] $errorDetails
*/
public function setErrorDetails($errorDetails)
{
$this->errorDetails = $errorDetails;
}
/**
* @return OperationErrorErrorsErrorDetails[]
*/
public function getErrorDetails()
{
return $this->errorDetails;
}
/**
* [Output Only] Indicates the field in the request that caused the error.
* This property is optional.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* [Output Only] An optional, human-readable error message.
*
* @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(OperationErrorErrors::class, 'Google_Service_DeploymentManager_OperationErrorErrors');

View File

@@ -0,0 +1,90 @@
<?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\DeploymentManager;
class OperationErrorErrorsErrorDetails extends \Google\Model
{
protected $errorInfoType = ErrorInfo::class;
protected $errorInfoDataType = '';
protected $helpType = Help::class;
protected $helpDataType = '';
protected $localizedMessageType = LocalizedMessage::class;
protected $localizedMessageDataType = '';
protected $quotaInfoType = QuotaExceededInfo::class;
protected $quotaInfoDataType = '';
/**
* @param ErrorInfo $errorInfo
*/
public function setErrorInfo(ErrorInfo $errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return ErrorInfo
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
/**
* @param Help $help
*/
public function setHelp(Help $help)
{
$this->help = $help;
}
/**
* @return Help
*/
public function getHelp()
{
return $this->help;
}
/**
* @param LocalizedMessage $localizedMessage
*/
public function setLocalizedMessage(LocalizedMessage $localizedMessage)
{
$this->localizedMessage = $localizedMessage;
}
/**
* @return LocalizedMessage
*/
public function getLocalizedMessage()
{
return $this->localizedMessage;
}
/**
* @param QuotaExceededInfo $quotaInfo
*/
public function setQuotaInfo(QuotaExceededInfo $quotaInfo)
{
$this->quotaInfo = $quotaInfo;
}
/**
* @return QuotaExceededInfo
*/
public function getQuotaInfo()
{
return $this->quotaInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationErrorErrorsErrorDetails::class, 'Google_Service_DeploymentManager_OperationErrorErrorsErrorDetails');

View File

@@ -0,0 +1,282 @@
<?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\DeploymentManager;
class OperationWarnings extends \Google\Collection
{
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* Warning that network endpoint was not detached.
*/
public const CODE_NETWORK_ENDPOINT_NOT_DETACHED = 'NETWORK_ENDPOINT_NOT_DETACHED';
/**
* Current page contains less results than requested but a next page token
* exists.
*/
public const CODE_PAGE_MISSING_RESULTS = 'PAGE_MISSING_RESULTS';
/**
* Warning that SSL policy resource in the response does not contain
* information about the list of enabled features.
*/
public const CODE_SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED = 'SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED';
/**
* Warning that a resource is not found.
*/
public const CODE_RESOURCE_NOT_FOUND_WARNING = 'RESOURCE_NOT_FOUND_WARNING';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* Indicates that a VM is using global DNS. Can also be used to indicate that
* a resource has attributes that could result in the creation of a VM that
* uses global DNS.
*/
public const CODE_RESOURCE_USES_GLOBAL_DNS = 'RESOURCE_USES_GLOBAL_DNS';
/**
* Resource can't be retrieved due to api quota exceeded.
*/
public const CODE_RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED';
/**
* Upcoming maintenance schedule is unavailable for the resource.
*/
public const CODE_UPCOMING_MAINTENANCES_UNAVAILABLE = 'UPCOMING_MAINTENANCES_UNAVAILABLE';
/**
* Reserved entries for quickly adding new warnings without breaking dependent
* clients.
*/
public const CODE_RESERVED_ENTRY_136 = 'RESERVED_ENTRY_136';
public const CODE_RESERVED_ENTRY_139 = 'RESERVED_ENTRY_139';
public const CODE_RESERVED_ENTRY_141 = 'RESERVED_ENTRY_141';
public const CODE_RESERVED_ENTRY_142 = 'RESERVED_ENTRY_142';
public const CODE_RESERVED_ENTRY_143 = 'RESERVED_ENTRY_143';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = OperationWarningsData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: DEPRECATED_RESOURCE_USED, NO_RESULTS_ON_PAGE, UNREACHABLE,
* NEXT_HOP_ADDRESS_NOT_ASSIGNED, NEXT_HOP_INSTANCE_NOT_FOUND,
* NEXT_HOP_INSTANCE_NOT_ON_NETWORK, NEXT_HOP_CANNOT_IP_FORWARD,
* NEXT_HOP_NOT_RUNNING, INJECTED_KERNELS_DEPRECATED, REQUIRED_TOS_AGREEMENT,
* DISK_SIZE_LARGER_THAN_IMAGE_SIZE, RESOURCE_NOT_DELETED,
* SINGLE_INSTANCE_PROPERTY_TEMPLATE, NOT_CRITICAL_ERROR, CLEANUP_FAILED,
* FIELD_VALUE_OVERRIDEN, RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING,
* NETWORK_ENDPOINT_NOT_DETACHED, PAGE_MISSING_RESULTS,
* SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED, RESOURCE_NOT_FOUND_WARNING,
* MISSING_TYPE_DEPENDENCY, EXTERNAL_API_WARNING, SCHEMA_VALIDATION_IGNORED,
* UNDECLARED_PROPERTIES, EXPERIMENTAL_TYPE_USED, DEPRECATED_TYPE_USED,
* PARTIAL_SUCCESS, LARGE_DEPLOYMENT_WARNING,
* NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB, LIST_OVERHEAD_QUOTA_EXCEED,
* QUOTA_INFO_UNAVAILABLE, RESOURCE_USES_GLOBAL_DNS, RATE_LIMIT_EXCEEDED,
* UPCOMING_MAINTENANCES_UNAVAILABLE, RESERVED_ENTRY_136, RESERVED_ENTRY_139,
* RESERVED_ENTRY_141, RESERVED_ENTRY_142, RESERVED_ENTRY_143
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param OperationWarningsData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return OperationWarningsData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @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(OperationWarnings::class, 'Google_Service_DeploymentManager_OperationWarnings');

View File

@@ -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\DeploymentManager;
class OperationWarningsData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @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(OperationWarningsData::class, 'Google_Service_DeploymentManager_OperationWarningsData');

View File

@@ -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\DeploymentManager;
class OperationsListResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* Output only. A token used to continue a truncated list request.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Output only. A token used to continue a truncated list request.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. Operations contained in this list response.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationsListResponse::class, 'Google_Service_DeploymentManager_OperationsListResponse');

View File

@@ -0,0 +1,165 @@
<?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\DeploymentManager;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_DeploymentManager_Policy');

View File

@@ -0,0 +1,156 @@
<?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\DeploymentManager;
class QuotaExceededInfo extends \Google\Model
{
/**
* ROLLOUT_STATUS_UNSPECIFIED - Rollout status is not specified. The default
* value.
*/
public const ROLLOUT_STATUS_ROLLOUT_STATUS_UNSPECIFIED = 'ROLLOUT_STATUS_UNSPECIFIED';
/**
* IN_PROGRESS - A rollout is in process which will change the limit value to
* future limit.
*/
public const ROLLOUT_STATUS_IN_PROGRESS = 'IN_PROGRESS';
/**
* The map holding related quota dimensions.
*
* @var string[]
*/
public $dimensions;
/**
* Future quota limit being rolled out. The limit's unit depends on the quota
* type or metric.
*
* @var
*/
public $futureLimit;
/**
* Current effective quota limit. The limit's unit depends on the quota type
* or metric.
*
* @var
*/
public $limit;
/**
* The name of the quota limit.
*
* @var string
*/
public $limitName;
/**
* The Compute Engine quota metric name.
*
* @var string
*/
public $metricName;
/**
* Rollout status of the future quota limit.
*
* @var string
*/
public $rolloutStatus;
/**
* The map holding related quota dimensions.
*
* @param string[] $dimensions
*/
public function setDimensions($dimensions)
{
$this->dimensions = $dimensions;
}
/**
* @return string[]
*/
public function getDimensions()
{
return $this->dimensions;
}
public function setFutureLimit($futureLimit)
{
$this->futureLimit = $futureLimit;
}
public function getFutureLimit()
{
return $this->futureLimit;
}
public function setLimit($limit)
{
$this->limit = $limit;
}
public function getLimit()
{
return $this->limit;
}
/**
* The name of the quota limit.
*
* @param string $limitName
*/
public function setLimitName($limitName)
{
$this->limitName = $limitName;
}
/**
* @return string
*/
public function getLimitName()
{
return $this->limitName;
}
/**
* The Compute Engine quota metric name.
*
* @param string $metricName
*/
public function setMetricName($metricName)
{
$this->metricName = $metricName;
}
/**
* @return string
*/
public function getMetricName()
{
return $this->metricName;
}
/**
* Rollout status of the future quota limit.
*
* Accepted values: ROLLOUT_STATUS_UNSPECIFIED, IN_PROGRESS
*
* @param self::ROLLOUT_STATUS_* $rolloutStatus
*/
public function setRolloutStatus($rolloutStatus)
{
$this->rolloutStatus = $rolloutStatus;
}
/**
* @return self::ROLLOUT_STATUS_*
*/
public function getRolloutStatus()
{
return $this->rolloutStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuotaExceededInfo::class, 'Google_Service_DeploymentManager_QuotaExceededInfo');

View File

@@ -0,0 +1,324 @@
<?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\DeploymentManager\Resource;
use Google\Service\DeploymentManager\Deployment;
use Google\Service\DeploymentManager\DeploymentsCancelPreviewRequest;
use Google\Service\DeploymentManager\DeploymentsListResponse;
use Google\Service\DeploymentManager\DeploymentsStopRequest;
use Google\Service\DeploymentManager\GlobalSetPolicyRequest;
use Google\Service\DeploymentManager\Operation;
use Google\Service\DeploymentManager\Policy;
use Google\Service\DeploymentManager\TestPermissionsRequest;
use Google\Service\DeploymentManager\TestPermissionsResponse;
/**
* The "deployments" collection of methods.
* Typical usage is:
* <code>
* $deploymentmanagerService = new Google\Service\DeploymentManager(...);
* $deployments = $deploymentmanagerService->deployments;
* </code>
*/
class Deployments extends \Google\Service\Resource
{
/**
* Cancels and removes the preview currently associated with the deployment.
* (deployments.cancelPreview)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param DeploymentsCancelPreviewRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function cancelPreview($project, $deployment, DeploymentsCancelPreviewRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancelPreview', [$params], Operation::class);
}
/**
* Deletes a deployment and all of the resources in the deployment.
* (deployments.delete)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param array $optParams Optional parameters.
*
* @opt_param string deletePolicy Sets the policy to use for deleting resources.
* @opt_param bool header.bypassBillingFilter
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($project, $deployment, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets information about a specific deployment. (deployments.get)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param array $optParams Optional parameters.
*
* @opt_param bool header.bypassBillingFilter
* @return Deployment
* @throws \Google\Service\Exception
*/
public function get($project, $deployment, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Deployment::class);
}
/**
* Gets the access control policy for a resource. May be empty if no such policy
* or resource exists. (deployments.getIamPolicy)
*
* @param string $project Project ID for this request.
* @param string $resource Name or id of the resource for this request.
* @param array $optParams Optional parameters.
*
* @opt_param bool header.bypassBillingFilter
* @opt_param int optionsRequestedPolicyVersion Requested IAM Policy version.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($project, $resource, $optParams = [])
{
$params = ['project' => $project, 'resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Creates a deployment and all of the resources described by the deployment
* manifest. (deployments.insert)
*
* @param string $project The project ID for this request.
* @param Deployment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string createPolicy Sets the policy to use for creating new
* resources.
* @opt_param bool header.bypassBillingFilter
* @opt_param bool preview If set to true, creates a deployment and creates
* "shell" resources but does not actually instantiate these resources. This
* allows you to preview what your deployment looks like. After previewing a
* deployment, you can deploy your resources by making a request with the
* `update()` method or you can use the `cancelPreview()` method to cancel the
* preview altogether. Note that the deployment will still exist after you
* cancel the preview and you must separately delete this deployment if you want
* to remove it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function insert($project, Deployment $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Operation::class);
}
/**
* Lists all deployments for a given project. (deployments.listDeployments)
*
* @param string $project The project ID for this request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters resources listed in
* the response. Most Compute resources support two types of filter expressions:
* expressions that support regular expressions and expressions that follow API
* improvement proposal AIP-160. These two types of filter expressions cannot be
* mixed in one request. If you want to use AIP-160, your expression must
* specify the field name, an operator, and the value that you want to use for
* filtering. The value must be a string, a number, or a boolean. The operator
* must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
* are filtering Compute Engine instances, you can exclude instances named
* `example-instance` by specifying `name != example-instance`. The `:*`
* comparison can be used to test whether a key has been defined. For example,
* to find all objects with `owner` label use: ``` labels.owner:* ``` You can
* also filter nested fields. For example, you could specify
* `scheduling.automaticRestart = false` to include instances only if they are
* not scheduled for automatic restarts. You can use filtering on nested fields
* to filter based on resource labels. To filter on multiple expressions,
* provide each separate expression within parentheses. For example: ```
* (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
* default, each expression is an `AND` expression. However, you can include
* `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
* Skylake") OR (cpuPlatform = "Intel Broadwell") AND
* (scheduling.automaticRestart = true) ``` If you want to use a regular
* expression, use the `eq` (equal) or `ne` (not equal) operator against a
* single un-parenthesized expression with or without quotes or against multiple
* parenthesized expressions. Examples: `fieldname eq unquoted literal`
* `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
* `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
* interpreted as a regular expression using Google RE2 library syntax. The
* literal value must match the entire field. For example, to filter for
* instances that do not end with name "instance", you would use `name ne
* .*instance`. You cannot combine constraints on multiple fields using regular
* expressions.
* @opt_param string maxResults The maximum number of results per page that
* should be returned. If the number of available results is larger than
* `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
* get the next page of results in subsequent list requests. Acceptable values
* are `0` to `500`, inclusive. (Default: `500`)
* @opt_param string orderBy Sorts list results by a certain order. By default,
* results are returned in alphanumerical order based on the resource name. You
* can also sort results in descending order based on the creation timestamp
* using `orderBy="creationTimestamp desc"`. This sorts results based on the
* `creationTimestamp` field in reverse chronological order (newest result
* first). Use this to sort resources like operations so that the newest
* operation is returned first. Currently, only sorting by `name` or
* `creationTimestamp desc` is supported.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* the `nextPageToken` returned by a previous list request to get the next page
* of results.
* @return DeploymentsListResponse
* @throws \Google\Service\Exception
*/
public function listDeployments($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], DeploymentsListResponse::class);
}
/**
* Patches a deployment and all of the resources described by the deployment
* manifest. (deployments.patch)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param Deployment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string createPolicy Sets the policy to use for creating new
* resources.
* @opt_param string deletePolicy Sets the policy to use for deleting resources.
* @opt_param bool header.bypassBillingFilter
* @opt_param bool preview If set to true, updates the deployment and creates
* and updates the "shell" resources but does not actually alter or instantiate
* these resources. This allows you to preview what your deployment will look
* like. You can use this intent to preview how an update would affect your
* deployment. You must provide a `target.config` with a configuration if this
* is set to true. After previewing a deployment, you can deploy your resources
* by making a request with the `update()` or you can `cancelPreview()` to
* remove the preview altogether. Note that the deployment will still exist
* after you cancel the preview and you must separately delete this deployment
* if you want to remove it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($project, $deployment, Deployment $postBody, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. (deployments.setIamPolicy)
*
* @param string $project Project ID for this request.
* @param string $resource Name or id of the resource for this request.
* @param GlobalSetPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($project, $resource, GlobalSetPolicyRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Stops an ongoing operation. This does not roll back any work that has already
* been completed, but prevents any new work from being started.
* (deployments.stop)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param DeploymentsStopRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function stop($project, $deployment, DeploymentsStopRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params], Operation::class);
}
/**
* Returns permissions that a caller has on the specified resource.
* (deployments.testIamPermissions)
*
* @param string $project Project ID for this request.
* @param string $resource Name or id of the resource for this request.
* @param TestPermissionsRequest $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool header.bypassBillingFilter
* @return TestPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($project, $resource, TestPermissionsRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestPermissionsResponse::class);
}
/**
* Updates a deployment and all of the resources described by the deployment
* manifest. (deployments.update)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param Deployment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string createPolicy Sets the policy to use for creating new
* resources.
* @opt_param string deletePolicy Sets the policy to use for deleting resources.
* @opt_param bool header.bypassBillingFilter
* @opt_param bool preview If set to true, updates the deployment and creates
* and updates the "shell" resources but does not actually alter or instantiate
* these resources. This allows you to preview what your deployment will look
* like. You can use this intent to preview how an update would affect your
* deployment. You must provide a `target.config` with a configuration if this
* is set to true. After previewing a deployment, you can deploy your resources
* by making a request with the `update()` or you can `cancelPreview()` to
* remove the preview altogether. Note that the deployment will still exist
* after you cancel the preview and you must separately delete this deployment
* if you want to remove it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($project, $deployment, Deployment $postBody, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployments::class, 'Google_Service_DeploymentManager_Resource_Deployments');

View File

@@ -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\DeploymentManager\Resource;
use Google\Service\DeploymentManager\Manifest;
use Google\Service\DeploymentManager\ManifestsListResponse;
/**
* The "manifests" collection of methods.
* Typical usage is:
* <code>
* $deploymentmanagerService = new Google\Service\DeploymentManager(...);
* $manifests = $deploymentmanagerService->manifests;
* </code>
*/
class Manifests extends \Google\Service\Resource
{
/**
* Gets information about a specific manifest. (manifests.get)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param string $manifest The name of the manifest for this request.
* @param array $optParams Optional parameters.
*
* @opt_param bool header.bypassBillingFilter
* @return Manifest
* @throws \Google\Service\Exception
*/
public function get($project, $deployment, $manifest, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment, 'manifest' => $manifest];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Manifest::class);
}
/**
* Lists all manifests for a given deployment. (manifests.listManifests)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters resources listed in
* the response. Most Compute resources support two types of filter expressions:
* expressions that support regular expressions and expressions that follow API
* improvement proposal AIP-160. These two types of filter expressions cannot be
* mixed in one request. If you want to use AIP-160, your expression must
* specify the field name, an operator, and the value that you want to use for
* filtering. The value must be a string, a number, or a boolean. The operator
* must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
* are filtering Compute Engine instances, you can exclude instances named
* `example-instance` by specifying `name != example-instance`. The `:*`
* comparison can be used to test whether a key has been defined. For example,
* to find all objects with `owner` label use: ``` labels.owner:* ``` You can
* also filter nested fields. For example, you could specify
* `scheduling.automaticRestart = false` to include instances only if they are
* not scheduled for automatic restarts. You can use filtering on nested fields
* to filter based on resource labels. To filter on multiple expressions,
* provide each separate expression within parentheses. For example: ```
* (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
* default, each expression is an `AND` expression. However, you can include
* `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
* Skylake") OR (cpuPlatform = "Intel Broadwell") AND
* (scheduling.automaticRestart = true) ``` If you want to use a regular
* expression, use the `eq` (equal) or `ne` (not equal) operator against a
* single un-parenthesized expression with or without quotes or against multiple
* parenthesized expressions. Examples: `fieldname eq unquoted literal`
* `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
* `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
* interpreted as a regular expression using Google RE2 library syntax. The
* literal value must match the entire field. For example, to filter for
* instances that do not end with name "instance", you would use `name ne
* .*instance`. You cannot combine constraints on multiple fields using regular
* expressions.
* @opt_param string maxResults The maximum number of results per page that
* should be returned. If the number of available results is larger than
* `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
* get the next page of results in subsequent list requests. Acceptable values
* are `0` to `500`, inclusive. (Default: `500`)
* @opt_param string orderBy Sorts list results by a certain order. By default,
* results are returned in alphanumerical order based on the resource name. You
* can also sort results in descending order based on the creation timestamp
* using `orderBy="creationTimestamp desc"`. This sorts results based on the
* `creationTimestamp` field in reverse chronological order (newest result
* first). Use this to sort resources like operations so that the newest
* operation is returned first. Currently, only sorting by `name` or
* `creationTimestamp desc` is supported.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* the `nextPageToken` returned by a previous list request to get the next page
* of results.
* @return ManifestsListResponse
* @throws \Google\Service\Exception
*/
public function listManifests($project, $deployment, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ManifestsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Manifests::class, 'Google_Service_DeploymentManager_Resource_Manifests');

View File

@@ -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\DeploymentManager\Resource;
use Google\Service\DeploymentManager\Operation;
use Google\Service\DeploymentManager\OperationsListResponse;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $deploymentmanagerService = new Google\Service\DeploymentManager(...);
* $operations = $deploymentmanagerService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets information about a specific operation. (operations.get)
*
* @param string $project The project ID for this request.
* @param string $operation The name of the operation for this request.
* @param array $optParams Optional parameters.
*
* @opt_param bool header.bypassBillingFilter
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($project, $operation, $optParams = [])
{
$params = ['project' => $project, 'operation' => $operation];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists all operations for a project. (operations.listOperations)
*
* @param string $project The project ID for this request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters resources listed in
* the response. Most Compute resources support two types of filter expressions:
* expressions that support regular expressions and expressions that follow API
* improvement proposal AIP-160. These two types of filter expressions cannot be
* mixed in one request. If you want to use AIP-160, your expression must
* specify the field name, an operator, and the value that you want to use for
* filtering. The value must be a string, a number, or a boolean. The operator
* must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
* are filtering Compute Engine instances, you can exclude instances named
* `example-instance` by specifying `name != example-instance`. The `:*`
* comparison can be used to test whether a key has been defined. For example,
* to find all objects with `owner` label use: ``` labels.owner:* ``` You can
* also filter nested fields. For example, you could specify
* `scheduling.automaticRestart = false` to include instances only if they are
* not scheduled for automatic restarts. You can use filtering on nested fields
* to filter based on resource labels. To filter on multiple expressions,
* provide each separate expression within parentheses. For example: ```
* (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
* default, each expression is an `AND` expression. However, you can include
* `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
* Skylake") OR (cpuPlatform = "Intel Broadwell") AND
* (scheduling.automaticRestart = true) ``` If you want to use a regular
* expression, use the `eq` (equal) or `ne` (not equal) operator against a
* single un-parenthesized expression with or without quotes or against multiple
* parenthesized expressions. Examples: `fieldname eq unquoted literal`
* `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
* `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
* interpreted as a regular expression using Google RE2 library syntax. The
* literal value must match the entire field. For example, to filter for
* instances that do not end with name "instance", you would use `name ne
* .*instance`. You cannot combine constraints on multiple fields using regular
* expressions.
* @opt_param string maxResults The maximum number of results per page that
* should be returned. If the number of available results is larger than
* `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
* get the next page of results in subsequent list requests. Acceptable values
* are `0` to `500`, inclusive. (Default: `500`)
* @opt_param string orderBy Sorts list results by a certain order. By default,
* results are returned in alphanumerical order based on the resource name. You
* can also sort results in descending order based on the creation timestamp
* using `orderBy="creationTimestamp desc"`. This sorts results based on the
* `creationTimestamp` field in reverse chronological order (newest result
* first). Use this to sort resources like operations so that the newest
* operation is returned first. Currently, only sorting by `name` or
* `creationTimestamp desc` is supported.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* the `nextPageToken` returned by a previous list request to get the next page
* of results.
* @return OperationsListResponse
* @throws \Google\Service\Exception
*/
public function listOperations($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], OperationsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_DeploymentManager_Resource_Operations');

View File

@@ -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\DeploymentManager\Resource;
use Google\Service\DeploymentManager\DeploymentmanagerResource;
use Google\Service\DeploymentManager\ResourcesListResponse;
/**
* The "resources" collection of methods.
* Typical usage is:
* <code>
* $deploymentmanagerService = new Google\Service\DeploymentManager(...);
* $resources = $deploymentmanagerService->resources;
* </code>
*/
class Resources extends \Google\Service\Resource
{
/**
* Gets information about a single resource. (resources.get)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param string $resource The name of the resource for this request.
* @param array $optParams Optional parameters.
*
* @opt_param bool header.bypassBillingFilter
* @return DeploymentmanagerResource
* @throws \Google\Service\Exception
*/
public function get($project, $deployment, $resource, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment, 'resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DeploymentmanagerResource::class);
}
/**
* Lists all resources in a given deployment. (resources.listResources)
*
* @param string $project The project ID for this request.
* @param string $deployment The name of the deployment for this request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters resources listed in
* the response. Most Compute resources support two types of filter expressions:
* expressions that support regular expressions and expressions that follow API
* improvement proposal AIP-160. These two types of filter expressions cannot be
* mixed in one request. If you want to use AIP-160, your expression must
* specify the field name, an operator, and the value that you want to use for
* filtering. The value must be a string, a number, or a boolean. The operator
* must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
* are filtering Compute Engine instances, you can exclude instances named
* `example-instance` by specifying `name != example-instance`. The `:*`
* comparison can be used to test whether a key has been defined. For example,
* to find all objects with `owner` label use: ``` labels.owner:* ``` You can
* also filter nested fields. For example, you could specify
* `scheduling.automaticRestart = false` to include instances only if they are
* not scheduled for automatic restarts. You can use filtering on nested fields
* to filter based on resource labels. To filter on multiple expressions,
* provide each separate expression within parentheses. For example: ```
* (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
* default, each expression is an `AND` expression. However, you can include
* `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
* Skylake") OR (cpuPlatform = "Intel Broadwell") AND
* (scheduling.automaticRestart = true) ``` If you want to use a regular
* expression, use the `eq` (equal) or `ne` (not equal) operator against a
* single un-parenthesized expression with or without quotes or against multiple
* parenthesized expressions. Examples: `fieldname eq unquoted literal`
* `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
* `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
* interpreted as a regular expression using Google RE2 library syntax. The
* literal value must match the entire field. For example, to filter for
* instances that do not end with name "instance", you would use `name ne
* .*instance`. You cannot combine constraints on multiple fields using regular
* expressions.
* @opt_param string maxResults The maximum number of results per page that
* should be returned. If the number of available results is larger than
* `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
* get the next page of results in subsequent list requests. Acceptable values
* are `0` to `500`, inclusive. (Default: `500`)
* @opt_param string orderBy Sorts list results by a certain order. By default,
* results are returned in alphanumerical order based on the resource name. You
* can also sort results in descending order based on the creation timestamp
* using `orderBy="creationTimestamp desc"`. This sorts results based on the
* `creationTimestamp` field in reverse chronological order (newest result
* first). Use this to sort resources like operations so that the newest
* operation is returned first. Currently, only sorting by `name` or
* `creationTimestamp desc` is supported.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* the `nextPageToken` returned by a previous list request to get the next page
* of results.
* @return ResourcesListResponse
* @throws \Google\Service\Exception
*/
public function listResources($project, $deployment, $optParams = [])
{
$params = ['project' => $project, 'deployment' => $deployment];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ResourcesListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Resources::class, 'Google_Service_DeploymentManager_Resource_Resources');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager\Resource;
use Google\Service\DeploymentManager\TypesListResponse;
/**
* The "types" collection of methods.
* Typical usage is:
* <code>
* $deploymentmanagerService = new Google\Service\DeploymentManager(...);
* $types = $deploymentmanagerService->types;
* </code>
*/
class Types extends \Google\Service\Resource
{
/**
* Lists all resource types for Deployment Manager. (types.listTypes)
*
* @param string $project The project ID for this request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters resources listed in
* the response. Most Compute resources support two types of filter expressions:
* expressions that support regular expressions and expressions that follow API
* improvement proposal AIP-160. These two types of filter expressions cannot be
* mixed in one request. If you want to use AIP-160, your expression must
* specify the field name, an operator, and the value that you want to use for
* filtering. The value must be a string, a number, or a boolean. The operator
* must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
* are filtering Compute Engine instances, you can exclude instances named
* `example-instance` by specifying `name != example-instance`. The `:*`
* comparison can be used to test whether a key has been defined. For example,
* to find all objects with `owner` label use: ``` labels.owner:* ``` You can
* also filter nested fields. For example, you could specify
* `scheduling.automaticRestart = false` to include instances only if they are
* not scheduled for automatic restarts. You can use filtering on nested fields
* to filter based on resource labels. To filter on multiple expressions,
* provide each separate expression within parentheses. For example: ```
* (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
* default, each expression is an `AND` expression. However, you can include
* `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
* Skylake") OR (cpuPlatform = "Intel Broadwell") AND
* (scheduling.automaticRestart = true) ``` If you want to use a regular
* expression, use the `eq` (equal) or `ne` (not equal) operator against a
* single un-parenthesized expression with or without quotes or against multiple
* parenthesized expressions. Examples: `fieldname eq unquoted literal`
* `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
* `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
* interpreted as a regular expression using Google RE2 library syntax. The
* literal value must match the entire field. For example, to filter for
* instances that do not end with name "instance", you would use `name ne
* .*instance`. You cannot combine constraints on multiple fields using regular
* expressions.
* @opt_param string maxResults The maximum number of results per page that
* should be returned. If the number of available results is larger than
* `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
* get the next page of results in subsequent list requests. Acceptable values
* are `0` to `500`, inclusive. (Default: `500`)
* @opt_param string orderBy Sorts list results by a certain order. By default,
* results are returned in alphanumerical order based on the resource name. You
* can also sort results in descending order based on the creation timestamp
* using `orderBy="creationTimestamp desc"`. This sorts results based on the
* `creationTimestamp` field in reverse chronological order (newest result
* first). Use this to sort resources like operations so that the newest
* operation is returned first. Currently, only sorting by `name` or
* `creationTimestamp desc` is supported.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* the `nextPageToken` returned by a previous list request to get the next page
* of results.
* @return TypesListResponse
* @throws \Google\Service\Exception
*/
public function listTypes($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], TypesListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Types::class, 'Google_Service_DeploymentManager_Resource_Types');

View File

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

View File

@@ -0,0 +1,249 @@
<?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\DeploymentManager;
class ResourceUpdate extends \Google\Collection
{
/**
* The resource is scheduled to be created, or if it already exists, acquired.
*/
public const INTENT_CREATE_OR_ACQUIRE = 'CREATE_OR_ACQUIRE';
/**
* The resource is scheduled to be deleted.
*/
public const INTENT_DELETE = 'DELETE';
/**
* The resource is scheduled to be acquired.
*/
public const INTENT_ACQUIRE = 'ACQUIRE';
/**
* The resource is scheduled to be updated via the UPDATE method.
*/
public const INTENT_UPDATE = 'UPDATE';
/**
* The resource is scheduled to be abandoned.
*/
public const INTENT_ABANDON = 'ABANDON';
/**
* The resource is scheduled to be created.
*/
public const INTENT_CREATE = 'CREATE';
/**
* There are changes pending for this resource.
*/
public const STATE_PENDING = 'PENDING';
/**
* The service is executing changes on the resource.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The service is previewing changes on the resource.
*/
public const STATE_IN_PREVIEW = 'IN_PREVIEW';
/**
* The service has failed to change the resource.
*/
public const STATE_FAILED = 'FAILED';
/**
* The service has aborted trying to change the resource.
*/
public const STATE_ABORTED = 'ABORTED';
protected $collection_key = 'warnings';
protected $accessControlType = ResourceAccessControl::class;
protected $accessControlDataType = '';
protected $errorType = ResourceUpdateError::class;
protected $errorDataType = '';
/**
* Output only. The expanded properties of the resource with reference values
* expanded. Returned as serialized YAML.
*
* @var string
*/
public $finalProperties;
/**
* Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`.
*
* @var string
*/
public $intent;
/**
* Output only. URL of the manifest representing the update configuration of
* this resource.
*
* @var string
*/
public $manifest;
/**
* Output only. The set of updated properties for this resource, before
* references are expanded. Returned as serialized YAML.
*
* @var string
*/
public $properties;
/**
* Output only. The state of the resource.
*
* @var string
*/
public $state;
protected $warningsType = ResourceUpdateWarnings::class;
protected $warningsDataType = 'array';
/**
* The Access Control Policy to set on this resource after updating the
* resource itself.
*
* @param ResourceAccessControl $accessControl
*/
public function setAccessControl(ResourceAccessControl $accessControl)
{
$this->accessControl = $accessControl;
}
/**
* @return ResourceAccessControl
*/
public function getAccessControl()
{
return $this->accessControl;
}
/**
* Output only. If errors are generated during update of the resource, this
* field will be populated.
*
* @param ResourceUpdateError $error
*/
public function setError(ResourceUpdateError $error)
{
$this->error = $error;
}
/**
* @return ResourceUpdateError
*/
public function getError()
{
return $this->error;
}
/**
* Output only. The expanded properties of the resource with reference values
* expanded. Returned as serialized YAML.
*
* @param string $finalProperties
*/
public function setFinalProperties($finalProperties)
{
$this->finalProperties = $finalProperties;
}
/**
* @return string
*/
public function getFinalProperties()
{
return $this->finalProperties;
}
/**
* Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`.
*
* Accepted values: CREATE_OR_ACQUIRE, DELETE, ACQUIRE, UPDATE, ABANDON,
* CREATE
*
* @param self::INTENT_* $intent
*/
public function setIntent($intent)
{
$this->intent = $intent;
}
/**
* @return self::INTENT_*
*/
public function getIntent()
{
return $this->intent;
}
/**
* Output only. URL of the manifest representing the update configuration of
* this resource.
*
* @param string $manifest
*/
public function setManifest($manifest)
{
$this->manifest = $manifest;
}
/**
* @return string
*/
public function getManifest()
{
return $this->manifest;
}
/**
* Output only. The set of updated properties for this resource, before
* references are expanded. Returned as serialized YAML.
*
* @param string $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return string
*/
public function getProperties()
{
return $this->properties;
}
/**
* Output only. The state of the resource.
*
* Accepted values: PENDING, IN_PROGRESS, IN_PREVIEW, FAILED, ABORTED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. If warning messages are generated during processing of this
* resource, this field will be populated.
*
* @param ResourceUpdateWarnings[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return ResourceUpdateWarnings[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceUpdate::class, 'Google_Service_DeploymentManager_ResourceUpdate');

View File

@@ -0,0 +1,46 @@
<?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\DeploymentManager;
class ResourceUpdateError extends \Google\Collection
{
protected $collection_key = 'errors';
protected $errorsType = ResourceUpdateErrorErrors::class;
protected $errorsDataType = 'array';
/**
* [Output Only] The array of errors encountered while processing this
* operation.
*
* @param ResourceUpdateErrorErrors[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return ResourceUpdateErrorErrors[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceUpdateError::class, 'Google_Service_DeploymentManager_ResourceUpdateError');

View File

@@ -0,0 +1,162 @@
<?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\DeploymentManager;
class ResourceUpdateErrorErrors extends \Google\Collection
{
protected $collection_key = 'errorDetails';
/**
* Output only. [Output Only] Optional error details WARNING: DO NOT MAKE
* VISIBLE This is for internal use-only (like componentization) (thus the
* visibility "none") and in case of public exposure it is strongly
* recommended to follow pattern of: https://aip.dev/193 and expose as details
* field.
*
* @var string[]
*/
public $arguments;
/**
* [Output Only] The error type identifier for this error.
*
* @var string
*/
public $code;
protected $debugInfoType = DebugInfo::class;
protected $debugInfoDataType = '';
protected $errorDetailsType = ResourceUpdateErrorErrorsErrorDetails::class;
protected $errorDetailsDataType = 'array';
/**
* [Output Only] Indicates the field in the request that caused the error.
* This property is optional.
*
* @var string
*/
public $location;
/**
* [Output Only] An optional, human-readable error message.
*
* @var string
*/
public $message;
/**
* Output only. [Output Only] Optional error details WARNING: DO NOT MAKE
* VISIBLE This is for internal use-only (like componentization) (thus the
* visibility "none") and in case of public exposure it is strongly
* recommended to follow pattern of: https://aip.dev/193 and expose as details
* field.
*
* @param string[] $arguments
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return string[]
*/
public function getArguments()
{
return $this->arguments;
}
/**
* [Output Only] The error type identifier for this error.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param DebugInfo $debugInfo
*/
public function setDebugInfo(DebugInfo $debugInfo)
{
$this->debugInfo = $debugInfo;
}
/**
* @return DebugInfo
*/
public function getDebugInfo()
{
return $this->debugInfo;
}
/**
* [Output Only] An optional list of messages that contain the error details.
* There is a set of defined message types to use for providing details.The
* syntax depends on the error code. For example, QuotaExceededInfo will have
* details when the error code is QUOTA_EXCEEDED.
*
* @param ResourceUpdateErrorErrorsErrorDetails[] $errorDetails
*/
public function setErrorDetails($errorDetails)
{
$this->errorDetails = $errorDetails;
}
/**
* @return ResourceUpdateErrorErrorsErrorDetails[]
*/
public function getErrorDetails()
{
return $this->errorDetails;
}
/**
* [Output Only] Indicates the field in the request that caused the error.
* This property is optional.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* [Output Only] An optional, human-readable error message.
*
* @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(ResourceUpdateErrorErrors::class, 'Google_Service_DeploymentManager_ResourceUpdateErrorErrors');

View File

@@ -0,0 +1,90 @@
<?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\DeploymentManager;
class ResourceUpdateErrorErrorsErrorDetails extends \Google\Model
{
protected $errorInfoType = ErrorInfo::class;
protected $errorInfoDataType = '';
protected $helpType = Help::class;
protected $helpDataType = '';
protected $localizedMessageType = LocalizedMessage::class;
protected $localizedMessageDataType = '';
protected $quotaInfoType = QuotaExceededInfo::class;
protected $quotaInfoDataType = '';
/**
* @param ErrorInfo $errorInfo
*/
public function setErrorInfo(ErrorInfo $errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return ErrorInfo
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
/**
* @param Help $help
*/
public function setHelp(Help $help)
{
$this->help = $help;
}
/**
* @return Help
*/
public function getHelp()
{
return $this->help;
}
/**
* @param LocalizedMessage $localizedMessage
*/
public function setLocalizedMessage(LocalizedMessage $localizedMessage)
{
$this->localizedMessage = $localizedMessage;
}
/**
* @return LocalizedMessage
*/
public function getLocalizedMessage()
{
return $this->localizedMessage;
}
/**
* @param QuotaExceededInfo $quotaInfo
*/
public function setQuotaInfo(QuotaExceededInfo $quotaInfo)
{
$this->quotaInfo = $quotaInfo;
}
/**
* @return QuotaExceededInfo
*/
public function getQuotaInfo()
{
return $this->quotaInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceUpdateErrorErrorsErrorDetails::class, 'Google_Service_DeploymentManager_ResourceUpdateErrorErrorsErrorDetails');

View File

@@ -0,0 +1,282 @@
<?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\DeploymentManager;
class ResourceUpdateWarnings extends \Google\Collection
{
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* Warning that network endpoint was not detached.
*/
public const CODE_NETWORK_ENDPOINT_NOT_DETACHED = 'NETWORK_ENDPOINT_NOT_DETACHED';
/**
* Current page contains less results than requested but a next page token
* exists.
*/
public const CODE_PAGE_MISSING_RESULTS = 'PAGE_MISSING_RESULTS';
/**
* Warning that SSL policy resource in the response does not contain
* information about the list of enabled features.
*/
public const CODE_SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED = 'SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED';
/**
* Warning that a resource is not found.
*/
public const CODE_RESOURCE_NOT_FOUND_WARNING = 'RESOURCE_NOT_FOUND_WARNING';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* Indicates that a VM is using global DNS. Can also be used to indicate that
* a resource has attributes that could result in the creation of a VM that
* uses global DNS.
*/
public const CODE_RESOURCE_USES_GLOBAL_DNS = 'RESOURCE_USES_GLOBAL_DNS';
/**
* Resource can't be retrieved due to api quota exceeded.
*/
public const CODE_RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED';
/**
* Upcoming maintenance schedule is unavailable for the resource.
*/
public const CODE_UPCOMING_MAINTENANCES_UNAVAILABLE = 'UPCOMING_MAINTENANCES_UNAVAILABLE';
/**
* Reserved entries for quickly adding new warnings without breaking dependent
* clients.
*/
public const CODE_RESERVED_ENTRY_136 = 'RESERVED_ENTRY_136';
public const CODE_RESERVED_ENTRY_139 = 'RESERVED_ENTRY_139';
public const CODE_RESERVED_ENTRY_141 = 'RESERVED_ENTRY_141';
public const CODE_RESERVED_ENTRY_142 = 'RESERVED_ENTRY_142';
public const CODE_RESERVED_ENTRY_143 = 'RESERVED_ENTRY_143';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = ResourceUpdateWarningsData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: DEPRECATED_RESOURCE_USED, NO_RESULTS_ON_PAGE, UNREACHABLE,
* NEXT_HOP_ADDRESS_NOT_ASSIGNED, NEXT_HOP_INSTANCE_NOT_FOUND,
* NEXT_HOP_INSTANCE_NOT_ON_NETWORK, NEXT_HOP_CANNOT_IP_FORWARD,
* NEXT_HOP_NOT_RUNNING, INJECTED_KERNELS_DEPRECATED, REQUIRED_TOS_AGREEMENT,
* DISK_SIZE_LARGER_THAN_IMAGE_SIZE, RESOURCE_NOT_DELETED,
* SINGLE_INSTANCE_PROPERTY_TEMPLATE, NOT_CRITICAL_ERROR, CLEANUP_FAILED,
* FIELD_VALUE_OVERRIDEN, RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING,
* NETWORK_ENDPOINT_NOT_DETACHED, PAGE_MISSING_RESULTS,
* SSL_POLICY_ENABLED_FEATURES_NOT_FETCHED, RESOURCE_NOT_FOUND_WARNING,
* MISSING_TYPE_DEPENDENCY, EXTERNAL_API_WARNING, SCHEMA_VALIDATION_IGNORED,
* UNDECLARED_PROPERTIES, EXPERIMENTAL_TYPE_USED, DEPRECATED_TYPE_USED,
* PARTIAL_SUCCESS, LARGE_DEPLOYMENT_WARNING,
* NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB, LIST_OVERHEAD_QUOTA_EXCEED,
* QUOTA_INFO_UNAVAILABLE, RESOURCE_USES_GLOBAL_DNS, RATE_LIMIT_EXCEEDED,
* UPCOMING_MAINTENANCES_UNAVAILABLE, RESERVED_ENTRY_136, RESERVED_ENTRY_139,
* RESERVED_ENTRY_141, RESERVED_ENTRY_142, RESERVED_ENTRY_143
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param ResourceUpdateWarningsData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return ResourceUpdateWarningsData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @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(ResourceUpdateWarnings::class, 'Google_Service_DeploymentManager_ResourceUpdateWarnings');

View File

@@ -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\DeploymentManager;
class ResourceUpdateWarningsData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @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(ResourceUpdateWarningsData::class, 'Google_Service_DeploymentManager_ResourceUpdateWarningsData');

View File

@@ -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\DeploymentManager;
class ResourcesListResponse extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* A token used to continue a truncated list request.
*
* @var string
*/
public $nextPageToken;
protected $resourcesType = DeploymentmanagerResource::class;
protected $resourcesDataType = 'array';
/**
* A token used to continue a truncated list request.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Resources contained in this list response.
*
* @param DeploymentmanagerResource[] $resources
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return DeploymentmanagerResource[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourcesListResponse::class, 'Google_Service_DeploymentManager_ResourcesListResponse');

View File

@@ -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\DeploymentManager;
class SetAutoscalerLinkOperationMetadata extends \Google\Collection
{
protected $collection_key = 'zonalIgmIds';
/**
* List of zonal IGM IDs part of the RMIG.
*
* @var string[]
*/
public $zonalIgmIds;
/**
* Map of zone to an ID of the zonal IGM belonging to the RMIG.
*
* @var string[]
*/
public $zoneToIgmIds;
/**
* List of zonal IGM IDs part of the RMIG.
*
* @param string[] $zonalIgmIds
*/
public function setZonalIgmIds($zonalIgmIds)
{
$this->zonalIgmIds = $zonalIgmIds;
}
/**
* @return string[]
*/
public function getZonalIgmIds()
{
return $this->zonalIgmIds;
}
/**
* Map of zone to an ID of the zonal IGM belonging to the RMIG.
*
* @param string[] $zoneToIgmIds
*/
public function setZoneToIgmIds($zoneToIgmIds)
{
$this->zoneToIgmIds = $zoneToIgmIds;
}
/**
* @return string[]
*/
public function getZoneToIgmIds()
{
return $this->zoneToIgmIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetAutoscalerLinkOperationMetadata::class, 'Google_Service_DeploymentManager_SetAutoscalerLinkOperationMetadata');

View File

@@ -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\DeploymentManager;
class SetCommonInstanceMetadataOperationMetadata extends \Google\Model
{
/**
* [Output Only] The client operation id.
*
* @var string
*/
public $clientOperationId;
protected $perLocationOperationsType = SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo::class;
protected $perLocationOperationsDataType = 'map';
/**
* [Output Only] The client operation id.
*
* @param string $clientOperationId
*/
public function setClientOperationId($clientOperationId)
{
$this->clientOperationId = $clientOperationId;
}
/**
* @return string
*/
public function getClientOperationId()
{
return $this->clientOperationId;
}
/**
* [Output Only] Status information per location (location name is key).
* Example key: zones/us-central1-a
*
* @param SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo[] $perLocationOperations
*/
public function setPerLocationOperations($perLocationOperations)
{
$this->perLocationOperations = $perLocationOperations;
}
/**
* @return SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo[]
*/
public function getPerLocationOperations()
{
return $this->perLocationOperations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetCommonInstanceMetadataOperationMetadata::class, 'Google_Service_DeploymentManager_SetCommonInstanceMetadataOperationMetadata');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo extends \Google\Model
{
public const STATE_UNSPECIFIED = 'UNSPECIFIED';
/**
* Operation is not yet confirmed to have been created in the location.
*/
public const STATE_PROPAGATING = 'PROPAGATING';
/**
* Operation is confirmed to be in the location.
*/
public const STATE_PROPAGATED = 'PROPAGATED';
/**
* Operation not tracked in this location e.g. zone is marked as DOWN.
*/
public const STATE_ABANDONED = 'ABANDONED';
/**
* Operation is in an error state.
*/
public const STATE_FAILED = 'FAILED';
/**
* Operation has completed successfully.
*/
public const STATE_DONE = 'DONE';
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* [Output Only] Status of the action, which can be one of the following:
* `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
*
* @var string
*/
public $state;
/**
* [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* [Output Only] Status of the action, which can be one of the following:
* `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
*
* Accepted values: UNSPECIFIED, PROPAGATING, PROPAGATED, ABANDONED, FAILED,
* DONE
*
* @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(SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo::class, 'Google_Service_DeploymentManager_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo');

View File

@@ -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\DeploymentManager;
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_DeploymentManager_Status');

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeploymentManager;
class TargetConfiguration extends \Google\Collection
{
protected $collection_key = 'imports';
protected $configType = ConfigFile::class;
protected $configDataType = '';
protected $importsType = ImportFile::class;
protected $importsDataType = 'array';
/**
* The configuration to use for this deployment.
*
* @param ConfigFile $config
*/
public function setConfig(ConfigFile $config)
{
$this->config = $config;
}
/**
* @return ConfigFile
*/
public function getConfig()
{
return $this->config;
}
/**
* Specifies any files to import for this configuration. This can be used to
* import templates or other files. For example, you might import a text file
* in order to use the file in a template.
*
* @param ImportFile[] $imports
*/
public function setImports($imports)
{
$this->imports = $imports;
}
/**
* @return ImportFile[]
*/
public function getImports()
{
return $this->imports;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TargetConfiguration::class, 'Google_Service_DeploymentManager_TargetConfiguration');

View File

@@ -0,0 +1,51 @@
<?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\DeploymentManager;
class TestPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* The set of permissions to check for the 'resource'. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed.
*
* @var string[]
*/
public $permissions;
/**
* The set of permissions to check for the 'resource'. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestPermissionsRequest::class, 'Google_Service_DeploymentManager_TestPermissionsRequest');

View File

@@ -0,0 +1,51 @@
<?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\DeploymentManager;
class TestPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @var string[]
*/
public $permissions;
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestPermissionsResponse::class, 'Google_Service_DeploymentManager_TestPermissionsResponse');

View File

@@ -0,0 +1,129 @@
<?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\DeploymentManager;
class Type extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @var string
*/
public $insertTime;
/**
* Name of the type.
*
* @var string
*/
public $name;
protected $operationType = Operation::class;
protected $operationDataType = '';
/**
* Output only. Server defined URL for the resource.
*
* @var string
*/
public $selfLink;
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Creation timestamp in RFC3339 text format.
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* Name of the type.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The Operation that most recently ran, or is currently running,
* on this type.
*
* @param Operation $operation
*/
public function setOperation(Operation $operation)
{
$this->operation = $operation;
}
/**
* @return Operation
*/
public function getOperation()
{
return $this->operation;
}
/**
* Output only. Server defined URL for the resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Type::class, 'Google_Service_DeploymentManager_Type');

View File

@@ -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\DeploymentManager;
class TypesListResponse extends \Google\Collection
{
protected $collection_key = 'types';
/**
* A token used to continue a truncated list request.
*
* @var string
*/
public $nextPageToken;
protected $typesType = Type::class;
protected $typesDataType = 'array';
/**
* A token used to continue a truncated list request.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. A list of resource types supported by Deployment Manager.
*
* @param Type[] $types
*/
public function setTypes($types)
{
$this->types = $types;
}
/**
* @return Type[]
*/
public function getTypes()
{
return $this->types;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TypesListResponse::class, 'Google_Service_DeploymentManager_TypesListResponse');