Skip to content

Commit 3ada8ac

Browse files
1 parent 70ae6ef commit 3ada8ac

File tree

18 files changed

+585
-45
lines changed

18 files changed

+585
-45
lines changed

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-rev20241205-2.0.0</version>
25+
<version>v2-rev20250116-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-rev20241205-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudfunctions:v2-rev20250116-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: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,138 @@ public Delete set(String parameterName, Object value) {
964964
return (Delete) super.set(parameterName, value);
965965
}
966966
}
967+
/**
968+
* Detaches 2nd Gen function to Cloud Run function.
969+
*
970+
* Create a request for the method "functions.detachFunction".
971+
*
972+
* This request holds the parameters needed by the cloudfunctions server. After setting any
973+
* optional parameters, call the {@link DetachFunction#execute()} method to invoke the remote
974+
* operation.
975+
*
976+
* @param name Required. The name of the function for which should be detached.
977+
* @param content the {@link com.google.api.services.cloudfunctions.v2.model.DetachFunctionRequest}
978+
* @return the request
979+
*/
980+
public DetachFunction detachFunction(java.lang.String name, com.google.api.services.cloudfunctions.v2.model.DetachFunctionRequest content) throws java.io.IOException {
981+
DetachFunction result = new DetachFunction(name, content);
982+
initialize(result);
983+
return result;
984+
}
985+
986+
public class DetachFunction extends CloudFunctionsRequest<com.google.api.services.cloudfunctions.v2.model.Operation> {
987+
988+
private static final String REST_PATH = "v2/{+name}:detachFunction";
989+
990+
private final java.util.regex.Pattern NAME_PATTERN =
991+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/functions/[^/]+$");
992+
993+
/**
994+
* Detaches 2nd Gen function to Cloud Run function.
995+
*
996+
* Create a request for the method "functions.detachFunction".
997+
*
998+
* This request holds the parameters needed by the the cloudfunctions server. After setting any
999+
* optional parameters, call the {@link DetachFunction#execute()} method to invoke the remote
1000+
* operation. <p> {@link DetachFunction#initialize(com.google.api.client.googleapis.services.Abstr
1001+
* actGoogleClientRequest)} must be called to initialize this instance immediately after invoking
1002+
* the constructor. </p>
1003+
*
1004+
* @param name Required. The name of the function for which should be detached.
1005+
* @param content the {@link com.google.api.services.cloudfunctions.v2.model.DetachFunctionRequest}
1006+
* @since 1.13
1007+
*/
1008+
protected DetachFunction(java.lang.String name, com.google.api.services.cloudfunctions.v2.model.DetachFunctionRequest content) {
1009+
super(CloudFunctions.this, "POST", REST_PATH, content, com.google.api.services.cloudfunctions.v2.model.Operation.class);
1010+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1011+
if (!getSuppressPatternChecks()) {
1012+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1013+
"Parameter name must conform to the pattern " +
1014+
"^projects/[^/]+/locations/[^/]+/functions/[^/]+$");
1015+
}
1016+
}
1017+
1018+
@Override
1019+
public DetachFunction set$Xgafv(java.lang.String $Xgafv) {
1020+
return (DetachFunction) super.set$Xgafv($Xgafv);
1021+
}
1022+
1023+
@Override
1024+
public DetachFunction setAccessToken(java.lang.String accessToken) {
1025+
return (DetachFunction) super.setAccessToken(accessToken);
1026+
}
1027+
1028+
@Override
1029+
public DetachFunction setAlt(java.lang.String alt) {
1030+
return (DetachFunction) super.setAlt(alt);
1031+
}
1032+
1033+
@Override
1034+
public DetachFunction setCallback(java.lang.String callback) {
1035+
return (DetachFunction) super.setCallback(callback);
1036+
}
1037+
1038+
@Override
1039+
public DetachFunction setFields(java.lang.String fields) {
1040+
return (DetachFunction) super.setFields(fields);
1041+
}
1042+
1043+
@Override
1044+
public DetachFunction setKey(java.lang.String key) {
1045+
return (DetachFunction) super.setKey(key);
1046+
}
1047+
1048+
@Override
1049+
public DetachFunction setOauthToken(java.lang.String oauthToken) {
1050+
return (DetachFunction) super.setOauthToken(oauthToken);
1051+
}
1052+
1053+
@Override
1054+
public DetachFunction setPrettyPrint(java.lang.Boolean prettyPrint) {
1055+
return (DetachFunction) super.setPrettyPrint(prettyPrint);
1056+
}
1057+
1058+
@Override
1059+
public DetachFunction setQuotaUser(java.lang.String quotaUser) {
1060+
return (DetachFunction) super.setQuotaUser(quotaUser);
1061+
}
1062+
1063+
@Override
1064+
public DetachFunction setUploadType(java.lang.String uploadType) {
1065+
return (DetachFunction) super.setUploadType(uploadType);
1066+
}
1067+
1068+
@Override
1069+
public DetachFunction setUploadProtocol(java.lang.String uploadProtocol) {
1070+
return (DetachFunction) super.setUploadProtocol(uploadProtocol);
1071+
}
1072+
1073+
/** Required. The name of the function for which should be detached. */
1074+
@com.google.api.client.util.Key
1075+
private java.lang.String name;
1076+
1077+
/** Required. The name of the function for which should be detached.
1078+
*/
1079+
public java.lang.String getName() {
1080+
return name;
1081+
}
1082+
1083+
/** Required. The name of the function for which should be detached. */
1084+
public DetachFunction setName(java.lang.String name) {
1085+
if (!getSuppressPatternChecks()) {
1086+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1087+
"Parameter name must conform to the pattern " +
1088+
"^projects/[^/]+/locations/[^/]+/functions/[^/]+$");
1089+
}
1090+
this.name = name;
1091+
return this;
1092+
}
1093+
1094+
@Override
1095+
public DetachFunction set(String parameterName, Object value) {
1096+
return (DetachFunction) super.set(parameterName, value);
1097+
}
1098+
}
9671099
/**
9681100
* Returns a signed URL for downloading deployed function source code. The URL is only valid for a
9691101
* limited period and should be used within 30 minutes of generation. For more information about the

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

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ public final class BuildConfig extends com.google.api.client.json.GenericJson {
4444

4545
/**
4646
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen
47-
* functions, 2nd Gen functions can only use Artifact Registry. If unspecified, it defaults to
48-
* `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be
49-
* left unspecified or set to `ARTIFACT_REGISTRY`.
47+
* functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry
48+
* option will no longer be available after March 2025: https://cloud.google.com/artifact-
49+
* registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the
50+
* default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository`
51+
* field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
5052
* The value may be {@code null}.
5153
*/
5254
@com.google.api.client.util.Key
@@ -173,9 +175,11 @@ public BuildConfig setBuild(java.lang.String build) {
173175

174176
/**
175177
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen
176-
* functions, 2nd Gen functions can only use Artifact Registry. If unspecified, it defaults to
177-
* `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be
178-
* left unspecified or set to `ARTIFACT_REGISTRY`.
178+
* functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry
179+
* option will no longer be available after March 2025: https://cloud.google.com/artifact-
180+
* registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the
181+
* default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository`
182+
* field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
179183
* @return value or {@code null} for none
180184
*/
181185
public java.lang.String getDockerRegistry() {
@@ -184,9 +188,11 @@ public java.lang.String getDockerRegistry() {
184188

185189
/**
186190
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen
187-
* functions, 2nd Gen functions can only use Artifact Registry. If unspecified, it defaults to
188-
* `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be
189-
* left unspecified or set to `ARTIFACT_REGISTRY`.
191+
* functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry
192+
* option will no longer be available after March 2025: https://cloud.google.com/artifact-
193+
* registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the
194+
* default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository`
195+
* field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
190196
* @param dockerRegistry dockerRegistry or {@code null} for none
191197
*/
192198
public BuildConfig setDockerRegistry(java.lang.String dockerRegistry) {
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 `DetachFunction` 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 DetachFunctionRequest extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public DetachFunctionRequest set(String fieldName, Object value) {
34+
return (DetachFunctionRequest) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public DetachFunctionRequest clone() {
39+
return (DetachFunctionRequest) super.clone();
40+
}
41+
42+
}

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-rev20241205-2.0.0</version>
12-
<name>Cloud Functions API v2-rev20241205-2.0.0</name>
11+
<version>v2-rev20250116-2.0.0</version>
12+
<name>Cloud Functions API v2-rev20250116-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-cloudfunctions/v2/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-rev20241205-2.0.0</version>
25+
<version>v2-rev20250116-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-rev20241205-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudfunctions:v2-rev20250116-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-cloudfunctions/v2alpha/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>v2alpha-rev20241205-2.0.0</version>
25+
<version>v2alpha-rev20250116-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:v2alpha-rev20241205-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudfunctions:v2alpha-rev20250116-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)