Skip to content

Commit

Permalink
chore: regenerate connectors client (#18362)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Oct 15, 2023
1 parent d96b158 commit 40c75d2
Show file tree
Hide file tree
Showing 6 changed files with 507 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-connectors/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-connectors</artifactId>
<version>v1-rev20230920-2.0.0</version>
<version>v1-rev20231011-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-connectors:v1-rev20230920-2.0.0'
implementation 'com.google.apis:google-api-services-connectors:v1-rev20231011-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,145 @@ public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* GetRegionalSettings gets settings of a region. RegionalSettings is a singleton resource.
*
* Create a request for the method "locations.getRegionalSettings".
*
* This request holds the parameters needed by the connectors server. After setting any optional
* parameters, call the {@link GetRegionalSettings#execute()} method to invoke the remote operation.
*
* @param name Required. The resource name of the Regional Settings.
* @return the request
*/
public GetRegionalSettings getRegionalSettings(java.lang.String name) throws java.io.IOException {
GetRegionalSettings result = new GetRegionalSettings(name);
initialize(result);
return result;
}

public class GetRegionalSettings extends ConnectorsRequest<com.google.api.services.connectors.v1.model.RegionalSettings> {

private static final String REST_PATH = "v1/{+name}";

private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/regionalSettings$");

/**
* GetRegionalSettings gets settings of a region. RegionalSettings is a singleton resource.
*
* Create a request for the method "locations.getRegionalSettings".
*
* This request holds the parameters needed by the the connectors server. After setting any
* optional parameters, call the {@link GetRegionalSettings#execute()} method to invoke the remote
* operation. <p> {@link GetRegionalSettings#initialize(com.google.api.client.googleapis.services.
* AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
* invoking the constructor. </p>
*
* @param name Required. The resource name of the Regional Settings.
* @since 1.13
*/
protected GetRegionalSettings(java.lang.String name) {
super(Connectors.this, "GET", REST_PATH, null, com.google.api.services.connectors.v1.model.RegionalSettings.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/regionalSettings$");
}
}

@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}

@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}

@Override
public GetRegionalSettings set$Xgafv(java.lang.String $Xgafv) {
return (GetRegionalSettings) super.set$Xgafv($Xgafv);
}

@Override
public GetRegionalSettings setAccessToken(java.lang.String accessToken) {
return (GetRegionalSettings) super.setAccessToken(accessToken);
}

@Override
public GetRegionalSettings setAlt(java.lang.String alt) {
return (GetRegionalSettings) super.setAlt(alt);
}

@Override
public GetRegionalSettings setCallback(java.lang.String callback) {
return (GetRegionalSettings) super.setCallback(callback);
}

@Override
public GetRegionalSettings setFields(java.lang.String fields) {
return (GetRegionalSettings) super.setFields(fields);
}

@Override
public GetRegionalSettings setKey(java.lang.String key) {
return (GetRegionalSettings) super.setKey(key);
}

@Override
public GetRegionalSettings setOauthToken(java.lang.String oauthToken) {
return (GetRegionalSettings) super.setOauthToken(oauthToken);
}

@Override
public GetRegionalSettings setPrettyPrint(java.lang.Boolean prettyPrint) {
return (GetRegionalSettings) super.setPrettyPrint(prettyPrint);
}

@Override
public GetRegionalSettings setQuotaUser(java.lang.String quotaUser) {
return (GetRegionalSettings) super.setQuotaUser(quotaUser);
}

@Override
public GetRegionalSettings setUploadType(java.lang.String uploadType) {
return (GetRegionalSettings) super.setUploadType(uploadType);
}

@Override
public GetRegionalSettings setUploadProtocol(java.lang.String uploadProtocol) {
return (GetRegionalSettings) super.setUploadProtocol(uploadProtocol);
}

/** Required. The resource name of the Regional Settings. */
@com.google.api.client.util.Key
private java.lang.String name;

/** Required. The resource name of the Regional Settings.
*/
public java.lang.String getName() {
return name;
}

/** Required. The resource name of the Regional Settings. */
public GetRegionalSettings setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/regionalSettings$");
}
this.name = name;
return this;
}

@Override
public GetRegionalSettings set(String parameterName, Object value) {
return (GetRegionalSettings) super.set(parameterName, value);
}
}
/**
* Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.
*
Expand Down Expand Up @@ -652,6 +791,163 @@ public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Update the settings of a region.
*
* Create a request for the method "locations.updateRegionalSettings".
*
* This request holds the parameters needed by the connectors server. After setting any optional
* parameters, call the {@link UpdateRegionalSettings#execute()} method to invoke the remote
* operation.
*
* @param name Output only. Resource name of the Connection. Format:
* projects/{project}/locations/{location}/regionalSettings
* @param content the {@link com.google.api.services.connectors.v1.model.RegionalSettings}
* @return the request
*/
public UpdateRegionalSettings updateRegionalSettings(java.lang.String name, com.google.api.services.connectors.v1.model.RegionalSettings content) throws java.io.IOException {
UpdateRegionalSettings result = new UpdateRegionalSettings(name, content);
initialize(result);
return result;
}

public class UpdateRegionalSettings extends ConnectorsRequest<com.google.api.services.connectors.v1.model.Operation> {

private static final String REST_PATH = "v1/{+name}";

private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/regionalSettings$");

/**
* Update the settings of a region.
*
* Create a request for the method "locations.updateRegionalSettings".
*
* This request holds the parameters needed by the the connectors server. After setting any
* optional parameters, call the {@link UpdateRegionalSettings#execute()} method to invoke the
* remote operation. <p> {@link UpdateRegionalSettings#initialize(com.google.api.client.googleapis
* .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
* after invoking the constructor. </p>
*
* @param name Output only. Resource name of the Connection. Format:
* projects/{project}/locations/{location}/regionalSettings
* @param content the {@link com.google.api.services.connectors.v1.model.RegionalSettings}
* @since 1.13
*/
protected UpdateRegionalSettings(java.lang.String name, com.google.api.services.connectors.v1.model.RegionalSettings content) {
super(Connectors.this, "PATCH", REST_PATH, content, com.google.api.services.connectors.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/regionalSettings$");
}
}

@Override
public UpdateRegionalSettings set$Xgafv(java.lang.String $Xgafv) {
return (UpdateRegionalSettings) super.set$Xgafv($Xgafv);
}

@Override
public UpdateRegionalSettings setAccessToken(java.lang.String accessToken) {
return (UpdateRegionalSettings) super.setAccessToken(accessToken);
}

@Override
public UpdateRegionalSettings setAlt(java.lang.String alt) {
return (UpdateRegionalSettings) super.setAlt(alt);
}

@Override
public UpdateRegionalSettings setCallback(java.lang.String callback) {
return (UpdateRegionalSettings) super.setCallback(callback);
}

@Override
public UpdateRegionalSettings setFields(java.lang.String fields) {
return (UpdateRegionalSettings) super.setFields(fields);
}

@Override
public UpdateRegionalSettings setKey(java.lang.String key) {
return (UpdateRegionalSettings) super.setKey(key);
}

@Override
public UpdateRegionalSettings setOauthToken(java.lang.String oauthToken) {
return (UpdateRegionalSettings) super.setOauthToken(oauthToken);
}

@Override
public UpdateRegionalSettings setPrettyPrint(java.lang.Boolean prettyPrint) {
return (UpdateRegionalSettings) super.setPrettyPrint(prettyPrint);
}

@Override
public UpdateRegionalSettings setQuotaUser(java.lang.String quotaUser) {
return (UpdateRegionalSettings) super.setQuotaUser(quotaUser);
}

@Override
public UpdateRegionalSettings setUploadType(java.lang.String uploadType) {
return (UpdateRegionalSettings) super.setUploadType(uploadType);
}

@Override
public UpdateRegionalSettings setUploadProtocol(java.lang.String uploadProtocol) {
return (UpdateRegionalSettings) super.setUploadProtocol(uploadProtocol);
}

/**
* Output only. Resource name of the Connection. Format:
* projects/{project}/locations/{location}/regionalSettings
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Output only. Resource name of the Connection. Format:
projects/{project}/locations/{location}/regionalSettings
*/
public java.lang.String getName() {
return name;
}

/**
* Output only. Resource name of the Connection. Format:
* projects/{project}/locations/{location}/regionalSettings
*/
public UpdateRegionalSettings setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/regionalSettings$");
}
this.name = name;
return this;
}

/** Required. The list of fields to update. */
@com.google.api.client.util.Key
private String updateMask;

/** Required. The list of fields to update.
*/
public String getUpdateMask() {
return updateMask;
}

/** Required. The list of fields to update. */
public UpdateRegionalSettings setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}

@Override
public UpdateRegionalSettings set(String parameterName, Object value) {
return (UpdateRegionalSettings) super.set(parameterName, value);
}
}

/**
* An accessor for creating requests from the Connections collection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public final class ConnectorInfraConfig extends com.google.api.client.json.Gener
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long connectionRatelimitWindowSeconds;

/**
* Indicate whether connector is deployed on GKE/CloudRun
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String deploymentModel;

/**
* HPA autoscaling config.
* The value may be {@code null}.
Expand Down Expand Up @@ -96,6 +103,23 @@ public ConnectorInfraConfig setConnectionRatelimitWindowSeconds(java.lang.Long c
return this;
}

/**
* Indicate whether connector is deployed on GKE/CloudRun
* @return value or {@code null} for none
*/
public java.lang.String getDeploymentModel() {
return deploymentModel;
}

/**
* Indicate whether connector is deployed on GKE/CloudRun
* @param deploymentModel deploymentModel or {@code null} for none
*/
public ConnectorInfraConfig setDeploymentModel(java.lang.String deploymentModel) {
this.deploymentModel = deploymentModel;
return this;
}

/**
* HPA autoscaling config.
* @return value or {@code null} for none
Expand Down
Loading

0 comments on commit 40c75d2

Please sign in to comment.