Skip to content

Commit 874b8c5

Browse files
1 parent 10da550 commit 874b8c5

6 files changed

Lines changed: 47 additions & 14 deletions

src/CloudRun.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class CloudRun extends \Google\Service
4040
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
4141
const CLOUD_PLATFORM =
4242
"https://www.googleapis.com/auth/cloud-platform";
43+
/** See, edit, configure, and delete your Google Cloud Run data and see the email address for your Google Account. */
44+
const RUN =
45+
"https://www.googleapis.com/auth/run";
46+
/** See your Google Cloud Run data and the email address of your Google Account. */
47+
const RUN_READONLY =
48+
"https://www.googleapis.com/auth/run.readonly";
4349

4450
public $projects_locations;
4551
public $projects_locations_builds;
@@ -673,6 +679,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
673679
'location' => 'query',
674680
'type' => 'boolean',
675681
],
682+
'forceNewRevision' => [
683+
'location' => 'query',
684+
'type' => 'boolean',
685+
],
676686
'updateMask' => [
677687
'location' => 'query',
678688
'type' => 'string',

src/CloudRun/GoogleCloudRunV2CloudSqlInstance.php

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,34 @@ class GoogleCloudRunV2CloudSqlInstance extends \Google\Collection
2121
{
2222
protected $collection_key = 'instances';
2323
/**
24-
* The Cloud SQL instance connection names, as can be found in
25-
* https://console.cloud.google.com/sql/instances. Visit
24+
* A list of Cloud SQL instance connection names. Cloud Run uses these to
25+
* establish connections to the specified Cloud SQL instances. While the SQL
26+
* instance name itself is unique within a project, the full connection name
27+
* requires the location for proper routing. Format:
28+
* `{project}:{location}:{instance}` Example: `my-project:us-central1:my-
29+
* instance` You can find this value on the instance's **Overview** page in
30+
* the Google Cloud console or by using the following `gcloud` command: ```sh
31+
* gcloud sql instances describe INSTANCE_NAME \
32+
* --format='value(connectionName)' ``` Visit
2633
* https://cloud.google.com/sql/docs/mysql/connect-run for more information on
27-
* how to connect Cloud SQL and Cloud Run. Format:
28-
* {project}:{location}:{instance}
34+
* how to connect Cloud SQL and Cloud Run.
2935
*
3036
* @var string[]
3137
*/
3238
public $instances;
3339

3440
/**
35-
* The Cloud SQL instance connection names, as can be found in
36-
* https://console.cloud.google.com/sql/instances. Visit
41+
* A list of Cloud SQL instance connection names. Cloud Run uses these to
42+
* establish connections to the specified Cloud SQL instances. While the SQL
43+
* instance name itself is unique within a project, the full connection name
44+
* requires the location for proper routing. Format:
45+
* `{project}:{location}:{instance}` Example: `my-project:us-central1:my-
46+
* instance` You can find this value on the instance's **Overview** page in
47+
* the Google Cloud console or by using the following `gcloud` command: ```sh
48+
* gcloud sql instances describe INSTANCE_NAME \
49+
* --format='value(connectionName)' ``` Visit
3750
* https://cloud.google.com/sql/docs/mysql/connect-run for more information on
38-
* how to connect Cloud SQL and Cloud Run. Format:
39-
* {project}:{location}:{instance}
51+
* how to connect Cloud SQL and Cloud Run.
4052
*
4153
* @param string[] $instances
4254
*/

src/CloudRun/GoogleCloudRunV2Revision.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ public function getConditions()
381381
return $this->conditions;
382382
}
383383
/**
384-
* Containers holds the list which define the units of execution for this
385-
* Revision.
384+
* Holds the list which define the units of execution for this Revision.
386385
*
387386
* @param GoogleCloudRunV2Container[] $containers
388387
*/

src/CloudRun/GoogleCloudRunV2RevisionScaling.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ class GoogleCloudRunV2RevisionScaling extends \Google\Model
2121
{
2222
/**
2323
* Optional. Determines a threshold for concurrency utilization before scaling
24-
* begins.
24+
* begins. Accepted values are between `0.4` and `0.95` (inclusive) or `0.0`
25+
* to disable concurrency utilization as threshold for scaling.
2526
*
2627
* @var float
2728
*/
2829
public $concurrencyUtilization;
2930
/**
3031
* Optional. Determines a threshold for CPU utilization before scaling begins.
32+
* Accepted values are between `0.4` and `0.95` (inclusive) or `0.0` to
33+
* disable CPU utilization as threshold for scaling.
3134
*
3235
* @var float
3336
*/
@@ -51,7 +54,8 @@ class GoogleCloudRunV2RevisionScaling extends \Google\Model
5154

5255
/**
5356
* Optional. Determines a threshold for concurrency utilization before scaling
54-
* begins.
57+
* begins. Accepted values are between `0.4` and `0.95` (inclusive) or `0.0`
58+
* to disable concurrency utilization as threshold for scaling.
5559
*
5660
* @param float $concurrencyUtilization
5761
*/
@@ -68,6 +72,8 @@ public function getConcurrencyUtilization()
6872
}
6973
/**
7074
* Optional. Determines a threshold for CPU utilization before scaling begins.
75+
* Accepted values are between `0.4` and `0.95` (inclusive) or `0.0` to
76+
* disable CPU utilization as threshold for scaling.
7177
*
7278
* @param float $cpuUtilization
7379
*/

src/CloudRun/GoogleCloudRunV2RevisionTemplate.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ public function getClientVersion()
228228
return $this->clientVersion;
229229
}
230230
/**
231-
* Holds the single container that defines the unit of execution for this
232-
* Revision.
231+
* Holds the list which define the units of execution for this Revision.
233232
*
234233
* @param GoogleCloudRunV2Container[] $containers
235234
*/

src/CloudRun/Resource/ProjectsLocationsServices.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ public function listProjectsLocationsServices($parent, $optParams = [])
170170
* does not exist, it will create a new one. The caller must have
171171
* 'run.services.create' permissions if this is set to true and the Service does
172172
* not exist.
173+
* @opt_param bool forceNewRevision Optional. If set to true, a new revision
174+
* will be created from the template even if the system doesn't detect any
175+
* changes from the previously deployed revision. This may be useful for cases
176+
* where the underlying resources need to be recreated or reinitialized. For
177+
* example if the image is specified by label, but the underlying image digest
178+
* has changed) or if the container performs deployment initialization work that
179+
* needs to be performed again.
173180
* @opt_param string updateMask Optional. The list of fields to be updated.
174181
* @opt_param bool validateOnly Indicates that the request should be validated
175182
* and default values populated, without persisting the request or updating any

0 commit comments

Comments
 (0)