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,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\SaaSServiceManagement;
class Aggregate extends \Google\Model
{
/**
* Required. Number of records in the group.
*
* @var int
*/
public $count;
/**
* Required. Group by which to aggregate.
*
* @var string
*/
public $group;
/**
* Required. Number of records in the group.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Required. Group by which to aggregate.
*
* @param string $group
*/
public function setGroup($group)
{
$this->group = $group;
}
/**
* @return string
*/
public function getGroup()
{
return $this->group;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Aggregate::class, 'Google_Service_SaaSServiceManagement_Aggregate');
@@ -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\SaaSServiceManagement;
class Blueprint extends \Google\Model
{
/**
* Output only. Type of the engine used to actuate the blueprint. e.g.
* terraform, helm etc.
*
* @var string
*/
public $engine;
/**
* Optional. Immutable. URI to a blueprint used by the Unit (required unless
* unitKind or release is set).
*
* @var string
*/
public $package;
/**
* Output only. Version metadata if present on the blueprint.
*
* @var string
*/
public $version;
/**
* Output only. Type of the engine used to actuate the blueprint. e.g.
* terraform, helm etc.
*
* @param string $engine
*/
public function setEngine($engine)
{
$this->engine = $engine;
}
/**
* @return string
*/
public function getEngine()
{
return $this->engine;
}
/**
* Optional. Immutable. URI to a blueprint used by the Unit (required unless
* unitKind or release is set).
*
* @param string $package
*/
public function setPackage($package)
{
$this->package = $package;
}
/**
* @return string
*/
public function getPackage()
{
return $this->package;
}
/**
* Output only. Version metadata if present on the blueprint.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Blueprint::class, 'Google_Service_SaaSServiceManagement_Blueprint');
@@ -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\SaaSServiceManagement;
class Dependency extends \Google\Model
{
/**
* Required. An alias for the dependency. Used for input variable mapping.
*
* @var string
*/
public $alias;
/**
* Required. Immutable. The unit kind of the dependency.
*
* @var string
*/
public $unitKind;
/**
* Required. An alias for the dependency. Used for input variable mapping.
*
* @param string $alias
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* Required. Immutable. The unit kind of the dependency.
*
* @param string $unitKind
*/
public function setUnitKind($unitKind)
{
$this->unitKind = $unitKind;
}
/**
* @return string
*/
public function getUnitKind()
{
return $this->unitKind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dependency::class, 'Google_Service_SaaSServiceManagement_Dependency');
@@ -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\SaaSServiceManagement;
class Deprovision extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deprovision::class, 'Google_Service_SaaSServiceManagement_Deprovision');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class ErrorBudget extends \Google\Model
{
/**
* Optional. The maximum number of failed units allowed in a location without
* pausing the rollout.
*
* @var int
*/
public $allowedCount;
/**
* Optional. The maximum percentage of units allowed to fail (0, 100] within a
* location without pausing the rollout.
*
* @var int
*/
public $allowedPercentage;
/**
* Optional. The maximum number of failed units allowed in a location without
* pausing the rollout.
*
* @param int $allowedCount
*/
public function setAllowedCount($allowedCount)
{
$this->allowedCount = $allowedCount;
}
/**
* @return int
*/
public function getAllowedCount()
{
return $this->allowedCount;
}
/**
* Optional. The maximum percentage of units allowed to fail (0, 100] within a
* location without pausing the rollout.
*
* @param int $allowedPercentage
*/
public function setAllowedPercentage($allowedPercentage)
{
$this->allowedPercentage = $allowedPercentage;
}
/**
* @return int
*/
public function getAllowedPercentage()
{
return $this->allowedPercentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorBudget::class, 'Google_Service_SaaSServiceManagement_ErrorBudget');
@@ -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\SaaSServiceManagement;
class FlagUpdate extends \Google\Model
{
/**
* Required. Flag release being applied by UnitOperation.
*
* @var string
*/
public $flagRelease;
/**
* Required. Flag release being applied by UnitOperation.
*
* @param string $flagRelease
*/
public function setFlagRelease($flagRelease)
{
$this->flagRelease = $flagRelease;
}
/**
* @return string
*/
public function getFlagRelease()
{
return $this->flagRelease;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FlagUpdate::class, 'Google_Service_SaaSServiceManagement_FlagUpdate');
@@ -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\SaaSServiceManagement;
class FromMapping extends \Google\Model
{
/**
* Required. Alias of the dependency that the outputVariable will pass its
* value to
*
* @var string
*/
public $dependency;
/**
* Required. Name of the outputVariable on the dependency
*
* @var string
*/
public $outputVariable;
/**
* Required. Alias of the dependency that the outputVariable will pass its
* value to
*
* @param string $dependency
*/
public function setDependency($dependency)
{
$this->dependency = $dependency;
}
/**
* @return string
*/
public function getDependency()
{
return $this->dependency;
}
/**
* Required. Name of the outputVariable on the dependency
*
* @param string $outputVariable
*/
public function setOutputVariable($outputVariable)
{
$this->outputVariable = $outputVariable;
}
/**
* @return string
*/
public function getOutputVariable()
{
return $this->outputVariable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FromMapping::class, 'Google_Service_SaaSServiceManagement_FromMapping');
@@ -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\SaaSServiceManagement;
class GoogleCloudLocationLocation 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(GoogleCloudLocationLocation::class, 'Google_Service_SaaSServiceManagement_GoogleCloudLocationLocation');
@@ -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\SaaSServiceManagement;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = GoogleCloudLocationLocation::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 GoogleCloudLocationLocation[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return GoogleCloudLocationLocation[]
*/
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_SaaSServiceManagement_ListLocationsResponse');
@@ -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\SaaSServiceManagement;
class ListReleasesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent
* ListReleases call to list the next page. If empty, there are no more pages.
*
* @var string
*/
public $nextPageToken;
protected $releasesType = Release::class;
protected $releasesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent
* ListReleases call to list the next page. If empty, there are no more pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting releases.
*
* @param Release[] $releases
*/
public function setReleases($releases)
{
$this->releases = $releases;
}
/**
* @return Release[]
*/
public function getReleases()
{
return $this->releases;
}
/**
* 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(ListReleasesResponse::class, 'Google_Service_SaaSServiceManagement_ListReleasesResponse');
@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class ListReplicationsInternalResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent
* ListReplicationsInternal call to list the next page. If empty, there are no
* more pages.
*
* @var string
*/
public $nextPageToken;
protected $replicationsInternalType = ReplicationInternal::class;
protected $replicationsInternalDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent
* ListReplicationsInternal call to list the next page. If empty, there are no
* more pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting replication internals.
*
* @param ReplicationInternal[] $replicationsInternal
*/
public function setReplicationsInternal($replicationsInternal)
{
$this->replicationsInternal = $replicationsInternal;
}
/**
* @return ReplicationInternal[]
*/
public function getReplicationsInternal()
{
return $this->replicationsInternal;
}
/**
* 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(ListReplicationsInternalResponse::class, 'Google_Service_SaaSServiceManagement_ListReplicationsInternalResponse');
@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class ListRolloutKindsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent
* ListRolloutKinds call to list the next page. If empty, there are no more
* pages.
*
* @var string
*/
public $nextPageToken;
protected $rolloutKindsType = RolloutKind::class;
protected $rolloutKindsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent
* ListRolloutKinds call to list the next page. If empty, there are no more
* pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting rollout kinds.
*
* @param RolloutKind[] $rolloutKinds
*/
public function setRolloutKinds($rolloutKinds)
{
$this->rolloutKinds = $rolloutKinds;
}
/**
* @return RolloutKind[]
*/
public function getRolloutKinds()
{
return $this->rolloutKinds;
}
/**
* 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(ListRolloutKindsResponse::class, 'Google_Service_SaaSServiceManagement_ListRolloutKindsResponse');
@@ -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\SaaSServiceManagement;
class ListRolloutsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent
* ListRollouts call to list the next page. If empty, there are no more pages.
*
* @var string
*/
public $nextPageToken;
protected $rolloutsType = Rollout::class;
protected $rolloutsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent
* ListRollouts call to list the next page. If empty, there are no more pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting rollouts.
*
* @param Rollout[] $rollouts
*/
public function setRollouts($rollouts)
{
$this->rollouts = $rollouts;
}
/**
* @return Rollout[]
*/
public function getRollouts()
{
return $this->rollouts;
}
/**
* 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(ListRolloutsResponse::class, 'Google_Service_SaaSServiceManagement_ListRolloutsResponse');
@@ -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\SaaSServiceManagement;
class ListSaasResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent ListSaas
* call to list the next page. If empty, there are no more pages.
*
* @var string
*/
public $nextPageToken;
protected $saasType = Saas::class;
protected $saasDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent ListSaas
* call to list the next page. If empty, there are no more pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting saas.
*
* @param Saas[] $saas
*/
public function setSaas($saas)
{
$this->saas = $saas;
}
/**
* @return Saas[]
*/
public function getSaas()
{
return $this->saas;
}
/**
* 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(ListSaasResponse::class, 'Google_Service_SaaSServiceManagement_ListSaasResponse');
@@ -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\SaaSServiceManagement;
class ListTenantsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent ListTenants
* call to list the next page. If empty, there are no more pages.
*
* @var string
*/
public $nextPageToken;
protected $tenantsType = Tenant::class;
protected $tenantsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent ListTenants
* call to list the next page. If empty, there are no more pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting tenants.
*
* @param Tenant[] $tenants
*/
public function setTenants($tenants)
{
$this->tenants = $tenants;
}
/**
* @return Tenant[]
*/
public function getTenants()
{
return $this->tenants;
}
/**
* 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(ListTenantsResponse::class, 'Google_Service_SaaSServiceManagement_ListTenantsResponse');
@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class ListUnitKindsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent
* ListUnitKinds call to list the next page. If empty, there are no more
* pages.
*
* @var string
*/
public $nextPageToken;
protected $unitKindsType = UnitKind::class;
protected $unitKindsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent
* ListUnitKinds call to list the next page. If empty, there are no more
* pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting unit kinds.
*
* @param UnitKind[] $unitKinds
*/
public function setUnitKinds($unitKinds)
{
$this->unitKinds = $unitKinds;
}
/**
* @return UnitKind[]
*/
public function getUnitKinds()
{
return $this->unitKinds;
}
/**
* 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(ListUnitKindsResponse::class, 'Google_Service_SaaSServiceManagement_ListUnitKindsResponse');
@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class ListUnitOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent
* ListUnitOperations call to list the next page. If empty, there are no more
* pages.
*
* @var string
*/
public $nextPageToken;
protected $unitOperationsType = UnitOperation::class;
protected $unitOperationsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent
* ListUnitOperations call to list the next page. If empty, there are no more
* pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting unit operations.
*
* @param UnitOperation[] $unitOperations
*/
public function setUnitOperations($unitOperations)
{
$this->unitOperations = $unitOperations;
}
/**
* @return UnitOperation[]
*/
public function getUnitOperations()
{
return $this->unitOperations;
}
/**
* 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(ListUnitOperationsResponse::class, 'Google_Service_SaaSServiceManagement_ListUnitOperationsResponse');
@@ -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\SaaSServiceManagement;
class ListUnitsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If present, the next page token can be provided to a subsequent ListUnits
* call to list the next page. If empty, there are no more pages.
*
* @var string
*/
public $nextPageToken;
protected $unitsType = Unit::class;
protected $unitsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If present, the next page token can be provided to a subsequent ListUnits
* call to list the next page. If empty, there are no more pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting units.
*
* @param Unit[] $units
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return Unit[]
*/
public function getUnits()
{
return $this->units;
}
/**
* 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(ListUnitsResponse::class, 'Google_Service_SaaSServiceManagement_ListUnitsResponse');
@@ -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\SaaSServiceManagement;
class Location extends \Google\Model
{
/**
* Optional. Name of location.
*
* @var string
*/
public $name;
/**
* Optional. Name of location.
*
* @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_SaaSServiceManagement_Location');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class MaintenanceSettings extends \Google\Model
{
/**
* Optional. If present, it fixes the release on the unit until the given
* time; i.e. changes to the release field will be rejected. Rollouts should
* and will also respect this by not requesting an upgrade in the first place.
*
* @var string
*/
public $pinnedUntilTime;
/**
* Optional. If present, it fixes the release on the unit until the given
* time; i.e. changes to the release field will be rejected. Rollouts should
* and will also respect this by not requesting an upgrade in the first place.
*
* @param string $pinnedUntilTime
*/
public function setPinnedUntilTime($pinnedUntilTime)
{
$this->pinnedUntilTime = $pinnedUntilTime;
}
/**
* @return string
*/
public function getPinnedUntilTime()
{
return $this->pinnedUntilTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceSettings::class, 'Google_Service_SaaSServiceManagement_MaintenanceSettings');
@@ -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\SaaSServiceManagement;
class Provision extends \Google\Collection
{
protected $collection_key = 'inputVariables';
protected $inputVariablesType = UnitVariable::class;
protected $inputVariablesDataType = 'array';
/**
* Optional. Reference to the Release object to use for the Unit. (optional).
*
* @var string
*/
public $release;
/**
* Optional. Set of input variables. Maximum 100. (optional)
*
* @param UnitVariable[] $inputVariables
*/
public function setInputVariables($inputVariables)
{
$this->inputVariables = $inputVariables;
}
/**
* @return UnitVariable[]
*/
public function getInputVariables()
{
return $this->inputVariables;
}
/**
* Optional. Reference to the Release object to use for the Unit. (optional).
*
* @param string $release
*/
public function setRelease($release)
{
$this->release = $release;
}
/**
* @return string
*/
public function getRelease()
{
return $this->release;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Provision::class, 'Google_Service_SaaSServiceManagement_Provision');
@@ -0,0 +1,327 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class Release extends \Google\Collection
{
protected $collection_key = 'outputVariables';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
protected $blueprintType = Blueprint::class;
protected $blueprintDataType = '';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
protected $inputVariableDefaultsType = UnitVariable::class;
protected $inputVariableDefaultsDataType = 'array';
protected $inputVariablesType = UnitVariable::class;
protected $inputVariablesDataType = 'array';
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/releases/{release}"
*
* @var string
*/
public $name;
protected $outputVariablesType = UnitVariable::class;
protected $outputVariablesDataType = 'array';
protected $releaseRequirementsType = ReleaseRequirements::class;
protected $releaseRequirementsDataType = '';
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Required. Immutable. Reference to the UnitKind this Release corresponds to
* (required and immutable once created).
*
* @var string
*/
public $unitKind;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. Blueprints are OCI Images that contain all of the artifacts
* needed to provision a unit.
*
* @param Blueprint $blueprint
*/
public function setBlueprint(Blueprint $blueprint)
{
$this->blueprint = $blueprint;
}
/**
* @return Blueprint
*/
public function getBlueprint()
{
return $this->blueprint;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Mapping of input variables to default values. Maximum 100
*
* @param UnitVariable[] $inputVariableDefaults
*/
public function setInputVariableDefaults($inputVariableDefaults)
{
$this->inputVariableDefaults = $inputVariableDefaults;
}
/**
* @return UnitVariable[]
*/
public function getInputVariableDefaults()
{
return $this->inputVariableDefaults;
}
/**
* Optional. Output only. List of input variables declared on the blueprint
* and can be present with their values on the unit spec
*
* @param UnitVariable[] $inputVariables
*/
public function setInputVariables($inputVariables)
{
$this->inputVariables = $inputVariables;
}
/**
* @return UnitVariable[]
*/
public function getInputVariables()
{
return $this->inputVariables;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/releases/{release}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Output only. List of output variables declared on the blueprint
* and can be present with their values on the unit status
*
* @param UnitVariable[] $outputVariables
*/
public function setOutputVariables($outputVariables)
{
$this->outputVariables = $outputVariables;
}
/**
* @return UnitVariable[]
*/
public function getOutputVariables()
{
return $this->outputVariables;
}
/**
* Optional. Set of requirements to be fulfilled on the Unit when using this
* Release.
*
* @param ReleaseRequirements $releaseRequirements
*/
public function setReleaseRequirements(ReleaseRequirements $releaseRequirements)
{
$this->releaseRequirements = $releaseRequirements;
}
/**
* @return ReleaseRequirements
*/
public function getReleaseRequirements()
{
return $this->releaseRequirements;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Required. Immutable. Reference to the UnitKind this Release corresponds to
* (required and immutable once created).
*
* @param string $unitKind
*/
public function setUnitKind($unitKind)
{
$this->unitKind = $unitKind;
}
/**
* @return string
*/
public function getUnitKind()
{
return $this->unitKind;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @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(Release::class, 'Google_Service_SaaSServiceManagement_Release');
@@ -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\SaaSServiceManagement;
class ReleaseRequirements extends \Google\Collection
{
protected $collection_key = 'upgradeableFromReleases';
/**
* Optional. A list of releases from which a unit can be upgraded to this one
* (optional). If left empty no constraints will be applied. When provided,
* unit upgrade requests to this release will check and enforce this
* constraint.
*
* @var string[]
*/
public $upgradeableFromReleases;
/**
* Optional. A list of releases from which a unit can be upgraded to this one
* (optional). If left empty no constraints will be applied. When provided,
* unit upgrade requests to this release will check and enforce this
* constraint.
*
* @param string[] $upgradeableFromReleases
*/
public function setUpgradeableFromReleases($upgradeableFromReleases)
{
$this->upgradeableFromReleases = $upgradeableFromReleases;
}
/**
* @return string[]
*/
public function getUpgradeableFromReleases()
{
return $this->upgradeableFromReleases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReleaseRequirements::class, 'Google_Service_SaaSServiceManagement_ReleaseRequirements');
@@ -0,0 +1,348 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class ReplicationInternal extends \Google\Collection
{
/**
* Unspecified state.
*/
public const STATE_REPLICATION_STATE_UNSPECIFIED = 'REPLICATION_STATE_UNSPECIFIED';
/**
* Replication is pending.
*/
public const STATE_REPLICATION_STATE_PENDING = 'REPLICATION_STATE_PENDING';
/**
* Replication is running.
*/
public const STATE_REPLICATION_STATE_RUNNING = 'REPLICATION_STATE_RUNNING';
/**
* Replication has failed.
*/
public const STATE_REPLICATION_STATE_FAILED = 'REPLICATION_STATE_FAILED';
/**
* Replication has succeeded.
*/
public const STATE_REPLICATION_STATE_SUCCEEDED = 'REPLICATION_STATE_SUCCEEDED';
protected $collection_key = 'targetLocations';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
/**
* Optional. The maximum number of retries for the replication. If the
* replication fails from a retryable error, it will be retried for this
* number of times.
*
* @var int
*/
public $maxRetryCount;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme: "projects/{project}/locations/{location}/replicatio
* nInternal/{replication_internal_id}"
*
* @var string
*/
public $name;
/**
* Required. The payload of the request for replication. It could be any
* request type that is supported by the replication service. e.g.
* CreateUnitKindRequest, UpdateUnitKindRequest, DeleteReleaseRequest, etc.
*
* @var array[]
*/
public $payload;
/**
* Output only. The state of the replication.
*
* @var string
*/
public $state;
protected $statsType = ReplicationStats::class;
protected $statsDataType = 'map';
/**
* Optional. The target locations to replicate the resource to.
*
* @var string[]
*/
public $targetLocations;
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. The maximum number of retries for the replication. If the
* replication fails from a retryable error, it will be retried for this
* number of times.
*
* @param int $maxRetryCount
*/
public function setMaxRetryCount($maxRetryCount)
{
$this->maxRetryCount = $maxRetryCount;
}
/**
* @return int
*/
public function getMaxRetryCount()
{
return $this->maxRetryCount;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme: "projects/{project}/locations/{location}/replicatio
* nInternal/{replication_internal_id}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The payload of the request for replication. It could be any
* request type that is supported by the replication service. e.g.
* CreateUnitKindRequest, UpdateUnitKindRequest, DeleteReleaseRequest, etc.
*
* @param array[] $payload
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return array[]
*/
public function getPayload()
{
return $this->payload;
}
/**
* Output only. The state of the replication.
*
* Accepted values: REPLICATION_STATE_UNSPECIFIED, REPLICATION_STATE_PENDING,
* REPLICATION_STATE_RUNNING, REPLICATION_STATE_FAILED,
* REPLICATION_STATE_SUCCEEDED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The stats of the replication. One key for each location in
* target_locations
*
* @param ReplicationStats[] $stats
*/
public function setStats($stats)
{
$this->stats = $stats;
}
/**
* @return ReplicationStats[]
*/
public function getStats()
{
return $this->stats;
}
/**
* Optional. The target locations to replicate the resource to.
*
* @param string[] $targetLocations
*/
public function setTargetLocations($targetLocations)
{
$this->targetLocations = $targetLocations;
}
/**
* @return string[]
*/
public function getTargetLocations()
{
return $this->targetLocations;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @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(ReplicationInternal::class, 'Google_Service_SaaSServiceManagement_ReplicationInternal');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class ReplicationStats extends \Google\Collection
{
protected $collection_key = 'retryCount';
protected $errorsType = Status::class;
protected $errorsDataType = 'array';
/**
* The resources that are failed replication.
*
* @var string[]
*/
public $failedResources;
/**
* The resources that are finished replication.
*
* @var string[]
*/
public $finishedResources;
/**
* The resources that are pending replication.
*
* @var string[]
*/
public $pendingResources;
/**
* The number of retries for the failed resources.
*
* @var int[]
*/
public $retryCount;
/**
* The errors that occurred during replication, one error for each failed
* resource.
*
* @param Status[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return Status[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* The resources that are failed replication.
*
* @param string[] $failedResources
*/
public function setFailedResources($failedResources)
{
$this->failedResources = $failedResources;
}
/**
* @return string[]
*/
public function getFailedResources()
{
return $this->failedResources;
}
/**
* The resources that are finished replication.
*
* @param string[] $finishedResources
*/
public function setFinishedResources($finishedResources)
{
$this->finishedResources = $finishedResources;
}
/**
* @return string[]
*/
public function getFinishedResources()
{
return $this->finishedResources;
}
/**
* The resources that are pending replication.
*
* @param string[] $pendingResources
*/
public function setPendingResources($pendingResources)
{
$this->pendingResources = $pendingResources;
}
/**
* @return string[]
*/
public function getPendingResources()
{
return $this->pendingResources;
}
/**
* The number of retries for the failed resources.
*
* @param int[] $retryCount
*/
public function setRetryCount($retryCount)
{
$this->retryCount = $retryCount;
}
/**
* @return int[]
*/
public function getRetryCount()
{
return $this->retryCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReplicationStats::class, 'Google_Service_SaaSServiceManagement_ReplicationStats');
@@ -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\SaaSServiceManagement\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $projects = $saasservicemgmtService->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_SaaSServiceManagement_Resource_Projects');
@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\GoogleCloudLocationLocation;
use Google\Service\SaaSServiceManagement\ListLocationsResponse;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $locations = $saasservicemgmtService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return GoogleCloudLocationLocation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudLocationLocation::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);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocations');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListReleasesResponse;
use Google\Service\SaaSServiceManagement\Release;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "releases" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $releases = $saasservicemgmtService->projects_locations_releases;
* </code>
*/
class ProjectsLocationsReleases extends \Google\Service\Resource
{
/**
* Create a new release. (releases.create)
*
* @param string $parent Required. The parent of the release.
* @param Release $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string releaseId Required. The ID value for the new release.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Release
* @throws \Google\Service\Exception
*/
public function create($parent, Release $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Release::class);
}
/**
* Delete a single release. (releases.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the release. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the release. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single release. (releases.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Release
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Release::class);
}
/**
* Retrieve a collection of releases. (releases.listProjectsLocationsReleases)
*
* @param string $parent Required. The parent of the release.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of releases to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListReleasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReleases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReleasesResponse::class);
}
/**
* Update a single release. (releases.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/releases/{release}"
* @param Release $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the Release 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 in the Release will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Release
* @throws \Google\Service\Exception
*/
public function patch($name, Release $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Release::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReleases::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsReleases');
@@ -0,0 +1,190 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListReplicationsInternalResponse;
use Google\Service\SaaSServiceManagement\ReplicationInternal;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "replicationsInternal" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $replicationsInternal = $saasservicemgmtService->projects_locations_replicationsInternal;
* </code>
*/
class ProjectsLocationsReplicationsInternal extends \Google\Service\Resource
{
/**
* Create a new replication internal. (replicationsInternal.create)
*
* @param string $parent Required. The parent of the replication internal.
* @param ReplicationInternal $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string replicationInternalId Required. The ID value for the new
* replication internal.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return ReplicationInternal
* @throws \Google\Service\Exception
*/
public function create($parent, ReplicationInternal $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ReplicationInternal::class);
}
/**
* Delete a single replication internal. (replicationsInternal.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the replication internal. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the replication internal. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single replication internal. (replicationsInternal.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return ReplicationInternal
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ReplicationInternal::class);
}
/**
* Retrieve a collection of replication internals.
* (replicationsInternal.listProjectsLocationsReplicationsInternal)
*
* @param string $parent Required. The parent of the replication internal.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of replication internals to send
* per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListReplicationsInternalResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReplicationsInternal($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReplicationsInternalResponse::class);
}
/**
* Update a single replication internal. (replicationsInternal.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme: "projects/{project}/locations/{location
* }/replicationInternal/{replication_internal_id}"
* @param ReplicationInternal $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the replication internal. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the replication internal. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the ReplicationInternal 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 in the ReplicationInternal will be
* overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return ReplicationInternal
* @throws \Google\Service\Exception
*/
public function patch($name, ReplicationInternal $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ReplicationInternal::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReplicationsInternal::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsReplicationsInternal');
@@ -0,0 +1,181 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListRolloutKindsResponse;
use Google\Service\SaaSServiceManagement\RolloutKind;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "rolloutKinds" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $rolloutKinds = $saasservicemgmtService->projects_locations_rolloutKinds;
* </code>
*/
class ProjectsLocationsRolloutKinds extends \Google\Service\Resource
{
/**
* Create a new rollout kind. (rolloutKinds.create)
*
* @param string $parent Required. The parent of the rollout kind.
* @param RolloutKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 rolloutKindId Required. The ID value for the new rollout
* kind.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return RolloutKind
* @throws \Google\Service\Exception
*/
public function create($parent, RolloutKind $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], RolloutKind::class);
}
/**
* Delete a single rollout kind. (rolloutKinds.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the rollout kind. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the rollout kind. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single rollout kind. (rolloutKinds.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return RolloutKind
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RolloutKind::class);
}
/**
* Retrieve a collection of rollout kinds.
* (rolloutKinds.listProjectsLocationsRolloutKinds)
*
* @param string $parent Required. The parent of the rollout kind.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of rollout kinds to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListRolloutKindsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRolloutKinds($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolloutKindsResponse::class);
}
/**
* Update a single rollout kind. (rolloutKinds.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
* @param RolloutKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the RolloutKind 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 in the RolloutKind will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return RolloutKind
* @throws \Google\Service\Exception
*/
public function patch($name, RolloutKind $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], RolloutKind::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRolloutKinds::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsRolloutKinds');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListRolloutsResponse;
use Google\Service\SaaSServiceManagement\Rollout;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "rollouts" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $rollouts = $saasservicemgmtService->projects_locations_rollouts;
* </code>
*/
class ProjectsLocationsRollouts extends \Google\Service\Resource
{
/**
* Create a new rollout. (rollouts.create)
*
* @param string $parent Required. The parent of the rollout.
* @param Rollout $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 rolloutId Required. The ID value for the new rollout.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Rollout
* @throws \Google\Service\Exception
*/
public function create($parent, Rollout $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Rollout::class);
}
/**
* Delete a single rollout. (rollouts.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the rollout. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the rollout. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single rollout. (rollouts.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Rollout
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Rollout::class);
}
/**
* Retrieve a collection of rollouts. (rollouts.listProjectsLocationsRollouts)
*
* @param string $parent Required. The parent of the rollout.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of rollouts to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListRolloutsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRollouts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolloutsResponse::class);
}
/**
* Update a single rollout. (rollouts.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/rollout/{rollout_id}"
* @param Rollout $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the Rollout 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 in the Rollout will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Rollout
* @throws \Google\Service\Exception
*/
public function patch($name, Rollout $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Rollout::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRollouts::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsRollouts');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListSaasResponse;
use Google\Service\SaaSServiceManagement\Saas;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "saas" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $saas = $saasservicemgmtService->projects_locations_saas;
* </code>
*/
class ProjectsLocationsSaas extends \Google\Service\Resource
{
/**
* Create a new saas. (saas.create)
*
* @param string $parent Required. The parent of the saas.
* @param Saas $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 saasId Required. The ID value for the new saas.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Saas
* @throws \Google\Service\Exception
*/
public function create($parent, Saas $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Saas::class);
}
/**
* Delete a single saas. (saas.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the saas. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the saas. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single saas. (saas.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Saas
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Saas::class);
}
/**
* Retrieve a collection of saas. (saas.listProjectsLocationsSaas)
*
* @param string $parent Required. The parent of the saas.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of saas to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListSaasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSaas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSaasResponse::class);
}
/**
* Update a single saas. (saas.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/saas/{saas}"
* @param Saas $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the Saas 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 in the Saas will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Saas
* @throws \Google\Service\Exception
*/
public function patch($name, Saas $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Saas::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSaas::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsSaas');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListTenantsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\Tenant;
/**
* The "tenants" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $tenants = $saasservicemgmtService->projects_locations_tenants;
* </code>
*/
class ProjectsLocationsTenants extends \Google\Service\Resource
{
/**
* Create a new tenant. (tenants.create)
*
* @param string $parent Required. The parent of the tenant.
* @param Tenant $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 tenantId Required. The ID value for the new tenant.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Tenant
* @throws \Google\Service\Exception
*/
public function create($parent, Tenant $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Tenant::class);
}
/**
* Delete a single tenant. (tenants.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the tenant. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the tenant. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single tenant. (tenants.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Tenant
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Tenant::class);
}
/**
* Retrieve a collection of tenants. (tenants.listProjectsLocationsTenants)
*
* @param string $parent Required. The parent of the tenant.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of tenants to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListTenantsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTenants($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTenantsResponse::class);
}
/**
* Update a single tenant. (tenants.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/tenants/{tenant}"
* @param Tenant $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the Tenant 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 in the Tenant will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Tenant
* @throws \Google\Service\Exception
*/
public function patch($name, Tenant $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Tenant::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTenants::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsTenants');
@@ -0,0 +1,180 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListUnitKindsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\UnitKind;
/**
* The "unitKinds" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $unitKinds = $saasservicemgmtService->projects_locations_unitKinds;
* </code>
*/
class ProjectsLocationsUnitKinds extends \Google\Service\Resource
{
/**
* Create a new unit kind. (unitKinds.create)
*
* @param string $parent Required. The parent of the unit kind.
* @param UnitKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 unitKindId Required. The ID value for the new unit kind.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitKind
* @throws \Google\Service\Exception
*/
public function create($parent, UnitKind $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], UnitKind::class);
}
/**
* Delete a single unit kind. (unitKinds.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the unit kind. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the unit kind. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single unit kind. (unitKinds.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return UnitKind
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UnitKind::class);
}
/**
* Retrieve a collection of unit kinds.
* (unitKinds.listProjectsLocationsUnitKinds)
*
* @param string $parent Required. The parent of the unit kind.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of unit kinds to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListUnitKindsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsUnitKinds($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnitKindsResponse::class);
}
/**
* Update a single unit kind. (unitKinds.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/unitKinds/{unitKind}"
* @param UnitKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the UnitKind 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 in the UnitKind will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitKind
* @throws \Google\Service\Exception
*/
public function patch($name, UnitKind $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], UnitKind::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsUnitKinds::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsUnitKinds');
@@ -0,0 +1,182 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListUnitOperationsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\UnitOperation;
/**
* The "unitOperations" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $unitOperations = $saasservicemgmtService->projects_locations_unitOperations;
* </code>
*/
class ProjectsLocationsUnitOperations extends \Google\Service\Resource
{
/**
* Create a new unit operation. (unitOperations.create)
*
* @param string $parent Required. The parent of the unit operation.
* @param UnitOperation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 unitOperationId Required. The ID value for the new unit
* operation.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitOperation
* @throws \Google\Service\Exception
*/
public function create($parent, UnitOperation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], UnitOperation::class);
}
/**
* Delete a single unit operation. (unitOperations.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the unit operation. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the unit operation. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single unit operation. (unitOperations.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return UnitOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UnitOperation::class);
}
/**
* Retrieve a collection of unit operations.
* (unitOperations.listProjectsLocationsUnitOperations)
*
* @param string $parent Required. The parent of the unit operation.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of unit operations to send per
* page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListUnitOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsUnitOperations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnitOperationsResponse::class);
}
/**
* Update a single unit operation. (unitOperations.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
* @param UnitOperation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the UnitOperation 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 in the UnitOperation will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitOperation
* @throws \Google\Service\Exception
*/
public function patch($name, UnitOperation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], UnitOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsUnitOperations::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsUnitOperations');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListUnitsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\Unit;
/**
* The "units" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $units = $saasservicemgmtService->projects_locations_units;
* </code>
*/
class ProjectsLocationsUnits extends \Google\Service\Resource
{
/**
* Create a new unit. (units.create)
*
* @param string $parent Required. The parent of the unit.
* @param Unit $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 unitId Required. The ID value for the new unit.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Unit
* @throws \Google\Service\Exception
*/
public function create($parent, Unit $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Unit::class);
}
/**
* Delete a single unit. (units.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the unit. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the unit. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId 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 bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single unit. (units.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Unit
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Unit::class);
}
/**
* Retrieve a collection of units. (units.listProjectsLocationsUnits)
*
* @param string $parent Required. The parent of the unit.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of units to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListUnitsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsUnits($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnitsResponse::class);
}
/**
* Update a single unit. (units.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/units/{unit}"
* @param Unit $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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 Field mask is used to specify the fields to be
* overwritten in the Unit 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 in the Unit will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Unit
* @throws \Google\Service\Exception
*/
public function patch($name, Unit $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Unit::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsUnits::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsUnits');
@@ -0,0 +1,667 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class Rollout extends \Google\Model
{
/**
* Unspecified state.
*/
public const STATE_ROLLOUT_STATE_UNSPECIFIED = 'ROLLOUT_STATE_UNSPECIFIED';
/**
* Rollout is in progress.
*/
public const STATE_ROLLOUT_STATE_RUNNING = 'ROLLOUT_STATE_RUNNING';
/**
* Rollout has been paused.
*/
public const STATE_ROLLOUT_STATE_PAUSED = 'ROLLOUT_STATE_PAUSED';
/**
* Rollout completed successfully.
*/
public const STATE_ROLLOUT_STATE_SUCCEEDED = 'ROLLOUT_STATE_SUCCEEDED';
/**
* Rollout has failed.
*/
public const STATE_ROLLOUT_STATE_FAILED = 'ROLLOUT_STATE_FAILED';
/**
* Rollout has been canceled.
*/
public const STATE_ROLLOUT_STATE_CANCELLED = 'ROLLOUT_STATE_CANCELLED';
/**
* Rollout is waiting for some condition to be met before starting.
*/
public const STATE_ROLLOUT_STATE_WAITING = 'ROLLOUT_STATE_WAITING';
/**
* Rollout is being canceled.
*/
public const STATE_ROLLOUT_STATE_CANCELLING = 'ROLLOUT_STATE_CANCELLING';
/**
* Rollout is being resumed.
*/
public const STATE_ROLLOUT_STATE_RESUMING = 'ROLLOUT_STATE_RESUMING';
/**
* Rollout is being paused.
*/
public const STATE_ROLLOUT_STATE_PAUSING = 'ROLLOUT_STATE_PAUSING';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
protected $controlType = RolloutControl::class;
protected $controlDataType = '';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The timestamp when the resource was marked for deletion
* (deletion is an asynchronous operation).
*
* @var string
*/
public $deleteTime;
/**
* Optional. Output only. Output only snapshot of the effective unit filter at
* Rollout start time. Contains a CEL(https://github.com/google/cel-spec)
* expression consisting of a conjunction of Rollout.unit_filter and
* RolloutKind.unit_filter. This field captures the filter applied by the
* Rollout to determine the Unit population. If the associated RolloutKind's
* unit_filter is modified after the rollout is started, it will not be
* updated here.
*
* @var string
*/
public $effectiveUnitFilter;
/**
* Optional. Output only. The time when the rollout finished execution
* (regardless of success, failure, or cancellation). Will be empty if the
* rollout hasn't finished yet. Once set, the rollout is in terminal state and
* all the results are final.
*
* @var string
*/
public $endTime;
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
/**
* Optional. Immutable. Name of the FlagRelease to be rolled out to the target
* Units. Release and FlagRelease are mutually exclusive. Note: `release`
* comment needs to be adjusted to mention that "Release and FlagRelease are
* mutually exclusive" when visibility restriction will be lifted.
*
* @var string
*/
public $flagRelease;
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/rollout/{rollout_id}"
*
* @var string
*/
public $name;
/**
* Optional. Output only. The direct parent rollout that this rollout is
* stemming from. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/rollouts/{rollout_id}"
*
* @var string
*/
public $parentRollout;
/**
* Optional. Immutable. Name of the Release that gets rolled out to target
* Units. Required if no other type of release is specified.
*
* @var string
*/
public $release;
/**
* Required. Immutable. Name of the RolloutKind this rollout is stemming from
* and adhering to.
*
* @var string
*/
public $rolloutKind;
/**
* Optional. The strategy used for executing this Rollout. This strategy will
* override whatever strategy is specified in the RolloutKind. If not
* specified on creation, the strategy from RolloutKind will be used. There
* are two supported values strategies which are used to control -
* "Google.Cloud.Simple.AllAtOnce" - "Google.Cloud.Simple.OneLocationAtATime"
* A rollout with one of these simple strategies will rollout across all
* locations defined in the targeted UnitKind's Saas Locations.
*
* @var string
*/
public $rolloutOrchestrationStrategy;
/**
* Optional. Output only. The root rollout that this rollout is stemming from.
* The resource name (full URI of the resource) following the standard naming
* scheme: "projects/{project}/locations/{location}/rollouts/{rollout_id}"
*
* @var string
*/
public $rootRollout;
/**
* Optional. Output only. The time when the rollout started executing. Will be
* empty if the rollout hasn't started yet.
*
* @var string
*/
public $startTime;
/**
* Output only. Current state of the rollout.
*
* @var string
*/
public $state;
/**
* Output only. Human readable message indicating details about the last state
* transition.
*
* @var string
*/
public $stateMessage;
/**
* Optional. Output only. The time when the rollout transitioned into its
* current state.
*
* @var string
*/
public $stateTransitionTime;
protected $statsType = RolloutStats::class;
protected $statsDataType = '';
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Optional. CEL(https://github.com/google/cel-spec) formatted filter string
* against Unit. The filter will be applied to determine the eligible unit
* population. This filter can only reduce, but not expand the scope of the
* rollout. If not provided, the unit_filter from the RolloutKind will be
* used.
*
* @var string
*/
public $unitFilter;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. Requested change to the execution of this rollout. Default
* RolloutControl.action is ROLLOUT_ACTION_RUN meaning the rollout will be
* executed to completion while progressing through all natural Rollout States
* (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED). Requests can only be
* made when the Rollout is in a non-terminal state.
*
* @param RolloutControl $control
*/
public function setControl(RolloutControl $control)
{
$this->control = $control;
}
/**
* @return RolloutControl
*/
public function getControl()
{
return $this->control;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The timestamp when the resource was marked for deletion
* (deletion is an asynchronous operation).
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Optional. Output only. Output only snapshot of the effective unit filter at
* Rollout start time. Contains a CEL(https://github.com/google/cel-spec)
* expression consisting of a conjunction of Rollout.unit_filter and
* RolloutKind.unit_filter. This field captures the filter applied by the
* Rollout to determine the Unit population. If the associated RolloutKind's
* unit_filter is modified after the rollout is started, it will not be
* updated here.
*
* @param string $effectiveUnitFilter
*/
public function setEffectiveUnitFilter($effectiveUnitFilter)
{
$this->effectiveUnitFilter = $effectiveUnitFilter;
}
/**
* @return string
*/
public function getEffectiveUnitFilter()
{
return $this->effectiveUnitFilter;
}
/**
* Optional. Output only. The time when the rollout finished execution
* (regardless of success, failure, or cancellation). Will be empty if the
* rollout hasn't finished yet. Once set, the rollout is in terminal state and
* all the results are final.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Immutable. Name of the FlagRelease to be rolled out to the target
* Units. Release and FlagRelease are mutually exclusive. Note: `release`
* comment needs to be adjusted to mention that "Release and FlagRelease are
* mutually exclusive" when visibility restriction will be lifted.
*
* @param string $flagRelease
*/
public function setFlagRelease($flagRelease)
{
$this->flagRelease = $flagRelease;
}
/**
* @return string
*/
public function getFlagRelease()
{
return $this->flagRelease;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/rollout/{rollout_id}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Output only. The direct parent rollout that this rollout is
* stemming from. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/rollouts/{rollout_id}"
*
* @param string $parentRollout
*/
public function setParentRollout($parentRollout)
{
$this->parentRollout = $parentRollout;
}
/**
* @return string
*/
public function getParentRollout()
{
return $this->parentRollout;
}
/**
* Optional. Immutable. Name of the Release that gets rolled out to target
* Units. Required if no other type of release is specified.
*
* @param string $release
*/
public function setRelease($release)
{
$this->release = $release;
}
/**
* @return string
*/
public function getRelease()
{
return $this->release;
}
/**
* Required. Immutable. Name of the RolloutKind this rollout is stemming from
* and adhering to.
*
* @param string $rolloutKind
*/
public function setRolloutKind($rolloutKind)
{
$this->rolloutKind = $rolloutKind;
}
/**
* @return string
*/
public function getRolloutKind()
{
return $this->rolloutKind;
}
/**
* Optional. The strategy used for executing this Rollout. This strategy will
* override whatever strategy is specified in the RolloutKind. If not
* specified on creation, the strategy from RolloutKind will be used. There
* are two supported values strategies which are used to control -
* "Google.Cloud.Simple.AllAtOnce" - "Google.Cloud.Simple.OneLocationAtATime"
* A rollout with one of these simple strategies will rollout across all
* locations defined in the targeted UnitKind's Saas Locations.
*
* @param string $rolloutOrchestrationStrategy
*/
public function setRolloutOrchestrationStrategy($rolloutOrchestrationStrategy)
{
$this->rolloutOrchestrationStrategy = $rolloutOrchestrationStrategy;
}
/**
* @return string
*/
public function getRolloutOrchestrationStrategy()
{
return $this->rolloutOrchestrationStrategy;
}
/**
* Optional. Output only. The root rollout that this rollout is stemming from.
* The resource name (full URI of the resource) following the standard naming
* scheme: "projects/{project}/locations/{location}/rollouts/{rollout_id}"
*
* @param string $rootRollout
*/
public function setRootRollout($rootRollout)
{
$this->rootRollout = $rootRollout;
}
/**
* @return string
*/
public function getRootRollout()
{
return $this->rootRollout;
}
/**
* Optional. Output only. The time when the rollout started executing. Will be
* empty if the rollout hasn't started yet.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. Current state of the rollout.
*
* Accepted values: ROLLOUT_STATE_UNSPECIFIED, ROLLOUT_STATE_RUNNING,
* ROLLOUT_STATE_PAUSED, ROLLOUT_STATE_SUCCEEDED, ROLLOUT_STATE_FAILED,
* ROLLOUT_STATE_CANCELLED, ROLLOUT_STATE_WAITING, ROLLOUT_STATE_CANCELLING,
* ROLLOUT_STATE_RESUMING, ROLLOUT_STATE_PAUSING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Human readable message indicating details about the last state
* transition.
*
* @param string $stateMessage
*/
public function setStateMessage($stateMessage)
{
$this->stateMessage = $stateMessage;
}
/**
* @return string
*/
public function getStateMessage()
{
return $this->stateMessage;
}
/**
* Optional. Output only. The time when the rollout transitioned into its
* current state.
*
* @param string $stateTransitionTime
*/
public function setStateTransitionTime($stateTransitionTime)
{
$this->stateTransitionTime = $stateTransitionTime;
}
/**
* @return string
*/
public function getStateTransitionTime()
{
return $this->stateTransitionTime;
}
/**
* Optional. Output only. Details about the progress of the rollout.
*
* @param RolloutStats $stats
*/
public function setStats(RolloutStats $stats)
{
$this->stats = $stats;
}
/**
* @return RolloutStats
*/
public function getStats()
{
return $this->stats;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Optional. CEL(https://github.com/google/cel-spec) formatted filter string
* against Unit. The filter will be applied to determine the eligible unit
* population. This filter can only reduce, but not expand the scope of the
* rollout. If not provided, the unit_filter from the RolloutKind will be
* used.
*
* @param string $unitFilter
*/
public function setUnitFilter($unitFilter)
{
$this->unitFilter = $unitFilter;
}
/**
* @return string
*/
public function getUnitFilter()
{
return $this->unitFilter;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @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(Rollout::class, 'Google_Service_SaaSServiceManagement_Rollout');
@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class RolloutControl extends \Google\Model
{
/**
* Unspecified action, will be treated as RUN by default.
*/
public const ACTION_ROLLOUT_ACTION_UNSPECIFIED = 'ROLLOUT_ACTION_UNSPECIFIED';
/**
* Run the Rollout until it naturally reaches a terminal state. A rollout
* requested to run will progress through all natural Rollout States (such as
* RUNNING -> SUCCEEDED or RUNNING -> FAILED). If retriable errors are
* encountered during the rollout, the rollout will paused by default and can
* be resumed by re-requesting this RUN action.
*/
public const ACTION_ROLLOUT_ACTION_RUN = 'ROLLOUT_ACTION_RUN';
/**
* Pause the Rollout until it is resumed (i.e. RUN is requested).
*/
public const ACTION_ROLLOUT_ACTION_PAUSE = 'ROLLOUT_ACTION_PAUSE';
/**
* Cancel the Rollout permanently.
*/
public const ACTION_ROLLOUT_ACTION_CANCEL = 'ROLLOUT_ACTION_CANCEL';
/**
* Required. Action to be performed on the Rollout. The default behavior is to
* run the rollout until it naturally reaches a terminal state.
*
* @var string
*/
public $action;
protected $runParamsType = RunRolloutActionParams::class;
protected $runParamsDataType = '';
/**
* Required. Action to be performed on the Rollout. The default behavior is to
* run the rollout until it naturally reaches a terminal state.
*
* Accepted values: ROLLOUT_ACTION_UNSPECIFIED, ROLLOUT_ACTION_RUN,
* ROLLOUT_ACTION_PAUSE, ROLLOUT_ACTION_CANCEL
*
* @param self::ACTION_* $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return self::ACTION_*
*/
public function getAction()
{
return $this->action;
}
/**
* Optional. Parameters for the RUN action. It is an error to specify this if
* the RolloutAction is not set to RUN. By default, the rollout will retry
* failed operations when resumed.
*
* @param RunRolloutActionParams $runParams
*/
public function setRunParams(RunRolloutActionParams $runParams)
{
$this->runParams = $runParams;
}
/**
* @return RunRolloutActionParams
*/
public function getRunParams()
{
return $this->runParams;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RolloutControl::class, 'Google_Service_SaaSServiceManagement_RolloutControl');
@@ -0,0 +1,356 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class RolloutKind extends \Google\Model
{
/**
* Strategy unspecified.
*/
public const UPDATE_UNIT_KIND_STRATEGY_UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED = 'UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED';
/**
* Update the unit kind strategy on the rollout start.
*/
public const UPDATE_UNIT_KIND_STRATEGY_UPDATE_UNIT_KIND_STRATEGY_ON_START = 'UPDATE_UNIT_KIND_STRATEGY_ON_START';
/**
* Never update the unit kind.
*/
public const UPDATE_UNIT_KIND_STRATEGY_UPDATE_UNIT_KIND_STRATEGY_NEVER = 'UPDATE_UNIT_KIND_STRATEGY_NEVER';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
protected $errorBudgetType = ErrorBudget::class;
protected $errorBudgetDataType = '';
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
*
* @var string
*/
public $name;
/**
* Optional. The strategy used for executing a Rollout. This is a required
* field. There are two supported values strategies which are used to control
* - "Google.Cloud.Simple.AllAtOnce" -
* "Google.Cloud.Simple.OneLocationAtATime" A rollout with one of these simple
* strategies will rollout across all locations defined in the associated
* UnitKind's Saas Locations.
*
* @var string
*/
public $rolloutOrchestrationStrategy;
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Optional. CEL(https://github.com/google/cel-spec) formatted filter string
* against Unit. The filter will be applied to determine the eligible unit
* population. This filter can only reduce, but not expand the scope of the
* rollout.
*
* @var string
*/
public $unitFilter;
/**
* Required. Immutable. UnitKind that this rollout kind corresponds to.
* Rollouts stemming from this rollout kind will target the units of this unit
* kind. In other words, this defines the population of target units to be
* upgraded by rollouts.
*
* @var string
*/
public $unitKind;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. The config for updating the unit kind. By default, the unit kind
* will be updated on the rollout start.
*
* @var string
*/
public $updateUnitKindStrategy;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The configuration for error budget. If the number of failed units
* exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
* be paused. If not set, all units will be attempted to be updated regardless
* of the number of failures encountered.
*
* @param ErrorBudget $errorBudget
*/
public function setErrorBudget(ErrorBudget $errorBudget)
{
$this->errorBudget = $errorBudget;
}
/**
* @return ErrorBudget
*/
public function getErrorBudget()
{
return $this->errorBudget;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The strategy used for executing a Rollout. This is a required
* field. There are two supported values strategies which are used to control
* - "Google.Cloud.Simple.AllAtOnce" -
* "Google.Cloud.Simple.OneLocationAtATime" A rollout with one of these simple
* strategies will rollout across all locations defined in the associated
* UnitKind's Saas Locations.
*
* @param string $rolloutOrchestrationStrategy
*/
public function setRolloutOrchestrationStrategy($rolloutOrchestrationStrategy)
{
$this->rolloutOrchestrationStrategy = $rolloutOrchestrationStrategy;
}
/**
* @return string
*/
public function getRolloutOrchestrationStrategy()
{
return $this->rolloutOrchestrationStrategy;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Optional. CEL(https://github.com/google/cel-spec) formatted filter string
* against Unit. The filter will be applied to determine the eligible unit
* population. This filter can only reduce, but not expand the scope of the
* rollout.
*
* @param string $unitFilter
*/
public function setUnitFilter($unitFilter)
{
$this->unitFilter = $unitFilter;
}
/**
* @return string
*/
public function getUnitFilter()
{
return $this->unitFilter;
}
/**
* Required. Immutable. UnitKind that this rollout kind corresponds to.
* Rollouts stemming from this rollout kind will target the units of this unit
* kind. In other words, this defines the population of target units to be
* upgraded by rollouts.
*
* @param string $unitKind
*/
public function setUnitKind($unitKind)
{
$this->unitKind = $unitKind;
}
/**
* @return string
*/
public function getUnitKind()
{
return $this->unitKind;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Optional. The config for updating the unit kind. By default, the unit kind
* will be updated on the rollout start.
*
* Accepted values: UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED,
* UPDATE_UNIT_KIND_STRATEGY_ON_START, UPDATE_UNIT_KIND_STRATEGY_NEVER
*
* @param self::UPDATE_UNIT_KIND_STRATEGY_* $updateUnitKindStrategy
*/
public function setUpdateUnitKindStrategy($updateUnitKindStrategy)
{
$this->updateUnitKindStrategy = $updateUnitKindStrategy;
}
/**
* @return self::UPDATE_UNIT_KIND_STRATEGY_*
*/
public function getUpdateUnitKindStrategy()
{
return $this->updateUnitKindStrategy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RolloutKind::class, 'Google_Service_SaaSServiceManagement_RolloutKind');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class RolloutStats extends \Google\Collection
{
protected $collection_key = 'operationsByState';
/**
* Optional. Output only. Estimated number of units based. The estimation is
* computed upon creation of the rollout.
*
* @var string
*/
public $estimatedTotalUnitCount;
protected $operationsByStateType = Aggregate::class;
protected $operationsByStateDataType = 'array';
/**
* Optional. Output only. Estimated number of units based. The estimation is
* computed upon creation of the rollout.
*
* @param string $estimatedTotalUnitCount
*/
public function setEstimatedTotalUnitCount($estimatedTotalUnitCount)
{
$this->estimatedTotalUnitCount = $estimatedTotalUnitCount;
}
/**
* @return string
*/
public function getEstimatedTotalUnitCount()
{
return $this->estimatedTotalUnitCount;
}
/**
* Optional. Output only. Unordered list. A breakdown of the progress of
* operations triggered by the rollout. Provides a count of Operations by
* their state. This can be used to determine the number of units which have
* been updated, or are scheduled to be updated. There will be at most one
* entry per group. Possible values for operation groups are: - "SCHEDULED" -
* "PENDING" - "RUNNING" - "SUCCEEDED" - "FAILED" - "CANCELLED"
*
* @param Aggregate[] $operationsByState
*/
public function setOperationsByState($operationsByState)
{
$this->operationsByState = $operationsByState;
}
/**
* @return Aggregate[]
*/
public function getOperationsByState()
{
return $this->operationsByState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RolloutStats::class, 'Google_Service_SaaSServiceManagement_RolloutStats');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class RunRolloutActionParams extends \Google\Model
{
/**
* Required. If true, the rollout will retry failed operations when resumed.
* This is applicable only the current state of the Rollout is PAUSED and the
* requested action is RUN.
*
* @var bool
*/
public $retryFailedOperations;
/**
* Required. If true, the rollout will retry failed operations when resumed.
* This is applicable only the current state of the Rollout is PAUSED and the
* requested action is RUN.
*
* @param bool $retryFailedOperations
*/
public function setRetryFailedOperations($retryFailedOperations)
{
$this->retryFailedOperations = $retryFailedOperations;
}
/**
* @return bool
*/
public function getRetryFailedOperations()
{
return $this->retryFailedOperations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunRolloutActionParams::class, 'Google_Service_SaaSServiceManagement_RunRolloutActionParams');
@@ -0,0 +1,329 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class Saas extends \Google\Collection
{
/**
* State type is unspecified.
*/
public const STATE_STATE_TYPE_UNSPECIFIED = 'STATE_TYPE_UNSPECIFIED';
/**
* The Saas is ready
*/
public const STATE_STATE_ACTIVE = 'STATE_ACTIVE';
/**
* In the process of importing, synchronizing or replicating
* ApplicationTemplates
*/
public const STATE_STATE_RUNNING = 'STATE_RUNNING';
/**
* Failure during process of importing, synchronizing or replicating
* ApplicationTemplate processing
*/
public const STATE_STATE_FAILED = 'STATE_FAILED';
/**
* Deprecated: Use STATE_ACTIVE.
*
* @deprecated
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* Deprecated: Use STATE_RUNNING.
*
* @deprecated
*/
public const STATE_RUNNING = 'RUNNING';
/**
* Deprecated: Use STATE_FAILED.
*
* @deprecated
*/
public const STATE_FAILED = 'FAILED';
protected $collection_key = 'locations';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
protected $conditionsType = SaasCondition::class;
protected $conditionsDataType = 'array';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/saas/{saas}"
*
* @var string
*/
public $name;
/**
* Output only. State of the Saas. It is always in ACTIVE state if the
* application_template is empty.
*
* @var string
*/
public $state;
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. A set of conditions which indicate the various conditions this
* resource can have.
*
* @param SaasCondition[] $conditions
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return SaasCondition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. If the state is FAILED, the corresponding error code and
* message. Defaults to code=OK for all other states.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. List of locations that the service is available in. Rollout
* refers to the list to generate a rollout plan.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/saas/{saas}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. State of the Saas. It is always in ACTIVE state if the
* application_template is empty.
*
* Accepted values: STATE_TYPE_UNSPECIFIED, STATE_ACTIVE, STATE_RUNNING,
* STATE_FAILED, ACTIVE, RUNNING, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @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(Saas::class, 'Google_Service_SaaSServiceManagement_Saas');
@@ -0,0 +1,171 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class SaasCondition extends \Google\Model
{
/**
* Condition status is unspecified.
*/
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Condition is unknown.
*/
public const STATUS_STATUS_UNKNOWN = 'STATUS_UNKNOWN';
/**
* Condition is true.
*/
public const STATUS_STATUS_TRUE = 'STATUS_TRUE';
/**
* Condition is false.
*/
public const STATUS_STATUS_FALSE = 'STATUS_FALSE';
/**
* Condition type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Condition type is ready.
*/
public const TYPE_TYPE_READY = 'TYPE_READY';
/**
* Condition type is synchronized.
*/
public const TYPE_TYPE_SYNCHRONIZED = 'TYPE_SYNCHRONIZED';
/**
* Required. Last time the condition transited from one status to another.
*
* @var string
*/
public $lastTransitionTime;
/**
* Required. Human readable message indicating details about the last
* transition.
*
* @var string
*/
public $message;
/**
* Required. Brief reason for the condition's last transition.
*
* @var string
*/
public $reason;
/**
* Required. Status of the condition.
*
* @var string
*/
public $status;
/**
* Required. Type of the condition.
*
* @var string
*/
public $type;
/**
* Required. Last time the condition transited from one status to another.
*
* @param string $lastTransitionTime
*/
public function setLastTransitionTime($lastTransitionTime)
{
$this->lastTransitionTime = $lastTransitionTime;
}
/**
* @return string
*/
public function getLastTransitionTime()
{
return $this->lastTransitionTime;
}
/**
* Required. Human readable message indicating details about the last
* transition.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Required. Brief reason for the condition's last transition.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* Required. Status of the condition.
*
* Accepted values: STATUS_UNSPECIFIED, STATUS_UNKNOWN, STATUS_TRUE,
* STATUS_FALSE
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* Required. Type of the condition.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_READY, TYPE_SYNCHRONIZED
*
* @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(SaasCondition::class, 'Google_Service_SaaSServiceManagement_SaasCondition');
@@ -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\SaaSServiceManagement;
class SaasservicemgmtEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SaasservicemgmtEmpty::class, 'Google_Service_SaaSServiceManagement_SaasservicemgmtEmpty');
@@ -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\SaaSServiceManagement;
class Schedule extends \Google\Model
{
/**
* Optional. Start of operation. If not set, will be set to the start of the
* next window. (optional)
*
* @var string
*/
public $startTime;
/**
* Optional. Start of operation. If not set, will be set to the start of the
* next window. (optional)
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Schedule::class, 'Google_Service_SaaSServiceManagement_Schedule');
@@ -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\SaaSServiceManagement;
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_SaaSServiceManagement_Status');
@@ -0,0 +1,262 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class Tenant extends \Google\Model
{
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
/**
* Optional. Immutable. A reference to the consumer resource this SaaS Tenant
* is representing. The relationship with a consumer resource can be used by
* App Lifecycle Manager for retrieving consumer-defined settings and policies
* such as maintenance policies (using Unified Maintenance Policy API).
*
* @var string
*/
public $consumerResource;
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/tenants/{tenant}"
*
* @var string
*/
public $name;
/**
* Required. Immutable. A reference to the Saas that defines the product
* (managed service) that the producer wants to manage with App Lifecycle
* Manager. Part of the App Lifecycle Manager common data model.
*
* @var string
*/
public $saas;
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. Immutable. A reference to the consumer resource this SaaS Tenant
* is representing. The relationship with a consumer resource can be used by
* App Lifecycle Manager for retrieving consumer-defined settings and policies
* such as maintenance policies (using Unified Maintenance Policy API).
*
* @param string $consumerResource
*/
public function setConsumerResource($consumerResource)
{
$this->consumerResource = $consumerResource;
}
/**
* @return string
*/
public function getConsumerResource()
{
return $this->consumerResource;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/tenants/{tenant}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. A reference to the Saas that defines the product
* (managed service) that the producer wants to manage with App Lifecycle
* Manager. Part of the App Lifecycle Manager common data model.
*
* @param string $saas
*/
public function setSaas($saas)
{
$this->saas = $saas;
}
/**
* @return string
*/
public function getSaas()
{
return $this->saas;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @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(Tenant::class, 'Google_Service_SaaSServiceManagement_Tenant');
@@ -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\SaaSServiceManagement;
class ToMapping extends \Google\Model
{
/**
* Required. Alias of the dependency that the inputVariable will pass its
* value to
*
* @var string
*/
public $dependency;
/**
* Optional. Tells App Lifecycle Manager if this mapping should be used during
* lookup or not
*
* @var bool
*/
public $ignoreForLookup;
/**
* Required. Name of the inputVariable on the dependency
*
* @var string
*/
public $inputVariable;
/**
* Required. Alias of the dependency that the inputVariable will pass its
* value to
*
* @param string $dependency
*/
public function setDependency($dependency)
{
$this->dependency = $dependency;
}
/**
* @return string
*/
public function getDependency()
{
return $this->dependency;
}
/**
* Optional. Tells App Lifecycle Manager if this mapping should be used during
* lookup or not
*
* @param bool $ignoreForLookup
*/
public function setIgnoreForLookup($ignoreForLookup)
{
$this->ignoreForLookup = $ignoreForLookup;
}
/**
* @return bool
*/
public function getIgnoreForLookup()
{
return $this->ignoreForLookup;
}
/**
* Required. Name of the inputVariable on the dependency
*
* @param string $inputVariable
*/
public function setInputVariable($inputVariable)
{
$this->inputVariable = $inputVariable;
}
/**
* @return string
*/
public function getInputVariable()
{
return $this->inputVariable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ToMapping::class, 'Google_Service_SaaSServiceManagement_ToMapping');
@@ -0,0 +1,695 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class Unit extends \Google\Collection
{
public const MANAGEMENT_MODE_MANAGEMENT_MODE_UNSPECIFIED = 'MANAGEMENT_MODE_UNSPECIFIED';
/**
* Unit's lifecycle is managed by the user.
*/
public const MANAGEMENT_MODE_MANAGEMENT_MODE_USER = 'MANAGEMENT_MODE_USER';
/**
* The system will decide when to deprovision and delete the unit. User still
* can deprovision or delete the unit manually.
*/
public const MANAGEMENT_MODE_MANAGEMENT_MODE_SYSTEM = 'MANAGEMENT_MODE_SYSTEM';
/**
* Unspecified state.
*/
public const STATE_UNIT_STATE_UNSPECIFIED = 'UNIT_STATE_UNSPECIFIED';
/**
* Unit is not provisioned.
*/
public const STATE_UNIT_STATE_NOT_PROVISIONED = 'UNIT_STATE_NOT_PROVISIONED';
/**
* Unit is being provisioned.
*/
public const STATE_UNIT_STATE_PROVISIONING = 'UNIT_STATE_PROVISIONING';
/**
* Unit is being updated. This is typically when a unit is being upgraded to a
* new release or some of the input variables on the Unit is being changed.
* Certain kinds of updates may cause the Unit to become unusable while the
* update is in progress.
*/
public const STATE_UNIT_STATE_UPDATING = 'UNIT_STATE_UPDATING';
/**
* Unit is being deleted.
*/
public const STATE_UNIT_STATE_DEPROVISIONING = 'UNIT_STATE_DEPROVISIONING';
/**
* Unit has been provisioned and is ready for use
*/
public const STATE_UNIT_STATE_READY = 'UNIT_STATE_READY';
/**
* Unit has error, when it is not ready and some error operation
*/
public const STATE_UNIT_STATE_ERROR = 'UNIT_STATE_ERROR';
public const SYSTEM_MANAGED_STATE_SYSTEM_MANAGED_STATE_UNSPECIFIED = 'SYSTEM_MANAGED_STATE_UNSPECIFIED';
/**
* Unit has dependents attached.
*/
public const SYSTEM_MANAGED_STATE_SYSTEM_MANAGED_STATE_ACTIVE = 'SYSTEM_MANAGED_STATE_ACTIVE';
/**
* Unit has no dependencies attached, but attachment is allowed.
*/
public const SYSTEM_MANAGED_STATE_SYSTEM_MANAGED_STATE_INACTIVE = 'SYSTEM_MANAGED_STATE_INACTIVE';
/**
* Unit has no dependencies attached, and attachment is not allowed.
*/
public const SYSTEM_MANAGED_STATE_SYSTEM_MANAGED_STATE_DECOMMISSIONED = 'SYSTEM_MANAGED_STATE_DECOMMISSIONED';
protected $collection_key = 'scheduledOperations';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
protected $conditionsType = UnitCondition::class;
protected $conditionsDataType = 'array';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
protected $dependenciesType = UnitDependency::class;
protected $dependenciesDataType = 'array';
protected $dependentsType = UnitDependency::class;
protected $dependentsDataType = 'array';
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
/**
* Optional. Output only. Flag revisions used by this Unit.
*
* @var string[]
*/
public $flagRevisions;
protected $inputVariablesType = UnitVariable::class;
protected $inputVariablesDataType = 'array';
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
protected $maintenanceType = MaintenanceSettings::class;
protected $maintenanceDataType = '';
/**
* Optional. Immutable. Indicates whether the Unit life cycle is controlled by
* the user or by the system. Immutable once created.
*
* @var string
*/
public $managementMode;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/units/{unit}"
*
* @var string
*/
public $name;
/**
* Optional. Output only. List of concurrent UnitOperations that are operating
* on this Unit.
*
* @var string[]
*/
public $ongoingOperations;
protected $outputVariablesType = UnitVariable::class;
protected $outputVariablesDataType = 'array';
/**
* Optional. Output only. List of pending (wait to be executed) UnitOperations
* for this unit.
*
* @var string[]
*/
public $pendingOperations;
/**
* Optional. Output only. The current Release object for this Unit.
*
* @var string
*/
public $release;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Indicates whether the resource location satisfies Zone
* Separation constraints. This is false by default.
*
* @var bool
*/
public $satisfiesPzs;
/**
* Optional. Output only. List of scheduled UnitOperations for this unit.
*
* @var string[]
*/
public $scheduledOperations;
/**
* Optional. Output only. Current lifecycle state of the resource (e.g. if
* it's being created or ready to use).
*
* @var string
*/
public $state;
/**
* Optional. Output only. If set, indicates the time when the system will
* start removing the unit.
*
* @var string
*/
public $systemCleanupAt;
/**
* Optional. Output only. Indicates the system managed state of the unit.
*
* @var string
*/
public $systemManagedState;
/**
* Optional. Reference to the Saas Tenant resource this unit belongs to. This
* for example informs the maintenance policies to use for scheduling future
* updates on a unit. (optional and immutable once created)
*
* @var string
*/
public $tenant;
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Optional. Reference to the UnitKind this Unit belongs to. Immutable once
* set.
*
* @var string
*/
public $unitKind;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. Output only. A set of conditions which indicate the various
* conditions this resource can have.
*
* @param UnitCondition[] $conditions
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return UnitCondition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Output only. Set of dependencies for this unit. Maximum 10.
*
* @param UnitDependency[] $dependencies
*/
public function setDependencies($dependencies)
{
$this->dependencies = $dependencies;
}
/**
* @return UnitDependency[]
*/
public function getDependencies()
{
return $this->dependencies;
}
/**
* Optional. Output only. List of Units that depend on this unit. Unit can
* only be deprovisioned if this list is empty. Maximum 1000.
*
* @param UnitDependency[] $dependents
*/
public function setDependents($dependents)
{
$this->dependents = $dependents;
}
/**
* @return UnitDependency[]
*/
public function getDependents()
{
return $this->dependents;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Output only. Flag revisions used by this Unit.
*
* @param string[] $flagRevisions
*/
public function setFlagRevisions($flagRevisions)
{
$this->flagRevisions = $flagRevisions;
}
/**
* @return string[]
*/
public function getFlagRevisions()
{
return $this->flagRevisions;
}
/**
* Optional. Output only. Indicates the current input variables deployed by
* the unit
*
* @param UnitVariable[] $inputVariables
*/
public function setInputVariables($inputVariables)
{
$this->inputVariables = $inputVariables;
}
/**
* @return UnitVariable[]
*/
public function getInputVariables()
{
return $this->inputVariables;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Captures requested directives for performing future maintenance
* on the unit. This includes a request for the unit to skip maintenance for a
* period of time and remain pinned to its current release as well as controls
* for postponing maintenance scheduled in future.
*
* @param MaintenanceSettings $maintenance
*/
public function setMaintenance(MaintenanceSettings $maintenance)
{
$this->maintenance = $maintenance;
}
/**
* @return MaintenanceSettings
*/
public function getMaintenance()
{
return $this->maintenance;
}
/**
* Optional. Immutable. Indicates whether the Unit life cycle is controlled by
* the user or by the system. Immutable once created.
*
* Accepted values: MANAGEMENT_MODE_UNSPECIFIED, MANAGEMENT_MODE_USER,
* MANAGEMENT_MODE_SYSTEM
*
* @param self::MANAGEMENT_MODE_* $managementMode
*/
public function setManagementMode($managementMode)
{
$this->managementMode = $managementMode;
}
/**
* @return self::MANAGEMENT_MODE_*
*/
public function getManagementMode()
{
return $this->managementMode;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/units/{unit}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Output only. List of concurrent UnitOperations that are operating
* on this Unit.
*
* @param string[] $ongoingOperations
*/
public function setOngoingOperations($ongoingOperations)
{
$this->ongoingOperations = $ongoingOperations;
}
/**
* @return string[]
*/
public function getOngoingOperations()
{
return $this->ongoingOperations;
}
/**
* Optional. Output only. Set of key/value pairs corresponding to output
* variables from execution of actuation templates. The variables are declared
* in actuation configs (e.g in helm chart or terraform) and the values are
* fetched and returned by the actuation engine upon completion of execution.
*
* @param UnitVariable[] $outputVariables
*/
public function setOutputVariables($outputVariables)
{
$this->outputVariables = $outputVariables;
}
/**
* @return UnitVariable[]
*/
public function getOutputVariables()
{
return $this->outputVariables;
}
/**
* Optional. Output only. List of pending (wait to be executed) UnitOperations
* for this unit.
*
* @param string[] $pendingOperations
*/
public function setPendingOperations($pendingOperations)
{
$this->pendingOperations = $pendingOperations;
}
/**
* @return string[]
*/
public function getPendingOperations()
{
return $this->pendingOperations;
}
/**
* Optional. Output only. The current Release object for this Unit.
*
* @param string $release
*/
public function setRelease($release)
{
$this->release = $release;
}
/**
* @return string
*/
public function getRelease()
{
return $this->release;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. Indicates whether the resource location satisfies Zone
* Separation constraints. This is false by default.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Optional. Output only. List of scheduled UnitOperations for this unit.
*
* @param string[] $scheduledOperations
*/
public function setScheduledOperations($scheduledOperations)
{
$this->scheduledOperations = $scheduledOperations;
}
/**
* @return string[]
*/
public function getScheduledOperations()
{
return $this->scheduledOperations;
}
/**
* Optional. Output only. Current lifecycle state of the resource (e.g. if
* it's being created or ready to use).
*
* Accepted values: UNIT_STATE_UNSPECIFIED, UNIT_STATE_NOT_PROVISIONED,
* UNIT_STATE_PROVISIONING, UNIT_STATE_UPDATING, UNIT_STATE_DEPROVISIONING,
* UNIT_STATE_READY, UNIT_STATE_ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional. Output only. If set, indicates the time when the system will
* start removing the unit.
*
* @param string $systemCleanupAt
*/
public function setSystemCleanupAt($systemCleanupAt)
{
$this->systemCleanupAt = $systemCleanupAt;
}
/**
* @return string
*/
public function getSystemCleanupAt()
{
return $this->systemCleanupAt;
}
/**
* Optional. Output only. Indicates the system managed state of the unit.
*
* Accepted values: SYSTEM_MANAGED_STATE_UNSPECIFIED,
* SYSTEM_MANAGED_STATE_ACTIVE, SYSTEM_MANAGED_STATE_INACTIVE,
* SYSTEM_MANAGED_STATE_DECOMMISSIONED
*
* @param self::SYSTEM_MANAGED_STATE_* $systemManagedState
*/
public function setSystemManagedState($systemManagedState)
{
$this->systemManagedState = $systemManagedState;
}
/**
* @return self::SYSTEM_MANAGED_STATE_*
*/
public function getSystemManagedState()
{
return $this->systemManagedState;
}
/**
* Optional. Reference to the Saas Tenant resource this unit belongs to. This
* for example informs the maintenance policies to use for scheduling future
* updates on a unit. (optional and immutable once created)
*
* @param string $tenant
*/
public function setTenant($tenant)
{
$this->tenant = $tenant;
}
/**
* @return string
*/
public function getTenant()
{
return $this->tenant;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Optional. Reference to the UnitKind this Unit belongs to. Immutable once
* set.
*
* @param string $unitKind
*/
public function setUnitKind($unitKind)
{
$this->unitKind = $unitKind;
}
/**
* @return string
*/
public function getUnitKind()
{
return $this->unitKind;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @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(Unit::class, 'Google_Service_SaaSServiceManagement_Unit');
@@ -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\SaaSServiceManagement;
class UnitCondition extends \Google\Model
{
/**
* Condition status is unspecified.
*/
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Condition is unknown.
*/
public const STATUS_STATUS_UNKNOWN = 'STATUS_UNKNOWN';
/**
* Condition is true.
*/
public const STATUS_STATUS_TRUE = 'STATUS_TRUE';
/**
* Condition is false.
*/
public const STATUS_STATUS_FALSE = 'STATUS_FALSE';
/**
* Condition type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Condition type is ready.
*/
public const TYPE_TYPE_READY = 'TYPE_READY';
/**
* Condition type is updating.
*/
public const TYPE_TYPE_UPDATING = 'TYPE_UPDATING';
/**
* Condition type is provisioned.
*/
public const TYPE_TYPE_PROVISIONED = 'TYPE_PROVISIONED';
/**
* Condition type is operationError. True when the last unit operation fails
* with a non-ignorable error.
*/
public const TYPE_TYPE_OPERATION_ERROR = 'TYPE_OPERATION_ERROR';
/**
* Condition type is flagsConfigInitialized. True when the flags configuration
* is synchronized and ready to be served.
*/
public const TYPE_TYPE_FLAGS_CONFIG_INITIALIZED = 'TYPE_FLAGS_CONFIG_INITIALIZED';
/**
* Required. Last time the condition transited from one status to another.
*
* @var string
*/
public $lastTransitionTime;
/**
* Required. Human readable message indicating details about the last
* transition.
*
* @var string
*/
public $message;
/**
* Required. Brief reason for the condition's last transition.
*
* @var string
*/
public $reason;
/**
* Required. Status of the condition.
*
* @var string
*/
public $status;
/**
* Required. Type of the condition.
*
* @var string
*/
public $type;
/**
* Required. Last time the condition transited from one status to another.
*
* @param string $lastTransitionTime
*/
public function setLastTransitionTime($lastTransitionTime)
{
$this->lastTransitionTime = $lastTransitionTime;
}
/**
* @return string
*/
public function getLastTransitionTime()
{
return $this->lastTransitionTime;
}
/**
* Required. Human readable message indicating details about the last
* transition.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Required. Brief reason for the condition's last transition.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* Required. Status of the condition.
*
* Accepted values: STATUS_UNSPECIFIED, STATUS_UNKNOWN, STATUS_TRUE,
* STATUS_FALSE
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* Required. Type of the condition.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_READY, TYPE_UPDATING,
* TYPE_PROVISIONED, TYPE_OPERATION_ERROR, TYPE_FLAGS_CONFIG_INITIALIZED
*
* @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(UnitCondition::class, 'Google_Service_SaaSServiceManagement_UnitCondition');
@@ -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\SaaSServiceManagement;
class UnitDependency extends \Google\Model
{
/**
* Output only. Alias for the name of the dependency.
*
* @var string
*/
public $alias;
/**
* Output only. A reference to the Unit object.
*
* @var string
*/
public $unit;
/**
* Output only. Alias for the name of the dependency.
*
* @param string $alias
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* Output only. A reference to the Unit object.
*
* @param string $unit
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnitDependency::class, 'Google_Service_SaaSServiceManagement_UnitDependency');
@@ -0,0 +1,346 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class UnitKind extends \Google\Collection
{
protected $collection_key = 'outputVariableMappings';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. Default revisions of flags for this UnitKind. Newly created units
* will use the flag default_flag_revisions present at the time of creation.
*
* @var string[]
*/
public $defaultFlagRevisions;
/**
* Optional. A reference to the Release object to use as default for creating
* new units of this UnitKind (optional). If not specified, a new unit must
* explicitly reference which release to use for its creation.
*
* @var string
*/
public $defaultRelease;
protected $dependenciesType = Dependency::class;
protected $dependenciesDataType = 'array';
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
protected $inputVariableMappingsType = VariableMapping::class;
protected $inputVariableMappingsDataType = 'array';
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/unitKinds/{unitKind}"
*
* @var string
*/
public $name;
protected $outputVariableMappingsType = VariableMapping::class;
protected $outputVariableMappingsDataType = 'array';
/**
* Required. Immutable. A reference to the Saas that defines the product
* (managed service) that the producer wants to manage with App Lifecycle
* Manager. Part of the App Lifecycle Manager common data model. Immutable
* once set.
*
* @var string
*/
public $saas;
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Default revisions of flags for this UnitKind. Newly created units
* will use the flag default_flag_revisions present at the time of creation.
*
* @param string[] $defaultFlagRevisions
*/
public function setDefaultFlagRevisions($defaultFlagRevisions)
{
$this->defaultFlagRevisions = $defaultFlagRevisions;
}
/**
* @return string[]
*/
public function getDefaultFlagRevisions()
{
return $this->defaultFlagRevisions;
}
/**
* Optional. A reference to the Release object to use as default for creating
* new units of this UnitKind (optional). If not specified, a new unit must
* explicitly reference which release to use for its creation.
*
* @param string $defaultRelease
*/
public function setDefaultRelease($defaultRelease)
{
$this->defaultRelease = $defaultRelease;
}
/**
* @return string
*/
public function getDefaultRelease()
{
return $this->defaultRelease;
}
/**
* Optional. Immutable. List of other unit kinds that this release will depend
* on. Dependencies will be automatically provisioned if not found. Maximum
* 10.
*
* @param Dependency[] $dependencies
*/
public function setDependencies($dependencies)
{
$this->dependencies = $dependencies;
}
/**
* @return Dependency[]
*/
public function getDependencies()
{
return $this->dependencies;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. List of inputVariables for this release that will either be
* retrieved from a dependencys outputVariables, or will be passed on to a
* dependencys inputVariables. Maximum 100.
*
* @param VariableMapping[] $inputVariableMappings
*/
public function setInputVariableMappings($inputVariableMappings)
{
$this->inputVariableMappings = $inputVariableMappings;
}
/**
* @return VariableMapping[]
*/
public function getInputVariableMappings()
{
return $this->inputVariableMappings;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/unitKinds/{unitKind}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. List of outputVariables for this unit kind will be passed to this
* unit's outputVariables. Maximum 100.
*
* @param VariableMapping[] $outputVariableMappings
*/
public function setOutputVariableMappings($outputVariableMappings)
{
$this->outputVariableMappings = $outputVariableMappings;
}
/**
* @return VariableMapping[]
*/
public function getOutputVariableMappings()
{
return $this->outputVariableMappings;
}
/**
* Required. Immutable. A reference to the Saas that defines the product
* (managed service) that the producer wants to manage with App Lifecycle
* Manager. Part of the App Lifecycle Manager common data model. Immutable
* once set.
*
* @param string $saas
*/
public function setSaas($saas)
{
$this->saas = $saas;
}
/**
* @return string
*/
public function getSaas()
{
return $this->saas;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @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(UnitKind::class, 'Google_Service_SaaSServiceManagement_UnitKind');
@@ -0,0 +1,566 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class UnitOperation extends \Google\Collection
{
/**
* Unit operation error category is unspecified
*/
public const ERROR_CATEGORY_UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED = 'UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED';
/**
* Unit operation error category is not applicable, or it is not an error
*/
public const ERROR_CATEGORY_NOT_APPLICABLE = 'NOT_APPLICABLE';
/**
* Unit operation error category is fatal
*/
public const ERROR_CATEGORY_FATAL = 'FATAL';
/**
* Unit operation error category is retriable
*/
public const ERROR_CATEGORY_RETRIABLE = 'RETRIABLE';
/**
* Unit operation error category is ignorable
*/
public const ERROR_CATEGORY_IGNORABLE = 'IGNORABLE';
/**
* Unit operation error category is standard, counts towards Rollout error
* budget
*/
public const ERROR_CATEGORY_STANDARD = 'STANDARD';
public const STATE_UNIT_OPERATION_STATE_UNKNOWN = 'UNIT_OPERATION_STATE_UNKNOWN';
/**
* Unit operation is accepted but not ready to run.
*/
public const STATE_UNIT_OPERATION_STATE_PENDING = 'UNIT_OPERATION_STATE_PENDING';
/**
* Unit operation is accepted and scheduled.
*/
public const STATE_UNIT_OPERATION_STATE_SCHEDULED = 'UNIT_OPERATION_STATE_SCHEDULED';
/**
* Unit operation is running.
*/
public const STATE_UNIT_OPERATION_STATE_RUNNING = 'UNIT_OPERATION_STATE_RUNNING';
/**
* Unit operation has completed successfully.
*/
public const STATE_UNIT_OPERATION_STATE_SUCCEEDED = 'UNIT_OPERATION_STATE_SUCCEEDED';
/**
* Unit operation has failed.
*/
public const STATE_UNIT_OPERATION_STATE_FAILED = 'UNIT_OPERATION_STATE_FAILED';
/**
* Unit operation was cancelled.
*/
public const STATE_UNIT_OPERATION_STATE_CANCELLED = 'UNIT_OPERATION_STATE_CANCELLED';
protected $collection_key = 'conditions';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @var string[]
*/
public $annotations;
/**
* Optional. When true, attempt to cancel the operation. Cancellation may fail
* if the operation is already executing. (Optional)
*
* @var bool
*/
public $cancel;
protected $conditionsType = UnitOperationCondition::class;
protected $conditionsDataType = 'array';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The timestamp when the resource was marked for deletion
* (deletion is an asynchronous operation).
*
* @var string
*/
public $deleteTime;
protected $deprovisionType = Deprovision::class;
protected $deprovisionDataType = '';
/**
* Optional. Output only. The engine state for on-going deployment engine
* operation(s). This field is opaque for external usage.
*
* @var string
*/
public $engineState;
/**
* Optional. Output only. UnitOperationErrorCategory describe the error
* category.
*
* @var string
*/
public $errorCategory;
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @var string
*/
public $etag;
protected $flagUpdateType = FlagUpdate::class;
protected $flagUpdateDataType = '';
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
*
* @var string
*/
public $name;
/**
* Optional. Reference to parent resource: UnitOperation. If an operation
* needs to create other operations as part of its workflow, each of the child
* operations should have this field set to the parent. This can be used for
* tracing. (Optional)
*
* @var string
*/
public $parentUnitOperation;
protected $provisionType = Provision::class;
protected $provisionDataType = '';
/**
* Optional. Specifies which rollout created this Unit Operation. This cannot
* be modified and is used for filtering purposes only. If a dependent unit
* and unit operation are created as part of another unit operation, they will
* use the same rolloutId.
*
* @var string
*/
public $rollout;
protected $scheduleType = Schedule::class;
protected $scheduleDataType = '';
/**
* Optional. Output only. UnitOperationState describes the current state of
* the unit operation.
*
* @var string
*/
public $state;
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @var string
*/
public $uid;
/**
* Required. Immutable. The Unit a given UnitOperation will act upon.
*
* @var string
*/
public $unit;
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @var string
*/
public $updateTime;
protected $upgradeType = Upgrade::class;
protected $upgradeDataType = '';
/**
* Optional. Annotations is an unstructured key-value map stored with a
* resource that may be set by external tools to store and retrieve arbitrary
* metadata. They are not queryable and should be preserved when modifying
* objects. More info: https://kubernetes.io/docs/user-guide/annotations
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. When true, attempt to cancel the operation. Cancellation may fail
* if the operation is already executing. (Optional)
*
* @param bool $cancel
*/
public function setCancel($cancel)
{
$this->cancel = $cancel;
}
/**
* @return bool
*/
public function getCancel()
{
return $this->cancel;
}
/**
* Optional. Output only. A set of conditions which indicate the various
* conditions this resource can have.
*
* @param UnitOperationCondition[] $conditions
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return UnitOperationCondition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The timestamp when the resource was marked for deletion
* (deletion is an asynchronous operation).
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param Deprovision $deprovision
*/
public function setDeprovision(Deprovision $deprovision)
{
$this->deprovision = $deprovision;
}
/**
* @return Deprovision
*/
public function getDeprovision()
{
return $this->deprovision;
}
/**
* Optional. Output only. The engine state for on-going deployment engine
* operation(s). This field is opaque for external usage.
*
* @param string $engineState
*/
public function setEngineState($engineState)
{
$this->engineState = $engineState;
}
/**
* @return string
*/
public function getEngineState()
{
return $this->engineState;
}
/**
* Optional. Output only. UnitOperationErrorCategory describe the error
* category.
*
* Accepted values: UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED, NOT_APPLICABLE,
* FATAL, RETRIABLE, IGNORABLE, STANDARD
*
* @param self::ERROR_CATEGORY_* $errorCategory
*/
public function setErrorCategory($errorCategory)
{
$this->errorCategory = $errorCategory;
}
/**
* @return self::ERROR_CATEGORY_*
*/
public function getErrorCategory()
{
return $this->errorCategory;
}
/**
* Output only. An opaque value that uniquely identifies a version or
* generation of a resource. It can be used to confirm that the client and
* server agree on the ordering of a resource being written.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param FlagUpdate $flagUpdate
*/
public function setFlagUpdate(FlagUpdate $flagUpdate)
{
$this->flagUpdate = $flagUpdate;
}
/**
* @return FlagUpdate
*/
public function getFlagUpdate()
{
return $this->flagUpdate;
}
/**
* Optional. The labels on the resource, which can be used for categorization.
* similar to Kubernetes resource labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name (full URI of the resource) following the
* standard naming scheme:
* "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Reference to parent resource: UnitOperation. If an operation
* needs to create other operations as part of its workflow, each of the child
* operations should have this field set to the parent. This can be used for
* tracing. (Optional)
*
* @param string $parentUnitOperation
*/
public function setParentUnitOperation($parentUnitOperation)
{
$this->parentUnitOperation = $parentUnitOperation;
}
/**
* @return string
*/
public function getParentUnitOperation()
{
return $this->parentUnitOperation;
}
/**
* @param Provision $provision
*/
public function setProvision(Provision $provision)
{
$this->provision = $provision;
}
/**
* @return Provision
*/
public function getProvision()
{
return $this->provision;
}
/**
* Optional. Specifies which rollout created this Unit Operation. This cannot
* be modified and is used for filtering purposes only. If a dependent unit
* and unit operation are created as part of another unit operation, they will
* use the same rolloutId.
*
* @param string $rollout
*/
public function setRollout($rollout)
{
$this->rollout = $rollout;
}
/**
* @return string
*/
public function getRollout()
{
return $this->rollout;
}
/**
* Optional. When to schedule this operation.
*
* @param Schedule $schedule
*/
public function setSchedule(Schedule $schedule)
{
$this->schedule = $schedule;
}
/**
* @return Schedule
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* Optional. Output only. UnitOperationState describes the current state of
* the unit operation.
*
* Accepted values: UNIT_OPERATION_STATE_UNKNOWN,
* UNIT_OPERATION_STATE_PENDING, UNIT_OPERATION_STATE_SCHEDULED,
* UNIT_OPERATION_STATE_RUNNING, UNIT_OPERATION_STATE_SUCCEEDED,
* UNIT_OPERATION_STATE_FAILED, UNIT_OPERATION_STATE_CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The unique identifier of the resource. UID is unique in the
* time and space for this resource within the scope of the service. It is
* typically generated by the server on successful creation of a resource and
* must not be changed. UID is used to uniquely identify resources with
* resource name reuses. This should be a UUID4.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Required. Immutable. The Unit a given UnitOperation will act upon.
*
* @param string $unit
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* Output only. The timestamp when the resource was last updated. Any change
* to the resource made by users must refresh this value. Changes to a
* resource made by the service should refresh this value.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param Upgrade $upgrade
*/
public function setUpgrade(Upgrade $upgrade)
{
$this->upgrade = $upgrade;
}
/**
* @return Upgrade
*/
public function getUpgrade()
{
return $this->upgrade;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnitOperation::class, 'Google_Service_SaaSServiceManagement_UnitOperation');
@@ -0,0 +1,196 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class UnitOperationCondition extends \Google\Model
{
/**
* Condition status is unspecified.
*/
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* Condition is unknown.
*/
public const STATUS_STATUS_UNKNOWN = 'STATUS_UNKNOWN';
/**
* Condition is true.
*/
public const STATUS_STATUS_TRUE = 'STATUS_TRUE';
/**
* Condition is false.
*/
public const STATUS_STATUS_FALSE = 'STATUS_FALSE';
/**
* Condition type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Condition type is scheduled.
*/
public const TYPE_TYPE_SCHEDULED = 'TYPE_SCHEDULED';
/**
* Condition type is running.
*/
public const TYPE_TYPE_RUNNING = 'TYPE_RUNNING';
/**
* Condition type is succeeded.
*/
public const TYPE_TYPE_SUCCEEDED = 'TYPE_SUCCEEDED';
/**
* Condition type is cancelled.
*/
public const TYPE_TYPE_CANCELLED = 'TYPE_CANCELLED';
/**
* Indicates if AppHub app has been created.
*/
public const TYPE_TYPE_APP_CREATED = 'TYPE_APP_CREATED';
/**
* Indicates if services and workloads have been registered with AppHub.
*/
public const TYPE_TYPE_APP_COMPONENTS_REGISTERED = 'TYPE_APP_COMPONENTS_REGISTERED';
/**
* Indicates if the UnitOperation's core workload execution completed
* successfully. The workload is the core execution operation performed for a
* UnitOperation (e.g., provisioning, updating, or deprovisioning resources)
* excluding post-operation checks.
*/
public const TYPE_TYPE_WORKLOAD_SUCCEEDED = 'TYPE_WORKLOAD_SUCCEEDED';
/**
* Required. Last time the condition transited from one status to another.
*
* @var string
*/
public $lastTransitionTime;
/**
* Required. Human readable message indicating details about the last
* transition.
*
* @var string
*/
public $message;
/**
* Required. Brief reason for the condition's last transition.
*
* @var string
*/
public $reason;
/**
* Required. Status of the condition.
*
* @var string
*/
public $status;
/**
* Required. Type of the condition.
*
* @var string
*/
public $type;
/**
* Required. Last time the condition transited from one status to another.
*
* @param string $lastTransitionTime
*/
public function setLastTransitionTime($lastTransitionTime)
{
$this->lastTransitionTime = $lastTransitionTime;
}
/**
* @return string
*/
public function getLastTransitionTime()
{
return $this->lastTransitionTime;
}
/**
* Required. Human readable message indicating details about the last
* transition.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Required. Brief reason for the condition's last transition.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* Required. Status of the condition.
*
* Accepted values: STATUS_UNSPECIFIED, STATUS_UNKNOWN, STATUS_TRUE,
* STATUS_FALSE
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* Required. Type of the condition.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_SCHEDULED, TYPE_RUNNING,
* TYPE_SUCCEEDED, TYPE_CANCELLED, TYPE_APP_CREATED,
* TYPE_APP_COMPONENTS_REGISTERED, TYPE_WORKLOAD_SUCCEEDED
*
* @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(UnitOperationCondition::class, 'Google_Service_SaaSServiceManagement_UnitOperationCondition');
@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class UnitVariable extends \Google\Model
{
/**
* Variable type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Variable type is string.
*/
public const TYPE_STRING = 'STRING';
/**
* Variable type is int.
*/
public const TYPE_INT = 'INT';
/**
* Variable type is bool.
*/
public const TYPE_BOOL = 'BOOL';
/**
* Variable type is struct.
*/
public const TYPE_STRUCT = 'STRUCT';
/**
* Variable type is list.
*/
public const TYPE_LIST = 'LIST';
/**
* Optional. Immutable. Name of a supported variable type. Supported types are
* string, int, bool.
*
* @var string
*/
public $type;
/**
* Optional. String encoded value for the variable.
*
* @var string
*/
public $value;
/**
* Required. Immutable. Name of the variable from actuation configs.
*
* @var string
*/
public $variable;
/**
* Optional. Immutable. Name of a supported variable type. Supported types are
* string, int, bool.
*
* Accepted values: TYPE_UNSPECIFIED, STRING, INT, BOOL, STRUCT, LIST
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Optional. String encoded value for the variable.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Required. Immutable. Name of the variable from actuation configs.
*
* @param string $variable
*/
public function setVariable($variable)
{
$this->variable = $variable;
}
/**
* @return string
*/
public function getVariable()
{
return $this->variable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnitVariable::class, 'Google_Service_SaaSServiceManagement_UnitVariable');
@@ -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\SaaSServiceManagement;
class Upgrade extends \Google\Collection
{
protected $collection_key = 'inputVariables';
protected $inputVariablesType = UnitVariable::class;
protected $inputVariablesDataType = 'array';
/**
* Optional. Reference to the Release object to use for the Unit. (optional).
*
* @var string
*/
public $release;
/**
* Optional. Set of input variables. Maximum 100. (optional)
*
* @param UnitVariable[] $inputVariables
*/
public function setInputVariables($inputVariables)
{
$this->inputVariables = $inputVariables;
}
/**
* @return UnitVariable[]
*/
public function getInputVariables()
{
return $this->inputVariables;
}
/**
* Optional. Reference to the Release object to use for the Unit. (optional).
*
* @param string $release
*/
public function setRelease($release)
{
$this->release = $release;
}
/**
* @return string
*/
public function getRelease()
{
return $this->release;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Upgrade::class, 'Google_Service_SaaSServiceManagement_Upgrade');
@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SaaSServiceManagement;
class VariableMapping extends \Google\Model
{
protected $fromType = FromMapping::class;
protected $fromDataType = '';
protected $toType = ToMapping::class;
protected $toDataType = '';
/**
* Required. name of the variable
*
* @var string
*/
public $variable;
/**
* Optional. Output variables which will get their values from dependencies
*
* @param FromMapping $from
*/
public function setFrom(FromMapping $from)
{
$this->from = $from;
}
/**
* @return FromMapping
*/
public function getFrom()
{
return $this->from;
}
/**
* Optional. Input variables whose values will be passed on to dependencies.
*
* @param ToMapping $to
*/
public function setTo(ToMapping $to)
{
$this->to = $to;
}
/**
* @return ToMapping
*/
public function getTo()
{
return $this->to;
}
/**
* Required. name of the variable
*
* @param string $variable
*/
public function setVariable($variable)
{
$this->variable = $variable;
}
/**
* @return string
*/
public function getVariable()
{
return $this->variable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VariableMapping::class, 'Google_Service_SaaSServiceManagement_VariableMapping');