google-apis-gkebackup_v1 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/gkebackup_v1/classes.rb +121 -0
- data/lib/google/apis/gkebackup_v1/gem_version.rb +3 -3
- data/lib/google/apis/gkebackup_v1/representations.rb +41 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1b56b60ec7274f76a6aaff6a820b1f72a1efc291873dcd83ff10566a2f73b9d
|
4
|
+
data.tar.gz: bd79c6262df3099e57065a0d5e02ac777e9f34498d1fa0c82578129dbcec9562
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dd22e151fb57a594a9a301994631ba68ca606c11bef85f48d90e4963d9b4604fc13ec3a6ac78331a3a956cac62db1385a6bc5fac659ac8e5581677fae4001b1
|
7
|
+
data.tar.gz: 16c290213e2ea1c34ba8caaa9afe88609335172642ce15463dfd56694ebd4b4d2de20bd20e23c21a131515015dbd7248eb16e891c5df665337f6f93994164d65
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-gkebackup_v1
|
2
2
|
|
3
|
+
### v0.45.0 (2025-05-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250507
|
6
|
+
* Regenerated using generator version 0.17.0
|
7
|
+
|
3
8
|
### v0.44.0 (2025-04-27)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20250414
|
data/OVERVIEW.md
CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/kubernetes-engine/docs/add-
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
@@ -471,10 +471,73 @@ module Google
|
|
471
471
|
end
|
472
472
|
end
|
473
473
|
|
474
|
+
# BackupConfigDetails defines the configuration of Backups created via this
|
475
|
+
# BackupPlan.
|
476
|
+
class BackupConfigDetails
|
477
|
+
include Google::Apis::Core::Hashable
|
478
|
+
|
479
|
+
# Output only. If True, include all namespaced resources
|
480
|
+
# Corresponds to the JSON property `allNamespaces`
|
481
|
+
# @return [Boolean]
|
482
|
+
attr_accessor :all_namespaces
|
483
|
+
alias_method :all_namespaces?, :all_namespaces
|
484
|
+
|
485
|
+
# Defined a customer managed encryption key that will be used to encrypt Backup
|
486
|
+
# artifacts.
|
487
|
+
# Corresponds to the JSON property `encryptionKey`
|
488
|
+
# @return [Google::Apis::GkebackupV1::EncryptionKey]
|
489
|
+
attr_accessor :encryption_key
|
490
|
+
|
491
|
+
# Output only. This flag specifies whether Kubernetes Secret resources should be
|
492
|
+
# included when they fall into the scope of Backups. Default: False
|
493
|
+
# Corresponds to the JSON property `includeSecrets`
|
494
|
+
# @return [Boolean]
|
495
|
+
attr_accessor :include_secrets
|
496
|
+
alias_method :include_secrets?, :include_secrets
|
497
|
+
|
498
|
+
# Output only. This flag specifies whether volume data should be backed up when
|
499
|
+
# PVCs are included in the scope of a Backup. Default: False
|
500
|
+
# Corresponds to the JSON property `includeVolumeData`
|
501
|
+
# @return [Boolean]
|
502
|
+
attr_accessor :include_volume_data
|
503
|
+
alias_method :include_volume_data?, :include_volume_data
|
504
|
+
|
505
|
+
# A list of namespaced Kubernetes resources.
|
506
|
+
# Corresponds to the JSON property `selectedApplications`
|
507
|
+
# @return [Google::Apis::GkebackupV1::NamespacedNames]
|
508
|
+
attr_accessor :selected_applications
|
509
|
+
|
510
|
+
# A list of Kubernetes Namespaces.
|
511
|
+
# Corresponds to the JSON property `selectedNamespaces`
|
512
|
+
# @return [Google::Apis::GkebackupV1::Namespaces]
|
513
|
+
attr_accessor :selected_namespaces
|
514
|
+
|
515
|
+
def initialize(**args)
|
516
|
+
update!(**args)
|
517
|
+
end
|
518
|
+
|
519
|
+
# Update properties of this object
|
520
|
+
def update!(**args)
|
521
|
+
@all_namespaces = args[:all_namespaces] if args.key?(:all_namespaces)
|
522
|
+
@encryption_key = args[:encryption_key] if args.key?(:encryption_key)
|
523
|
+
@include_secrets = args[:include_secrets] if args.key?(:include_secrets)
|
524
|
+
@include_volume_data = args[:include_volume_data] if args.key?(:include_volume_data)
|
525
|
+
@selected_applications = args[:selected_applications] if args.key?(:selected_applications)
|
526
|
+
@selected_namespaces = args[:selected_namespaces] if args.key?(:selected_namespaces)
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
474
530
|
# Defines the configuration and scheduling for a "line" of Backups.
|
475
531
|
class BackupPlan
|
476
532
|
include Google::Apis::Core::Hashable
|
477
533
|
|
534
|
+
# Output only. The fully qualified name of the BackupChannel to be used to
|
535
|
+
# create a backup. This field is set only if the cluster being backed up is in a
|
536
|
+
# different project. `projects/*/locations/*/backupChannels/*`
|
537
|
+
# Corresponds to the JSON property `backupChannel`
|
538
|
+
# @return [String]
|
539
|
+
attr_accessor :backup_channel
|
540
|
+
|
478
541
|
# BackupConfig defines the configuration of Backups created via this BackupPlan.
|
479
542
|
# Corresponds to the JSON property `backupConfig`
|
480
543
|
# @return [Google::Apis::GkebackupV1::BackupConfig]
|
@@ -598,6 +661,7 @@ module Google
|
|
598
661
|
|
599
662
|
# Update properties of this object
|
600
663
|
def update!(**args)
|
664
|
+
@backup_channel = args[:backup_channel] if args.key?(:backup_channel)
|
601
665
|
@backup_config = args[:backup_config] if args.key?(:backup_config)
|
602
666
|
@backup_schedule = args[:backup_schedule] if args.key?(:backup_schedule)
|
603
667
|
@cluster = args[:cluster] if args.key?(:cluster)
|
@@ -699,6 +763,12 @@ module Google
|
|
699
763
|
class BackupPlanDetails
|
700
764
|
include Google::Apis::Core::Hashable
|
701
765
|
|
766
|
+
# BackupConfigDetails defines the configuration of Backups created via this
|
767
|
+
# BackupPlan.
|
768
|
+
# Corresponds to the JSON property `backupConfigDetails`
|
769
|
+
# @return [Google::Apis::GkebackupV1::BackupConfigDetails]
|
770
|
+
attr_accessor :backup_config_details
|
771
|
+
|
702
772
|
# Output only. The fully qualified name of the last successful Backup created
|
703
773
|
# under this BackupPlan. `projects/*/locations/*/backupPlans/*/backups/*`
|
704
774
|
# Corresponds to the JSON property `lastSuccessfulBackup`
|
@@ -723,6 +793,11 @@ module Google
|
|
723
793
|
# @return [Fixnum]
|
724
794
|
attr_accessor :protected_pod_count
|
725
795
|
|
796
|
+
# RetentionPolicyDetails defines a Backup retention policy for a BackupPlan.
|
797
|
+
# Corresponds to the JSON property `retentionPolicyDetails`
|
798
|
+
# @return [Google::Apis::GkebackupV1::RetentionPolicyDetails]
|
799
|
+
attr_accessor :retention_policy_details
|
800
|
+
|
726
801
|
# Output only. A number that represents the current risk level of this
|
727
802
|
# BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.
|
728
803
|
# Corresponds to the JSON property `rpoRiskLevel`
|
@@ -740,10 +815,12 @@ module Google
|
|
740
815
|
|
741
816
|
# Update properties of this object
|
742
817
|
def update!(**args)
|
818
|
+
@backup_config_details = args[:backup_config_details] if args.key?(:backup_config_details)
|
743
819
|
@last_successful_backup = args[:last_successful_backup] if args.key?(:last_successful_backup)
|
744
820
|
@last_successful_backup_time = args[:last_successful_backup_time] if args.key?(:last_successful_backup_time)
|
745
821
|
@next_scheduled_backup_time = args[:next_scheduled_backup_time] if args.key?(:next_scheduled_backup_time)
|
746
822
|
@protected_pod_count = args[:protected_pod_count] if args.key?(:protected_pod_count)
|
823
|
+
@retention_policy_details = args[:retention_policy_details] if args.key?(:retention_policy_details)
|
747
824
|
@rpo_risk_level = args[:rpo_risk_level] if args.key?(:rpo_risk_level)
|
748
825
|
@state = args[:state] if args.key?(:state)
|
749
826
|
end
|
@@ -2544,6 +2621,14 @@ module Google
|
|
2544
2621
|
# @return [String]
|
2545
2622
|
attr_accessor :name
|
2546
2623
|
|
2624
|
+
# Output only. The fully qualified name of the RestoreChannel to be used to
|
2625
|
+
# create a RestorePlan. This field is set only if the `backup_plan` is in a
|
2626
|
+
# different project than the RestorePlan. Format: `projects/*/locations/*/
|
2627
|
+
# restoreChannels/*`
|
2628
|
+
# Corresponds to the JSON property `restoreChannel`
|
2629
|
+
# @return [String]
|
2630
|
+
attr_accessor :restore_channel
|
2631
|
+
|
2547
2632
|
# Configuration of a restore.
|
2548
2633
|
# Corresponds to the JSON property `restoreConfig`
|
2549
2634
|
# @return [Google::Apis::GkebackupV1::RestoreConfig]
|
@@ -2586,6 +2671,7 @@ module Google
|
|
2586
2671
|
@etag = args[:etag] if args.key?(:etag)
|
2587
2672
|
@labels = args[:labels] if args.key?(:labels)
|
2588
2673
|
@name = args[:name] if args.key?(:name)
|
2674
|
+
@restore_channel = args[:restore_channel] if args.key?(:restore_channel)
|
2589
2675
|
@restore_config = args[:restore_config] if args.key?(:restore_config)
|
2590
2676
|
@state = args[:state] if args.key?(:state)
|
2591
2677
|
@state_reason = args[:state_reason] if args.key?(:state_reason)
|
@@ -2712,6 +2798,41 @@ module Google
|
|
2712
2798
|
end
|
2713
2799
|
end
|
2714
2800
|
|
2801
|
+
# RetentionPolicyDetails defines a Backup retention policy for a BackupPlan.
|
2802
|
+
class RetentionPolicyDetails
|
2803
|
+
include Google::Apis::Core::Hashable
|
2804
|
+
|
2805
|
+
# Optional. Minimum age for Backups created via this BackupPlan (in days). This
|
2806
|
+
# field MUST be an integer value between 0-90 (inclusive). A Backup created
|
2807
|
+
# under this BackupPlan will NOT be deletable until it reaches Backup's (
|
2808
|
+
# create_time + backup_delete_lock_days). Updating this field of a BackupPlan
|
2809
|
+
# does NOT affect existing Backups under it. Backups created AFTER a successful
|
2810
|
+
# update will inherit the new value. Default: 0 (no delete blocking)
|
2811
|
+
# Corresponds to the JSON property `backupDeleteLockDays`
|
2812
|
+
# @return [Fixnum]
|
2813
|
+
attr_accessor :backup_delete_lock_days
|
2814
|
+
|
2815
|
+
# Optional. The default maximum age of a Backup created via this BackupPlan.
|
2816
|
+
# This field MUST be an integer value >= 0 and <= 365. If specified, a Backup
|
2817
|
+
# created under this BackupPlan will be automatically deleted after its age
|
2818
|
+
# reaches (create_time + backup_retain_days). If not specified, Backups created
|
2819
|
+
# under this BackupPlan will NOT be subject to automatic deletion. Default: 0 (
|
2820
|
+
# no automatic deletion)
|
2821
|
+
# Corresponds to the JSON property `backupRetainDays`
|
2822
|
+
# @return [Fixnum]
|
2823
|
+
attr_accessor :backup_retain_days
|
2824
|
+
|
2825
|
+
def initialize(**args)
|
2826
|
+
update!(**args)
|
2827
|
+
end
|
2828
|
+
|
2829
|
+
# Update properties of this object
|
2830
|
+
def update!(**args)
|
2831
|
+
@backup_delete_lock_days = args[:backup_delete_lock_days] if args.key?(:backup_delete_lock_days)
|
2832
|
+
@backup_retain_days = args[:backup_retain_days] if args.key?(:backup_retain_days)
|
2833
|
+
end
|
2834
|
+
end
|
2835
|
+
|
2715
2836
|
# Defines RPO scheduling configuration for automatically creating Backups via
|
2716
2837
|
# this BackupPlan.
|
2717
2838
|
class RpoConfig
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module GkebackupV1
|
18
18
|
# Version of the google-apis-gkebackup_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.45.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.17.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250507"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class BackupConfigDetails
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class BackupPlan
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -328,6 +334,12 @@ module Google
|
|
328
334
|
include Google::Apis::Core::JsonObjectSupport
|
329
335
|
end
|
330
336
|
|
337
|
+
class RetentionPolicyDetails
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
331
343
|
class RpoConfig
|
332
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
345
|
|
@@ -494,9 +506,25 @@ module Google
|
|
494
506
|
end
|
495
507
|
end
|
496
508
|
|
509
|
+
class BackupConfigDetails
|
510
|
+
# @private
|
511
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
512
|
+
property :all_namespaces, as: 'allNamespaces'
|
513
|
+
property :encryption_key, as: 'encryptionKey', class: Google::Apis::GkebackupV1::EncryptionKey, decorator: Google::Apis::GkebackupV1::EncryptionKey::Representation
|
514
|
+
|
515
|
+
property :include_secrets, as: 'includeSecrets'
|
516
|
+
property :include_volume_data, as: 'includeVolumeData'
|
517
|
+
property :selected_applications, as: 'selectedApplications', class: Google::Apis::GkebackupV1::NamespacedNames, decorator: Google::Apis::GkebackupV1::NamespacedNames::Representation
|
518
|
+
|
519
|
+
property :selected_namespaces, as: 'selectedNamespaces', class: Google::Apis::GkebackupV1::Namespaces, decorator: Google::Apis::GkebackupV1::Namespaces::Representation
|
520
|
+
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
497
524
|
class BackupPlan
|
498
525
|
# @private
|
499
526
|
class Representation < Google::Apis::Core::JsonRepresentation
|
527
|
+
property :backup_channel, as: 'backupChannel'
|
500
528
|
property :backup_config, as: 'backupConfig', class: Google::Apis::GkebackupV1::BackupConfig, decorator: Google::Apis::GkebackupV1::BackupConfig::Representation
|
501
529
|
|
502
530
|
property :backup_schedule, as: 'backupSchedule', class: Google::Apis::GkebackupV1::Schedule, decorator: Google::Apis::GkebackupV1::Schedule::Representation
|
@@ -539,10 +567,14 @@ module Google
|
|
539
567
|
class BackupPlanDetails
|
540
568
|
# @private
|
541
569
|
class Representation < Google::Apis::Core::JsonRepresentation
|
570
|
+
property :backup_config_details, as: 'backupConfigDetails', class: Google::Apis::GkebackupV1::BackupConfigDetails, decorator: Google::Apis::GkebackupV1::BackupConfigDetails::Representation
|
571
|
+
|
542
572
|
property :last_successful_backup, as: 'lastSuccessfulBackup'
|
543
573
|
property :last_successful_backup_time, as: 'lastSuccessfulBackupTime'
|
544
574
|
property :next_scheduled_backup_time, as: 'nextScheduledBackupTime'
|
545
575
|
property :protected_pod_count, as: 'protectedPodCount'
|
576
|
+
property :retention_policy_details, as: 'retentionPolicyDetails', class: Google::Apis::GkebackupV1::RetentionPolicyDetails, decorator: Google::Apis::GkebackupV1::RetentionPolicyDetails::Representation
|
577
|
+
|
546
578
|
property :rpo_risk_level, as: 'rpoRiskLevel'
|
547
579
|
property :state, as: 'state'
|
548
580
|
end
|
@@ -980,6 +1012,7 @@ module Google
|
|
980
1012
|
property :etag, as: 'etag'
|
981
1013
|
hash :labels, as: 'labels'
|
982
1014
|
property :name, as: 'name'
|
1015
|
+
property :restore_channel, as: 'restoreChannel'
|
983
1016
|
property :restore_config, as: 'restoreConfig', class: Google::Apis::GkebackupV1::RestoreConfig, decorator: Google::Apis::GkebackupV1::RestoreConfig::Representation
|
984
1017
|
|
985
1018
|
property :state, as: 'state'
|
@@ -1011,6 +1044,14 @@ module Google
|
|
1011
1044
|
end
|
1012
1045
|
end
|
1013
1046
|
|
1047
|
+
class RetentionPolicyDetails
|
1048
|
+
# @private
|
1049
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1050
|
+
property :backup_delete_lock_days, as: 'backupDeleteLockDays'
|
1051
|
+
property :backup_retain_days, as: 'backupRetainDays'
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
|
1014
1055
|
class RpoConfig
|
1015
1056
|
# @private
|
1016
1057
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-gkebackup_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkebackup_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-gkebackup_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gkebackup_v1/v0.45.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkebackup_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.8
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Backup for GKE API V1
|
79
79
|
test_files: []
|