Skip to content

Commit 8906043

Browse files
feat: Automated regeneration of backupdr v1 client (googleapis#24162)
Auto-created at 2025-08-31 10:26:53 +0000 using the toys pull request generator.
1 parent 3853e90 commit 8906043

File tree

5 files changed

+753
-3
lines changed

5 files changed

+753
-3
lines changed

generated/google-apis-backupdr_v1/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-backupdr_v1
22

3-
### v0.38.0 (2025-08-24)
3+
### v0.38.0 (2025-08-31)
44

5-
* Regenerated from discovery document revision 20250816
5+
* Regenerated from discovery document revision 20250825
66

77
### v0.37.0 (2025-08-10)
88

generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/classes.rb

Lines changed: 328 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,34 @@ module Google
2222
module Apis
2323
module BackupdrV1
2424

25+
# request message for AbandonBackup.
26+
class AbandonBackupRequest
27+
include Google::Apis::Core::Hashable
28+
29+
# Optional. An optional request ID to identify requests. Specify a unique
30+
# request ID so that if you must retry your request, the server will know to
31+
# ignore the request if it has already been completed. The server will guarantee
32+
# that for at least 60 minutes since the first request. For example, consider a
33+
# situation where you make an initial request and the request times out. If you
34+
# make the request again with the same request ID, the server can check if
35+
# original operation with the same request ID was received, and if so, will
36+
# ignore the second request. This prevents clients from accidentally creating
37+
# duplicate commitments. The request ID must be a valid UUID with the exception
38+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
39+
# Corresponds to the JSON property `requestId`
40+
# @return [String]
41+
attr_accessor :request_id
42+
43+
def initialize(**args)
44+
update!(**args)
45+
end
46+
47+
# Update properties of this object
48+
def update!(**args)
49+
@request_id = args[:request_id] if args.key?(:request_id)
50+
end
51+
end
52+
2553
# A specification of the type and number of accelerator cards attached to the
2654
# instance.
2755
class AcceleratorConfig
@@ -2921,6 +2949,62 @@ def update!(**args)
29212949
end
29222950
end
29232951

2952+
# Request message for FetchAccessToken.
2953+
class FetchAccessTokenRequest
2954+
include Google::Apis::Core::Hashable
2955+
2956+
# Required. The generation of the backup to update.
2957+
# Corresponds to the JSON property `generationId`
2958+
# @return [Fixnum]
2959+
attr_accessor :generation_id
2960+
2961+
def initialize(**args)
2962+
update!(**args)
2963+
end
2964+
2965+
# Update properties of this object
2966+
def update!(**args)
2967+
@generation_id = args[:generation_id] if args.key?(:generation_id)
2968+
end
2969+
end
2970+
2971+
# Response message for FetchAccessToken.
2972+
class FetchAccessTokenResponse
2973+
include Google::Apis::Core::Hashable
2974+
2975+
# The token is valid until this time.
2976+
# Corresponds to the JSON property `expireTime`
2977+
# @return [String]
2978+
attr_accessor :expire_time
2979+
2980+
# The location in bucket that can be used for reading.
2981+
# Corresponds to the JSON property `readLocation`
2982+
# @return [String]
2983+
attr_accessor :read_location
2984+
2985+
# The downscoped token that was created.
2986+
# Corresponds to the JSON property `token`
2987+
# @return [String]
2988+
attr_accessor :token
2989+
2990+
# The location in bucket that can be used for writing.
2991+
# Corresponds to the JSON property `writeLocation`
2992+
# @return [String]
2993+
attr_accessor :write_location
2994+
2995+
def initialize(**args)
2996+
update!(**args)
2997+
end
2998+
2999+
# Update properties of this object
3000+
def update!(**args)
3001+
@expire_time = args[:expire_time] if args.key?(:expire_time)
3002+
@read_location = args[:read_location] if args.key?(:read_location)
3003+
@token = args[:token] if args.key?(:token)
3004+
@write_location = args[:write_location] if args.key?(:write_location)
3005+
end
3006+
end
3007+
29243008
# Response for the FetchBackupPlanAssociationsForResourceType method.
29253009
class FetchBackupPlanAssociationsForResourceTypeResponse
29263010
include Google::Apis::Core::Hashable
@@ -2973,6 +3057,46 @@ def update!(**args)
29733057
end
29743058
end
29753059

3060+
# Request message for GetMsComplianceMetadata
3061+
class FetchMsComplianceMetadataRequest
3062+
include Google::Apis::Core::Hashable
3063+
3064+
# Required. The project id of the target project
3065+
# Corresponds to the JSON property `projectId`
3066+
# @return [String]
3067+
attr_accessor :project_id
3068+
3069+
def initialize(**args)
3070+
update!(**args)
3071+
end
3072+
3073+
# Update properties of this object
3074+
def update!(**args)
3075+
@project_id = args[:project_id] if args.key?(:project_id)
3076+
end
3077+
end
3078+
3079+
# Response message for GetMsComplianceMetadata
3080+
class FetchMsComplianceMetadataResponse
3081+
include Google::Apis::Core::Hashable
3082+
3083+
# The ms compliance metadata of the target project, if the project is an assured
3084+
# workloads project, values will be true, otherwise false.
3085+
# Corresponds to the JSON property `isAssuredWorkload`
3086+
# @return [Boolean]
3087+
attr_accessor :is_assured_workload
3088+
alias_method :is_assured_workload?, :is_assured_workload
3089+
3090+
def initialize(**args)
3091+
update!(**args)
3092+
end
3093+
3094+
# Update properties of this object
3095+
def update!(**args)
3096+
@is_assured_workload = args[:is_assured_workload] if args.key?(:is_assured_workload)
3097+
end
3098+
end
3099+
29763100
# Response message for fetching usable BackupVaults.
29773101
class FetchUsableBackupVaultsResponse
29783102
include Google::Apis::Core::Hashable
@@ -3008,6 +3132,76 @@ def update!(**args)
30083132
end
30093133
end
30103134

3135+
# Message for finalizing a Backup.
3136+
class FinalizeBackupRequest
3137+
include Google::Apis::Core::Hashable
3138+
3139+
# Required. Resource ID of the Backup resource to be finalized. This must be the
3140+
# same backup_id that was used in the InitiateBackupRequest.
3141+
# Corresponds to the JSON property `backupId`
3142+
# @return [String]
3143+
attr_accessor :backup_id
3144+
3145+
# The point in time when this backup was captured from the source. This will be
3146+
# assigned to the consistency_time field of the newly created Backup.
3147+
# Corresponds to the JSON property `consistencyTime`
3148+
# @return [String]
3149+
attr_accessor :consistency_time
3150+
3151+
# This will be assigned to the description field of the newly created Backup.
3152+
# Corresponds to the JSON property `description`
3153+
# @return [String]
3154+
attr_accessor :description
3155+
3156+
# The latest timestamp of data available in this Backup. This will be set on the
3157+
# newly created Backup.
3158+
# Corresponds to the JSON property `recoveryRangeEndTime`
3159+
# @return [String]
3160+
attr_accessor :recovery_range_end_time
3161+
3162+
# The earliest timestamp of data available in this Backup. This will set on the
3163+
# newly created Backup.
3164+
# Corresponds to the JSON property `recoveryRangeStartTime`
3165+
# @return [String]
3166+
attr_accessor :recovery_range_start_time
3167+
3168+
# Optional. An optional request ID to identify requests. Specify a unique
3169+
# request ID so that if you must retry your request, the server will know to
3170+
# ignore the request if it has already been completed. The server will guarantee
3171+
# that for at least 60 minutes after the first request. For example, consider a
3172+
# situation where you make an initial request and the request times out. If you
3173+
# make the request again with the same request ID, the server can check if
3174+
# original operation with the same request ID was received, and if so, will
3175+
# ignore the second request. This prevents clients from accidentally creating
3176+
# duplicate commitments. The request ID must be a valid UUID with the exception
3177+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3178+
# Corresponds to the JSON property `requestId`
3179+
# @return [String]
3180+
attr_accessor :request_id
3181+
3182+
# The ExpireTime on the backup will be set to FinalizeTime plus this duration.
3183+
# If the resulting ExpireTime is less than EnforcedRetentionEndTime, then
3184+
# ExpireTime is set to EnforcedRetentionEndTime.
3185+
# Corresponds to the JSON property `retentionDuration`
3186+
# @return [String]
3187+
attr_accessor :retention_duration
3188+
3189+
def initialize(**args)
3190+
update!(**args)
3191+
end
3192+
3193+
# Update properties of this object
3194+
def update!(**args)
3195+
@backup_id = args[:backup_id] if args.key?(:backup_id)
3196+
@consistency_time = args[:consistency_time] if args.key?(:consistency_time)
3197+
@description = args[:description] if args.key?(:description)
3198+
@recovery_range_end_time = args[:recovery_range_end_time] if args.key?(:recovery_range_end_time)
3199+
@recovery_range_start_time = args[:recovery_range_start_time] if args.key?(:recovery_range_start_time)
3200+
@request_id = args[:request_id] if args.key?(:request_id)
3201+
@retention_duration = args[:retention_duration] if args.key?(:retention_duration)
3202+
end
3203+
end
3204+
30113205
# GCPBackupPlanInfo captures the plan configuration details of Google Cloud
30123206
# resources at the time of backup.
30133207
class GcpBackupPlanInfo
@@ -3224,6 +3418,71 @@ def update!(**args)
32243418
end
32253419
end
32263420

3421+
# request message for InitiateBackup.
3422+
class InitiateBackupRequest
3423+
include Google::Apis::Core::Hashable
3424+
3425+
# Required. Resource ID of the Backup resource.
3426+
# Corresponds to the JSON property `backupId`
3427+
# @return [String]
3428+
attr_accessor :backup_id
3429+
3430+
# Optional. An optional request ID to identify requests. Specify a unique
3431+
# request ID so that if you must retry your request, the server will know to
3432+
# ignore the request if it has already been completed. The server will guarantee
3433+
# that for at least 60 minutes since the first request. For example, consider a
3434+
# situation where you make an initial request and the request times out. If you
3435+
# make the request again with the same request ID, the server can check if
3436+
# original operation with the same request ID was received, and if so, will
3437+
# ignore the second request. This prevents clients from accidentally creating
3438+
# duplicate commitments. The request ID must be a valid UUID with the exception
3439+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3440+
# Corresponds to the JSON property `requestId`
3441+
# @return [String]
3442+
attr_accessor :request_id
3443+
3444+
def initialize(**args)
3445+
update!(**args)
3446+
end
3447+
3448+
# Update properties of this object
3449+
def update!(**args)
3450+
@backup_id = args[:backup_id] if args.key?(:backup_id)
3451+
@request_id = args[:request_id] if args.key?(:request_id)
3452+
end
3453+
end
3454+
3455+
# Response message for InitiateBackup.
3456+
class InitiateBackupResponse
3457+
include Google::Apis::Core::Hashable
3458+
3459+
# The name of the backup that was created.
3460+
# Corresponds to the JSON property `backup`
3461+
# @return [String]
3462+
attr_accessor :backup
3463+
3464+
# The generation id of the base backup. It is needed for the incremental backups.
3465+
# Corresponds to the JSON property `baseBackupGenerationId`
3466+
# @return [Fixnum]
3467+
attr_accessor :base_backup_generation_id
3468+
3469+
# The generation id of the new backup.
3470+
# Corresponds to the JSON property `newBackupGenerationId`
3471+
# @return [Fixnum]
3472+
attr_accessor :new_backup_generation_id
3473+
3474+
def initialize(**args)
3475+
update!(**args)
3476+
end
3477+
3478+
# Update properties of this object
3479+
def update!(**args)
3480+
@backup = args[:backup] if args.key?(:backup)
3481+
@base_backup_generation_id = args[:base_backup_generation_id] if args.key?(:base_backup_generation_id)
3482+
@new_backup_generation_id = args[:new_backup_generation_id] if args.key?(:new_backup_generation_id)
3483+
end
3484+
end
3485+
32273486
# Additional instance params.
32283487
class InstanceParams
32293488
include Google::Apis::Core::Hashable
@@ -4268,6 +4527,34 @@ def update!(**args)
42684527
end
42694528
end
42704529

4530+
# Message for deleting a DataSource.
4531+
class RemoveDataSourceRequest
4532+
include Google::Apis::Core::Hashable
4533+
4534+
# Optional. An optional request ID to identify requests. Specify a unique
4535+
# request ID so that if you must retry your request, the server will know to
4536+
# ignore the request if it has already been completed. The server will guarantee
4537+
# that for at least 60 minutes after the first request. For example, consider a
4538+
# situation where you make an initial request and the request times out. If you
4539+
# make the request again with the same request ID, the server can check if
4540+
# original operation with the same request ID was received, and if so, will
4541+
# ignore the second request. This prevents clients from accidentally creating
4542+
# duplicate commitments. The request ID must be a valid UUID with the exception
4543+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
4544+
# Corresponds to the JSON property `requestId`
4545+
# @return [String]
4546+
attr_accessor :request_id
4547+
4548+
def initialize(**args)
4549+
update!(**args)
4550+
end
4551+
4552+
# Update properties of this object
4553+
def update!(**args)
4554+
@request_id = args[:request_id] if args.key?(:request_id)
4555+
end
4556+
end
4557+
42714558
# ResourceBackupConfig represents a resource along with its backup
42724559
# configurations.
42734560
class ResourceBackupConfig
@@ -4666,6 +4953,47 @@ def update!(**args)
46664953
end
46674954
end
46684955

4956+
# Request message for SetStatusInternal method.
4957+
class SetInternalStatusRequest
4958+
include Google::Apis::Core::Hashable
4959+
4960+
# Required. Output only. The new BackupConfigState to set for the DataSource.
4961+
# Corresponds to the JSON property `backupConfigState`
4962+
# @return [String]
4963+
attr_accessor :backup_config_state
4964+
4965+
# Optional. An optional request ID to identify requests. Specify a unique
4966+
# request ID so that if you must retry your request, the server will know to
4967+
# ignore the request if it has already been completed. The server will guarantee
4968+
# that for at least 60 minutes after the first request. The request ID must be a
4969+
# valid UUID with the exception that zero UUID is not supported (00000000-0000-
4970+
# 0000-0000-000000000000).
4971+
# Corresponds to the JSON property `requestId`
4972+
# @return [String]
4973+
attr_accessor :request_id
4974+
4975+
# Required. The value required for this method to work. This field must be the
4976+
# 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here is only
4977+
# the final piece of the fully qualified resource path for this DataSource (i.e.
4978+
# the part after '.../dataSources/'). This field exists to make this method
4979+
# difficult to call since it is intended for use only by Backup Appliances.
4980+
# Corresponds to the JSON property `value`
4981+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
4982+
# @return [String]
4983+
attr_accessor :value
4984+
4985+
def initialize(**args)
4986+
update!(**args)
4987+
end
4988+
4989+
# Update properties of this object
4990+
def update!(**args)
4991+
@backup_config_state = args[:backup_config_state] if args.key?(:backup_config_state)
4992+
@request_id = args[:request_id] if args.key?(:request_id)
4993+
@value = args[:value] if args.key?(:value)
4994+
end
4995+
end
4996+
46694997
# Response message from SetStatusInternal method.
46704998
class SetInternalStatusResponse
46714999
include Google::Apis::Core::Hashable

generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/gem_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module BackupdrV1
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250816"
25+
REVISION = "20250825"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)