Skip to content

Commit 14d134b

Browse files
feat: Automated regeneration of backupdr v1 client (googleapis#20312)
Auto-created at 2024-09-29 09:57:48 +0000 using the toys pull request generator.
1 parent 9daf784 commit 14d134b

File tree

6 files changed

+43
-9
lines changed

6 files changed

+43
-9
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41434,6 +41434,7 @@
4143441434
"/backupdr:v1/BackupRule/ruleId": rule_id
4143541435
"/backupdr:v1/BackupRule/standardSchedule": standard_schedule
4143641436
"/backupdr:v1/BackupVault": backup_vault
41437+
"/backupdr:v1/BackupVault/accessRestriction": access_restriction
4143741438
"/backupdr:v1/BackupVault/annotations": annotations
4143841439
"/backupdr:v1/BackupVault/annotations/annotation": annotation
4143941440
"/backupdr:v1/BackupVault/backupCount": backup_count

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.18.0 (2024-09-29)
4+
5+
* Regenerated from discovery document revision 20240918
6+
37
### v0.17.0 (2024-09-22)
48

59
* Regenerated from discovery document revision 20240913

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,10 @@ class Backup
557557
# @return [Hash<String,String>]
558558
attr_accessor :labels
559559

560-
# Output only. Identifier. Name of the resource.
560+
# Output only. Identifier. Name of the backup to create. It must have the format`
561+
# "projects//locations//backupVaults//dataSources/`datasource`/backups/`backup`"`
562+
# . ``backup`` cannot be changed after creation. It must be between 3-63
563+
# characters long and must be unique within the datasource.
561564
# Corresponds to the JSON property `name`
562565
# @return [String]
563566
attr_accessor :name
@@ -1057,6 +1060,13 @@ def update!(**args)
10571060
class BackupVault
10581061
include Google::Apis::Core::Hashable
10591062

1063+
# Optional. Note: This field is added for future use case and will not be
1064+
# supported in the current release. Optional. Access restriction for the backup
1065+
# vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
1066+
# Corresponds to the JSON property `accessRestriction`
1067+
# @return [String]
1068+
attr_accessor :access_restriction
1069+
10601070
# Optional. User annotations. See https://google.aip.dev/128#annotations Stores
10611071
# small amounts of arbitrary data.
10621072
# Corresponds to the JSON property `annotations`
@@ -1108,7 +1118,10 @@ class BackupVault
11081118
# @return [Hash<String,String>]
11091119
attr_accessor :labels
11101120

1111-
# Output only. Identifier. The resource name.
1121+
# Output only. Identifier. Name of the backup vault to create. It must have the
1122+
# format`"projects/`project`/locations/`location`/backupVaults/`backupvault`"`. `
1123+
# `backupvault`` cannot be changed after creation. It must be between 3-63
1124+
# characters long and must be unique within the project and location.
11121125
# Corresponds to the JSON property `name`
11131126
# @return [String]
11141127
attr_accessor :name
@@ -1147,6 +1160,7 @@ def initialize(**args)
11471160

11481161
# Update properties of this object
11491162
def update!(**args)
1163+
@access_restriction = args[:access_restriction] if args.key?(:access_restriction)
11501164
@annotations = args[:annotations] if args.key?(:annotations)
11511165
@backup_count = args[:backup_count] if args.key?(:backup_count)
11521166
@backup_minimum_enforced_retention_duration = args[:backup_minimum_enforced_retention_duration] if args.key?(:backup_minimum_enforced_retention_duration)
@@ -1850,7 +1864,11 @@ class DataSource
18501864
# @return [Hash<String,String>]
18511865
attr_accessor :labels
18521866

1853-
# Output only. Identifier. The resource name.
1867+
# Output only. Identifier. Name of the datasource to create. It must have the
1868+
# format`"projects/`project`/locations/`location`/backupVaults/`backupvault`/
1869+
# dataSources/`datasource`"`. ``datasource`` cannot be changed after creation.
1870+
# It must be between 3-63 characters long and must be unique within the backup
1871+
# vault.
18541872
# Corresponds to the JSON property `name`
18551873
# @return [String]
18561874
attr_accessor :name

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.17.0"
19+
GEM_VERSION = "0.18.0"
2020

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

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
859859
class BackupVault
860860
# @private
861861
class Representation < Google::Apis::Core::JsonRepresentation
862+
property :access_restriction, as: 'accessRestriction'
862863
hash :annotations, as: 'annotations'
863864
property :backup_count, :numeric_string => true, as: 'backupCount'
864865
property :backup_minimum_enforced_retention_duration, as: 'backupMinimumEnforcedRetentionDuration'

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def list_project_location_backup_plans(parent, filter: nil, order_by: nil, page_
509509
execute_or_queue_command(command, &block)
510510
end
511511

512-
#
512+
# Creates a new BackupVault in a given project and location.
513513
# @param [String] parent
514514
# Required. Value for parent.
515515
# @param [Google::Apis::BackupdrV1::BackupVault] backup_vault_object
@@ -757,7 +757,10 @@ def list_project_location_backup_vaults(parent, filter: nil, order_by: nil, page
757757

758758
# Updates the settings of a BackupVault.
759759
# @param [String] name
760-
# Output only. Identifier. The resource name.
760+
# Output only. Identifier. Name of the backup vault to create. It must have the
761+
# format`"projects/`project`/locations/`location`/backupVaults/`backupvault`"`. `
762+
# `backupvault`` cannot be changed after creation. It must be between 3-63
763+
# characters long and must be unique within the project and location.
761764
# @param [Google::Apis::BackupdrV1::BackupVault] backup_vault_object
762765
# @param [Boolean] force
763766
# Optional. If set to true, will not check plan duration against backup vault
@@ -1069,7 +1072,11 @@ def list_project_location_backup_vault_data_sources(parent, filter: nil, order_b
10691072

10701073
# Updates the settings of a DataSource.
10711074
# @param [String] name
1072-
# Output only. Identifier. The resource name.
1075+
# Output only. Identifier. Name of the datasource to create. It must have the
1076+
# format`"projects/`project`/locations/`location`/backupVaults/`backupvault`/
1077+
# dataSources/`datasource`"`. ``datasource`` cannot be changed after creation.
1078+
# It must be between 3-63 characters long and must be unique within the backup
1079+
# vault.
10731080
# @param [Google::Apis::BackupdrV1::DataSource] data_source_object
10741081
# @param [Boolean] allow_missing
10751082
# Optional. Enable upsert.
@@ -1321,7 +1328,10 @@ def list_project_location_backup_vault_data_source_backups(parent, filter: nil,
13211328

13221329
# Updates the settings of a Backup.
13231330
# @param [String] name
1324-
# Output only. Identifier. Name of the resource.
1331+
# Output only. Identifier. Name of the backup to create. It must have the format`
1332+
# "projects//locations//backupVaults//dataSources/`datasource`/backups/`backup`"`
1333+
# . ``backup`` cannot be changed after creation. It must be between 3-63
1334+
# characters long and must be unique within the datasource.
13251335
# @param [Google::Apis::BackupdrV1::Backup] backup_object
13261336
# @param [String] request_id
13271337
# Optional. An optional request ID to identify requests. Specify a unique

0 commit comments

Comments
 (0)