Skip to content

Commit

Permalink
chore: regenerate backupdr client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot committed Jan 21, 2025
1 parent 6404ace commit 45ab899
Show file tree
Hide file tree
Showing 12 changed files with 376 additions and 51 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-backupdr/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-backupdr</artifactId>
<version>v1-rev20241106-2.0.0</version>
<version>v1-rev20241204-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20241106-2.0.0'
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20241204-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7565,7 +7565,7 @@ public class Operations {
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
* methods to check whether the cancellation succeeded or whether the operation completed despite
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`.
*
* Create a request for the method "operations.cancel".
Expand Down Expand Up @@ -7596,7 +7596,7 @@ public class Cancel extends BackupdrRequest<com.google.api.services.backupdr.v1.
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
* methods to check whether the cancellation succeeded or whether the operation completed despite
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`.
*
* Create a request for the method "operations.cancel".
Expand Down Expand Up @@ -8165,6 +8165,168 @@ public List set(String parameterName, Object value) {
}

}
/**
* An accessor for creating requests from the ServiceConfig collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code Backupdr backupdr = new Backupdr(...);}
* {@code Backupdr.ServiceConfig.List request = backupdr.serviceConfig().list(parameters ...)}
* </pre>
*
* @return the resource collection
*/
public ServiceConfig serviceConfig() {
return new ServiceConfig();
}

/**
* The "serviceConfig" collection of methods.
*/
public class ServiceConfig {

/**
* Initializes the service related config for a project.
*
* Create a request for the method "serviceConfig.initialize".
*
* This request holds the parameters needed by the backupdr server. After setting any optional
* parameters, call the {@link Initialize#execute()} method to invoke the remote operation.
*
* @param name Required. The resource name of the serviceConfig used to initialize the service. Format:
* `projects/{project_id}/locations/{location}/serviceConfig`.
* @param content the {@link com.google.api.services.backupdr.v1.model.InitializeServiceRequest}
* @return the request
*/
public Initialize initialize(java.lang.String name, com.google.api.services.backupdr.v1.model.InitializeServiceRequest content) throws java.io.IOException {
Initialize result = new Initialize(name, content);
initialize(result);
return result;
}

public class Initialize extends BackupdrRequest<com.google.api.services.backupdr.v1.model.Operation> {

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

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

/**
* Initializes the service related config for a project.
*
* Create a request for the method "serviceConfig.initialize".
*
* This request holds the parameters needed by the the backupdr server. After setting any
* optional parameters, call the {@link Initialize#execute()} method to invoke the remote
* operation. <p> {@link
* Initialize#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 serviceConfig used to initialize the service. Format:
* `projects/{project_id}/locations/{location}/serviceConfig`.
* @param content the {@link com.google.api.services.backupdr.v1.model.InitializeServiceRequest}
* @since 1.13
*/
protected Initialize(java.lang.String name, com.google.api.services.backupdr.v1.model.InitializeServiceRequest content) {
super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/serviceConfig$");
}
}

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

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

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

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

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

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

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

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

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

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

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

/**
* Required. The resource name of the serviceConfig used to initialize the service.
* Format: `projects/{project_id}/locations/{location}/serviceConfig`.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Required. The resource name of the serviceConfig used to initialize the service. Format:
`projects/{project_id}/locations/{location}/serviceConfig`.
*/
public java.lang.String getName() {
return name;
}

/**
* Required. The resource name of the serviceConfig used to initialize the service.
* Format: `projects/{project_id}/locations/{location}/serviceConfig`.
*/
public Initialize 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/[^/]+/serviceConfig$");
}
this.name = name;
return this;
}

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

}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ public final class Backup extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long resourceSizeBytes;

/**
* Optional. Output only. Reserved for future use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean satisfiesPzi;

/**
* Optional. Output only. Reserved for future use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean satisfiesPzs;

/**
* Output only. The list of BackupLocks taken by the service to prevent the deletion of the
* backup.
Expand Down Expand Up @@ -397,6 +411,40 @@ public Backup setResourceSizeBytes(java.lang.Long resourceSizeBytes) {
return this;
}

/**
* Optional. Output only. Reserved for future use.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSatisfiesPzi() {
return satisfiesPzi;
}

/**
* Optional. Output only. Reserved for future use.
* @param satisfiesPzi satisfiesPzi or {@code null} for none
*/
public Backup setSatisfiesPzi(java.lang.Boolean satisfiesPzi) {
this.satisfiesPzi = satisfiesPzi;
return this;
}

/**
* Optional. Output only. Reserved for future use.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSatisfiesPzs() {
return satisfiesPzs;
}

/**
* Optional. Output only. Reserved for future use.
* @param satisfiesPzs satisfiesPzs or {@code null} for none
*/
public Backup setSatisfiesPzs(java.lang.Boolean satisfiesPzs) {
this.satisfiesPzs = satisfiesPzs;
return this;
}

/**
* Output only. The list of BackupLocks taken by the service to prevent the deletion of the
* backup.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public final class BackupPlan extends com.google.api.client.json.GenericJson {

/**
* Required. The resource type to which the `BackupPlan` will be applied. Examples include,
* "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance" and
* "storage.googleapis.com/Bucket".
* "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance", or
* "alloydb.googleapis.com/Cluster".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -276,8 +276,8 @@ public BackupPlan setName(java.lang.String name) {

/**
* Required. The resource type to which the `BackupPlan` will be applied. Examples include,
* "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance" and
* "storage.googleapis.com/Bucket".
* "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance", or
* "alloydb.googleapis.com/Cluster".
* @return value or {@code null} for none
*/
public java.lang.String getResourceType() {
Expand All @@ -286,8 +286,8 @@ public java.lang.String getResourceType() {

/**
* Required. The resource type to which the `BackupPlan` will be applied. Examples include,
* "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance" and
* "storage.googleapis.com/Bucket".
* "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance", or
* "alloydb.googleapis.com/Cluster".
* @param resourceType resourceType or {@code null} for none
*/
public BackupPlan setResourceType(java.lang.String resourceType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public final class BackupPlanAssociation extends com.google.api.client.json.Gene
private String createTime;

/**
* Output only. Output Only. Resource name of data source which will be used as storage location
* for backups taken. Format :
* Output only. Resource name of data source which will be used as storage location for backups
* taken. Format :
* projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
* The value may be {@code null}.
*/
Expand All @@ -71,7 +71,7 @@ public final class BackupPlanAssociation extends com.google.api.client.json.Gene
private java.lang.String resource;

/**
* Optional. Required. Resource type of workload on which backupplan is applied
* Required. Immutable. Resource type of workload on which backupplan is applied
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -135,8 +135,8 @@ public BackupPlanAssociation setCreateTime(String createTime) {
}

/**
* Output only. Output Only. Resource name of data source which will be used as storage location
* for backups taken. Format :
* Output only. Resource name of data source which will be used as storage location for backups
* taken. Format :
* projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
* @return value or {@code null} for none
*/
Expand All @@ -145,8 +145,8 @@ public java.lang.String getDataSource() {
}

/**
* Output only. Output Only. Resource name of data source which will be used as storage location
* for backups taken. Format :
* Output only. Resource name of data source which will be used as storage location for backups
* taken. Format :
* projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
* @param dataSource dataSource or {@code null} for none
*/
Expand Down Expand Up @@ -192,15 +192,15 @@ public BackupPlanAssociation setResource(java.lang.String resource) {
}

/**
* Optional. Required. Resource type of workload on which backupplan is applied
* Required. Immutable. Resource type of workload on which backupplan is applied
* @return value or {@code null} for none
*/
public java.lang.String getResourceType() {
return resourceType;
}

/**
* Optional. Required. Resource type of workload on which backupplan is applied
* Required. Immutable. Resource type of workload on which backupplan is applied
* @param resourceType resourceType or {@code null} for none
*/
public BackupPlanAssociation setResourceType(java.lang.String resourceType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class BackupRule extends com.google.api.client.json.GenericJson {
* The value should be greater than or equal to minimum enforced retention of the backup vault.
* Minimum value is 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum
* value is 90 for daily backups. Minimum value is 7 and maximum value is 186 for weekly backups.
* Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 30 and
* Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and
* maximum value is 36159 for yearly backups.
* The value may be {@code null}.
*/
Expand Down Expand Up @@ -63,7 +63,7 @@ public final class BackupRule extends com.google.api.client.json.GenericJson {
* The value should be greater than or equal to minimum enforced retention of the backup vault.
* Minimum value is 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum
* value is 90 for daily backups. Minimum value is 7 and maximum value is 186 for weekly backups.
* Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 30 and
* Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and
* maximum value is 36159 for yearly backups.
* @return value or {@code null} for none
*/
Expand All @@ -76,7 +76,7 @@ public java.lang.Integer getBackupRetentionDays() {
* The value should be greater than or equal to minimum enforced retention of the backup vault.
* Minimum value is 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum
* value is 90 for daily backups. Minimum value is 7 and maximum value is 186 for weekly backups.
* Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 30 and
* Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and
* maximum value is 36159 for yearly backups.
* @param backupRetentionDays backupRetentionDays or {@code null} for none
*/
Expand Down
Loading

0 comments on commit 45ab899

Please sign in to comment.