Skip to content

Commit 4192196

Browse files
1 parent 7315d0f commit 4192196

File tree

3 files changed

+129
-9
lines changed

3 files changed

+129
-9
lines changed

src/SecretManager/OperationMetadata.php

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@ class OperationMetadata extends \Google\Model
2626
*/
2727
public $apiVersion;
2828
/**
29-
* Output only. The time the operation was created.
29+
* Output only. Time the operation was created.
3030
*
3131
* @var string
3232
*/
3333
public $createTime;
3434
/**
35-
* Output only. The time the operation finished running.
35+
* Output only. Time the operation finished running.
3636
*
3737
* @var string
3838
*/
3939
public $endTime;
40+
protected $progressType = Progress::class;
41+
protected $progressDataType = '';
4042
/**
4143
* Output only. Identifies whether the user has requested cancellation of the
4244
* operation. Operations that have been cancelled successfully have
@@ -82,7 +84,7 @@ public function getApiVersion()
8284
return $this->apiVersion;
8385
}
8486
/**
85-
* Output only. The time the operation was created.
87+
* Output only. Time the operation was created.
8688
*
8789
* @param string $createTime
8890
*/
@@ -98,7 +100,7 @@ public function getCreateTime()
98100
return $this->createTime;
99101
}
100102
/**
101-
* Output only. The time the operation finished running.
103+
* Output only. Time the operation finished running.
102104
*
103105
* @param string $endTime
104106
*/
@@ -113,6 +115,23 @@ public function getEndTime()
113115
{
114116
return $this->endTime;
115117
}
118+
/**
119+
* Output only. Represents the progress of the operation. This field is
120+
* populated for operations that involve processing multiple secret versions.
121+
*
122+
* @param Progress $progress
123+
*/
124+
public function setProgress(Progress $progress)
125+
{
126+
$this->progress = $progress;
127+
}
128+
/**
129+
* @return Progress
130+
*/
131+
public function getProgress()
132+
{
133+
return $this->progress;
134+
}
116135
/**
117136
* Output only. Identifies whether the user has requested cancellation of the
118137
* operation. Operations that have been cancelled successfully have

src/SecretManager/Progress.php

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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\SecretManager;
19+
20+
class Progress extends \Google\Model
21+
{
22+
/**
23+
* Output only. Number of secret versions that have been successfully
24+
* processed so far.
25+
*
26+
* @var int
27+
*/
28+
public $completedVersionCount;
29+
/**
30+
* Output only. Number of secret versions that failed to process.
31+
*
32+
* @var int
33+
*/
34+
public $failedVersionCount;
35+
/**
36+
* Output only. Provides the total number of secret versions to be processed
37+
* by the operation.
38+
*
39+
* @var int
40+
*/
41+
public $totalVersionCount;
42+
43+
/**
44+
* Output only. Number of secret versions that have been successfully
45+
* processed so far.
46+
*
47+
* @param int $completedVersionCount
48+
*/
49+
public function setCompletedVersionCount($completedVersionCount)
50+
{
51+
$this->completedVersionCount = $completedVersionCount;
52+
}
53+
/**
54+
* @return int
55+
*/
56+
public function getCompletedVersionCount()
57+
{
58+
return $this->completedVersionCount;
59+
}
60+
/**
61+
* Output only. Number of secret versions that failed to process.
62+
*
63+
* @param int $failedVersionCount
64+
*/
65+
public function setFailedVersionCount($failedVersionCount)
66+
{
67+
$this->failedVersionCount = $failedVersionCount;
68+
}
69+
/**
70+
* @return int
71+
*/
72+
public function getFailedVersionCount()
73+
{
74+
return $this->failedVersionCount;
75+
}
76+
/**
77+
* Output only. Provides the total number of secret versions to be processed
78+
* by the operation.
79+
*
80+
* @param int $totalVersionCount
81+
*/
82+
public function setTotalVersionCount($totalVersionCount)
83+
{
84+
$this->totalVersionCount = $totalVersionCount;
85+
}
86+
/**
87+
* @return int
88+
*/
89+
public function getTotalVersionCount()
90+
{
91+
return $this->totalVersionCount;
92+
}
93+
}
94+
95+
// Adding a class alias for backwards compatibility with the previous class name.
96+
class_alias(Progress::class, 'Google_Service_SecretManager_Progress');

src/SecretManager/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.

0 commit comments

Comments
 (0)