Skip to content

Commit 42493f9

Browse files
1 parent 6a1ce53 commit 42493f9

File tree

4 files changed

+284
-7
lines changed

4 files changed

+284
-7
lines changed

src/SaaSServiceManagement/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,16 @@ public function get($name, $optParams = [])
4646
}
4747
/**
4848
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: * **List all public locations:** Use the path `GET
50-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
51-
* /v1/projects/{project_id}/locations`. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
53-
* (locations.listProjectsLocations)
49+
* lists locations based on the resource scope provided in the
50+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
51+
* empty, the method lists the public locations available to all projects. *
52+
* **Project-specific locations**: If `name` follows the format
53+
* `projects/{project}`, the method lists locations visible to that specific
54+
* project. This includes public, private, or other project-specific locations
55+
* enabled for the project. For gRPC and client library implementations, the
56+
* resource name is passed as the `name` field. For direct service calls, the
57+
* resource name is incorporated into the request path based on the specific
58+
* service implementation and version. (locations.listProjectsLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if
5661
* applicable.

src/SaaSServiceManagement/Rollout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class Rollout extends \Google\Model
144144
*/
145145
public $release;
146146
/**
147-
* Optional. Immutable. Name of the RolloutKind this rollout is stemming from
147+
* Required. Immutable. Name of the RolloutKind this rollout is stemming from
148148
* and adhering to.
149149
*
150150
* @var string
@@ -431,7 +431,7 @@ public function getRelease()
431431
return $this->release;
432432
}
433433
/**
434-
* Optional. Immutable. Name of the RolloutKind this rollout is stemming from
434+
* Required. Immutable. Name of the RolloutKind this rollout is stemming from
435435
* and adhering to.
436436
*
437437
* @param string $rolloutKind

src/SaaSServiceManagement/Saas.php

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,42 @@
1919

2020
class Saas extends \Google\Collection
2121
{
22+
/**
23+
* State type is unspecified.
24+
*/
25+
public const STATE_STATE_TYPE_UNSPECIFIED = 'STATE_TYPE_UNSPECIFIED';
26+
/**
27+
* Deprecated: Use STATE_ACTIVE.
28+
*
29+
* @deprecated
30+
*/
31+
public const STATE_ACTIVE = 'ACTIVE';
32+
/**
33+
* Deprecated: Use STATE_RUNNING.
34+
*
35+
* @deprecated
36+
*/
37+
public const STATE_RUNNING = 'RUNNING';
38+
/**
39+
* Deprecated: Use STATE_FAILED.
40+
*
41+
* @deprecated
42+
*/
43+
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';
2258
protected $collection_key = 'locations';
2359
/**
2460
* Optional. Annotations is an unstructured key-value map stored with a
@@ -29,12 +65,16 @@ class Saas extends \Google\Collection
2965
* @var string[]
3066
*/
3167
public $annotations;
68+
protected $conditionsType = SaasCondition::class;
69+
protected $conditionsDataType = 'array';
3270
/**
3371
* Output only. The timestamp when the resource was created.
3472
*
3573
* @var string
3674
*/
3775
public $createTime;
76+
protected $errorType = Status::class;
77+
protected $errorDataType = '';
3878
/**
3979
* Output only. An opaque value that uniquely identifies a version or
4080
* generation of a resource. It can be used to confirm that the client and
@@ -60,6 +100,13 @@ class Saas extends \Google\Collection
60100
* @var string
61101
*/
62102
public $name;
103+
/**
104+
* Output only. State of the Saas. It is always in ACTIVE state if the
105+
* application_template is empty.
106+
*
107+
* @var string
108+
*/
109+
public $state;
63110
/**
64111
* Output only. The unique identifier of the resource. UID is unique in the
65112
* time and space for this resource within the scope of the service. It is
@@ -98,6 +145,23 @@ public function getAnnotations()
98145
{
99146
return $this->annotations;
100147
}
148+
/**
149+
* Output only. A set of conditions which indicate the various conditions this
150+
* resource can have.
151+
*
152+
* @param SaasCondition[] $conditions
153+
*/
154+
public function setConditions($conditions)
155+
{
156+
$this->conditions = $conditions;
157+
}
158+
/**
159+
* @return SaasCondition[]
160+
*/
161+
public function getConditions()
162+
{
163+
return $this->conditions;
164+
}
101165
/**
102166
* Output only. The timestamp when the resource was created.
103167
*
@@ -114,6 +178,23 @@ public function getCreateTime()
114178
{
115179
return $this->createTime;
116180
}
181+
/**
182+
* Output only. If the state is FAILED, the corresponding error code and
183+
* message. Defaults to code=OK for all other states.
184+
*
185+
* @param Status $error
186+
*/
187+
public function setError(Status $error)
188+
{
189+
$this->error = $error;
190+
}
191+
/**
192+
* @return Status
193+
*/
194+
public function getError()
195+
{
196+
return $this->error;
197+
}
117198
/**
118199
* Output only. An opaque value that uniquely identifies a version or
119200
* generation of a resource. It can be used to confirm that the client and
@@ -184,6 +265,26 @@ public function getName()
184265
{
185266
return $this->name;
186267
}
268+
/**
269+
* Output only. State of the Saas. It is always in ACTIVE state if the
270+
* application_template is empty.
271+
*
272+
* Accepted values: STATE_TYPE_UNSPECIFIED, ACTIVE, RUNNING, FAILED,
273+
* STATE_ACTIVE, STATE_RUNNING, STATE_FAILED
274+
*
275+
* @param self::STATE_* $state
276+
*/
277+
public function setState($state)
278+
{
279+
$this->state = $state;
280+
}
281+
/**
282+
* @return self::STATE_*
283+
*/
284+
public function getState()
285+
{
286+
return $this->state;
287+
}
187288
/**
188289
* Output only. The unique identifier of the resource. UID is unique in the
189290
* time and space for this resource within the scope of the service. It is
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
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 SaasCondition extends \Google\Model
21+
{
22+
/**
23+
* Condition status is unspecified.
24+
*/
25+
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
26+
/**
27+
* Condition is unknown.
28+
*/
29+
public const STATUS_STATUS_UNKNOWN = 'STATUS_UNKNOWN';
30+
/**
31+
* Condition is true.
32+
*/
33+
public const STATUS_STATUS_TRUE = 'STATUS_TRUE';
34+
/**
35+
* Condition is false.
36+
*/
37+
public const STATUS_STATUS_FALSE = 'STATUS_FALSE';
38+
/**
39+
* Condition type is unspecified.
40+
*/
41+
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
42+
/**
43+
* Condition type is ready.
44+
*/
45+
public const TYPE_TYPE_READY = 'TYPE_READY';
46+
/**
47+
* Condition type is synchronized.
48+
*/
49+
public const TYPE_TYPE_SYNCHRONIZED = 'TYPE_SYNCHRONIZED';
50+
/**
51+
* Required. Last time the condition transited from one status to another.
52+
*
53+
* @var string
54+
*/
55+
public $lastTransitionTime;
56+
/**
57+
* Required. Human readable message indicating details about the last
58+
* transition.
59+
*
60+
* @var string
61+
*/
62+
public $message;
63+
/**
64+
* Required. Brief reason for the condition's last transition.
65+
*
66+
* @var string
67+
*/
68+
public $reason;
69+
/**
70+
* Required. Status of the condition.
71+
*
72+
* @var string
73+
*/
74+
public $status;
75+
/**
76+
* Required. Type of the condition.
77+
*
78+
* @var string
79+
*/
80+
public $type;
81+
82+
/**
83+
* Required. Last time the condition transited from one status to another.
84+
*
85+
* @param string $lastTransitionTime
86+
*/
87+
public function setLastTransitionTime($lastTransitionTime)
88+
{
89+
$this->lastTransitionTime = $lastTransitionTime;
90+
}
91+
/**
92+
* @return string
93+
*/
94+
public function getLastTransitionTime()
95+
{
96+
return $this->lastTransitionTime;
97+
}
98+
/**
99+
* Required. Human readable message indicating details about the last
100+
* transition.
101+
*
102+
* @param string $message
103+
*/
104+
public function setMessage($message)
105+
{
106+
$this->message = $message;
107+
}
108+
/**
109+
* @return string
110+
*/
111+
public function getMessage()
112+
{
113+
return $this->message;
114+
}
115+
/**
116+
* Required. Brief reason for the condition's last transition.
117+
*
118+
* @param string $reason
119+
*/
120+
public function setReason($reason)
121+
{
122+
$this->reason = $reason;
123+
}
124+
/**
125+
* @return string
126+
*/
127+
public function getReason()
128+
{
129+
return $this->reason;
130+
}
131+
/**
132+
* Required. Status of the condition.
133+
*
134+
* Accepted values: STATUS_UNSPECIFIED, STATUS_UNKNOWN, STATUS_TRUE,
135+
* STATUS_FALSE
136+
*
137+
* @param self::STATUS_* $status
138+
*/
139+
public function setStatus($status)
140+
{
141+
$this->status = $status;
142+
}
143+
/**
144+
* @return self::STATUS_*
145+
*/
146+
public function getStatus()
147+
{
148+
return $this->status;
149+
}
150+
/**
151+
* Required. Type of the condition.
152+
*
153+
* Accepted values: TYPE_UNSPECIFIED, TYPE_READY, TYPE_SYNCHRONIZED
154+
*
155+
* @param self::TYPE_* $type
156+
*/
157+
public function setType($type)
158+
{
159+
$this->type = $type;
160+
}
161+
/**
162+
* @return self::TYPE_*
163+
*/
164+
public function getType()
165+
{
166+
return $this->type;
167+
}
168+
}
169+
170+
// Adding a class alias for backwards compatibility with the previous class name.
171+
class_alias(SaasCondition::class, 'Google_Service_SaaSServiceManagement_SaasCondition');

0 commit comments

Comments
 (0)