Skip to content

Commit 2fc7d8d

Browse files
1 parent 2b29dc7 commit 2fc7d8d

File tree

7 files changed

+373
-17
lines changed

7 files changed

+373
-17
lines changed

clients/google-api-services-apihub/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-apihub</artifactId>
25-
<version>v1-rev20250829-2.0.0</version>
25+
<version>v1-rev20250912-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-apihub:v1-rev20250829-2.0.0'
38+
implementation 'com.google.apis:google-api-services-apihub:v1-rev20250912-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/APIhub.java

Lines changed: 150 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -585,22 +585,22 @@ public List setName(java.lang.String name) {
585585
}
586586

587587
/**
588-
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly
589-
* documented otherwise. This is primarily for internal usage.
588+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which
589+
* is primarily intended for internal usage.
590590
*/
591591
@com.google.api.client.util.Key
592592
private java.util.List<java.lang.String> extraLocationTypes;
593593

594-
/** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented
595-
otherwise. This is primarily for internal usage.
594+
/** Optional. Unless explicitly documented otherwise, don't use this unsupported field which is
595+
primarily intended for internal usage.
596596
*/
597597
public java.util.List<java.lang.String> getExtraLocationTypes() {
598598
return extraLocationTypes;
599599
}
600600

601601
/**
602-
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly
603-
* documented otherwise. This is primarily for internal usage.
602+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which
603+
* is primarily intended for internal usage.
604604
*/
605605
public List setExtraLocationTypes(java.util.List<java.lang.String> extraLocationTypes) {
606606
this.extraLocationTypes = extraLocationTypes;
@@ -1157,7 +1157,8 @@ public Create set(String parameterName, Object value) {
11571157
}
11581158
}
11591159
/**
1160-
* Deletes the API hub instance.
1160+
* Deletes the API hub instance. Deleting the API hub instance will also result in the removal of
1161+
* all associated runtime project attachments and the host project registration.
11611162
*
11621163
* Create a request for the method "apiHubInstances.delete".
11631164
*
@@ -1182,7 +1183,8 @@ public class Delete extends APIhubRequest<com.google.api.services.apihub.v1.mode
11821183
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$");
11831184

11841185
/**
1185-
* Deletes the API hub instance.
1186+
* Deletes the API hub instance. Deleting the API hub instance will also result in the removal of
1187+
* all associated runtime project attachments and the host project registration.
11861188
*
11871189
* Create a request for the method "apiHubInstances.delete".
11881190
*
@@ -15392,6 +15394,146 @@ public List set(String parameterName, Object value) {
1539215394
return (List) super.set(parameterName, value);
1539315395
}
1539415396
}
15397+
/**
15398+
* Manages data for a given plugin instance.
15399+
*
15400+
* Create a request for the method "instances.manageSourceData".
15401+
*
15402+
* This request holds the parameters needed by the apihub server. After setting any optional
15403+
* parameters, call the {@link ManageSourceData#execute()} method to invoke the remote operation.
15404+
*
15405+
* @param name Required. The name of the plugin instance for which data needs to be managed. Format:
15406+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
15407+
* @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest}
15408+
* @return the request
15409+
*/
15410+
public ManageSourceData manageSourceData(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest content) throws java.io.IOException {
15411+
ManageSourceData result = new ManageSourceData(name, content);
15412+
initialize(result);
15413+
return result;
15414+
}
15415+
15416+
public class ManageSourceData extends APIhubRequest<com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse> {
15417+
15418+
private static final String REST_PATH = "v1/{+name}:manageSourceData";
15419+
15420+
private final java.util.regex.Pattern NAME_PATTERN =
15421+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$");
15422+
15423+
/**
15424+
* Manages data for a given plugin instance.
15425+
*
15426+
* Create a request for the method "instances.manageSourceData".
15427+
*
15428+
* This request holds the parameters needed by the the apihub server. After setting any optional
15429+
* parameters, call the {@link ManageSourceData#execute()} method to invoke the remote operation.
15430+
* <p> {@link ManageSourceData#initialize(com.google.api.client.googleapis.services.AbstractGoogle
15431+
* ClientRequest)} must be called to initialize this instance immediately after invoking the
15432+
* constructor. </p>
15433+
*
15434+
* @param name Required. The name of the plugin instance for which data needs to be managed. Format:
15435+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
15436+
* @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest}
15437+
* @since 1.13
15438+
*/
15439+
protected ManageSourceData(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest content) {
15440+
super(APIhub.this, "POST", REST_PATH, content, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse.class);
15441+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
15442+
if (!getSuppressPatternChecks()) {
15443+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
15444+
"Parameter name must conform to the pattern " +
15445+
"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$");
15446+
}
15447+
}
15448+
15449+
@Override
15450+
public ManageSourceData set$Xgafv(java.lang.String $Xgafv) {
15451+
return (ManageSourceData) super.set$Xgafv($Xgafv);
15452+
}
15453+
15454+
@Override
15455+
public ManageSourceData setAccessToken(java.lang.String accessToken) {
15456+
return (ManageSourceData) super.setAccessToken(accessToken);
15457+
}
15458+
15459+
@Override
15460+
public ManageSourceData setAlt(java.lang.String alt) {
15461+
return (ManageSourceData) super.setAlt(alt);
15462+
}
15463+
15464+
@Override
15465+
public ManageSourceData setCallback(java.lang.String callback) {
15466+
return (ManageSourceData) super.setCallback(callback);
15467+
}
15468+
15469+
@Override
15470+
public ManageSourceData setFields(java.lang.String fields) {
15471+
return (ManageSourceData) super.setFields(fields);
15472+
}
15473+
15474+
@Override
15475+
public ManageSourceData setKey(java.lang.String key) {
15476+
return (ManageSourceData) super.setKey(key);
15477+
}
15478+
15479+
@Override
15480+
public ManageSourceData setOauthToken(java.lang.String oauthToken) {
15481+
return (ManageSourceData) super.setOauthToken(oauthToken);
15482+
}
15483+
15484+
@Override
15485+
public ManageSourceData setPrettyPrint(java.lang.Boolean prettyPrint) {
15486+
return (ManageSourceData) super.setPrettyPrint(prettyPrint);
15487+
}
15488+
15489+
@Override
15490+
public ManageSourceData setQuotaUser(java.lang.String quotaUser) {
15491+
return (ManageSourceData) super.setQuotaUser(quotaUser);
15492+
}
15493+
15494+
@Override
15495+
public ManageSourceData setUploadType(java.lang.String uploadType) {
15496+
return (ManageSourceData) super.setUploadType(uploadType);
15497+
}
15498+
15499+
@Override
15500+
public ManageSourceData setUploadProtocol(java.lang.String uploadProtocol) {
15501+
return (ManageSourceData) super.setUploadProtocol(uploadProtocol);
15502+
}
15503+
15504+
/**
15505+
* Required. The name of the plugin instance for which data needs to be managed. Format:
15506+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
15507+
*/
15508+
@com.google.api.client.util.Key
15509+
private java.lang.String name;
15510+
15511+
/** Required. The name of the plugin instance for which data needs to be managed. Format:
15512+
`projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
15513+
*/
15514+
public java.lang.String getName() {
15515+
return name;
15516+
}
15517+
15518+
/**
15519+
* Required. The name of the plugin instance for which data needs to be managed. Format:
15520+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
15521+
*/
15522+
public ManageSourceData setName(java.lang.String name) {
15523+
if (!getSuppressPatternChecks()) {
15524+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
15525+
"Parameter name must conform to the pattern " +
15526+
"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$");
15527+
}
15528+
this.name = name;
15529+
return this;
15530+
}
15531+
15532+
@Override
15533+
public ManageSourceData set(String parameterName, Object value) {
15534+
return (ManageSourceData) super.set(parameterName, value);
15535+
}
15536+
}
1539515537
/**
1539615538
* Updates a plugin instance in the API hub. The following fields in the plugin_instance can be
1539715539
* updated currently: * display_name * schedule_cron_expression The update_mask should be used to
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
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.apihub.v1.model;
18+
19+
/**
20+
* The ManagePluginInstanceSourceData method's request.
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 API hub 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 GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Action to be performed.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String action;
38+
39+
/**
40+
* Required. Data to be managed.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String data;
45+
46+
/**
47+
* Required. Type of data to be managed.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String dataType;
52+
53+
/**
54+
* Required. Relative path of data being managed for a given plugin instance.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String relativePath;
59+
60+
/**
61+
* Required. Action to be performed.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.String getAction() {
65+
return action;
66+
}
67+
68+
/**
69+
* Required. Action to be performed.
70+
* @param action action or {@code null} for none
71+
*/
72+
public GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest setAction(java.lang.String action) {
73+
this.action = action;
74+
return this;
75+
}
76+
77+
/**
78+
* Required. Data to be managed.
79+
* @see #decodeData()
80+
* @return value or {@code null} for none
81+
*/
82+
public java.lang.String getData() {
83+
return data;
84+
}
85+
86+
/**
87+
* Required. Data to be managed.
88+
* @see #getData()
89+
* @return Base64 decoded value or {@code null} for none
90+
*
91+
* @since 1.14
92+
*/
93+
public byte[] decodeData() {
94+
return com.google.api.client.util.Base64.decodeBase64(data);
95+
}
96+
97+
/**
98+
* Required. Data to be managed.
99+
* @see #encodeData()
100+
* @param data data or {@code null} for none
101+
*/
102+
public GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest setData(java.lang.String data) {
103+
this.data = data;
104+
return this;
105+
}
106+
107+
/**
108+
* Required. Data to be managed.
109+
* @see #setData()
110+
*
111+
* <p>
112+
* The value is encoded Base64 or {@code null} for none.
113+
* </p>
114+
*
115+
* @since 1.14
116+
*/
117+
public GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest encodeData(byte[] data) {
118+
this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data);
119+
return this;
120+
}
121+
122+
/**
123+
* Required. Type of data to be managed.
124+
* @return value or {@code null} for none
125+
*/
126+
public java.lang.String getDataType() {
127+
return dataType;
128+
}
129+
130+
/**
131+
* Required. Type of data to be managed.
132+
* @param dataType dataType or {@code null} for none
133+
*/
134+
public GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest setDataType(java.lang.String dataType) {
135+
this.dataType = dataType;
136+
return this;
137+
}
138+
139+
/**
140+
* Required. Relative path of data being managed for a given plugin instance.
141+
* @return value or {@code null} for none
142+
*/
143+
public java.lang.String getRelativePath() {
144+
return relativePath;
145+
}
146+
147+
/**
148+
* Required. Relative path of data being managed for a given plugin instance.
149+
* @param relativePath relativePath or {@code null} for none
150+
*/
151+
public GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest setRelativePath(java.lang.String relativePath) {
152+
this.relativePath = relativePath;
153+
return this;
154+
}
155+
156+
@Override
157+
public GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest set(String fieldName, Object value) {
158+
return (GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest) super.set(fieldName, value);
159+
}
160+
161+
@Override
162+
public GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest clone() {
163+
return (GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest) super.clone();
164+
}
165+
166+
}

0 commit comments

Comments
 (0)