Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/SaaSServiceManagement/FlagUpdate.php
Original file line number Diff line number Diff line change
@@ -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');
28 changes: 28 additions & 0 deletions src/SaaSServiceManagement/Rollout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
32 changes: 16 additions & 16 deletions src/SaaSServiceManagement/Saas.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down
16 changes: 8 additions & 8 deletions src/SaaSServiceManagement/Tenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
8 changes: 4 additions & 4 deletions src/SaaSServiceManagement/ToMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
22 changes: 22 additions & 0 deletions src/SaaSServiceManagement/Unit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
/**
Expand Down Expand Up @@ -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
Expand Down
34 changes: 30 additions & 4 deletions src/SaaSServiceManagement/UnitKind.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down
16 changes: 16 additions & 0 deletions src/SaaSServiceManagement/UnitOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
10 changes: 9 additions & 1 deletion src/SaaSServiceManagement/UnitVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
*/
Expand Down
Loading