Skip to content

Commit b47aa1e

Browse files
1 parent 4a250fb commit b47aa1e

File tree

23 files changed

+608
-76
lines changed

23 files changed

+608
-76
lines changed

clients/google-api-services-cloudfunctions/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-cloudfunctions</artifactId>
25-
<version>v1-rev20251023-2.0.0</version>
25+
<version>v1-rev20251204-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-cloudfunctions:v1-rev20251023-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudfunctions:v1-rev20251204-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-cloudfunctions/v1/2.0.0/com/google/api/services/cloudfunctions/v1/CloudFunctions.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -462,30 +462,31 @@ public List setPageToken(java.lang.String pageToken) {
462462

463463
/**
464464
* When set to `true`, operations that are reachable are returned as normal, and those that
465-
* are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can
466-
* only be `true` when reading across collections e.g. when `parent` is set to
467-
* `"projects/example/locations/-"`. This field is not by default supported and will result in
465+
* are unreachable are returned in the ListOperationsResponse.unreachable field. This can only
466+
* be `true` when reading across collections. For example, when `parent` is set to
467+
* `"projects/example/locations/-"`. This field is not supported by default and will result in
468468
* an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or
469469
* product specific documentation.
470470
*/
471471
@com.google.api.client.util.Key
472472
private java.lang.Boolean returnPartialSuccess;
473473

474474
/** When set to `true`, operations that are reachable are returned as normal, and those that are
475-
unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true`
476-
when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This
477-
field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless
478-
explicitly documented otherwise in service or product specific documentation.
475+
unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true`
476+
when reading across collections. For example, when `parent` is set to
477+
`"projects/example/locations/-"`. This field is not supported by default and will result in an
478+
`UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific
479+
documentation.
479480
*/
480481
public java.lang.Boolean getReturnPartialSuccess() {
481482
return returnPartialSuccess;
482483
}
483484

484485
/**
485486
* When set to `true`, operations that are reachable are returned as normal, and those that
486-
* are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can
487-
* only be `true` when reading across collections e.g. when `parent` is set to
488-
* `"projects/example/locations/-"`. This field is not by default supported and will result in
487+
* are unreachable are returned in the ListOperationsResponse.unreachable field. This can only
488+
* be `true` when reading across collections. For example, when `parent` is set to
489+
* `"projects/example/locations/-"`. This field is not supported by default and will result in
489490
* an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or
490491
* product specific documentation.
491492
*/

clients/google-api-services-cloudfunctions/v1/2.0.0/com/google/api/services/cloudfunctions/v1/model/ListOperationsResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class ListOperationsResponse extends com.google.api.client.json.Gen
4545

4646
/**
4747
* Unordered list. Unreachable resources. Populated when the request sets
48-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
48+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
4949
* attempting to list all resources across all supported locations.
5050
* The value may be {@code null}.
5151
*/
@@ -88,7 +88,7 @@ public ListOperationsResponse setOperations(java.util.List<Operation> operations
8888

8989
/**
9090
* Unordered list. Unreachable resources. Populated when the request sets
91-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
91+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
9292
* attempting to list all resources across all supported locations.
9393
* @return value or {@code null} for none
9494
*/
@@ -98,7 +98,7 @@ public java.util.List<java.lang.String> getUnreachable() {
9898

9999
/**
100100
* Unordered list. Unreachable resources. Populated when the request sets
101-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
101+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
102102
* attempting to list all resources across all supported locations.
103103
* @param unreachable unreachable or {@code null} for none
104104
*/

clients/google-api-services-cloudfunctions/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-cloudfunctions</artifactId>
11-
<version>v1-rev20251023-2.0.0</version>
12-
<name>Cloud Functions API v1-rev20251023-2.0.0</name>
11+
<version>v1-rev20251204-2.0.0</version>
12+
<name>Cloud Functions API v1-rev20251204-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-cloudfunctions/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-cloudfunctions</artifactId>
25-
<version>v1-rev20251023-2.0.0</version>
25+
<version>v1-rev20251204-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-cloudfunctions:v1-rev20251023-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudfunctions:v1-rev20251204-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-cloudfunctions/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-cloudfunctions</artifactId>
25-
<version>v2-rev20251106-2.0.0</version>
25+
<version>v2-rev20251204-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-cloudfunctions:v2-rev20251106-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudfunctions:v2-rev20251204-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-cloudfunctions/v2/2.0.0/com/google/api/services/cloudfunctions/v2/CloudFunctions.java

Lines changed: 145 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,140 @@ public CommitFunctionUpgrade set(String parameterName, Object value) {
691691
return (CommitFunctionUpgrade) super.set(parameterName, value);
692692
}
693693
}
694+
/**
695+
* Commits a function upgrade from GCF Gen1 to GCF Gen2. This action deletes the Gen1 function,
696+
* leaving the Gen2 function active and manageable by the GCFv2 API.
697+
*
698+
* Create a request for the method "functions.commitFunctionUpgradeAsGen2".
699+
*
700+
* This request holds the parameters needed by the cloudfunctions server. After setting any
701+
* optional parameters, call the {@link CommitFunctionUpgradeAsGen2#execute()} method to invoke the
702+
* remote operation.
703+
*
704+
* @param name Required. The name of the function for which upgrade should be committed to Gen2.
705+
* @param content the {@link com.google.api.services.cloudfunctions.v2.model.CommitFunctionUpgradeAsGen2Request}
706+
* @return the request
707+
*/
708+
public CommitFunctionUpgradeAsGen2 commitFunctionUpgradeAsGen2(java.lang.String name, com.google.api.services.cloudfunctions.v2.model.CommitFunctionUpgradeAsGen2Request content) throws java.io.IOException {
709+
CommitFunctionUpgradeAsGen2 result = new CommitFunctionUpgradeAsGen2(name, content);
710+
initialize(result);
711+
return result;
712+
}
713+
714+
public class CommitFunctionUpgradeAsGen2 extends CloudFunctionsRequest<com.google.api.services.cloudfunctions.v2.model.Operation> {
715+
716+
private static final String REST_PATH = "v2/{+name}:commitFunctionUpgradeAsGen2";
717+
718+
private final java.util.regex.Pattern NAME_PATTERN =
719+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/functions/[^/]+$");
720+
721+
/**
722+
* Commits a function upgrade from GCF Gen1 to GCF Gen2. This action deletes the Gen1 function,
723+
* leaving the Gen2 function active and manageable by the GCFv2 API.
724+
*
725+
* Create a request for the method "functions.commitFunctionUpgradeAsGen2".
726+
*
727+
* This request holds the parameters needed by the the cloudfunctions server. After setting any
728+
* optional parameters, call the {@link CommitFunctionUpgradeAsGen2#execute()} method to invoke
729+
* the remote operation. <p> {@link CommitFunctionUpgradeAsGen2#initialize(com.google.api.client.g
730+
* oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
731+
* immediately after invoking the constructor. </p>
732+
*
733+
* @param name Required. The name of the function for which upgrade should be committed to Gen2.
734+
* @param content the {@link com.google.api.services.cloudfunctions.v2.model.CommitFunctionUpgradeAsGen2Request}
735+
* @since 1.13
736+
*/
737+
protected CommitFunctionUpgradeAsGen2(java.lang.String name, com.google.api.services.cloudfunctions.v2.model.CommitFunctionUpgradeAsGen2Request content) {
738+
super(CloudFunctions.this, "POST", REST_PATH, content, com.google.api.services.cloudfunctions.v2.model.Operation.class);
739+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
740+
if (!getSuppressPatternChecks()) {
741+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
742+
"Parameter name must conform to the pattern " +
743+
"^projects/[^/]+/locations/[^/]+/functions/[^/]+$");
744+
}
745+
}
746+
747+
@Override
748+
public CommitFunctionUpgradeAsGen2 set$Xgafv(java.lang.String $Xgafv) {
749+
return (CommitFunctionUpgradeAsGen2) super.set$Xgafv($Xgafv);
750+
}
751+
752+
@Override
753+
public CommitFunctionUpgradeAsGen2 setAccessToken(java.lang.String accessToken) {
754+
return (CommitFunctionUpgradeAsGen2) super.setAccessToken(accessToken);
755+
}
756+
757+
@Override
758+
public CommitFunctionUpgradeAsGen2 setAlt(java.lang.String alt) {
759+
return (CommitFunctionUpgradeAsGen2) super.setAlt(alt);
760+
}
761+
762+
@Override
763+
public CommitFunctionUpgradeAsGen2 setCallback(java.lang.String callback) {
764+
return (CommitFunctionUpgradeAsGen2) super.setCallback(callback);
765+
}
766+
767+
@Override
768+
public CommitFunctionUpgradeAsGen2 setFields(java.lang.String fields) {
769+
return (CommitFunctionUpgradeAsGen2) super.setFields(fields);
770+
}
771+
772+
@Override
773+
public CommitFunctionUpgradeAsGen2 setKey(java.lang.String key) {
774+
return (CommitFunctionUpgradeAsGen2) super.setKey(key);
775+
}
776+
777+
@Override
778+
public CommitFunctionUpgradeAsGen2 setOauthToken(java.lang.String oauthToken) {
779+
return (CommitFunctionUpgradeAsGen2) super.setOauthToken(oauthToken);
780+
}
781+
782+
@Override
783+
public CommitFunctionUpgradeAsGen2 setPrettyPrint(java.lang.Boolean prettyPrint) {
784+
return (CommitFunctionUpgradeAsGen2) super.setPrettyPrint(prettyPrint);
785+
}
786+
787+
@Override
788+
public CommitFunctionUpgradeAsGen2 setQuotaUser(java.lang.String quotaUser) {
789+
return (CommitFunctionUpgradeAsGen2) super.setQuotaUser(quotaUser);
790+
}
791+
792+
@Override
793+
public CommitFunctionUpgradeAsGen2 setUploadType(java.lang.String uploadType) {
794+
return (CommitFunctionUpgradeAsGen2) super.setUploadType(uploadType);
795+
}
796+
797+
@Override
798+
public CommitFunctionUpgradeAsGen2 setUploadProtocol(java.lang.String uploadProtocol) {
799+
return (CommitFunctionUpgradeAsGen2) super.setUploadProtocol(uploadProtocol);
800+
}
801+
802+
/** Required. The name of the function for which upgrade should be committed to Gen2. */
803+
@com.google.api.client.util.Key
804+
private java.lang.String name;
805+
806+
/** Required. The name of the function for which upgrade should be committed to Gen2.
807+
*/
808+
public java.lang.String getName() {
809+
return name;
810+
}
811+
812+
/** Required. The name of the function for which upgrade should be committed to Gen2. */
813+
public CommitFunctionUpgradeAsGen2 setName(java.lang.String name) {
814+
if (!getSuppressPatternChecks()) {
815+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
816+
"Parameter name must conform to the pattern " +
817+
"^projects/[^/]+/locations/[^/]+/functions/[^/]+$");
818+
}
819+
this.name = name;
820+
return this;
821+
}
822+
823+
@Override
824+
public CommitFunctionUpgradeAsGen2 set(String parameterName, Object value) {
825+
return (CommitFunctionUpgradeAsGen2) super.set(parameterName, value);
826+
}
827+
}
694828
/**
695829
* Creates a new function. If a function with the given name already exists in the specified
696830
* project, the long running operation will return `ALREADY_EXISTS` error.
@@ -3293,30 +3427,31 @@ public List setPageToken(java.lang.String pageToken) {
32933427

32943428
/**
32953429
* When set to `true`, operations that are reachable are returned as normal, and those
3296-
* that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
3297-
* This can only be `true` when reading across collections e.g. when `parent` is set to
3298-
* `"projects/example/locations/-"`. This field is not by default supported and will
3430+
* that are unreachable are returned in the ListOperationsResponse.unreachable field. This
3431+
* can only be `true` when reading across collections. For example, when `parent` is set
3432+
* to `"projects/example/locations/-"`. This field is not supported by default and will
32993433
* result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
33003434
* service or product specific documentation.
33013435
*/
33023436
@com.google.api.client.util.Key
33033437
private java.lang.Boolean returnPartialSuccess;
33043438

33053439
/** When set to `true`, operations that are reachable are returned as normal, and those that are
3306-
unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true`
3307-
when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This
3308-
field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless
3309-
explicitly documented otherwise in service or product specific documentation.
3440+
unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true`
3441+
when reading across collections. For example, when `parent` is set to
3442+
`"projects/example/locations/-"`. This field is not supported by default and will result in an
3443+
`UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific
3444+
documentation.
33103445
*/
33113446
public java.lang.Boolean getReturnPartialSuccess() {
33123447
return returnPartialSuccess;
33133448
}
33143449

33153450
/**
33163451
* When set to `true`, operations that are reachable are returned as normal, and those
3317-
* that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
3318-
* This can only be `true` when reading across collections e.g. when `parent` is set to
3319-
* `"projects/example/locations/-"`. This field is not by default supported and will
3452+
* that are unreachable are returned in the ListOperationsResponse.unreachable field. This
3453+
* can only be `true` when reading across collections. For example, when `parent` is set
3454+
* to `"projects/example/locations/-"`. This field is not supported by default and will
33203455
* result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
33213456
* service or product specific documentation.
33223457
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.cloudfunctions.v2.model;
18+
19+
/**
20+
* Request for the `CommitFunctionUpgradeAsGen2` method.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Functions API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class CommitFunctionUpgradeAsGen2Request extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public CommitFunctionUpgradeAsGen2Request set(String fieldName, Object value) {
34+
return (CommitFunctionUpgradeAsGen2Request) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public CommitFunctionUpgradeAsGen2Request clone() {
39+
return (CommitFunctionUpgradeAsGen2Request) super.clone();
40+
}
41+
42+
}

clients/google-api-services-cloudfunctions/v2/2.0.0/com/google/api/services/cloudfunctions/v2/model/ListOperationsResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class ListOperationsResponse extends com.google.api.client.json.Gen
4545

4646
/**
4747
* Unordered list. Unreachable resources. Populated when the request sets
48-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
48+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
4949
* attempting to list all resources across all supported locations.
5050
* The value may be {@code null}.
5151
*/
@@ -88,7 +88,7 @@ public ListOperationsResponse setOperations(java.util.List<Operation> operations
8888

8989
/**
9090
* Unordered list. Unreachable resources. Populated when the request sets
91-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
91+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
9292
* attempting to list all resources across all supported locations.
9393
* @return value or {@code null} for none
9494
*/
@@ -98,7 +98,7 @@ public java.util.List<java.lang.String> getUnreachable() {
9898

9999
/**
100100
* Unordered list. Unreachable resources. Populated when the request sets
101-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
101+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
102102
* attempting to list all resources across all supported locations.
103103
* @param unreachable unreachable or {@code null} for none
104104
*/

clients/google-api-services-cloudfunctions/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-cloudfunctions</artifactId>
11-
<version>v2-rev20251106-2.0.0</version>
12-
<name>Cloud Functions API v2-rev20251106-2.0.0</name>
11+
<version>v2-rev20251204-2.0.0</version>
12+
<name>Cloud Functions API v2-rev20251204-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)