Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of backupdr v1 client #20312

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-backupdr_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,10 @@ class Backup
# @return [Hash<String,String>]
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
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -1108,7 +1118,10 @@ class BackupVault
# @return [Hash<String,String>]
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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -1850,7 +1864,11 @@ class DataSource
# @return [Hash<String,String>]
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
Loading