Skip to content

Commit 47d82aa

Browse files
feat: Automated regeneration of backupdr v1 client (googleapis#23729)
Auto-created at 2025-07-20 10:23:06 +0000 using the toys pull request generator.
1 parent 1628c26 commit 47d82aa

File tree

6 files changed

+119
-4
lines changed

6 files changed

+119
-4
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47251,6 +47251,10 @@
4725147251
"/backupdr:v1/FetchDataSourceReferencesForResourceTypeResponse/dataSourceReferences": data_source_references
4725247252
"/backupdr:v1/FetchDataSourceReferencesForResourceTypeResponse/dataSourceReferences/data_source_reference": data_source_reference
4725347253
"/backupdr:v1/FetchDataSourceReferencesForResourceTypeResponse/nextPageToken": next_page_token
47254+
"/backupdr:v1/FetchMsComplianceMetadataRequest": fetch_ms_compliance_metadata_request
47255+
"/backupdr:v1/FetchMsComplianceMetadataRequest/projectId": project_id
47256+
"/backupdr:v1/FetchMsComplianceMetadataResponse": fetch_ms_compliance_metadata_response
47257+
"/backupdr:v1/FetchMsComplianceMetadataResponse/isAssuredWorkload": is_assured_workload
4725447258
"/backupdr:v1/FetchUsableBackupVaultsResponse": fetch_usable_backup_vaults_response
4725547259
"/backupdr:v1/FetchUsableBackupVaultsResponse/backupVaults": backup_vaults
4725647260
"/backupdr:v1/FetchUsableBackupVaultsResponse/backupVaults/backup_vault": backup_vault
@@ -47754,6 +47758,8 @@
4775447758
"/backupdr:v1/backupdr.projects.locations.managementServers.list/pageSize": page_size
4775547759
"/backupdr:v1/backupdr.projects.locations.managementServers.list/pageToken": page_token
4775647760
"/backupdr:v1/backupdr.projects.locations.managementServers.list/parent": parent
47761+
"/backupdr:v1/backupdr.projects.locations.managementServers.msComplianceMetadata": ms_project_location_management_server_compliance_metadata
47762+
"/backupdr:v1/backupdr.projects.locations.managementServers.msComplianceMetadata/parent": parent
4775747763
"/backupdr:v1/backupdr.projects.locations.managementServers.setIamPolicy": set_management_server_iam_policy
4775847764
"/backupdr:v1/backupdr.projects.locations.managementServers.setIamPolicy/resource": resource
4775947765
"/backupdr:v1/backupdr.projects.locations.managementServers.testIamPermissions": test_management_server_iam_permissions

generated/google-apis-backupdr_v1/CHANGELOG.md

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

3+
### v0.34.0 (2025-07-20)
4+
5+
* Regenerated from discovery document revision 20250711
6+
37
### v0.33.0 (2025-07-06)
48

59
* Regenerated from discovery document revision 20250625

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

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,8 @@ class ComputeInstanceRestoreProperties
19601960
attr_accessor :description
19611961

19621962
# Optional. Array of disks associated with this instance. Persistent disks must
1963-
# be created before you can assign them.
1963+
# be created before you can assign them. Source regional persistent disks will
1964+
# be restored with default replica zones if not specified.
19641965
# Corresponds to the JSON property `disks`
19651966
# @return [Array<Google::Apis::BackupdrV1::AttachedDisk>]
19661967
attr_accessor :disks
@@ -2023,6 +2024,7 @@ class ComputeInstanceRestoreProperties
20232024
# Optional. An array of network configurations for this instance. These specify
20242025
# how interfaces are configured to interact with other network services, such as
20252026
# connecting to the internet. Multiple interfaces are supported per instance.
2027+
# Required to restore in different project or region.
20262028
# Corresponds to the JSON property `networkInterfaces`
20272029
# @return [Array<Google::Apis::BackupdrV1::NetworkInterface>]
20282030
attr_accessor :network_interfaces
@@ -2048,7 +2050,8 @@ class ComputeInstanceRestoreProperties
20482050
# @return [Google::Apis::BackupdrV1::AllocationAffinity]
20492051
attr_accessor :reservation_affinity
20502052

2051-
# Optional. Resource policies applied to this instance.
2053+
# Optional. Resource policies applied to this instance. By default, no resource
2054+
# policies will be applied.
20522055
# Corresponds to the JSON property `resourcePolicies`
20532056
# @return [Array<String>]
20542057
attr_accessor :resource_policies
@@ -3017,6 +3020,46 @@ def update!(**args)
30173020
end
30183021
end
30193022

3023+
# Request message for GetMsComplianceMetadata
3024+
class FetchMsComplianceMetadataRequest
3025+
include Google::Apis::Core::Hashable
3026+
3027+
# Required. The project id of the target project
3028+
# Corresponds to the JSON property `projectId`
3029+
# @return [String]
3030+
attr_accessor :project_id
3031+
3032+
def initialize(**args)
3033+
update!(**args)
3034+
end
3035+
3036+
# Update properties of this object
3037+
def update!(**args)
3038+
@project_id = args[:project_id] if args.key?(:project_id)
3039+
end
3040+
end
3041+
3042+
# Response message for GetMsComplianceMetadata
3043+
class FetchMsComplianceMetadataResponse
3044+
include Google::Apis::Core::Hashable
3045+
3046+
# The ms compliance metadata of the target project, if the project is an assured
3047+
# workloads project, values will be true, otherwise false.
3048+
# Corresponds to the JSON property `isAssuredWorkload`
3049+
# @return [Boolean]
3050+
attr_accessor :is_assured_workload
3051+
alias_method :is_assured_workload?, :is_assured_workload
3052+
3053+
def initialize(**args)
3054+
update!(**args)
3055+
end
3056+
3057+
# Update properties of this object
3058+
def update!(**args)
3059+
@is_assured_workload = args[:is_assured_workload] if args.key?(:is_assured_workload)
3060+
end
3061+
end
3062+
30203063
# Response message for fetching usable BackupVaults.
30213064
class FetchUsableBackupVaultsResponse
30223065
include Google::Apis::Core::Hashable

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module BackupdrV1
1818
# Version of the google-apis-backupdr_v1 gem
19-
GEM_VERSION = "0.33.0"
19+
GEM_VERSION = "0.34.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
364364
include Google::Apis::Core::JsonObjectSupport
365365
end
366366

367+
class FetchMsComplianceMetadataRequest
368+
class Representation < Google::Apis::Core::JsonRepresentation; end
369+
370+
include Google::Apis::Core::JsonObjectSupport
371+
end
372+
373+
class FetchMsComplianceMetadataResponse
374+
class Representation < Google::Apis::Core::JsonRepresentation; end
375+
376+
include Google::Apis::Core::JsonObjectSupport
377+
end
378+
367379
class FetchUsableBackupVaultsResponse
368380
class Representation < Google::Apis::Core::JsonRepresentation; end
369381

@@ -1419,6 +1431,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
14191431
end
14201432
end
14211433

1434+
class FetchMsComplianceMetadataRequest
1435+
# @private
1436+
class Representation < Google::Apis::Core::JsonRepresentation
1437+
property :project_id, as: 'projectId'
1438+
end
1439+
end
1440+
1441+
class FetchMsComplianceMetadataResponse
1442+
# @private
1443+
class Representation < Google::Apis::Core::JsonRepresentation
1444+
property :is_assured_workload, as: 'isAssuredWorkload'
1445+
end
1446+
end
1447+
14221448
class FetchUsableBackupVaultsResponse
14231449
# @private
14241450
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,6 +1982,42 @@ def list_project_location_management_servers(parent, filter: nil, order_by: nil,
19821982
execute_or_queue_command(command, &block)
19831983
end
19841984

1985+
# Returns the Assured Workloads compliance metadata for a given project.
1986+
# @param [String] parent
1987+
# Required. The project and location to be used to check CSS metadata for target
1988+
# project information, in the format 'projects/`project_id`/locations/`location`'
1989+
# . In Cloud BackupDR, locations map to Google Cloud regions, for example **us-
1990+
# central1**.
1991+
# @param [Google::Apis::BackupdrV1::FetchMsComplianceMetadataRequest] fetch_ms_compliance_metadata_request_object
1992+
# @param [String] fields
1993+
# Selector specifying which fields to include in a partial response.
1994+
# @param [String] quota_user
1995+
# Available to use for quota purposes for server-side applications. Can be any
1996+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1997+
# @param [Google::Apis::RequestOptions] options
1998+
# Request-specific options
1999+
#
2000+
# @yield [result, err] Result & error if block supplied
2001+
# @yieldparam result [Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse] parsed result object
2002+
# @yieldparam err [StandardError] error object if request failed
2003+
#
2004+
# @return [Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse]
2005+
#
2006+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2007+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2008+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2009+
def ms_project_location_management_server_compliance_metadata(parent, fetch_ms_compliance_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2010+
command = make_simple_command(:post, 'v1/{+parent}:msComplianceMetadata', options)
2011+
command.request_representation = Google::Apis::BackupdrV1::FetchMsComplianceMetadataRequest::Representation
2012+
command.request_object = fetch_ms_compliance_metadata_request_object
2013+
command.response_representation = Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse::Representation
2014+
command.response_class = Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse
2015+
command.params['parent'] = parent unless parent.nil?
2016+
command.query['fields'] = fields unless fields.nil?
2017+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2018+
execute_or_queue_command(command, &block)
2019+
end
2020+
19852021
# Sets the access control policy on the specified resource. Replaces any
19862022
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
19872023
# PERMISSION_DENIED` errors.

0 commit comments

Comments
 (0)