google-apis-gkebackup_v1 0.44.0 → 0.46.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0a6f7c4bfdcb29af4251337d3380fedf0031395f02305f8426952844babfc8c
4
- data.tar.gz: 1b4b1279a5a5eef32bde6955f1c7b821ca453b873eb3c7a20fd6aed8a6c234f4
3
+ metadata.gz: 3df5faf607cb3146963874c8ae7f1a8de760dc0509a592826454645cb1eb1340
4
+ data.tar.gz: e4e202f8365de57d4cb8877e47f455b926ba984e90d47747f04e9ee63b827af6
5
5
  SHA512:
6
- metadata.gz: 513091ab790d230f72a76cbc4209b1dc1ec9e20e357dec40ed587ce54579f77a98ea9acd3edbad0a4b2780459d0c19655434f8cffb490a0f0b1e170b3d6dc1b2
7
- data.tar.gz: d8bca053aa19e22eae02405ebdf21a8b0cb46c44d30af3e67493652c5bca5376fba079198865f5467f7704f5fba5b2f15ae9112c2baa752b5d79af7820c833b3
6
+ metadata.gz: 26748ff1f38ecc86cc1acb7bc2474ca66684af07dca1c7b0bea0c48d3fbff7557fff3bad9cef0517e54993e478fc8c9baf504ecd0ed1ade62724ba51e025d9fd
7
+ data.tar.gz: 8d1721c57ab2f480656797d0b6837497fd88a134095d4480a162988b8ecd50d7afa72d45006dd18cabbf12a0ab2443147dfe8142227418641ada018e1c474e51
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-gkebackup_v1
2
2
 
3
+ ### v0.46.0 (2025-05-21)
4
+
5
+ * Regenerated from discovery document revision 20250514
6
+
7
+ ### v0.45.0 (2025-05-18)
8
+
9
+ * Regenerated from discovery document revision 20250507
10
+ * Regenerated using generator version 0.17.0
11
+
3
12
  ### v0.44.0 (2025-04-27)
4
13
 
5
14
  * 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 2.7+.
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
 
@@ -342,8 +342,7 @@ module Google
342
342
  attr_accessor :description
343
343
 
344
344
  # Required. Immutable. The project where Backups are allowed to be stored. The
345
- # format is `projects/`project``. Currently, `project` can only be the project
346
- # number. Support for project IDs will be added in the future.
345
+ # format is `projects/`projectId`` or `projects/`projectNumber``.
347
346
  # Corresponds to the JSON property `destinationProject`
348
347
  # @return [String]
349
348
  attr_accessor :destination_project
@@ -471,10 +470,73 @@ module Google
471
470
  end
472
471
  end
473
472
 
473
+ # BackupConfigDetails defines the configuration of Backups created via this
474
+ # BackupPlan.
475
+ class BackupConfigDetails
476
+ include Google::Apis::Core::Hashable
477
+
478
+ # Output only. If True, include all namespaced resources
479
+ # Corresponds to the JSON property `allNamespaces`
480
+ # @return [Boolean]
481
+ attr_accessor :all_namespaces
482
+ alias_method :all_namespaces?, :all_namespaces
483
+
484
+ # Defined a customer managed encryption key that will be used to encrypt Backup
485
+ # artifacts.
486
+ # Corresponds to the JSON property `encryptionKey`
487
+ # @return [Google::Apis::GkebackupV1::EncryptionKey]
488
+ attr_accessor :encryption_key
489
+
490
+ # Output only. This flag specifies whether Kubernetes Secret resources should be
491
+ # included when they fall into the scope of Backups. Default: False
492
+ # Corresponds to the JSON property `includeSecrets`
493
+ # @return [Boolean]
494
+ attr_accessor :include_secrets
495
+ alias_method :include_secrets?, :include_secrets
496
+
497
+ # Output only. This flag specifies whether volume data should be backed up when
498
+ # PVCs are included in the scope of a Backup. Default: False
499
+ # Corresponds to the JSON property `includeVolumeData`
500
+ # @return [Boolean]
501
+ attr_accessor :include_volume_data
502
+ alias_method :include_volume_data?, :include_volume_data
503
+
504
+ # A list of namespaced Kubernetes resources.
505
+ # Corresponds to the JSON property `selectedApplications`
506
+ # @return [Google::Apis::GkebackupV1::NamespacedNames]
507
+ attr_accessor :selected_applications
508
+
509
+ # A list of Kubernetes Namespaces.
510
+ # Corresponds to the JSON property `selectedNamespaces`
511
+ # @return [Google::Apis::GkebackupV1::Namespaces]
512
+ attr_accessor :selected_namespaces
513
+
514
+ def initialize(**args)
515
+ update!(**args)
516
+ end
517
+
518
+ # Update properties of this object
519
+ def update!(**args)
520
+ @all_namespaces = args[:all_namespaces] if args.key?(:all_namespaces)
521
+ @encryption_key = args[:encryption_key] if args.key?(:encryption_key)
522
+ @include_secrets = args[:include_secrets] if args.key?(:include_secrets)
523
+ @include_volume_data = args[:include_volume_data] if args.key?(:include_volume_data)
524
+ @selected_applications = args[:selected_applications] if args.key?(:selected_applications)
525
+ @selected_namespaces = args[:selected_namespaces] if args.key?(:selected_namespaces)
526
+ end
527
+ end
528
+
474
529
  # Defines the configuration and scheduling for a "line" of Backups.
475
530
  class BackupPlan
476
531
  include Google::Apis::Core::Hashable
477
532
 
533
+ # Output only. The fully qualified name of the BackupChannel to be used to
534
+ # create a backup. This field is set only if the cluster being backed up is in a
535
+ # different project. `projects/*/locations/*/backupChannels/*`
536
+ # Corresponds to the JSON property `backupChannel`
537
+ # @return [String]
538
+ attr_accessor :backup_channel
539
+
478
540
  # BackupConfig defines the configuration of Backups created via this BackupPlan.
479
541
  # Corresponds to the JSON property `backupConfig`
480
542
  # @return [Google::Apis::GkebackupV1::BackupConfig]
@@ -598,6 +660,7 @@ module Google
598
660
 
599
661
  # Update properties of this object
600
662
  def update!(**args)
663
+ @backup_channel = args[:backup_channel] if args.key?(:backup_channel)
601
664
  @backup_config = args[:backup_config] if args.key?(:backup_config)
602
665
  @backup_schedule = args[:backup_schedule] if args.key?(:backup_schedule)
603
666
  @cluster = args[:cluster] if args.key?(:cluster)
@@ -699,6 +762,12 @@ module Google
699
762
  class BackupPlanDetails
700
763
  include Google::Apis::Core::Hashable
701
764
 
765
+ # BackupConfigDetails defines the configuration of Backups created via this
766
+ # BackupPlan.
767
+ # Corresponds to the JSON property `backupConfigDetails`
768
+ # @return [Google::Apis::GkebackupV1::BackupConfigDetails]
769
+ attr_accessor :backup_config_details
770
+
702
771
  # Output only. The fully qualified name of the last successful Backup created
703
772
  # under this BackupPlan. `projects/*/locations/*/backupPlans/*/backups/*`
704
773
  # Corresponds to the JSON property `lastSuccessfulBackup`
@@ -723,6 +792,11 @@ module Google
723
792
  # @return [Fixnum]
724
793
  attr_accessor :protected_pod_count
725
794
 
795
+ # RetentionPolicyDetails defines a Backup retention policy for a BackupPlan.
796
+ # Corresponds to the JSON property `retentionPolicyDetails`
797
+ # @return [Google::Apis::GkebackupV1::RetentionPolicyDetails]
798
+ attr_accessor :retention_policy_details
799
+
726
800
  # Output only. A number that represents the current risk level of this
727
801
  # BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.
728
802
  # Corresponds to the JSON property `rpoRiskLevel`
@@ -740,10 +814,12 @@ module Google
740
814
 
741
815
  # Update properties of this object
742
816
  def update!(**args)
817
+ @backup_config_details = args[:backup_config_details] if args.key?(:backup_config_details)
743
818
  @last_successful_backup = args[:last_successful_backup] if args.key?(:last_successful_backup)
744
819
  @last_successful_backup_time = args[:last_successful_backup_time] if args.key?(:last_successful_backup_time)
745
820
  @next_scheduled_backup_time = args[:next_scheduled_backup_time] if args.key?(:next_scheduled_backup_time)
746
821
  @protected_pod_count = args[:protected_pod_count] if args.key?(:protected_pod_count)
822
+ @retention_policy_details = args[:retention_policy_details] if args.key?(:retention_policy_details)
747
823
  @rpo_risk_level = args[:rpo_risk_level] if args.key?(:rpo_risk_level)
748
824
  @state = args[:state] if args.key?(:state)
749
825
  end
@@ -2282,8 +2358,7 @@ module Google
2282
2358
  attr_accessor :description
2283
2359
 
2284
2360
  # Required. Immutable. The project into which the backups will be restored. The
2285
- # format is `projects/`project``. Currently, `project` can only be the project
2286
- # number. Support for project IDs will be added in the future.
2361
+ # format is `projects/`projectId`` or `projects/`projectNumber``.
2287
2362
  # Corresponds to the JSON property `destinationProject`
2288
2363
  # @return [String]
2289
2364
  attr_accessor :destination_project
@@ -2544,6 +2619,14 @@ module Google
2544
2619
  # @return [String]
2545
2620
  attr_accessor :name
2546
2621
 
2622
+ # Output only. The fully qualified name of the RestoreChannel to be used to
2623
+ # create a RestorePlan. This field is set only if the `backup_plan` is in a
2624
+ # different project than the RestorePlan. Format: `projects/*/locations/*/
2625
+ # restoreChannels/*`
2626
+ # Corresponds to the JSON property `restoreChannel`
2627
+ # @return [String]
2628
+ attr_accessor :restore_channel
2629
+
2547
2630
  # Configuration of a restore.
2548
2631
  # Corresponds to the JSON property `restoreConfig`
2549
2632
  # @return [Google::Apis::GkebackupV1::RestoreConfig]
@@ -2586,6 +2669,7 @@ module Google
2586
2669
  @etag = args[:etag] if args.key?(:etag)
2587
2670
  @labels = args[:labels] if args.key?(:labels)
2588
2671
  @name = args[:name] if args.key?(:name)
2672
+ @restore_channel = args[:restore_channel] if args.key?(:restore_channel)
2589
2673
  @restore_config = args[:restore_config] if args.key?(:restore_config)
2590
2674
  @state = args[:state] if args.key?(:state)
2591
2675
  @state_reason = args[:state_reason] if args.key?(:state_reason)
@@ -2712,6 +2796,41 @@ module Google
2712
2796
  end
2713
2797
  end
2714
2798
 
2799
+ # RetentionPolicyDetails defines a Backup retention policy for a BackupPlan.
2800
+ class RetentionPolicyDetails
2801
+ include Google::Apis::Core::Hashable
2802
+
2803
+ # Optional. Minimum age for Backups created via this BackupPlan (in days). This
2804
+ # field MUST be an integer value between 0-90 (inclusive). A Backup created
2805
+ # under this BackupPlan will NOT be deletable until it reaches Backup's (
2806
+ # create_time + backup_delete_lock_days). Updating this field of a BackupPlan
2807
+ # does NOT affect existing Backups under it. Backups created AFTER a successful
2808
+ # update will inherit the new value. Default: 0 (no delete blocking)
2809
+ # Corresponds to the JSON property `backupDeleteLockDays`
2810
+ # @return [Fixnum]
2811
+ attr_accessor :backup_delete_lock_days
2812
+
2813
+ # Optional. The default maximum age of a Backup created via this BackupPlan.
2814
+ # This field MUST be an integer value >= 0 and <= 365. If specified, a Backup
2815
+ # created under this BackupPlan will be automatically deleted after its age
2816
+ # reaches (create_time + backup_retain_days). If not specified, Backups created
2817
+ # under this BackupPlan will NOT be subject to automatic deletion. Default: 0 (
2818
+ # no automatic deletion)
2819
+ # Corresponds to the JSON property `backupRetainDays`
2820
+ # @return [Fixnum]
2821
+ attr_accessor :backup_retain_days
2822
+
2823
+ def initialize(**args)
2824
+ update!(**args)
2825
+ end
2826
+
2827
+ # Update properties of this object
2828
+ def update!(**args)
2829
+ @backup_delete_lock_days = args[:backup_delete_lock_days] if args.key?(:backup_delete_lock_days)
2830
+ @backup_retain_days = args[:backup_retain_days] if args.key?(:backup_retain_days)
2831
+ end
2832
+ end
2833
+
2715
2834
  # Defines RPO scheduling configuration for automatically creating Backups via
2716
2835
  # this BackupPlan.
2717
2836
  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.44.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250414"
25
+ REVISION = "20250514"
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.44.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-27 00:00:00.000000000 Z
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.44.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkebackup_v1/v0.46.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: '2.7'
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.5
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Backup for GKE API V1
79
79
  test_files: []