Skip to content

Commit 4714570

Browse files
1 parent 0d55422 commit 4714570

9 files changed

Lines changed: 181 additions & 33 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\SaaSServiceManagement;
19+
20+
class FlagUpdate extends \Google\Model
21+
{
22+
/**
23+
* Required. Flag release being applied by UnitOperation.
24+
*
25+
* @var string
26+
*/
27+
public $flagRelease;
28+
29+
/**
30+
* Required. Flag release being applied by UnitOperation.
31+
*
32+
* @param string $flagRelease
33+
*/
34+
public function setFlagRelease($flagRelease)
35+
{
36+
$this->flagRelease = $flagRelease;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getFlagRelease()
42+
{
43+
return $this->flagRelease;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(FlagUpdate::class, 'Google_Service_SaaSServiceManagement_FlagUpdate');

src/SaaSServiceManagement/Rollout.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ class Rollout extends \Google\Model
112112
* @var string
113113
*/
114114
public $etag;
115+
/**
116+
* Optional. Immutable. Name of the FlagRelease to be rolled out to the target
117+
* Units. Release and FlagRelease are mutually exclusive. Note: `release`
118+
* comment needs to be adjusted to mention that "Release and FlagRelease are
119+
* mutually exclusive" when visibility restriction will be lifted.
120+
*
121+
* @var string
122+
*/
123+
public $flagRelease;
115124
/**
116125
* Optional. The labels on the resource, which can be used for categorization.
117126
* similar to Kubernetes resource labels.
@@ -359,6 +368,25 @@ public function getEtag()
359368
{
360369
return $this->etag;
361370
}
371+
/**
372+
* Optional. Immutable. Name of the FlagRelease to be rolled out to the target
373+
* Units. Release and FlagRelease are mutually exclusive. Note: `release`
374+
* comment needs to be adjusted to mention that "Release and FlagRelease are
375+
* mutually exclusive" when visibility restriction will be lifted.
376+
*
377+
* @param string $flagRelease
378+
*/
379+
public function setFlagRelease($flagRelease)
380+
{
381+
$this->flagRelease = $flagRelease;
382+
}
383+
/**
384+
* @return string
385+
*/
386+
public function getFlagRelease()
387+
{
388+
return $this->flagRelease;
389+
}
362390
/**
363391
* Optional. The labels on the resource, which can be used for categorization.
364392
* similar to Kubernetes resource labels.

src/SaaSServiceManagement/Saas.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ class Saas extends \Google\Collection
2323
* State type is unspecified.
2424
*/
2525
public const STATE_STATE_TYPE_UNSPECIFIED = 'STATE_TYPE_UNSPECIFIED';
26+
/**
27+
* The Saas is ready
28+
*/
29+
public const STATE_STATE_ACTIVE = 'STATE_ACTIVE';
30+
/**
31+
* In the process of importing, synchronizing or replicating
32+
* ApplicationTemplates
33+
*/
34+
public const STATE_STATE_RUNNING = 'STATE_RUNNING';
35+
/**
36+
* Failure during process of importing, synchronizing or replicating
37+
* ApplicationTemplate processing
38+
*/
39+
public const STATE_STATE_FAILED = 'STATE_FAILED';
2640
/**
2741
* Deprecated: Use STATE_ACTIVE.
2842
*
@@ -41,20 +55,6 @@ class Saas extends \Google\Collection
4155
* @deprecated
4256
*/
4357
public const STATE_FAILED = 'FAILED';
44-
/**
45-
* The Saas is ready
46-
*/
47-
public const STATE_STATE_ACTIVE = 'STATE_ACTIVE';
48-
/**
49-
* In the process of importing, synchronizing or replicating
50-
* ApplicationTemplates
51-
*/
52-
public const STATE_STATE_RUNNING = 'STATE_RUNNING';
53-
/**
54-
* Failure during process of importing, synchronizing or replicating
55-
* ApplicationTemplate processing
56-
*/
57-
public const STATE_STATE_FAILED = 'STATE_FAILED';
5858
protected $collection_key = 'locations';
5959
/**
6060
* Optional. Annotations is an unstructured key-value map stored with a
@@ -269,8 +269,8 @@ public function getName()
269269
* Output only. State of the Saas. It is always in ACTIVE state if the
270270
* application_template is empty.
271271
*
272-
* Accepted values: STATE_TYPE_UNSPECIFIED, ACTIVE, RUNNING, FAILED,
273-
* STATE_ACTIVE, STATE_RUNNING, STATE_FAILED
272+
* Accepted values: STATE_TYPE_UNSPECIFIED, STATE_ACTIVE, STATE_RUNNING,
273+
* STATE_FAILED, ACTIVE, RUNNING, FAILED
274274
*
275275
* @param self::STATE_* $state
276276
*/

src/SaaSServiceManagement/Tenant.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class Tenant extends \Google\Model
3131
/**
3232
* Optional. Immutable. A reference to the consumer resource this SaaS Tenant
3333
* is representing. The relationship with a consumer resource can be used by
34-
* SaaS Runtime for retrieving consumer-defined settings and policies such as
35-
* maintenance policies (using Unified Maintenance Policy API).
34+
* App Lifecycle Manager for retrieving consumer-defined settings and policies
35+
* such as maintenance policies (using Unified Maintenance Policy API).
3636
*
3737
* @var string
3838
*/
@@ -68,8 +68,8 @@ class Tenant extends \Google\Model
6868
public $name;
6969
/**
7070
* Required. Immutable. A reference to the Saas that defines the product
71-
* (managed service) that the producer wants to manage with SaaS Runtime. Part
72-
* of the SaaS Runtime common data model.
71+
* (managed service) that the producer wants to manage with App Lifecycle
72+
* Manager. Part of the App Lifecycle Manager common data model.
7373
*
7474
* @var string
7575
*/
@@ -115,8 +115,8 @@ public function getAnnotations()
115115
/**
116116
* Optional. Immutable. A reference to the consumer resource this SaaS Tenant
117117
* is representing. The relationship with a consumer resource can be used by
118-
* SaaS Runtime for retrieving consumer-defined settings and policies such as
119-
* maintenance policies (using Unified Maintenance Policy API).
118+
* App Lifecycle Manager for retrieving consumer-defined settings and policies
119+
* such as maintenance policies (using Unified Maintenance Policy API).
120120
*
121121
* @param string $consumerResource
122122
*/
@@ -202,8 +202,8 @@ public function getName()
202202
}
203203
/**
204204
* Required. Immutable. A reference to the Saas that defines the product
205-
* (managed service) that the producer wants to manage with SaaS Runtime. Part
206-
* of the SaaS Runtime common data model.
205+
* (managed service) that the producer wants to manage with App Lifecycle
206+
* Manager. Part of the App Lifecycle Manager common data model.
207207
*
208208
* @param string $saas
209209
*/

src/SaaSServiceManagement/ToMapping.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class ToMapping extends \Google\Model
2727
*/
2828
public $dependency;
2929
/**
30-
* Optional. Tells SaaS Runtime if this mapping should be used during lookup
31-
* or not
30+
* Optional. Tells App Lifecycle Manager if this mapping should be used during
31+
* lookup or not
3232
*
3333
* @var bool
3434
*/
@@ -58,8 +58,8 @@ public function getDependency()
5858
return $this->dependency;
5959
}
6060
/**
61-
* Optional. Tells SaaS Runtime if this mapping should be used during lookup
62-
* or not
61+
* Optional. Tells App Lifecycle Manager if this mapping should be used during
62+
* lookup or not
6363
*
6464
* @param bool $ignoreForLookup
6565
*/

src/SaaSServiceManagement/Unit.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ class Unit extends \Google\Collection
103103
* @var string
104104
*/
105105
public $etag;
106+
/**
107+
* Optional. Output only. Flag revisions used by this Unit.
108+
*
109+
* @var string[]
110+
*/
111+
public $flagRevisions;
106112
protected $inputVariablesType = UnitVariable::class;
107113
protected $inputVariablesDataType = 'array';
108114
/**
@@ -327,6 +333,22 @@ public function getEtag()
327333
{
328334
return $this->etag;
329335
}
336+
/**
337+
* Optional. Output only. Flag revisions used by this Unit.
338+
*
339+
* @param string[] $flagRevisions
340+
*/
341+
public function setFlagRevisions($flagRevisions)
342+
{
343+
$this->flagRevisions = $flagRevisions;
344+
}
345+
/**
346+
* @return string[]
347+
*/
348+
public function getFlagRevisions()
349+
{
350+
return $this->flagRevisions;
351+
}
330352
/**
331353
* Optional. Output only. Indicates the current input variables deployed by
332354
* the unit

src/SaaSServiceManagement/UnitKind.php

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ class UnitKind extends \Google\Collection
3535
* @var string
3636
*/
3737
public $createTime;
38+
/**
39+
* Optional. Default revisions of flags for this UnitKind. Newly created units
40+
* will use the flag default_flag_revisions present at the time of creation.
41+
*
42+
* @var string[]
43+
*/
44+
public $defaultFlagRevisions;
3845
/**
3946
* Optional. A reference to the Release object to use as default for creating
4047
* new units of this UnitKind (optional). If not specified, a new unit must
@@ -74,8 +81,9 @@ class UnitKind extends \Google\Collection
7481
protected $outputVariableMappingsDataType = 'array';
7582
/**
7683
* Required. Immutable. A reference to the Saas that defines the product
77-
* (managed service) that the producer wants to manage with SaaS Runtime. Part
78-
* of the SaaS Runtime common data model. Immutable once set.
84+
* (managed service) that the producer wants to manage with App Lifecycle
85+
* Manager. Part of the App Lifecycle Manager common data model. Immutable
86+
* once set.
7987
*
8088
* @var string
8189
*/
@@ -134,6 +142,23 @@ public function getCreateTime()
134142
{
135143
return $this->createTime;
136144
}
145+
/**
146+
* Optional. Default revisions of flags for this UnitKind. Newly created units
147+
* will use the flag default_flag_revisions present at the time of creation.
148+
*
149+
* @param string[] $defaultFlagRevisions
150+
*/
151+
public function setDefaultFlagRevisions($defaultFlagRevisions)
152+
{
153+
$this->defaultFlagRevisions = $defaultFlagRevisions;
154+
}
155+
/**
156+
* @return string[]
157+
*/
158+
public function getDefaultFlagRevisions()
159+
{
160+
return $this->defaultFlagRevisions;
161+
}
137162
/**
138163
* Optional. A reference to the Release object to use as default for creating
139164
* new units of this UnitKind (optional). If not specified, a new unit must
@@ -260,8 +285,9 @@ public function getOutputVariableMappings()
260285
}
261286
/**
262287
* Required. Immutable. A reference to the Saas that defines the product
263-
* (managed service) that the producer wants to manage with SaaS Runtime. Part
264-
* of the SaaS Runtime common data model. Immutable once set.
288+
* (managed service) that the producer wants to manage with App Lifecycle
289+
* Manager. Part of the App Lifecycle Manager common data model. Immutable
290+
* once set.
265291
*
266292
* @param string $saas
267293
*/

src/SaaSServiceManagement/UnitOperation.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ class UnitOperation extends \Google\Collection
125125
* @var string
126126
*/
127127
public $etag;
128+
protected $flagUpdateType = FlagUpdate::class;
129+
protected $flagUpdateDataType = '';
128130
/**
129131
* Optional. The labels on the resource, which can be used for categorization.
130132
* similar to Kubernetes resource labels.
@@ -351,6 +353,20 @@ public function getEtag()
351353
{
352354
return $this->etag;
353355
}
356+
/**
357+
* @param FlagUpdate $flagUpdate
358+
*/
359+
public function setFlagUpdate(FlagUpdate $flagUpdate)
360+
{
361+
$this->flagUpdate = $flagUpdate;
362+
}
363+
/**
364+
* @return FlagUpdate
365+
*/
366+
public function getFlagUpdate()
367+
{
368+
return $this->flagUpdate;
369+
}
354370
/**
355371
* Optional. The labels on the resource, which can be used for categorization.
356372
* similar to Kubernetes resource labels.

src/SaaSServiceManagement/UnitVariable.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ class UnitVariable extends \Google\Model
3535
* Variable type is bool.
3636
*/
3737
public const TYPE_BOOL = 'BOOL';
38+
/**
39+
* Variable type is struct.
40+
*/
41+
public const TYPE_STRUCT = 'STRUCT';
42+
/**
43+
* Variable type is list.
44+
*/
45+
public const TYPE_LIST = 'LIST';
3846
/**
3947
* Optional. Immutable. Name of a supported variable type. Supported types are
4048
* string, int, bool.
@@ -59,7 +67,7 @@ class UnitVariable extends \Google\Model
5967
* Optional. Immutable. Name of a supported variable type. Supported types are
6068
* string, int, bool.
6169
*
62-
* Accepted values: TYPE_UNSPECIFIED, STRING, INT, BOOL
70+
* Accepted values: TYPE_UNSPECIFIED, STRING, INT, BOOL, STRUCT, LIST
6371
*
6472
* @param self::TYPE_* $type
6573
*/

0 commit comments

Comments
 (0)