diff --git a/src/SaaSServiceManagement/FlagUpdate.php b/src/SaaSServiceManagement/FlagUpdate.php new file mode 100644 index 0000000000..9ffb47441c --- /dev/null +++ b/src/SaaSServiceManagement/FlagUpdate.php @@ -0,0 +1,48 @@ +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'); diff --git a/src/SaaSServiceManagement/Rollout.php b/src/SaaSServiceManagement/Rollout.php index 4836fef84d..1f39c5ed6e 100644 --- a/src/SaaSServiceManagement/Rollout.php +++ b/src/SaaSServiceManagement/Rollout.php @@ -112,6 +112,15 @@ class Rollout extends \Google\Model * @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. @@ -359,6 +368,25 @@ 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. diff --git a/src/SaaSServiceManagement/Saas.php b/src/SaaSServiceManagement/Saas.php index d6f9b41391..cfd7d36e25 100644 --- a/src/SaaSServiceManagement/Saas.php +++ b/src/SaaSServiceManagement/Saas.php @@ -23,6 +23,20 @@ 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. * @@ -41,20 +55,6 @@ class Saas extends \Google\Collection * @deprecated */ public const STATE_FAILED = 'FAILED'; - /** - * 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'; protected $collection_key = 'locations'; /** * Optional. Annotations is an unstructured key-value map stored with a @@ -269,8 +269,8 @@ public function getName() * Output only. State of the Saas. It is always in ACTIVE state if the * application_template is empty. * - * Accepted values: STATE_TYPE_UNSPECIFIED, ACTIVE, RUNNING, FAILED, - * STATE_ACTIVE, STATE_RUNNING, STATE_FAILED + * Accepted values: STATE_TYPE_UNSPECIFIED, STATE_ACTIVE, STATE_RUNNING, + * STATE_FAILED, ACTIVE, RUNNING, FAILED * * @param self::STATE_* $state */ diff --git a/src/SaaSServiceManagement/Tenant.php b/src/SaaSServiceManagement/Tenant.php index b1e10a978c..677d787923 100644 --- a/src/SaaSServiceManagement/Tenant.php +++ b/src/SaaSServiceManagement/Tenant.php @@ -31,8 +31,8 @@ class Tenant extends \Google\Model /** * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. The relationship with a consumer resource can be used by - * SaaS Runtime for retrieving consumer-defined settings and policies such as - * maintenance policies (using Unified Maintenance Policy API). + * App Lifecycle Manager for retrieving consumer-defined settings and policies + * such as maintenance policies (using Unified Maintenance Policy API). * * @var string */ @@ -68,8 +68,8 @@ class Tenant extends \Google\Model public $name; /** * Required. Immutable. A reference to the Saas that defines the product - * (managed service) that the producer wants to manage with SaaS Runtime. Part - * of the SaaS Runtime common data model. + * (managed service) that the producer wants to manage with App Lifecycle + * Manager. Part of the App Lifecycle Manager common data model. * * @var string */ @@ -115,8 +115,8 @@ public function getAnnotations() /** * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. The relationship with a consumer resource can be used by - * SaaS Runtime for retrieving consumer-defined settings and policies such as - * maintenance policies (using Unified Maintenance Policy API). + * App Lifecycle Manager for retrieving consumer-defined settings and policies + * such as maintenance policies (using Unified Maintenance Policy API). * * @param string $consumerResource */ @@ -202,8 +202,8 @@ public function getName() } /** * Required. Immutable. A reference to the Saas that defines the product - * (managed service) that the producer wants to manage with SaaS Runtime. Part - * of the SaaS Runtime common data model. + * (managed service) that the producer wants to manage with App Lifecycle + * Manager. Part of the App Lifecycle Manager common data model. * * @param string $saas */ diff --git a/src/SaaSServiceManagement/ToMapping.php b/src/SaaSServiceManagement/ToMapping.php index 6a41ee0bfc..377415b5d6 100644 --- a/src/SaaSServiceManagement/ToMapping.php +++ b/src/SaaSServiceManagement/ToMapping.php @@ -27,8 +27,8 @@ class ToMapping extends \Google\Model */ public $dependency; /** - * Optional. Tells SaaS Runtime if this mapping should be used during lookup - * or not + * Optional. Tells App Lifecycle Manager if this mapping should be used during + * lookup or not * * @var bool */ @@ -58,8 +58,8 @@ public function getDependency() return $this->dependency; } /** - * Optional. Tells SaaS Runtime if this mapping should be used during lookup - * or not + * Optional. Tells App Lifecycle Manager if this mapping should be used during + * lookup or not * * @param bool $ignoreForLookup */ diff --git a/src/SaaSServiceManagement/Unit.php b/src/SaaSServiceManagement/Unit.php index 84ca43cd2c..2c6f4fab15 100644 --- a/src/SaaSServiceManagement/Unit.php +++ b/src/SaaSServiceManagement/Unit.php @@ -103,6 +103,12 @@ class Unit extends \Google\Collection * @var string */ public $etag; + /** + * Optional. Output only. Flag revisions used by this Unit. + * + * @var string[] + */ + public $flagRevisions; protected $inputVariablesType = UnitVariable::class; protected $inputVariablesDataType = 'array'; /** @@ -327,6 +333,22 @@ 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 diff --git a/src/SaaSServiceManagement/UnitKind.php b/src/SaaSServiceManagement/UnitKind.php index 36dc3a7d68..35336c9792 100644 --- a/src/SaaSServiceManagement/UnitKind.php +++ b/src/SaaSServiceManagement/UnitKind.php @@ -35,6 +35,13 @@ class UnitKind extends \Google\Collection * @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 @@ -74,8 +81,9 @@ class UnitKind extends \Google\Collection protected $outputVariableMappingsDataType = 'array'; /** * Required. Immutable. A reference to the Saas that defines the product - * (managed service) that the producer wants to manage with SaaS Runtime. Part - * of the SaaS Runtime common data model. Immutable once set. + * (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 */ @@ -134,6 +142,23 @@ 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 @@ -260,8 +285,9 @@ public function getOutputVariableMappings() } /** * Required. Immutable. A reference to the Saas that defines the product - * (managed service) that the producer wants to manage with SaaS Runtime. Part - * of the SaaS Runtime common data model. Immutable once set. + * (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 */ diff --git a/src/SaaSServiceManagement/UnitOperation.php b/src/SaaSServiceManagement/UnitOperation.php index b6bfd913d5..2a63f1785b 100644 --- a/src/SaaSServiceManagement/UnitOperation.php +++ b/src/SaaSServiceManagement/UnitOperation.php @@ -125,6 +125,8 @@ class UnitOperation extends \Google\Collection * @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. @@ -351,6 +353,20 @@ 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. diff --git a/src/SaaSServiceManagement/UnitVariable.php b/src/SaaSServiceManagement/UnitVariable.php index 5b11cd2182..912a748319 100644 --- a/src/SaaSServiceManagement/UnitVariable.php +++ b/src/SaaSServiceManagement/UnitVariable.php @@ -35,6 +35,14 @@ class UnitVariable extends \Google\Model * 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. @@ -59,7 +67,7 @@ class UnitVariable extends \Google\Model * Optional. Immutable. Name of a supported variable type. Supported types are * string, int, bool. * - * Accepted values: TYPE_UNSPECIFIED, STRING, INT, BOOL + * Accepted values: TYPE_UNSPECIFIED, STRING, INT, BOOL, STRUCT, LIST * * @param self::TYPE_* $type */