From 340602362ed5ee55306ce120438ad38d4ecb30b0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 29 Sep 2024 09:57:48 +0000 Subject: [PATCH] feat: Automated regeneration of backupdr v1 client --- api_names_out.yaml | 1 + .../google-apis-backupdr_v1/CHANGELOG.md | 4 ++++ .../lib/google/apis/backupdr_v1/classes.rb | 24 ++++++++++++++++--- .../google/apis/backupdr_v1/gem_version.rb | 4 ++-- .../apis/backupdr_v1/representations.rb | 1 + .../lib/google/apis/backupdr_v1/service.rb | 18 ++++++++++---- 6 files changed, 43 insertions(+), 9 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 9e5324d3d29..809fce3f2ca 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -41353,6 +41353,7 @@ "/backupdr:v1/BackupRule/ruleId": rule_id "/backupdr:v1/BackupRule/standardSchedule": standard_schedule "/backupdr:v1/BackupVault": backup_vault +"/backupdr:v1/BackupVault/accessRestriction": access_restriction "/backupdr:v1/BackupVault/annotations": annotations "/backupdr:v1/BackupVault/annotations/annotation": annotation "/backupdr:v1/BackupVault/backupCount": backup_count diff --git a/generated/google-apis-backupdr_v1/CHANGELOG.md b/generated/google-apis-backupdr_v1/CHANGELOG.md index 8ac3f780e91..7f00c1c2645 100644 --- a/generated/google-apis-backupdr_v1/CHANGELOG.md +++ b/generated/google-apis-backupdr_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-backupdr_v1 +### v0.18.0 (2024-09-29) + +* Regenerated from discovery document revision 20240918 + ### v0.17.0 (2024-09-22) * Regenerated from discovery document revision 20240913 diff --git a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/classes.rb b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/classes.rb index 6591173180d..33cf3a37ea6 100644 --- a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/classes.rb +++ b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/classes.rb @@ -557,7 +557,10 @@ class Backup # @return [Hash] attr_accessor :labels - # Output only. Identifier. Name of the resource. + # Output only. Identifier. Name of the backup to create. It must have the format` + # "projects//locations//backupVaults//dataSources/`datasource`/backups/`backup`"` + # . ``backup`` cannot be changed after creation. It must be between 3-63 + # characters long and must be unique within the datasource. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1057,6 +1060,13 @@ def update!(**args) class BackupVault include Google::Apis::Core::Hashable + # Optional. Note: This field is added for future use case and will not be + # supported in the current release. Optional. Access restriction for the backup + # vault. Default value is WITHIN_ORGANIZATION if not provided during creation. + # Corresponds to the JSON property `accessRestriction` + # @return [String] + attr_accessor :access_restriction + # Optional. User annotations. See https://google.aip.dev/128#annotations Stores # small amounts of arbitrary data. # Corresponds to the JSON property `annotations` @@ -1108,7 +1118,10 @@ class BackupVault # @return [Hash] attr_accessor :labels - # Output only. Identifier. The resource name. + # Output only. Identifier. Name of the backup vault to create. It must have the + # format`"projects/`project`/locations/`location`/backupVaults/`backupvault`"`. ` + # `backupvault`` cannot be changed after creation. It must be between 3-63 + # characters long and must be unique within the project and location. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1147,6 +1160,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @access_restriction = args[:access_restriction] if args.key?(:access_restriction) @annotations = args[:annotations] if args.key?(:annotations) @backup_count = args[:backup_count] if args.key?(:backup_count) @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 # @return [Hash] attr_accessor :labels - # Output only. Identifier. The resource name. + # Output only. Identifier. Name of the datasource to create. It must have the + # format`"projects/`project`/locations/`location`/backupVaults/`backupvault`/ + # dataSources/`datasource`"`. ``datasource`` cannot be changed after creation. + # It must be between 3-63 characters long and must be unique within the backup + # vault. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/gem_version.rb b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/gem_version.rb index 4f78125f7be..fdf4746d981 100644 --- a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/gem_version.rb +++ b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module BackupdrV1 # Version of the google-apis-backupdr_v1 gem - GEM_VERSION = "0.17.0" + GEM_VERSION = "0.18.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.15.1" # Revision of the discovery document this client was generated from - REVISION = "20240913" + REVISION = "20240918" end end end diff --git a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/representations.rb b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/representations.rb index fd4d655ed97..d8fd6fd577f 100644 --- a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/representations.rb +++ b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/representations.rb @@ -859,6 +859,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class BackupVault # @private class Representation < Google::Apis::Core::JsonRepresentation + property :access_restriction, as: 'accessRestriction' hash :annotations, as: 'annotations' property :backup_count, :numeric_string => true, as: 'backupCount' property :backup_minimum_enforced_retention_duration, as: 'backupMinimumEnforcedRetentionDuration' diff --git a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/service.rb b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/service.rb index f3e95af85f9..7ffd5403c6f 100644 --- a/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/service.rb +++ b/generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/service.rb @@ -509,7 +509,7 @@ def list_project_location_backup_plans(parent, filter: nil, order_by: nil, page_ execute_or_queue_command(command, &block) end - # + # Creates a new BackupVault in a given project and location. # @param [String] parent # Required. Value for parent. # @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 # Updates the settings of a BackupVault. # @param [String] name - # Output only. Identifier. The resource name. + # Output only. Identifier. Name of the backup vault to create. It must have the + # format`"projects/`project`/locations/`location`/backupVaults/`backupvault`"`. ` + # `backupvault`` cannot be changed after creation. It must be between 3-63 + # characters long and must be unique within the project and location. # @param [Google::Apis::BackupdrV1::BackupVault] backup_vault_object # @param [Boolean] force # 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 # Updates the settings of a DataSource. # @param [String] name - # Output only. Identifier. The resource name. + # Output only. Identifier. Name of the datasource to create. It must have the + # format`"projects/`project`/locations/`location`/backupVaults/`backupvault`/ + # dataSources/`datasource`"`. ``datasource`` cannot be changed after creation. + # It must be between 3-63 characters long and must be unique within the backup + # vault. # @param [Google::Apis::BackupdrV1::DataSource] data_source_object # @param [Boolean] allow_missing # Optional. Enable upsert. @@ -1321,7 +1328,10 @@ def list_project_location_backup_vault_data_source_backups(parent, filter: nil, # Updates the settings of a Backup. # @param [String] name - # Output only. Identifier. Name of the resource. + # Output only. Identifier. Name of the backup to create. It must have the format` + # "projects//locations//backupVaults//dataSources/`datasource`/backups/`backup`"` + # . ``backup`` cannot be changed after creation. It must be between 3-63 + # characters long and must be unique within the datasource. # @param [Google::Apis::BackupdrV1::Backup] backup_object # @param [String] request_id # Optional. An optional request ID to identify requests. Specify a unique