Skip to content

Commit 05b90a6

Browse files
1 parent 4c851b3 commit 05b90a6

File tree

9 files changed

+491
-6
lines changed

9 files changed

+491
-6
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-rev20250611-2.0.0</version>
25+
<version>v1-rev20250701-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-rev20250611-2.0.0'
38+
implementation 'com.google.apis:google-api-services-apihub:v1-rev20250701-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: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14639,6 +14639,167 @@ public List set(String parameterName, Object value) {
1463914639
return (List) super.set(parameterName, value);
1464014640
}
1464114641
}
14642+
/**
14643+
* Updates a plugin instance in the API hub. The following fields in the plugin_instance can be
14644+
* updated currently: * display_name * schedule_cron_expression The update_mask should be used to
14645+
* specify the fields being updated. To update the auth_config and additional_config of the plugin
14646+
* instance, use the ApplyPluginInstanceConfig method.
14647+
*
14648+
* Create a request for the method "instances.patch".
14649+
*
14650+
* This request holds the parameters needed by the apihub server. After setting any optional
14651+
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
14652+
*
14653+
* @param name Identifier. The unique name of the plugin instance resource. Format:
14654+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
14655+
* @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1PluginInstance}
14656+
* @return the request
14657+
*/
14658+
public Patch patch(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1PluginInstance content) throws java.io.IOException {
14659+
Patch result = new Patch(name, content);
14660+
initialize(result);
14661+
return result;
14662+
}
14663+
14664+
public class Patch extends APIhubRequest<com.google.api.services.apihub.v1.model.GoogleCloudApihubV1PluginInstance> {
14665+
14666+
private static final String REST_PATH = "v1/{+name}";
14667+
14668+
private final java.util.regex.Pattern NAME_PATTERN =
14669+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$");
14670+
14671+
/**
14672+
* Updates a plugin instance in the API hub. The following fields in the plugin_instance can be
14673+
* updated currently: * display_name * schedule_cron_expression The update_mask should be used to
14674+
* specify the fields being updated. To update the auth_config and additional_config of the plugin
14675+
* instance, use the ApplyPluginInstanceConfig method.
14676+
*
14677+
* Create a request for the method "instances.patch".
14678+
*
14679+
* This request holds the parameters needed by the the apihub server. After setting any optional
14680+
* parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
14681+
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
14682+
* be called to initialize this instance immediately after invoking the constructor. </p>
14683+
*
14684+
* @param name Identifier. The unique name of the plugin instance resource. Format:
14685+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
14686+
* @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1PluginInstance}
14687+
* @since 1.13
14688+
*/
14689+
protected Patch(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1PluginInstance content) {
14690+
super(APIhub.this, "PATCH", REST_PATH, content, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1PluginInstance.class);
14691+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
14692+
if (!getSuppressPatternChecks()) {
14693+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
14694+
"Parameter name must conform to the pattern " +
14695+
"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$");
14696+
}
14697+
}
14698+
14699+
@Override
14700+
public Patch set$Xgafv(java.lang.String $Xgafv) {
14701+
return (Patch) super.set$Xgafv($Xgafv);
14702+
}
14703+
14704+
@Override
14705+
public Patch setAccessToken(java.lang.String accessToken) {
14706+
return (Patch) super.setAccessToken(accessToken);
14707+
}
14708+
14709+
@Override
14710+
public Patch setAlt(java.lang.String alt) {
14711+
return (Patch) super.setAlt(alt);
14712+
}
14713+
14714+
@Override
14715+
public Patch setCallback(java.lang.String callback) {
14716+
return (Patch) super.setCallback(callback);
14717+
}
14718+
14719+
@Override
14720+
public Patch setFields(java.lang.String fields) {
14721+
return (Patch) super.setFields(fields);
14722+
}
14723+
14724+
@Override
14725+
public Patch setKey(java.lang.String key) {
14726+
return (Patch) super.setKey(key);
14727+
}
14728+
14729+
@Override
14730+
public Patch setOauthToken(java.lang.String oauthToken) {
14731+
return (Patch) super.setOauthToken(oauthToken);
14732+
}
14733+
14734+
@Override
14735+
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
14736+
return (Patch) super.setPrettyPrint(prettyPrint);
14737+
}
14738+
14739+
@Override
14740+
public Patch setQuotaUser(java.lang.String quotaUser) {
14741+
return (Patch) super.setQuotaUser(quotaUser);
14742+
}
14743+
14744+
@Override
14745+
public Patch setUploadType(java.lang.String uploadType) {
14746+
return (Patch) super.setUploadType(uploadType);
14747+
}
14748+
14749+
@Override
14750+
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
14751+
return (Patch) super.setUploadProtocol(uploadProtocol);
14752+
}
14753+
14754+
/**
14755+
* Identifier. The unique name of the plugin instance resource. Format:
14756+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
14757+
*/
14758+
@com.google.api.client.util.Key
14759+
private java.lang.String name;
14760+
14761+
/** Identifier. The unique name of the plugin instance resource. Format:
14762+
`projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
14763+
*/
14764+
public java.lang.String getName() {
14765+
return name;
14766+
}
14767+
14768+
/**
14769+
* Identifier. The unique name of the plugin instance resource. Format:
14770+
* `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
14771+
*/
14772+
public Patch setName(java.lang.String name) {
14773+
if (!getSuppressPatternChecks()) {
14774+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
14775+
"Parameter name must conform to the pattern " +
14776+
"^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$");
14777+
}
14778+
this.name = name;
14779+
return this;
14780+
}
14781+
14782+
/** Optional. The list of fields to update. */
14783+
@com.google.api.client.util.Key
14784+
private String updateMask;
14785+
14786+
/** Optional. The list of fields to update.
14787+
*/
14788+
public String getUpdateMask() {
14789+
return updateMask;
14790+
}
14791+
14792+
/** Optional. The list of fields to update. */
14793+
public Patch setUpdateMask(String updateMask) {
14794+
this.updateMask = updateMask;
14795+
return this;
14796+
}
14797+
14798+
@Override
14799+
public Patch set(String parameterName, Object value) {
14800+
return (Patch) super.set(parameterName, value);
14801+
}
14802+
}
1464214803

1464314804
}
1464414805
/**

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

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ public final class GoogleCloudApihubV1Deployment extends com.google.api.client.j
113113
@com.google.api.client.util.Key
114114
private GoogleCloudApihubV1AttributeValues environment;
115115

116+
/**
117+
* Optional. The uri where users can navigate to for the management of the deployment. This maps
118+
* to the following system defined attribute:
119+
* `projects/{project}/locations/{location}/attributes/system-management-url` The number of values
120+
* for this attribute will be based on the cardinality of the attribute. The same can be retrieved
121+
* via GetAttribute API.
122+
* The value may be {@code null}.
123+
*/
124+
@com.google.api.client.util.Key
125+
private GoogleCloudApihubV1AttributeValues managementUrl;
126+
116127
/**
117128
* Identifier. The name of the deployment. Format:
118129
* `projects/{project}/locations/{location}/deployments/{deployment}`
@@ -141,13 +152,39 @@ public final class GoogleCloudApihubV1Deployment extends com.google.api.client.j
141152
@com.google.api.client.util.Key
142153
private GoogleCloudApihubV1AttributeValues slo;
143154

155+
/**
156+
* Optional. The environment at source for the deployment. For example: prod, dev, staging, etc.
157+
* The value may be {@code null}.
158+
*/
159+
@com.google.api.client.util.Key
160+
private java.lang.String sourceEnvironment;
161+
144162
/**
145163
* Output only. The list of sources and metadata from the sources of the deployment.
146164
* The value may be {@code null}.
147165
*/
148166
@com.google.api.client.util.Key
149167
private java.util.List<GoogleCloudApihubV1SourceMetadata> sourceMetadata;
150168

169+
/**
170+
* Optional. The project to which the deployment belongs. For GCP gateways, this will refer to the
171+
* project identifier. For others like Edge/OPDK, this will refer to the org identifier.
172+
* The value may be {@code null}.
173+
*/
174+
@com.google.api.client.util.Key
175+
private java.lang.String sourceProject;
176+
177+
/**
178+
* Optional. The uri where additional source specific information for this deployment can be
179+
* found. This maps to the following system defined attribute:
180+
* `projects/{project}/locations/{location}/attributes/system-source-uri` The number of values for
181+
* this attribute will be based on the cardinality of the attribute. The same can be retrieved via
182+
* GetAttribute API.
183+
* The value may be {@code null}.
184+
*/
185+
@com.google.api.client.util.Key
186+
private GoogleCloudApihubV1AttributeValues sourceUri;
187+
151188
/**
152189
* Output only. The time at which the deployment was last updated.
153190
* The value may be {@code null}.
@@ -334,6 +371,31 @@ public GoogleCloudApihubV1Deployment setEnvironment(GoogleCloudApihubV1Attribute
334371
return this;
335372
}
336373

374+
/**
375+
* Optional. The uri where users can navigate to for the management of the deployment. This maps
376+
* to the following system defined attribute:
377+
* `projects/{project}/locations/{location}/attributes/system-management-url` The number of values
378+
* for this attribute will be based on the cardinality of the attribute. The same can be retrieved
379+
* via GetAttribute API.
380+
* @return value or {@code null} for none
381+
*/
382+
public GoogleCloudApihubV1AttributeValues getManagementUrl() {
383+
return managementUrl;
384+
}
385+
386+
/**
387+
* Optional. The uri where users can navigate to for the management of the deployment. This maps
388+
* to the following system defined attribute:
389+
* `projects/{project}/locations/{location}/attributes/system-management-url` The number of values
390+
* for this attribute will be based on the cardinality of the attribute. The same can be retrieved
391+
* via GetAttribute API.
392+
* @param managementUrl managementUrl or {@code null} for none
393+
*/
394+
public GoogleCloudApihubV1Deployment setManagementUrl(GoogleCloudApihubV1AttributeValues managementUrl) {
395+
this.managementUrl = managementUrl;
396+
return this;
397+
}
398+
337399
/**
338400
* Identifier. The name of the deployment. Format:
339401
* `projects/{project}/locations/{location}/deployments/{deployment}`
@@ -399,6 +461,23 @@ public GoogleCloudApihubV1Deployment setSlo(GoogleCloudApihubV1AttributeValues s
399461
return this;
400462
}
401463

464+
/**
465+
* Optional. The environment at source for the deployment. For example: prod, dev, staging, etc.
466+
* @return value or {@code null} for none
467+
*/
468+
public java.lang.String getSourceEnvironment() {
469+
return sourceEnvironment;
470+
}
471+
472+
/**
473+
* Optional. The environment at source for the deployment. For example: prod, dev, staging, etc.
474+
* @param sourceEnvironment sourceEnvironment or {@code null} for none
475+
*/
476+
public GoogleCloudApihubV1Deployment setSourceEnvironment(java.lang.String sourceEnvironment) {
477+
this.sourceEnvironment = sourceEnvironment;
478+
return this;
479+
}
480+
402481
/**
403482
* Output only. The list of sources and metadata from the sources of the deployment.
404483
* @return value or {@code null} for none
@@ -416,6 +495,50 @@ public GoogleCloudApihubV1Deployment setSourceMetadata(java.util.List<GoogleClou
416495
return this;
417496
}
418497

498+
/**
499+
* Optional. The project to which the deployment belongs. For GCP gateways, this will refer to the
500+
* project identifier. For others like Edge/OPDK, this will refer to the org identifier.
501+
* @return value or {@code null} for none
502+
*/
503+
public java.lang.String getSourceProject() {
504+
return sourceProject;
505+
}
506+
507+
/**
508+
* Optional. The project to which the deployment belongs. For GCP gateways, this will refer to the
509+
* project identifier. For others like Edge/OPDK, this will refer to the org identifier.
510+
* @param sourceProject sourceProject or {@code null} for none
511+
*/
512+
public GoogleCloudApihubV1Deployment setSourceProject(java.lang.String sourceProject) {
513+
this.sourceProject = sourceProject;
514+
return this;
515+
}
516+
517+
/**
518+
* Optional. The uri where additional source specific information for this deployment can be
519+
* found. This maps to the following system defined attribute:
520+
* `projects/{project}/locations/{location}/attributes/system-source-uri` The number of values for
521+
* this attribute will be based on the cardinality of the attribute. The same can be retrieved via
522+
* GetAttribute API.
523+
* @return value or {@code null} for none
524+
*/
525+
public GoogleCloudApihubV1AttributeValues getSourceUri() {
526+
return sourceUri;
527+
}
528+
529+
/**
530+
* Optional. The uri where additional source specific information for this deployment can be
531+
* found. This maps to the following system defined attribute:
532+
* `projects/{project}/locations/{location}/attributes/system-source-uri` The number of values for
533+
* this attribute will be based on the cardinality of the attribute. The same can be retrieved via
534+
* GetAttribute API.
535+
* @param sourceUri sourceUri or {@code null} for none
536+
*/
537+
public GoogleCloudApihubV1Deployment setSourceUri(GoogleCloudApihubV1AttributeValues sourceUri) {
538+
this.sourceUri = sourceUri;
539+
return this;
540+
}
541+
419542
/**
420543
* Output only. The time at which the deployment was last updated.
421544
* @return value or {@code null} for none

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final class GoogleCloudApihubV1Plugin extends com.google.api.client.json.
7171
@com.google.api.client.util.Key
7272
private GoogleCloudApihubV1Documentation documentation;
7373

74+
/**
75+
* Optional. The type of the gateway.
76+
* The value may be {@code null}.
77+
*/
78+
@com.google.api.client.util.Key
79+
private java.lang.String gatewayType;
80+
7481
/**
7582
* Optional. This field is optional. It is used to notify the plugin hosting service for any
7683
* lifecycle changes of the plugin instance and trigger execution of plugin instance actions in
@@ -238,6 +245,23 @@ public GoogleCloudApihubV1Plugin setDocumentation(GoogleCloudApihubV1Documentati
238245
return this;
239246
}
240247

248+
/**
249+
* Optional. The type of the gateway.
250+
* @return value or {@code null} for none
251+
*/
252+
public java.lang.String getGatewayType() {
253+
return gatewayType;
254+
}
255+
256+
/**
257+
* Optional. The type of the gateway.
258+
* @param gatewayType gatewayType or {@code null} for none
259+
*/
260+
public GoogleCloudApihubV1Plugin setGatewayType(java.lang.String gatewayType) {
261+
this.gatewayType = gatewayType;
262+
return this;
263+
}
264+
241265
/**
242266
* Optional. This field is optional. It is used to notify the plugin hosting service for any
243267
* lifecycle changes of the plugin instance and trigger execution of plugin instance actions in

0 commit comments

Comments
 (0)