gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class ApphubEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApphubEmpty::class, 'Google_Service_AppHub_ApphubEmpty');
@@ -0,0 +1,243 @@
<?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\AppHub;
class Application extends \Google\Model
{
/**
* Unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The Application is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The Application is ready to register Services and Workloads.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The Application is being deleted.
*/
public const STATE_DELETING = 'DELETING';
protected $attributesType = Attributes::class;
protected $attributesDataType = '';
/**
* Output only. Create time.
*
* @var string
*/
public $createTime;
/**
* Optional. User-defined description of an Application. Can have a maximum
* length of 2048 characters.
*
* @var string
*/
public $description;
/**
* Optional. User-defined name for the Application. Can have a maximum length
* of 63 characters.
*
* @var string
*/
public $displayName;
/**
* Identifier. The resource name of an Application. Format: `"projects/{host-
* project-id}/locations/{location}/applications/{application-id}"`
*
* @var string
*/
public $name;
protected $scopeType = Scope::class;
protected $scopeDataType = '';
/**
* Output only. Application state.
*
* @var string
*/
public $state;
/**
* Output only. A universally unique identifier (in UUID4 format) for the
* `Application`.
*
* @var string
*/
public $uid;
/**
* Output only. Update time.
*
* @var string
*/
public $updateTime;
/**
* Optional. Consumer provided attributes.
*
* @param Attributes $attributes
*/
public function setAttributes(Attributes $attributes)
{
$this->attributes = $attributes;
}
/**
* @return Attributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Output only. Create time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User-defined description of an Application. Can have a maximum
* length of 2048 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. User-defined name for the Application. Can have a maximum length
* of 63 characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Identifier. The resource name of an Application. Format: `"projects/{host-
* project-id}/locations/{location}/applications/{application-id}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. Defines what data can be included into this
* Application. Limits which Services and Workloads can be registered.
*
* @param Scope $scope
*/
public function setScope(Scope $scope)
{
$this->scope = $scope;
}
/**
* @return Scope
*/
public function getScope()
{
return $this->scope;
}
/**
* Output only. Application state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A universally unique identifier (in UUID4 format) for the
* `Application`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update time.
*
* @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(Application::class, 'Google_Service_AppHub_Application');
@@ -0,0 +1,109 @@
<?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\AppHub;
class AssetLocation extends \Google\Collection
{
protected $collection_key = 'parentAsset';
/**
* @var string
*/
public $ccfeRmsPath;
protected $expectedType = IsolationExpectations::class;
protected $expectedDataType = '';
protected $extraParametersType = ExtraParameter::class;
protected $extraParametersDataType = 'array';
protected $locationDataType = LocationData::class;
protected $locationDataDataType = 'array';
protected $parentAssetType = CloudAsset::class;
protected $parentAssetDataType = 'array';
/**
* @param string
*/
public function setCcfeRmsPath($ccfeRmsPath)
{
$this->ccfeRmsPath = $ccfeRmsPath;
}
/**
* @return string
*/
public function getCcfeRmsPath()
{
return $this->ccfeRmsPath;
}
/**
* @param IsolationExpectations
*/
public function setExpected(IsolationExpectations $expected)
{
$this->expected = $expected;
}
/**
* @return IsolationExpectations
*/
public function getExpected()
{
return $this->expected;
}
/**
* @param ExtraParameter[]
*/
public function setExtraParameters($extraParameters)
{
$this->extraParameters = $extraParameters;
}
/**
* @return ExtraParameter[]
*/
public function getExtraParameters()
{
return $this->extraParameters;
}
/**
* @param LocationData[]
*/
public function setLocationData($locationData)
{
$this->locationData = $locationData;
}
/**
* @return LocationData[]
*/
public function getLocationData()
{
return $this->locationData;
}
/**
* @param CloudAsset[]
*/
public function setParentAsset($parentAsset)
{
$this->parentAsset = $parentAsset;
}
/**
* @return CloudAsset[]
*/
public function getParentAsset()
{
return $this->parentAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetLocation::class, 'Google_Service_AppHub_AssetLocation');
@@ -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\AppHub;
class Attributes extends \Google\Collection
{
protected $collection_key = 'operatorOwners';
protected $businessOwnersType = ContactInfo::class;
protected $businessOwnersDataType = 'array';
protected $criticalityType = Criticality::class;
protected $criticalityDataType = '';
protected $developerOwnersType = ContactInfo::class;
protected $developerOwnersDataType = 'array';
protected $environmentType = Environment::class;
protected $environmentDataType = '';
protected $operatorOwnersType = ContactInfo::class;
protected $operatorOwnersDataType = 'array';
/**
* Optional. Business team that ensures user needs are met and value is
* delivered
*
* @param ContactInfo[] $businessOwners
*/
public function setBusinessOwners($businessOwners)
{
$this->businessOwners = $businessOwners;
}
/**
* @return ContactInfo[]
*/
public function getBusinessOwners()
{
return $this->businessOwners;
}
/**
* Optional. User-defined criticality information.
*
* @param Criticality $criticality
*/
public function setCriticality(Criticality $criticality)
{
$this->criticality = $criticality;
}
/**
* @return Criticality
*/
public function getCriticality()
{
return $this->criticality;
}
/**
* Optional. Developer team that owns development and coding.
*
* @param ContactInfo[] $developerOwners
*/
public function setDeveloperOwners($developerOwners)
{
$this->developerOwners = $developerOwners;
}
/**
* @return ContactInfo[]
*/
public function getDeveloperOwners()
{
return $this->developerOwners;
}
/**
* Optional. User-defined environment information.
*
* @param Environment $environment
*/
public function setEnvironment(Environment $environment)
{
$this->environment = $environment;
}
/**
* @return Environment
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* Optional. Operator team that ensures runtime and operations.
*
* @param ContactInfo[] $operatorOwners
*/
public function setOperatorOwners($operatorOwners)
{
$this->operatorOwners = $operatorOwners;
}
/**
* @return ContactInfo[]
*/
public function getOperatorOwners()
{
return $this->operatorOwners;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attributes::class, 'Google_Service_AppHub_Attributes');
@@ -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\AppHub;
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_AppHub_AuditConfig');
@@ -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\AppHub;
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_AppHub_AuditLogConfig');
+216
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\AppHub;
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_AppHub_Binding');
@@ -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\AppHub;
class BlobstoreLocation extends \Google\Collection
{
protected $collection_key = 'policyId';
/**
* @var string[]
*/
public $policyId;
/**
* @param string[]
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string[]
*/
public function getPolicyId()
{
return $this->policyId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlobstoreLocation::class, 'Google_Service_AppHub_BlobstoreLocation');
+159
View File
@@ -0,0 +1,159 @@
<?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\AppHub;
class Boundary extends \Google\Model
{
/**
* Unspecified type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* The Boundary automatically includes all descendants of the CRM node.
*/
public const TYPE_AUTOMATIC = 'AUTOMATIC';
/**
* The list of projects within the Boundary is managed by the user.
*/
public const TYPE_MANUAL = 'MANUAL';
/**
* The Boundary automatically includes all descendants of the CRM node, which
* is set via App Management folder capability.
*/
public const TYPE_MANAGED_AUTOMATIC = 'MANAGED_AUTOMATIC';
/**
* Output only. Create time.
*
* @var string
*/
public $createTime;
/**
* Optional. The resource name of the CRM node being attached to the boundary.
* Format: `projects/{project-number}` or `projects/{project-id}`
*
* @var string
*/
public $crmNode;
/**
* Identifier. The resource name of the boundary. Format:
* "projects/{project}/locations/{location}/boundary"
*
* @var string
*/
public $name;
/**
* Output only. Boundary type.
*
* @var string
*/
public $type;
/**
* Output only. Update time.
*
* @var string
*/
public $updateTime;
/**
* Output only. Create time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The resource name of the CRM node being attached to the boundary.
* Format: `projects/{project-number}` or `projects/{project-id}`
*
* @param string $crmNode
*/
public function setCrmNode($crmNode)
{
$this->crmNode = $crmNode;
}
/**
* @return string
*/
public function getCrmNode()
{
return $this->crmNode;
}
/**
* Identifier. The resource name of the boundary. Format:
* "projects/{project}/locations/{location}/boundary"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Boundary type.
*
* Accepted values: TYPE_UNSPECIFIED, AUTOMATIC, MANUAL, MANAGED_AUTOMATIC
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. Update time.
*
* @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(Boundary::class, 'Google_Service_AppHub_Boundary');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_AppHub_CancelOperationRequest');
+44
View File
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class Channel extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channel::class, 'Google_Service_AppHub_Channel');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class CloudAsset extends \Google\Model
{
/**
* @var string
*/
public $assetName;
/**
* @var string
*/
public $assetType;
/**
* @param string
*/
public function setAssetName($assetName)
{
$this->assetName = $assetName;
}
/**
* @return string
*/
public function getAssetName()
{
return $this->assetName;
}
/**
* @param string
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAsset::class, 'Google_Service_AppHub_CloudAsset');
@@ -0,0 +1,43 @@
<?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\AppHub;
class CloudAssetComposition extends \Google\Collection
{
protected $collection_key = 'childAsset';
protected $childAssetType = CloudAsset::class;
protected $childAssetDataType = 'array';
/**
* @param CloudAsset[]
*/
public function setChildAsset($childAsset)
{
$this->childAsset = $childAsset;
}
/**
* @return CloudAsset[]
*/
public function getChildAsset()
{
return $this->childAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAssetComposition::class, 'Google_Service_AppHub_CloudAssetComposition');
@@ -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\AppHub;
class ContactInfo extends \Google\Model
{
/**
* Optional. Contact's name. Can have a maximum length of 63 characters.
*
* @var string
*/
public $displayName;
/**
* Required. Email address of the contacts.
*
* @var string
*/
public $email;
/**
* Optional. Contact's name. Can have a maximum length of 63 characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Required. Email address of the contacts.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactInfo::class, 'Google_Service_AppHub_ContactInfo');
@@ -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\AppHub;
class Criticality extends \Google\Model
{
/**
* Unspecified type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Mission critical service, application or workload.
*/
public const TYPE_MISSION_CRITICAL = 'MISSION_CRITICAL';
/**
* High impact.
*/
public const TYPE_HIGH = 'HIGH';
/**
* Medium impact.
*/
public const TYPE_MEDIUM = 'MEDIUM';
/**
* Low impact.
*/
public const TYPE_LOW = 'LOW';
/**
* Required. Criticality Type.
*
* @var string
*/
public $type;
/**
* Required. Criticality Type.
*
* Accepted values: TYPE_UNSPECIFIED, MISSION_CRITICAL, HIGH, MEDIUM, LOW
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Criticality::class, 'Google_Service_AppHub_Criticality');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class DetachServiceProjectAttachmentRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DetachServiceProjectAttachmentRequest::class, 'Google_Service_AppHub_DetachServiceProjectAttachmentRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class DetachServiceProjectAttachmentResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DetachServiceProjectAttachmentResponse::class, 'Google_Service_AppHub_DetachServiceProjectAttachmentResponse');
@@ -0,0 +1,43 @@
<?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\AppHub;
class DirectLocationAssignment extends \Google\Collection
{
protected $collection_key = 'location';
protected $locationType = LocationAssignment::class;
protected $locationDataType = 'array';
/**
* @param LocationAssignment[]
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return LocationAssignment[]
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectLocationAssignment::class, 'Google_Service_AppHub_DirectLocationAssignment');
@@ -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\AppHub;
class DiscoveredService extends \Google\Model
{
/**
* Identifier. The resource name of the discovered service. Format:
* `"projects/{host-project-
* id}/locations/{location}/discoveredServices/{uuid}"`
*
* @var string
*/
public $name;
protected $servicePropertiesType = ServiceProperties::class;
protected $servicePropertiesDataType = '';
protected $serviceReferenceType = ServiceReference::class;
protected $serviceReferenceDataType = '';
/**
* Identifier. The resource name of the discovered service. Format:
* `"projects/{host-project-
* id}/locations/{location}/discoveredServices/{uuid}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Properties of an underlying compute resource that can comprise
* a Service. These are immutable.
*
* @param ServiceProperties $serviceProperties
*/
public function setServiceProperties(ServiceProperties $serviceProperties)
{
$this->serviceProperties = $serviceProperties;
}
/**
* @return ServiceProperties
*/
public function getServiceProperties()
{
return $this->serviceProperties;
}
/**
* Output only. Reference to an underlying networking resource that can
* comprise a Service. These are immutable.
*
* @param ServiceReference $serviceReference
*/
public function setServiceReference(ServiceReference $serviceReference)
{
$this->serviceReference = $serviceReference;
}
/**
* @return ServiceReference
*/
public function getServiceReference()
{
return $this->serviceReference;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiscoveredService::class, 'Google_Service_AppHub_DiscoveredService');
@@ -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\AppHub;
class DiscoveredWorkload extends \Google\Model
{
/**
* Identifier. The resource name of the discovered workload. Format:
* `"projects/{host-project-
* id}/locations/{location}/discoveredWorkloads/{uuid}"`
*
* @var string
*/
public $name;
protected $workloadPropertiesType = WorkloadProperties::class;
protected $workloadPropertiesDataType = '';
protected $workloadReferenceType = WorkloadReference::class;
protected $workloadReferenceDataType = '';
/**
* Identifier. The resource name of the discovered workload. Format:
* `"projects/{host-project-
* id}/locations/{location}/discoveredWorkloads/{uuid}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Properties of an underlying compute resource represented by
* the Workload. These are immutable.
*
* @param WorkloadProperties $workloadProperties
*/
public function setWorkloadProperties(WorkloadProperties $workloadProperties)
{
$this->workloadProperties = $workloadProperties;
}
/**
* @return WorkloadProperties
*/
public function getWorkloadProperties()
{
return $this->workloadProperties;
}
/**
* Output only. Reference of an underlying compute resource represented by the
* Workload. These are immutable.
*
* @param WorkloadReference $workloadReference
*/
public function setWorkloadReference(WorkloadReference $workloadReference)
{
$this->workloadReference = $workloadReference;
}
/**
* @return WorkloadReference
*/
public function getWorkloadReference()
{
return $this->workloadReference;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiscoveredWorkload::class, 'Google_Service_AppHub_DiscoveredWorkload');
@@ -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\AppHub;
class Environment extends \Google\Model
{
/**
* Unspecified type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Production environment.
*/
public const TYPE_PRODUCTION = 'PRODUCTION';
/**
* Staging environment.
*/
public const TYPE_STAGING = 'STAGING';
/**
* Test environment.
*/
public const TYPE_TEST = 'TEST';
/**
* Development environment.
*/
public const TYPE_DEVELOPMENT = 'DEVELOPMENT';
/**
* Required. Environment Type.
*
* @var string
*/
public $type;
/**
* Required. Environment Type.
*
* Accepted values: TYPE_UNSPECIFIED, PRODUCTION, STAGING, TEST, DEVELOPMENT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Environment::class, 'Google_Service_AppHub_Environment');
+122
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\AppHub;
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_AppHub_Expr');
@@ -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\AppHub;
class ExtendedMetadata extends \Google\Model
{
/**
* Output only. The metadata contents.
*
* @var array[]
*/
public $metadataStruct;
/**
* Output only. The metadata contents.
*
* @param array[] $metadataStruct
*/
public function setMetadataStruct($metadataStruct)
{
$this->metadataStruct = $metadataStruct;
}
/**
* @return array[]
*/
public function getMetadataStruct()
{
return $this->metadataStruct;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtendedMetadata::class, 'Google_Service_AppHub_ExtendedMetadata');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class ExtendedMetadataSchema extends \Google\Model
{
/**
* Output only. The JSON schema as a string.
*
* @var string
*/
public $jsonSchema;
/**
* Identifier. Resource name of the schema. Format:
* projects//locations//extendedMetadataSchemas/
*
* @var string
*/
public $name;
/**
* Output only. The version of the schema. New versions are required to be
* backwards compatible.
*
* @var string
*/
public $schemaVersion;
/**
* Output only. The JSON schema as a string.
*
* @param string $jsonSchema
*/
public function setJsonSchema($jsonSchema)
{
$this->jsonSchema = $jsonSchema;
}
/**
* @return string
*/
public function getJsonSchema()
{
return $this->jsonSchema;
}
/**
* Identifier. Resource name of the schema. Format:
* projects//locations//extendedMetadataSchemas/
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The version of the schema. New versions are required to be
* backwards compatible.
*
* @param string $schemaVersion
*/
public function setSchemaVersion($schemaVersion)
{
$this->schemaVersion = $schemaVersion;
}
/**
* @return string
*/
public function getSchemaVersion()
{
return $this->schemaVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtendedMetadataSchema::class, 'Google_Service_AppHub_ExtendedMetadataSchema');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class ExtraParameter extends \Google\Model
{
protected $regionalMigDistributionPolicyType = RegionalMigDistributionPolicy::class;
protected $regionalMigDistributionPolicyDataType = '';
/**
* @param RegionalMigDistributionPolicy
*/
public function setRegionalMigDistributionPolicy(RegionalMigDistributionPolicy $regionalMigDistributionPolicy)
{
$this->regionalMigDistributionPolicy = $regionalMigDistributionPolicy;
}
/**
* @return RegionalMigDistributionPolicy
*/
public function getRegionalMigDistributionPolicy()
{
return $this->regionalMigDistributionPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtraParameter::class, 'Google_Service_AppHub_ExtraParameter');
@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class FindUnregisteredServicesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var DiscoveredService[]
*/
public $discoveredServices;
protected $discoveredServicesType = DiscoveredService::class;
protected $discoveredServicesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param DiscoveredService[]
*/
public function setDiscoveredServices($discoveredServices)
{
$this->discoveredServices = $discoveredServices;
}
/**
* @return DiscoveredService[]
*/
public function getDiscoveredServices()
{
return $this->discoveredServices;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindUnregisteredServicesResponse::class, 'Google_Service_AppHub_FindUnregisteredServicesResponse');
@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class FindUnregisteredWorkloadsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var DiscoveredWorkload[]
*/
public $discoveredWorkloads;
protected $discoveredWorkloadsType = DiscoveredWorkload::class;
protected $discoveredWorkloadsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param DiscoveredWorkload[]
*/
public function setDiscoveredWorkloads($discoveredWorkloads)
{
$this->discoveredWorkloads = $discoveredWorkloads;
}
/**
* @return DiscoveredWorkload[]
*/
public function getDiscoveredWorkloads()
{
return $this->discoveredWorkloads;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindUnregisteredWorkloadsResponse::class, 'Google_Service_AppHub_FindUnregisteredWorkloadsResponse');
@@ -0,0 +1,66 @@
<?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\AppHub;
class FunctionalType extends \Google\Model
{
/**
* Unspecified type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Agent type.
*/
public const TYPE_AGENT = 'AGENT';
/**
* MCP Server type.
*/
public const TYPE_MCP_SERVER = 'MCP_SERVER';
/**
* Endpoint type.
*/
public const TYPE_ENDPOINT = 'ENDPOINT';
/**
* Output only. The functional type of a service or workload.
*
* @var string
*/
public $type;
/**
* Output only. The functional type of a service or workload.
*
* Accepted values: TYPE_UNSPECIFIED, AGENT, MCP_SERVER, ENDPOINT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FunctionalType::class, 'Google_Service_AppHub_FunctionalType');
@@ -0,0 +1,54 @@
<?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\AppHub;
class Identity extends \Google\Model
{
/**
* Output only. The principal of the identity. Supported formats: * `sa://my-
* sa@PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal
* ://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGE
* D_IDENTITY_ID` for Managed Workload Identity
*
* @var string
*/
public $principal;
/**
* Output only. The principal of the identity. Supported formats: * `sa://my-
* sa@PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal
* ://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGE
* D_IDENTITY_ID` for Managed Workload Identity
*
* @param string $principal
*/
public function setPrincipal($principal)
{
$this->principal = $principal;
}
/**
* @return string
*/
public function getPrincipal()
{
return $this->principal;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Identity::class, 'Google_Service_AppHub_Identity');
@@ -0,0 +1,168 @@
<?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\AppHub;
class IsolationExpectations extends \Google\Model
{
protected $requirementOverrideType = RequirementOverride::class;
protected $requirementOverrideDataType = '';
/**
* @var string
*/
public $ziOrgPolicy;
/**
* @var string
*/
public $ziRegionPolicy;
/**
* @var string
*/
public $ziRegionState;
/**
* @var string
*/
public $zoneIsolation;
/**
* @var string
*/
public $zoneSeparation;
/**
* @var string
*/
public $zsOrgPolicy;
/**
* @var string
*/
public $zsRegionState;
/**
* @param RequirementOverride
*/
public function setRequirementOverride(RequirementOverride $requirementOverride)
{
$this->requirementOverride = $requirementOverride;
}
/**
* @return RequirementOverride
*/
public function getRequirementOverride()
{
return $this->requirementOverride;
}
/**
* @param string
*/
public function setZiOrgPolicy($ziOrgPolicy)
{
$this->ziOrgPolicy = $ziOrgPolicy;
}
/**
* @return string
*/
public function getZiOrgPolicy()
{
return $this->ziOrgPolicy;
}
/**
* @param string
*/
public function setZiRegionPolicy($ziRegionPolicy)
{
$this->ziRegionPolicy = $ziRegionPolicy;
}
/**
* @return string
*/
public function getZiRegionPolicy()
{
return $this->ziRegionPolicy;
}
/**
* @param string
*/
public function setZiRegionState($ziRegionState)
{
$this->ziRegionState = $ziRegionState;
}
/**
* @return string
*/
public function getZiRegionState()
{
return $this->ziRegionState;
}
/**
* @param string
*/
public function setZoneIsolation($zoneIsolation)
{
$this->zoneIsolation = $zoneIsolation;
}
/**
* @return string
*/
public function getZoneIsolation()
{
return $this->zoneIsolation;
}
/**
* @param string
*/
public function setZoneSeparation($zoneSeparation)
{
$this->zoneSeparation = $zoneSeparation;
}
/**
* @return string
*/
public function getZoneSeparation()
{
return $this->zoneSeparation;
}
/**
* @param string
*/
public function setZsOrgPolicy($zsOrgPolicy)
{
$this->zsOrgPolicy = $zsOrgPolicy;
}
/**
* @return string
*/
public function getZsOrgPolicy()
{
return $this->zsOrgPolicy;
}
/**
* @param string
*/
public function setZsRegionState($zsRegionState)
{
$this->zsRegionState = $zsRegionState;
}
/**
* @return string
*/
public function getZsRegionState()
{
return $this->zsRegionState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IsolationExpectations::class, 'Google_Service_AppHub_IsolationExpectations');
@@ -0,0 +1,89 @@
<?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\AppHub;
class ListApplicationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $applicationsType = Application::class;
protected $applicationsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* List of Applications.
*
* @param Application[] $applications
*/
public function setApplications($applications)
{
$this->applications = $applications;
}
/**
* @return Application[]
*/
public function getApplications()
{
return $this->applications;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListApplicationsResponse::class, 'Google_Service_AppHub_ListApplicationsResponse');
@@ -0,0 +1,89 @@
<?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\AppHub;
class ListDiscoveredServicesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $discoveredServicesType = DiscoveredService::class;
protected $discoveredServicesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* List of Discovered Services.
*
* @param DiscoveredService[] $discoveredServices
*/
public function setDiscoveredServices($discoveredServices)
{
$this->discoveredServices = $discoveredServices;
}
/**
* @return DiscoveredService[]
*/
public function getDiscoveredServices()
{
return $this->discoveredServices;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDiscoveredServicesResponse::class, 'Google_Service_AppHub_ListDiscoveredServicesResponse');
@@ -0,0 +1,89 @@
<?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\AppHub;
class ListDiscoveredWorkloadsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $discoveredWorkloadsType = DiscoveredWorkload::class;
protected $discoveredWorkloadsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* List of Discovered Workloads.
*
* @param DiscoveredWorkload[] $discoveredWorkloads
*/
public function setDiscoveredWorkloads($discoveredWorkloads)
{
$this->discoveredWorkloads = $discoveredWorkloads;
}
/**
* @return DiscoveredWorkload[]
*/
public function getDiscoveredWorkloads()
{
return $this->discoveredWorkloads;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDiscoveredWorkloadsResponse::class, 'Google_Service_AppHub_ListDiscoveredWorkloadsResponse');
@@ -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\AppHub;
class ListExtendedMetadataSchemasResponse extends \Google\Collection
{
protected $collection_key = 'extendedMetadataSchemas';
protected $extendedMetadataSchemasType = ExtendedMetadataSchema::class;
protected $extendedMetadataSchemasDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* List of Extended Metadata Schemas.
*
* @param ExtendedMetadataSchema[] $extendedMetadataSchemas
*/
public function setExtendedMetadataSchemas($extendedMetadataSchemas)
{
$this->extendedMetadataSchemas = $extendedMetadataSchemas;
}
/**
* @return ExtendedMetadataSchema[]
*/
public function getExtendedMetadataSchemas()
{
return $this->extendedMetadataSchemas;
}
/**
* A token identifying a page of results the server should return.
*
* @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(ListExtendedMetadataSchemasResponse::class, 'Google_Service_AppHub_ListExtendedMetadataSchemasResponse');
@@ -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\AppHub;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @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(ListLocationsResponse::class, 'Google_Service_AppHub_ListLocationsResponse');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_AppHub_ListOperationsResponse');
@@ -0,0 +1,89 @@
<?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\AppHub;
class ListServiceProjectAttachmentsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $serviceProjectAttachmentsType = ServiceProjectAttachment::class;
protected $serviceProjectAttachmentsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of service project attachments.
*
* @param ServiceProjectAttachment[] $serviceProjectAttachments
*/
public function setServiceProjectAttachments($serviceProjectAttachments)
{
$this->serviceProjectAttachments = $serviceProjectAttachments;
}
/**
* @return ServiceProjectAttachment[]
*/
public function getServiceProjectAttachments()
{
return $this->serviceProjectAttachments;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServiceProjectAttachmentsResponse::class, 'Google_Service_AppHub_ListServiceProjectAttachmentsResponse');
@@ -0,0 +1,89 @@
<?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\AppHub;
class ListServicesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $servicesType = Service::class;
protected $servicesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of Services.
*
* @param Service[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return Service[]
*/
public function getServices()
{
return $this->services;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServicesResponse::class, 'Google_Service_AppHub_ListServicesResponse');
@@ -0,0 +1,89 @@
<?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\AppHub;
class ListWorkloadsResponse extends \Google\Collection
{
protected $collection_key = 'workloads';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $workloadsType = Workload::class;
protected $workloadsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* List of Workloads.
*
* @param Workload[] $workloads
*/
public function setWorkloads($workloads)
{
$this->workloads = $workloads;
}
/**
* @return Workload[]
*/
public function getWorkloads()
{
return $this->workloads;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkloadsResponse::class, 'Google_Service_AppHub_ListWorkloadsResponse');
+144
View File
@@ -0,0 +1,144 @@
<?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\AppHub;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @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(Location::class, 'Google_Service_AppHub_Location');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class LocationAssignment extends \Google\Model
{
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationAssignment::class, 'Google_Service_AppHub_LocationAssignment');
@@ -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\AppHub;
class LocationData extends \Google\Model
{
protected $blobstoreLocationType = BlobstoreLocation::class;
protected $blobstoreLocationDataType = '';
protected $childAssetLocationType = CloudAssetComposition::class;
protected $childAssetLocationDataType = '';
protected $directLocationType = DirectLocationAssignment::class;
protected $directLocationDataType = '';
protected $gcpProjectProxyType = TenantProjectProxy::class;
protected $gcpProjectProxyDataType = '';
protected $placerLocationType = PlacerLocation::class;
protected $placerLocationDataType = '';
protected $spannerLocationType = SpannerLocation::class;
protected $spannerLocationDataType = '';
/**
* @param BlobstoreLocation
*/
public function setBlobstoreLocation(BlobstoreLocation $blobstoreLocation)
{
$this->blobstoreLocation = $blobstoreLocation;
}
/**
* @return BlobstoreLocation
*/
public function getBlobstoreLocation()
{
return $this->blobstoreLocation;
}
/**
* @param CloudAssetComposition
*/
public function setChildAssetLocation(CloudAssetComposition $childAssetLocation)
{
$this->childAssetLocation = $childAssetLocation;
}
/**
* @return CloudAssetComposition
*/
public function getChildAssetLocation()
{
return $this->childAssetLocation;
}
/**
* @param DirectLocationAssignment
*/
public function setDirectLocation(DirectLocationAssignment $directLocation)
{
$this->directLocation = $directLocation;
}
/**
* @return DirectLocationAssignment
*/
public function getDirectLocation()
{
return $this->directLocation;
}
/**
* @param TenantProjectProxy
*/
public function setGcpProjectProxy(TenantProjectProxy $gcpProjectProxy)
{
$this->gcpProjectProxy = $gcpProjectProxy;
}
/**
* @return TenantProjectProxy
*/
public function getGcpProjectProxy()
{
return $this->gcpProjectProxy;
}
/**
* @param PlacerLocation
*/
public function setPlacerLocation(PlacerLocation $placerLocation)
{
$this->placerLocation = $placerLocation;
}
/**
* @return PlacerLocation
*/
public function getPlacerLocation()
{
return $this->placerLocation;
}
/**
* @param SpannerLocation
*/
public function setSpannerLocation(SpannerLocation $spannerLocation)
{
$this->spannerLocation = $spannerLocation;
}
/**
* @return SpannerLocation
*/
public function getSpannerLocation()
{
return $this->spannerLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationData::class, 'Google_Service_AppHub_LocationData');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class LookupDiscoveredServiceResponse extends \Google\Model
{
protected $discoveredServiceType = DiscoveredService::class;
protected $discoveredServiceDataType = '';
/**
* Discovered Service if exists, empty otherwise.
*
* @param DiscoveredService $discoveredService
*/
public function setDiscoveredService(DiscoveredService $discoveredService)
{
$this->discoveredService = $discoveredService;
}
/**
* @return DiscoveredService
*/
public function getDiscoveredService()
{
return $this->discoveredService;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupDiscoveredServiceResponse::class, 'Google_Service_AppHub_LookupDiscoveredServiceResponse');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class LookupDiscoveredWorkloadResponse extends \Google\Model
{
protected $discoveredWorkloadType = DiscoveredWorkload::class;
protected $discoveredWorkloadDataType = '';
/**
* Discovered Workload if exists, empty otherwise.
*
* @param DiscoveredWorkload $discoveredWorkload
*/
public function setDiscoveredWorkload(DiscoveredWorkload $discoveredWorkload)
{
$this->discoveredWorkload = $discoveredWorkload;
}
/**
* @return DiscoveredWorkload
*/
public function getDiscoveredWorkload()
{
return $this->discoveredWorkload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupDiscoveredWorkloadResponse::class, 'Google_Service_AppHub_LookupDiscoveredWorkloadResponse');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class LookupServiceProjectAttachmentResponse extends \Google\Model
{
protected $serviceProjectAttachmentType = ServiceProjectAttachment::class;
protected $serviceProjectAttachmentDataType = '';
/**
* Service project attachment for a project if exists, empty otherwise.
*
* @param ServiceProjectAttachment $serviceProjectAttachment
*/
public function setServiceProjectAttachment(ServiceProjectAttachment $serviceProjectAttachment)
{
$this->serviceProjectAttachment = $serviceProjectAttachment;
}
/**
* @return ServiceProjectAttachment
*/
public function getServiceProjectAttachment()
{
return $this->serviceProjectAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupServiceProjectAttachmentResponse::class, 'Google_Service_AppHub_LookupServiceProjectAttachmentResponse');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_AppHub_Operation');
@@ -0,0 +1,186 @@
<?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\AppHub;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_AppHub_OperationMetadata');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class PlacerLocation extends \Google\Model
{
/**
* @var string
*/
public $placerConfig;
/**
* @param string
*/
public function setPlacerConfig($placerConfig)
{
$this->placerConfig = $placerConfig;
}
/**
* @return string
*/
public function getPlacerConfig()
{
return $this->placerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlacerLocation::class, 'Google_Service_AppHub_PlacerLocation');
+165
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\AppHub;
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_AppHub_Policy');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class ReconciliationOperationMetadata extends \Google\Model
{
/**
* Unknown repair action.
*/
public const EXCLUSIVE_ACTION_UNKNOWN_REPAIR_ACTION = 'UNKNOWN_REPAIR_ACTION';
/**
* The resource has to be deleted. When using this bit, the CLH should fail
* the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in
* SideChannel.
*
* @deprecated
*/
public const EXCLUSIVE_ACTION_DELETE = 'DELETE';
/**
* This resource could not be repaired but the repair should be tried again at
* a later time. This can happen if there is a dependency that needs to be
* resolved first- e.g. if a parent resource must be repaired before a child
* resource.
*/
public const EXCLUSIVE_ACTION_RETRY = 'RETRY';
/**
* DEPRECATED. Use exclusive_action instead.
*
* @deprecated
* @var bool
*/
public $deleteResource;
/**
* Excluisive action returned by the CLH.
*
* @var string
*/
public $exclusiveAction;
/**
* DEPRECATED. Use exclusive_action instead.
*
* @deprecated
* @param bool $deleteResource
*/
public function setDeleteResource($deleteResource)
{
$this->deleteResource = $deleteResource;
}
/**
* @deprecated
* @return bool
*/
public function getDeleteResource()
{
return $this->deleteResource;
}
/**
* Excluisive action returned by the CLH.
*
* Accepted values: UNKNOWN_REPAIR_ACTION, DELETE, RETRY
*
* @param self::EXCLUSIVE_ACTION_* $exclusiveAction
*/
public function setExclusiveAction($exclusiveAction)
{
$this->exclusiveAction = $exclusiveAction;
}
/**
* @return self::EXCLUSIVE_ACTION_*
*/
public function getExclusiveAction()
{
return $this->exclusiveAction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReconciliationOperationMetadata::class, 'Google_Service_AppHub_ReconciliationOperationMetadata');
@@ -0,0 +1,61 @@
<?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\AppHub;
class RegionalMigDistributionPolicy extends \Google\Collection
{
protected $collection_key = 'zones';
/**
* @var int
*/
public $targetShape;
protected $zonesType = ZoneConfiguration::class;
protected $zonesDataType = 'array';
/**
* @param int
*/
public function setTargetShape($targetShape)
{
$this->targetShape = $targetShape;
}
/**
* @return int
*/
public function getTargetShape()
{
return $this->targetShape;
}
/**
* @param ZoneConfiguration[]
*/
public function setZones($zones)
{
$this->zones = $zones;
}
/**
* @return ZoneConfiguration[]
*/
public function getZones()
{
return $this->zones;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegionalMigDistributionPolicy::class, 'Google_Service_AppHub_RegionalMigDistributionPolicy');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class RegistrationType extends \Google\Model
{
/**
* Unspecified registration type. Defaults to EXCLUSIVE.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* The service can only be registered to one application.
*/
public const TYPE_EXCLUSIVE = 'EXCLUSIVE';
/**
* The service can be registered to multiple applications.
*/
public const TYPE_SHARED = 'SHARED';
/**
* Output only. The registration type of a service.
*
* @var string
*/
public $type;
/**
* Output only. The registration type of a service.
*
* Accepted values: TYPE_UNSPECIFIED, EXCLUSIVE, SHARED
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegistrationType::class, 'Google_Service_AppHub_RegistrationType');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class RequirementOverride extends \Google\Model
{
/**
* @var string
*/
public $ziOverride;
/**
* @var string
*/
public $zsOverride;
/**
* @param string
*/
public function setZiOverride($ziOverride)
{
$this->ziOverride = $ziOverride;
}
/**
* @return string
*/
public function getZiOverride()
{
return $this->ziOverride;
}
/**
* @param string
*/
public function setZsOverride($zsOverride)
{
$this->zsOverride = $zsOverride;
}
/**
* @return string
*/
public function getZsOverride()
{
return $this->zsOverride;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequirementOverride::class, 'Google_Service_AppHub_RequirementOverride');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $projects = $apphubService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_AppHub_Resource_Projects');
@@ -0,0 +1,175 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\Boundary;
use Google\Service\AppHub\DetachServiceProjectAttachmentRequest;
use Google\Service\AppHub\DetachServiceProjectAttachmentResponse;
use Google\Service\AppHub\ListLocationsResponse;
use Google\Service\AppHub\Location;
use Google\Service\AppHub\LookupServiceProjectAttachmentResponse;
use Google\Service\AppHub\Operation;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $locations = $apphubService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Detaches a service project from a host project. You can call this API from
* any service project without needing access to the host project that it is
* attached to. (locations.detachServiceProjectAttachment)
*
* @param string $name Required. Service project id and location to detach from
* a host project. Only global location is supported. Expected format:
* `projects/{project}/locations/{location}`.
* @param DetachServiceProjectAttachmentRequest $postBody
* @param array $optParams Optional parameters.
* @return DetachServiceProjectAttachmentResponse
* @throws \Google\Service\Exception
*/
public function detachServiceProjectAttachment($name, DetachServiceProjectAttachmentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('detachServiceProjectAttachment', [$params], DetachServiceProjectAttachmentResponse::class);
}
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Gets a Boundary. (locations.getBoundary)
*
* @param string $name Required. The name of the boundary to retrieve. Format:
* `projects/{project}/locations/{location}/boundary`.
* @param array $optParams Optional parameters.
* @return Boundary
* @throws \Google\Service\Exception
*/
public function getBoundary($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getBoundary', [$params], Boundary::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
/**
* Lists a service project attachment for a given service project. You can call
* this API from any project to find if it is attached to a host project.
* (locations.lookupServiceProjectAttachment)
*
* @param string $name Required. Service project ID and location to lookup
* service project attachment for. Only global location is supported. Expected
* format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
* @return LookupServiceProjectAttachmentResponse
* @throws \Google\Service\Exception
*/
public function lookupServiceProjectAttachment($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('lookupServiceProjectAttachment', [$params], LookupServiceProjectAttachmentResponse::class);
}
/**
* Updates a Boundary. (locations.updateBoundary)
*
* @param string $name Identifier. The resource name of the boundary. Format:
* "projects/{project}/locations/{location}/boundary"
* @param Boundary $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Boundary resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateBoundary($name, Boundary $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateBoundary', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_AppHub_Resource_ProjectsLocations');
@@ -0,0 +1,251 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\Application;
use Google\Service\AppHub\ListApplicationsResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\Policy;
use Google\Service\AppHub\SetIamPolicyRequest;
use Google\Service\AppHub\TestIamPermissionsRequest;
use Google\Service\AppHub\TestIamPermissionsResponse;
/**
* The "applications" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $applications = $apphubService->projects_locations_applications;
* </code>
*/
class ProjectsLocationsApplications extends \Google\Service\Resource
{
/**
* Creates an Application in a host project and location. (applications.create)
*
* @param string $parent Required. Project and location to create Application
* in. Expected format: `projects/{project}/locations/{location}`.
* @param Application $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string applicationId Required. The Application identifier. Must
* contain only lowercase letters, numbers or hyphens, with the first character
* a letter, the last a letter or a number, and a 63 character maximum.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Application $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an Application in a host project and location. (applications.delete)
*
* @param string $name Required. Fully qualified name of the Application to
* delete. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets an Application in a host project and location. (applications.get)
*
* @param string $name Required. Fully qualified name of the Application to
* fetch. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
* @return Application
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Application::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (applications.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists Applications in a host project and location.
* (applications.listProjectsLocationsApplications)
*
* @param string $parent Required. Project and location to list Applications on.
* Expected format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListApplicationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplications($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListApplicationsResponse::class);
}
/**
* Updates an Application in a host project and location. (applications.patch)
*
* @param string $name Identifier. The resource name of an Application. Format:
* `"projects/{host-project-id}/locations/{location}/applications/{application-
* id}"`
* @param Application $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Application resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. The API changes the values of the fields as specified in the
* update_mask. The API ignores the values of all fields not covered by the
* update_mask. You can also unset a field by not specifying it in the updated
* message, but adding the field to the mask. This clears whatever value the
* field previously had.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Application $postBody, $optParams = [])
{
$params = ['name' => $name, '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. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (applications.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (applications.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplications::class, 'Google_Service_AppHub_Resource_ProjectsLocationsApplications');
@@ -0,0 +1,175 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ListServicesResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\Service;
/**
* The "services" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $services = $apphubService->projects_locations_applications_services;
* </code>
*/
class ProjectsLocationsApplicationsServices extends \Google\Service\Resource
{
/**
* Creates a Service in an Application. (services.create)
*
* @param string $parent Required. Fully qualified name of the parent
* Application to create the Service in. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string serviceId Required. The Service identifier. Must contain
* only lowercase letters, numbers or hyphens, with the first character a
* letter, the last a letter or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Service $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Service from an Application. (services.delete)
*
* @param string $name Required. Fully qualified name of the Service to delete
* from an Application. Expected format: `projects/{project}/locations/{location
* }/applications/{application}/services/{service}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets a Service in an Application. (services.get)
*
* @param string $name Required. Fully qualified name of the Service to fetch.
* Expected format: `projects/{project}/locations/{location}/applications/{appli
* cation}/services/{service}`.
* @param array $optParams Optional parameters.
* @return Service
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Service::class);
}
/**
* Lists Services in an Application.
* (services.listProjectsLocationsApplicationsServices)
*
* @param string $parent Required. Fully qualified name of the parent
* Application to list Services for. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListServicesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplicationsServices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServicesResponse::class);
}
/**
* Updates a Service in an Application. (services.patch)
*
* @param string $name Identifier. The resource name of a Service. Format:
* `"projects/{host-project-id}/locations/{location}/applications/{application-
* id}/services/{service-id}"`
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Service resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. The API changes the values of the fields as specified in the
* update_mask. The API ignores the values of all fields not covered by the
* update_mask. You can also unset a field by not specifying it in the updated
* message, but adding the field to the mask. This clears whatever value the
* field previously had.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Service $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsServices::class, 'Google_Service_AppHub_Resource_ProjectsLocationsApplicationsServices');
@@ -0,0 +1,175 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ListWorkloadsResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\Workload;
/**
* The "workloads" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $workloads = $apphubService->projects_locations_applications_workloads;
* </code>
*/
class ProjectsLocationsApplicationsWorkloads extends \Google\Service\Resource
{
/**
* Creates a Workload in an Application. (workloads.create)
*
* @param string $parent Required. Fully qualified name of the Application to
* create Workload in. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param Workload $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string workloadId Required. The Workload identifier. Must contain
* only lowercase letters, numbers or hyphens, with the first character a
* letter, the last a letter or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Workload $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Workload from an Application. (workloads.delete)
*
* @param string $name Required. Fully qualified name of the Workload to delete
* from an Application. Expected format: `projects/{project}/locations/{location
* }/applications/{application}/workloads/{workload}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets a Workload in an Application. (workloads.get)
*
* @param string $name Required. Fully qualified name of the Workload to fetch.
* Expected format: `projects/{project}/locations/{location}/applications/{appli
* cation}/workloads/{workload}`.
* @param array $optParams Optional parameters.
* @return Workload
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Workload::class);
}
/**
* Lists Workloads in an Application.
* (workloads.listProjectsLocationsApplicationsWorkloads)
*
* @param string $parent Required. Fully qualified name of the parent
* Application to list Workloads for. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListWorkloadsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplicationsWorkloads($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkloadsResponse::class);
}
/**
* Updates a Workload in an Application. (workloads.patch)
*
* @param string $name Identifier. The resource name of the Workload. Format:
* `"projects/{host-project-id}/locations/{location}/applications/{application-
* id}/workloads/{workload-id}"`
* @param Workload $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Workload resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. The API changes the values of the fields as specified in the
* update_mask. The API ignores the values of all fields not covered by the
* update_mask. You can also unset a field by not specifying it in the updated
* message, but adding the field to the mask. This clears whatever value the
* field previously had.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Workload $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsWorkloads::class, 'Google_Service_AppHub_Resource_ProjectsLocationsApplicationsWorkloads');
@@ -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\AppHub\Resource;
use Google\Service\AppHub\DiscoveredService;
use Google\Service\AppHub\ListDiscoveredServicesResponse;
use Google\Service\AppHub\LookupDiscoveredServiceResponse;
/**
* The "discoveredServices" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $discoveredServices = $apphubService->projects_locations_discoveredServices;
* </code>
*/
class ProjectsLocationsDiscoveredServices extends \Google\Service\Resource
{
/**
* Gets a Discovered Service in a host project and location.
* (discoveredServices.get)
*
* @param string $name Required. Fully qualified name of the Discovered Service
* to fetch. Expected format: `projects/{project}/locations/{location}/discovere
* dServices/{discoveredService}`.
* @param array $optParams Optional parameters.
* @return DiscoveredService
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DiscoveredService::class);
}
/**
* Lists Discovered Services that can be added to an Application in a host
* project and location.
* (discoveredServices.listProjectsLocationsDiscoveredServices)
*
* @param string $parent Required. Project and location to list Discovered
* Services on. Expected format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListDiscoveredServicesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDiscoveredServices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDiscoveredServicesResponse::class);
}
/**
* Lists a Discovered Service in a host project and location, with a given
* resource URI. (discoveredServices.lookup)
*
* @param string $parent Required. Host project ID and location to lookup
* Discovered Service in. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string uri Required. Resource URI to find DiscoveredService for.
* Accepts both project number and project ID and does translation when needed.
* @return LookupDiscoveredServiceResponse
* @throws \Google\Service\Exception
*/
public function lookup($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupDiscoveredServiceResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDiscoveredServices::class, 'Google_Service_AppHub_Resource_ProjectsLocationsDiscoveredServices');
@@ -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\AppHub\Resource;
use Google\Service\AppHub\DiscoveredWorkload;
use Google\Service\AppHub\ListDiscoveredWorkloadsResponse;
use Google\Service\AppHub\LookupDiscoveredWorkloadResponse;
/**
* The "discoveredWorkloads" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $discoveredWorkloads = $apphubService->projects_locations_discoveredWorkloads;
* </code>
*/
class ProjectsLocationsDiscoveredWorkloads extends \Google\Service\Resource
{
/**
* Gets a Discovered Workload in a host project and location.
* (discoveredWorkloads.get)
*
* @param string $name Required. Fully qualified name of the Discovered Workload
* to fetch. Expected format: `projects/{project}/locations/{location}/discovere
* dWorkloads/{discoveredWorkload}`.
* @param array $optParams Optional parameters.
* @return DiscoveredWorkload
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DiscoveredWorkload::class);
}
/**
* Lists Discovered Workloads that can be added to an Application in a host
* project and location.
* (discoveredWorkloads.listProjectsLocationsDiscoveredWorkloads)
*
* @param string $parent Required. Project and location to list Discovered
* Workloads on. Expected format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListDiscoveredWorkloadsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDiscoveredWorkloads($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDiscoveredWorkloadsResponse::class);
}
/**
* Lists a Discovered Workload in a host project and location, with a given
* resource URI. (discoveredWorkloads.lookup)
*
* @param string $parent Required. Host project ID and location to lookup
* Discovered Workload in. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string uri Required. Resource URI to find Discovered Workload for.
* Accepts both project number and project ID and does translation when needed.
* @return LookupDiscoveredWorkloadResponse
* @throws \Google\Service\Exception
*/
public function lookup($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupDiscoveredWorkloadResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDiscoveredWorkloads::class, 'Google_Service_AppHub_Resource_ProjectsLocationsDiscoveredWorkloads');
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub\Resource;
use Google\Service\AppHub\ExtendedMetadataSchema;
use Google\Service\AppHub\ListExtendedMetadataSchemasResponse;
/**
* The "extendedMetadataSchemas" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $extendedMetadataSchemas = $apphubService->projects_locations_extendedMetadataSchemas;
* </code>
*/
class ProjectsLocationsExtendedMetadataSchemas extends \Google\Service\Resource
{
/**
* Gets an Extended Metadata Schema. (extendedMetadataSchemas.get)
*
* @param string $name Required. Schema resource name. Format: `projects/{projec
* t}/locations/{location}/extendedMetadataSchemas/{extended_metadata_schema}`.
* `{extended_metadata_schema}` has the format
* `"apphub.googleapis.com/{SchemaName}"`.
* @param array $optParams Optional parameters.
* @return ExtendedMetadataSchema
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ExtendedMetadataSchema::class);
}
/**
* Lists Extended Metadata Schemas available in a host project and location.
* (extendedMetadataSchemas.listProjectsLocationsExtendedMetadataSchemas)
*
* @param string $parent Required. Project and location to list Extended
* Metadata Schemas on. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListExtendedMetadataSchemasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsExtendedMetadataSchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExtendedMetadataSchemasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsExtendedMetadataSchemas::class, 'Google_Service_AppHub_Resource_ProjectsLocationsExtendedMetadataSchemas');
@@ -0,0 +1,121 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ApphubEmpty;
use Google\Service\AppHub\CancelOperationRequest;
use Google\Service\AppHub\ListOperationsResponse;
use Google\Service\AppHub\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $operations = $apphubService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return ApphubEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], ApphubEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return ApphubEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ApphubEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_AppHub_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,139 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ListServiceProjectAttachmentsResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\ServiceProjectAttachment;
/**
* The "serviceProjectAttachments" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $serviceProjectAttachments = $apphubService->projects_locations_serviceProjectAttachments;
* </code>
*/
class ProjectsLocationsServiceProjectAttachments extends \Google\Service\Resource
{
/**
* Attaches a service project to the host project.
* (serviceProjectAttachments.create)
*
* @param string $parent Required. Host project ID and location to which service
* project is being attached. Only global location is supported. Expected
* format: `projects/{project}/locations/{location}`.
* @param ServiceProjectAttachment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string serviceProjectAttachmentId Required. The service project
* attachment identifier must contain the project id of the service project
* specified in the service_project_attachment.service_project field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceProjectAttachment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a service project attachment. (serviceProjectAttachments.delete)
*
* @param string $name Required. Fully qualified name of the service project
* attachment to delete. Expected format: `projects/{project}/locations/{locatio
* n}/serviceProjectAttachments/{serviceProjectAttachment}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets a service project attachment. (serviceProjectAttachments.get)
*
* @param string $name Required. Fully qualified name of the service project
* attachment to retrieve. Expected format: `projects/{project}/locations/{locat
* ion}/serviceProjectAttachments/{serviceProjectAttachment}`.
* @param array $optParams Optional parameters.
* @return ServiceProjectAttachment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceProjectAttachment::class);
}
/**
* Lists service projects attached to the host project.
* (serviceProjectAttachments.listProjectsLocationsServiceProjectAttachments)
*
* @param string $parent Required. Host project ID and location to list service
* project attachments. Only global location is supported. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListServiceProjectAttachmentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceProjectAttachments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceProjectAttachmentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceProjectAttachments::class, 'Google_Service_AppHub_Resource_ProjectsLocationsServiceProjectAttachments');
+62
View File
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class Scope extends \Google\Model
{
/**
* Unspecified type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Regional type.
*/
public const TYPE_REGIONAL = 'REGIONAL';
/**
* Global type.
*/
public const TYPE_GLOBAL = 'GLOBAL';
/**
* Required. Scope Type.
*
* @var string
*/
public $type;
/**
* Required. Scope Type.
*
* Accepted values: TYPE_UNSPECIFIED, REGIONAL, GLOBAL
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Scope::class, 'Google_Service_AppHub_Scope');
+290
View File
@@ -0,0 +1,290 @@
<?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\AppHub;
class Service extends \Google\Model
{
/**
* Unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The service is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The service is ready.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The service is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The underlying networking resources have been deleted.
*/
public const STATE_DETACHED = 'DETACHED';
protected $attributesType = Attributes::class;
protected $attributesDataType = '';
/**
* Output only. Create time.
*
* @var string
*/
public $createTime;
/**
* Optional. User-defined description of a Service. Can have a maximum length
* of 2048 characters.
*
* @var string
*/
public $description;
/**
* Required. Immutable. The resource name of the original discovered service.
*
* @var string
*/
public $discoveredService;
/**
* Optional. User-defined name for the Service. Can have a maximum length of
* 63 characters.
*
* @var string
*/
public $displayName;
/**
* Identifier. The resource name of a Service. Format: `"projects/{host-
* project-id}/locations/{location}/applications/{application-
* id}/services/{service-id}"`
*
* @var string
*/
public $name;
protected $servicePropertiesType = ServiceProperties::class;
protected $servicePropertiesDataType = '';
protected $serviceReferenceType = ServiceReference::class;
protected $serviceReferenceDataType = '';
/**
* Output only. Service state.
*
* @var string
*/
public $state;
/**
* Output only. A universally unique identifier (UUID) for the `Service` in
* the UUID4 format.
*
* @var string
*/
public $uid;
/**
* Output only. Update time.
*
* @var string
*/
public $updateTime;
/**
* Optional. Consumer provided attributes.
*
* @param Attributes $attributes
*/
public function setAttributes(Attributes $attributes)
{
$this->attributes = $attributes;
}
/**
* @return Attributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Output only. Create time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User-defined description of a Service. Can have a maximum length
* of 2048 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Immutable. The resource name of the original discovered service.
*
* @param string $discoveredService
*/
public function setDiscoveredService($discoveredService)
{
$this->discoveredService = $discoveredService;
}
/**
* @return string
*/
public function getDiscoveredService()
{
return $this->discoveredService;
}
/**
* Optional. User-defined name for the Service. Can have a maximum length of
* 63 characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Identifier. The resource name of a Service. Format: `"projects/{host-
* project-id}/locations/{location}/applications/{application-
* id}/services/{service-id}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Properties of an underlying compute resource that can comprise
* a Service. These are immutable.
*
* @param ServiceProperties $serviceProperties
*/
public function setServiceProperties(ServiceProperties $serviceProperties)
{
$this->serviceProperties = $serviceProperties;
}
/**
* @return ServiceProperties
*/
public function getServiceProperties()
{
return $this->serviceProperties;
}
/**
* Output only. Reference to an underlying networking resource that can
* comprise a Service. These are immutable.
*
* @param ServiceReference $serviceReference
*/
public function setServiceReference(ServiceReference $serviceReference)
{
$this->serviceReference = $serviceReference;
}
/**
* @return ServiceReference
*/
public function getServiceReference()
{
return $this->serviceReference;
}
/**
* Output only. Service state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, DETACHED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A universally unique identifier (UUID) for the `Service` in
* the UUID4 format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update time.
*
* @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(Service::class, 'Google_Service_AppHub_Service');
@@ -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\AppHub;
class ServiceProjectAttachment extends \Google\Model
{
/**
* Unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The ServiceProjectAttachment is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The ServiceProjectAttachment is ready. This means Services and Workloads
* under the corresponding ServiceProjectAttachment is ready for registration.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The ServiceProjectAttachment is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Output only. Create time.
*
* @var string
*/
public $createTime;
/**
* Identifier. The resource name of a ServiceProjectAttachment. Format:
* `"projects/{host-project-
* id}/locations/global/serviceProjectAttachments/{service-project-id}."`
*
* @var string
*/
public $name;
/**
* Required. Immutable. Service project name in the format: `"projects/abc"`
* or `"projects/123"`. As input, project name with either project id or
* number are accepted. As output, this field will contain project number.
*
* @var string
*/
public $serviceProject;
/**
* Output only. ServiceProjectAttachment state.
*
* @var string
*/
public $state;
/**
* Output only. A globally unique identifier (in UUID4 format) for the
* `ServiceProjectAttachment`.
*
* @var string
*/
public $uid;
/**
* Output only. Create time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Identifier. The resource name of a ServiceProjectAttachment. Format:
* `"projects/{host-project-
* id}/locations/global/serviceProjectAttachments/{service-project-id}."`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. Service project name in the format: `"projects/abc"`
* or `"projects/123"`. As input, project name with either project id or
* number are accepted. As output, this field will contain project number.
*
* @param string $serviceProject
*/
public function setServiceProject($serviceProject)
{
$this->serviceProject = $serviceProject;
}
/**
* @return string
*/
public function getServiceProject()
{
return $this->serviceProject;
}
/**
* Output only. ServiceProjectAttachment state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A globally unique identifier (in UUID4 format) for the
* `ServiceProjectAttachment`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceProjectAttachment::class, 'Google_Service_AppHub_ServiceProjectAttachment');
@@ -0,0 +1,173 @@
<?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\AppHub;
class ServiceProperties extends \Google\Model
{
protected $extendedMetadataType = ExtendedMetadata::class;
protected $extendedMetadataDataType = 'map';
protected $functionalTypeType = FunctionalType::class;
protected $functionalTypeDataType = '';
/**
* Output only. The service project identifier that the underlying cloud
* resource resides in.
*
* @var string
*/
public $gcpProject;
protected $identityType = Identity::class;
protected $identityDataType = '';
/**
* Output only. The location that the underlying resource resides in, for
* example, us-west1.
*
* @var string
*/
public $location;
protected $registrationTypeType = RegistrationType::class;
protected $registrationTypeDataType = '';
/**
* Output only. The location that the underlying resource resides in if it is
* zonal, for example, us-west1-a).
*
* @var string
*/
public $zone;
/**
* Output only. Additional metadata specific to the resource type. The key is
* a string that identifies the type of metadata and the value is the metadata
* contents specific to that type. Key format:
* `apphub.googleapis.com/{metadataType}`
*
* @param ExtendedMetadata[] $extendedMetadata
*/
public function setExtendedMetadata($extendedMetadata)
{
$this->extendedMetadata = $extendedMetadata;
}
/**
* @return ExtendedMetadata[]
*/
public function getExtendedMetadata()
{
return $this->extendedMetadata;
}
/**
* Output only. The type of the service.
*
* @param FunctionalType $functionalType
*/
public function setFunctionalType(FunctionalType $functionalType)
{
$this->functionalType = $functionalType;
}
/**
* @return FunctionalType
*/
public function getFunctionalType()
{
return $this->functionalType;
}
/**
* Output only. The service project identifier that the underlying cloud
* resource resides in.
*
* @param string $gcpProject
*/
public function setGcpProject($gcpProject)
{
$this->gcpProject = $gcpProject;
}
/**
* @return string
*/
public function getGcpProject()
{
return $this->gcpProject;
}
/**
* Output only. The identity associated with the service.
*
* @param Identity $identity
*/
public function setIdentity(Identity $identity)
{
$this->identity = $identity;
}
/**
* @return Identity
*/
public function getIdentity()
{
return $this->identity;
}
/**
* Output only. The location that the underlying resource resides in, for
* example, us-west1.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Output only. The registration type of the service.
*
* @param RegistrationType $registrationType
*/
public function setRegistrationType(RegistrationType $registrationType)
{
$this->registrationType = $registrationType;
}
/**
* @return RegistrationType
*/
public function getRegistrationType()
{
return $this->registrationType;
}
/**
* Output only. The location that the underlying resource resides in if it is
* zonal, for example, us-west1-a).
*
* @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(ServiceProperties::class, 'Google_Service_AppHub_ServiceProperties');
@@ -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\AppHub;
class ServiceReference extends \Google\Model
{
/**
* Output only. The underlying resource URI. For example, URI of Forwarding
* Rule, URL Map, and Backend Service.
*
* @var string
*/
public $uri;
/**
* Output only. The underlying resource URI. For example, URI of Forwarding
* Rule, URL Map, and Backend Service.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceReference::class, 'Google_Service_AppHub_ServiceReference');
@@ -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\AppHub;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @var string
*/
public $updateMask;
/**
* 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 a valid policy
* but certain Google Cloud services (such as Projects) might reject them.
*
* @param Policy $policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @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(SetIamPolicyRequest::class, 'Google_Service_AppHub_SetIamPolicyRequest');
@@ -0,0 +1,63 @@
<?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\AppHub;
class SpannerLocation extends \Google\Collection
{
protected $collection_key = 'dbName';
/**
* @var string[]
*/
public $backupName;
/**
* @var string[]
*/
public $dbName;
/**
* @param string[]
*/
public function setBackupName($backupName)
{
$this->backupName = $backupName;
}
/**
* @return string[]
*/
public function getBackupName()
{
return $this->backupName;
}
/**
* @param string[]
*/
public function setDbName($dbName)
{
$this->dbName = $dbName;
}
/**
* @return string[]
*/
public function getDbName()
{
return $this->dbName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpannerLocation::class, 'Google_Service_AppHub_SpannerLocation');
+99
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\AppHub;
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_AppHub_Status');
@@ -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\AppHub;
class TenantProjectProxy extends \Google\Collection
{
protected $collection_key = 'projectNumbers';
/**
* @var string[]
*/
public $projectNumbers;
/**
* @param string[]
*/
public function setProjectNumbers($projectNumbers)
{
$this->projectNumbers = $projectNumbers;
}
/**
* @return string[]
*/
public function getProjectNumbers()
{
return $this->projectNumbers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TenantProjectProxy::class, 'Google_Service_AppHub_TenantProjectProxy');
@@ -0,0 +1,55 @@
<?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\AppHub;
class TestIamPermissionsRequest 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. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @var string[]
*/
public $permissions;
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @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(TestIamPermissionsRequest::class, 'Google_Service_AppHub_TestIamPermissionsRequest');
@@ -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\AppHub;
class TestIamPermissionsResponse 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(TestIamPermissionsResponse::class, 'Google_Service_AppHub_TestIamPermissionsResponse');
+290
View File
@@ -0,0 +1,290 @@
<?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\AppHub;
class Workload extends \Google\Model
{
/**
* Unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The Workload is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The Workload is ready.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The Workload is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The underlying compute resources have been deleted.
*/
public const STATE_DETACHED = 'DETACHED';
protected $attributesType = Attributes::class;
protected $attributesDataType = '';
/**
* Output only. Create time.
*
* @var string
*/
public $createTime;
/**
* Optional. User-defined description of a Workload. Can have a maximum length
* of 2048 characters.
*
* @var string
*/
public $description;
/**
* Required. Immutable. The resource name of the original discovered workload.
*
* @var string
*/
public $discoveredWorkload;
/**
* Optional. User-defined name for the Workload. Can have a maximum length of
* 63 characters.
*
* @var string
*/
public $displayName;
/**
* Identifier. The resource name of the Workload. Format: `"projects/{host-
* project-id}/locations/{location}/applications/{application-
* id}/workloads/{workload-id}"`
*
* @var string
*/
public $name;
/**
* Output only. Workload state.
*
* @var string
*/
public $state;
/**
* Output only. A universally unique identifier (UUID) for the `Workload` in
* the UUID4 format.
*
* @var string
*/
public $uid;
/**
* Output only. Update time.
*
* @var string
*/
public $updateTime;
protected $workloadPropertiesType = WorkloadProperties::class;
protected $workloadPropertiesDataType = '';
protected $workloadReferenceType = WorkloadReference::class;
protected $workloadReferenceDataType = '';
/**
* Optional. Consumer provided attributes.
*
* @param Attributes $attributes
*/
public function setAttributes(Attributes $attributes)
{
$this->attributes = $attributes;
}
/**
* @return Attributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Output only. Create time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. User-defined description of a Workload. Can have a maximum length
* of 2048 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Immutable. The resource name of the original discovered workload.
*
* @param string $discoveredWorkload
*/
public function setDiscoveredWorkload($discoveredWorkload)
{
$this->discoveredWorkload = $discoveredWorkload;
}
/**
* @return string
*/
public function getDiscoveredWorkload()
{
return $this->discoveredWorkload;
}
/**
* Optional. User-defined name for the Workload. Can have a maximum length of
* 63 characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Identifier. The resource name of the Workload. Format: `"projects/{host-
* project-id}/locations/{location}/applications/{application-
* id}/workloads/{workload-id}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Workload state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, DETACHED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A universally unique identifier (UUID) for the `Workload` in
* the UUID4 format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update time.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. Properties of an underlying compute resource represented by
* the Workload. These are immutable.
*
* @param WorkloadProperties $workloadProperties
*/
public function setWorkloadProperties(WorkloadProperties $workloadProperties)
{
$this->workloadProperties = $workloadProperties;
}
/**
* @return WorkloadProperties
*/
public function getWorkloadProperties()
{
return $this->workloadProperties;
}
/**
* Output only. Reference of an underlying compute resource represented by the
* Workload. These are immutable.
*
* @param WorkloadReference $workloadReference
*/
public function setWorkloadReference(WorkloadReference $workloadReference)
{
$this->workloadReference = $workloadReference;
}
/**
* @return WorkloadReference
*/
public function getWorkloadReference()
{
return $this->workloadReference;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Workload::class, 'Google_Service_AppHub_Workload');
@@ -0,0 +1,155 @@
<?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\AppHub;
class WorkloadProperties extends \Google\Model
{
protected $extendedMetadataType = ExtendedMetadata::class;
protected $extendedMetadataDataType = 'map';
protected $functionalTypeType = FunctionalType::class;
protected $functionalTypeDataType = '';
/**
* Output only. The service project identifier that the underlying cloud
* resource resides in. Empty for non-cloud resources.
*
* @var string
*/
public $gcpProject;
protected $identityType = Identity::class;
protected $identityDataType = '';
/**
* Output only. The location that the underlying compute resource resides in
* (for example, us-west1).
*
* @var string
*/
public $location;
/**
* Output only. The location that the underlying compute resource resides in
* if it is zonal (for example, us-west1-a).
*
* @var string
*/
public $zone;
/**
* Output only. Additional metadata specific to the resource type. The key is
* a string that identifies the type of metadata and the value is the metadata
* contents specific to that type. Key format:
* `apphub.googleapis.com/{metadataType}`
*
* @param ExtendedMetadata[] $extendedMetadata
*/
public function setExtendedMetadata($extendedMetadata)
{
$this->extendedMetadata = $extendedMetadata;
}
/**
* @return ExtendedMetadata[]
*/
public function getExtendedMetadata()
{
return $this->extendedMetadata;
}
/**
* Output only. The type of the workload.
*
* @param FunctionalType $functionalType
*/
public function setFunctionalType(FunctionalType $functionalType)
{
$this->functionalType = $functionalType;
}
/**
* @return FunctionalType
*/
public function getFunctionalType()
{
return $this->functionalType;
}
/**
* Output only. The service project identifier that the underlying cloud
* resource resides in. Empty for non-cloud resources.
*
* @param string $gcpProject
*/
public function setGcpProject($gcpProject)
{
$this->gcpProject = $gcpProject;
}
/**
* @return string
*/
public function getGcpProject()
{
return $this->gcpProject;
}
/**
* Output only. The identity associated with the workload.
*
* @param Identity $identity
*/
public function setIdentity(Identity $identity)
{
$this->identity = $identity;
}
/**
* @return Identity
*/
public function getIdentity()
{
return $this->identity;
}
/**
* Output only. The location that the underlying compute resource resides in
* (for example, us-west1).
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Output only. The location that the underlying compute resource resides in
* if it is zonal (for example, us-west1-a).
*
* @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(WorkloadProperties::class, 'Google_Service_AppHub_WorkloadProperties');
@@ -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\AppHub;
class WorkloadReference extends \Google\Model
{
/**
* Output only. The underlying compute resource uri.
*
* @var string
*/
public $uri;
/**
* Output only. The underlying compute resource uri.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkloadReference::class, 'Google_Service_AppHub_WorkloadReference');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AppHub;
class ZoneConfiguration extends \Google\Model
{
/**
* @var string
*/
public $zone;
/**
* @param string
*/
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(ZoneConfiguration::class, 'Google_Service_AppHub_ZoneConfiguration');