google-apis-gkehub_v1alpha 0.54.0 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 025c1ac5d7f6f21ae2dc26a921769af5431bd1bc529222c9f5328c45d5a2a270
4
- data.tar.gz: 615e8acdbe5066d186b407ccc47d79a960ee81d3729c7b2bcb8618bf677419cd
3
+ metadata.gz: 950cfd629e1a813fbd21c6c34224c380607cac6e1d7e1536f19c83b98d0321f7
4
+ data.tar.gz: 180f8952e7d06c88180a304be958e64ecceb666d0741259187fc8c6dbb7862da
5
5
  SHA512:
6
- metadata.gz: 9c65da49425d31a1afc8cffe72ce3dbb83cf1f9cb0507671a4cf27aa13d3080c015a12f78222d07a9ea9894a80f8063325c8c79a8ba35110c7cba22f0ae6f67c
7
- data.tar.gz: 39bd15b86e24f7ebdf71dc2400168b7b2277db347fb0da12b5d2e201dc8d0736d446f86f0f1fa8a39dcde45e530d76465bd1683416bd276a02a9da56d08e5f21
6
+ metadata.gz: 81f803f2bf0797f4e2f21140fa4b7e2b75df4989b609f1d92ce2d21c63a8a6371eb9ae4c397712744fa92778fe036af11a04a474795ddd64fe26c6c5d5aa0b47
7
+ data.tar.gz: 01f106bba615dab37530106a1c3ceefac155493d0c5d518f1908ca85f76f7c784650f46ab98a7e3d520289f7e742caa4261465b229d5162942a1955f4de1b2de
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.55.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230606
6
+
3
7
  ### v0.54.0 (2023-05-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20230515
@@ -391,6 +391,367 @@ module Google
391
391
  end
392
392
  end
393
393
 
394
+ # GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
395
+ class ClusterUpgradeGkeUpgrade
396
+ include Google::Apis::Core::Hashable
397
+
398
+ # Name of the upgrade, e.g., "k8s_control_plane". It should be a valid upgrade
399
+ # name. It must not exceet 99 characters.
400
+ # Corresponds to the JSON property `name`
401
+ # @return [String]
402
+ attr_accessor :name
403
+
404
+ # Version of the upgrade, e.g., "1.22.1-gke.100". It should be a valid version.
405
+ # It must not exceet 99 characters.
406
+ # Corresponds to the JSON property `version`
407
+ # @return [String]
408
+ attr_accessor :version
409
+
410
+ def initialize(**args)
411
+ update!(**args)
412
+ end
413
+
414
+ # Update properties of this object
415
+ def update!(**args)
416
+ @name = args[:name] if args.key?(:name)
417
+ @version = args[:version] if args.key?(:version)
418
+ end
419
+ end
420
+
421
+ # GKEUpgradeFeatureCondition describes the condition of the feature for GKE
422
+ # clusters at a certain point of time.
423
+ class ClusterUpgradeGkeUpgradeFeatureCondition
424
+ include Google::Apis::Core::Hashable
425
+
426
+ # Reason why the feature is in this status.
427
+ # Corresponds to the JSON property `reason`
428
+ # @return [String]
429
+ attr_accessor :reason
430
+
431
+ # Status of the condition, one of True, False, Unknown.
432
+ # Corresponds to the JSON property `status`
433
+ # @return [String]
434
+ attr_accessor :status
435
+
436
+ # Type of the condition, for example, "ready".
437
+ # Corresponds to the JSON property `type`
438
+ # @return [String]
439
+ attr_accessor :type
440
+
441
+ # Last timestamp the condition was updated.
442
+ # Corresponds to the JSON property `updateTime`
443
+ # @return [String]
444
+ attr_accessor :update_time
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @reason = args[:reason] if args.key?(:reason)
453
+ @status = args[:status] if args.key?(:status)
454
+ @type = args[:type] if args.key?(:type)
455
+ @update_time = args[:update_time] if args.key?(:update_time)
456
+ end
457
+ end
458
+
459
+ # GKEUpgradeFeatureState contains feature states for GKE clusters in the scope.
460
+ class ClusterUpgradeGkeUpgradeFeatureState
461
+ include Google::Apis::Core::Hashable
462
+
463
+ # Current conditions of the feature.
464
+ # Corresponds to the JSON property `conditions`
465
+ # @return [Array<Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureCondition>]
466
+ attr_accessor :conditions
467
+
468
+ # Scope-level upgrade state.
469
+ # Corresponds to the JSON property `state`
470
+ # @return [Array<Google::Apis::GkehubV1alpha::ClusterUpgradeScopeGkeUpgradeState>]
471
+ attr_accessor :state
472
+
473
+ def initialize(**args)
474
+ update!(**args)
475
+ end
476
+
477
+ # Update properties of this object
478
+ def update!(**args)
479
+ @conditions = args[:conditions] if args.key?(:conditions)
480
+ @state = args[:state] if args.key?(:state)
481
+ end
482
+ end
483
+
484
+ # Properties of a GKE upgrade that can be overridden by the user. For example, a
485
+ # user can skip soaking by overriding the soaking to 0.
486
+ class ClusterUpgradeGkeUpgradeOverride
487
+ include Google::Apis::Core::Hashable
488
+
489
+ # Post conditional checks after an upgrade has been applied on all eligible
490
+ # clusters.
491
+ # Corresponds to the JSON property `postConditions`
492
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions]
493
+ attr_accessor :post_conditions
494
+
495
+ # GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
496
+ # Corresponds to the JSON property `upgrade`
497
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade]
498
+ attr_accessor :upgrade
499
+
500
+ def initialize(**args)
501
+ update!(**args)
502
+ end
503
+
504
+ # Update properties of this object
505
+ def update!(**args)
506
+ @post_conditions = args[:post_conditions] if args.key?(:post_conditions)
507
+ @upgrade = args[:upgrade] if args.key?(:upgrade)
508
+ end
509
+ end
510
+
511
+ # IgnoredMembership represents a membership ignored by the feature. A membership
512
+ # can be ignored because it was manually upgraded to a newer version than RC
513
+ # default.
514
+ class ClusterUpgradeIgnoredMembership
515
+ include Google::Apis::Core::Hashable
516
+
517
+ # Time when the membership was first set to ignored.
518
+ # Corresponds to the JSON property `ignoredTime`
519
+ # @return [String]
520
+ attr_accessor :ignored_time
521
+
522
+ # Reason why the membership is ignored.
523
+ # Corresponds to the JSON property `reason`
524
+ # @return [String]
525
+ attr_accessor :reason
526
+
527
+ def initialize(**args)
528
+ update!(**args)
529
+ end
530
+
531
+ # Update properties of this object
532
+ def update!(**args)
533
+ @ignored_time = args[:ignored_time] if args.key?(:ignored_time)
534
+ @reason = args[:reason] if args.key?(:reason)
535
+ end
536
+ end
537
+
538
+ # ScopeGKEUpgradeState is a GKEUpgrade and its state per-membership.
539
+ class ClusterUpgradeMembershipGkeUpgradeState
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # UpgradeStatus provides status information for each upgrade.
543
+ # Corresponds to the JSON property `status`
544
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus]
545
+ attr_accessor :status
546
+
547
+ # GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
548
+ # Corresponds to the JSON property `upgrade`
549
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade]
550
+ attr_accessor :upgrade
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @status = args[:status] if args.key?(:status)
559
+ @upgrade = args[:upgrade] if args.key?(:upgrade)
560
+ end
561
+ end
562
+
563
+ # Per-membership state for this feature.
564
+ class ClusterUpgradeMembershipState
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # IgnoredMembership represents a membership ignored by the feature. A membership
568
+ # can be ignored because it was manually upgraded to a newer version than RC
569
+ # default.
570
+ # Corresponds to the JSON property `ignored`
571
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeIgnoredMembership]
572
+ attr_accessor :ignored
573
+
574
+ # Fully qualified scope names that this clusters is bound to which also have
575
+ # rollout sequencing enabled.
576
+ # Corresponds to the JSON property `scopes`
577
+ # @return [Array<String>]
578
+ attr_accessor :scopes
579
+
580
+ # Actual upgrade state against desired.
581
+ # Corresponds to the JSON property `upgrades`
582
+ # @return [Array<Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipGkeUpgradeState>]
583
+ attr_accessor :upgrades
584
+
585
+ def initialize(**args)
586
+ update!(**args)
587
+ end
588
+
589
+ # Update properties of this object
590
+ def update!(**args)
591
+ @ignored = args[:ignored] if args.key?(:ignored)
592
+ @scopes = args[:scopes] if args.key?(:scopes)
593
+ @upgrades = args[:upgrades] if args.key?(:upgrades)
594
+ end
595
+ end
596
+
597
+ # Post conditional checks after an upgrade has been applied on all eligible
598
+ # clusters.
599
+ class ClusterUpgradePostConditions
600
+ include Google::Apis::Core::Hashable
601
+
602
+ # Required. Amount of time to "soak" after a rollout has been finished before
603
+ # marking it COMPLETE. Cannot exceed 30 days. Required.
604
+ # Corresponds to the JSON property `soaking`
605
+ # @return [String]
606
+ attr_accessor :soaking
607
+
608
+ def initialize(**args)
609
+ update!(**args)
610
+ end
611
+
612
+ # Update properties of this object
613
+ def update!(**args)
614
+ @soaking = args[:soaking] if args.key?(:soaking)
615
+ end
616
+ end
617
+
618
+ # ScopeGKEUpgradeState is a GKEUpgrade and its state at the scope level.
619
+ class ClusterUpgradeScopeGkeUpgradeState
620
+ include Google::Apis::Core::Hashable
621
+
622
+ # Number of GKE clusters in each status code.
623
+ # Corresponds to the JSON property `stats`
624
+ # @return [Hash<String,Fixnum>]
625
+ attr_accessor :stats
626
+
627
+ # UpgradeStatus provides status information for each upgrade.
628
+ # Corresponds to the JSON property `status`
629
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus]
630
+ attr_accessor :status
631
+
632
+ # GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
633
+ # Corresponds to the JSON property `upgrade`
634
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade]
635
+ attr_accessor :upgrade
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @stats = args[:stats] if args.key?(:stats)
644
+ @status = args[:status] if args.key?(:status)
645
+ @upgrade = args[:upgrade] if args.key?(:upgrade)
646
+ end
647
+ end
648
+
649
+ # **ClusterUpgrade**: The configuration for the scope-level ClusterUpgrade
650
+ # feature.
651
+ class ClusterUpgradeScopeSpec
652
+ include Google::Apis::Core::Hashable
653
+
654
+ # Allow users to override some properties of each GKE upgrade.
655
+ # Corresponds to the JSON property `gkeUpgradeOverrides`
656
+ # @return [Array<Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride>]
657
+ attr_accessor :gke_upgrade_overrides
658
+
659
+ # Post conditional checks after an upgrade has been applied on all eligible
660
+ # clusters.
661
+ # Corresponds to the JSON property `postConditions`
662
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions]
663
+ attr_accessor :post_conditions
664
+
665
+ # This scope consumes upgrades that have COMPLETE status code in the upstream
666
+ # scopes. See UpgradeStatus.Code for code definitions. The scope name should be
667
+ # in the form: `projects/`p`/locations/global/scopes/`s`` Where `p` is the
668
+ # project, `s` is a valid Scope in this project. `p` WILL match the Feature's
669
+ # project. This is defined as repeated for future proof reasons. Initial
670
+ # implementation will enforce at most one upstream scope.
671
+ # Corresponds to the JSON property `upstreamScopes`
672
+ # @return [Array<String>]
673
+ attr_accessor :upstream_scopes
674
+
675
+ def initialize(**args)
676
+ update!(**args)
677
+ end
678
+
679
+ # Update properties of this object
680
+ def update!(**args)
681
+ @gke_upgrade_overrides = args[:gke_upgrade_overrides] if args.key?(:gke_upgrade_overrides)
682
+ @post_conditions = args[:post_conditions] if args.key?(:post_conditions)
683
+ @upstream_scopes = args[:upstream_scopes] if args.key?(:upstream_scopes)
684
+ end
685
+ end
686
+
687
+ # **ClusterUpgrade**: The state for the scope-level ClusterUpgrade feature.
688
+ class ClusterUpgradeScopeState
689
+ include Google::Apis::Core::Hashable
690
+
691
+ # This scopes whose upstream_scopes contain the current scope. The scope name
692
+ # should be in the form: `projects/`p`/locations/gloobal/scopes/`s`` Where `p`
693
+ # is the project, `s` is a valid Scope in this project. `p` WILL match the
694
+ # Feature's project.
695
+ # Corresponds to the JSON property `downstreamScopes`
696
+ # @return [Array<String>]
697
+ attr_accessor :downstream_scopes
698
+
699
+ # GKEUpgradeFeatureState contains feature states for GKE clusters in the scope.
700
+ # Corresponds to the JSON property `gkeState`
701
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureState]
702
+ attr_accessor :gke_state
703
+
704
+ # A list of memberships ignored by the feature. For example, manually upgraded
705
+ # clusters can be ignored if they are newer than the default versions of its
706
+ # release channel. The membership resource is in the format: `projects/`p`/
707
+ # locations/`l`/membership/`m``.
708
+ # Corresponds to the JSON property `ignored`
709
+ # @return [Hash<String,Google::Apis::GkehubV1alpha::ClusterUpgradeIgnoredMembership>]
710
+ attr_accessor :ignored
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @downstream_scopes = args[:downstream_scopes] if args.key?(:downstream_scopes)
719
+ @gke_state = args[:gke_state] if args.key?(:gke_state)
720
+ @ignored = args[:ignored] if args.key?(:ignored)
721
+ end
722
+ end
723
+
724
+ # UpgradeStatus provides status information for each upgrade.
725
+ class ClusterUpgradeUpgradeStatus
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # Status code of the upgrade.
729
+ # Corresponds to the JSON property `code`
730
+ # @return [String]
731
+ attr_accessor :code
732
+
733
+ # Reason for this status.
734
+ # Corresponds to the JSON property `reason`
735
+ # @return [String]
736
+ attr_accessor :reason
737
+
738
+ # Last timestamp the status was updated.
739
+ # Corresponds to the JSON property `updateTime`
740
+ # @return [String]
741
+ attr_accessor :update_time
742
+
743
+ def initialize(**args)
744
+ update!(**args)
745
+ end
746
+
747
+ # Update properties of this object
748
+ def update!(**args)
749
+ @code = args[:code] if args.key?(:code)
750
+ @reason = args[:reason] if args.key?(:reason)
751
+ @update_time = args[:update_time] if args.key?(:update_time)
752
+ end
753
+ end
754
+
394
755
  # CommonFeatureSpec contains Hub-wide configuration information
395
756
  class CommonFeatureSpec
396
757
  include Google::Apis::Core::Hashable
@@ -579,9 +940,11 @@ module Google
579
940
 
580
941
  # Enables the installation of ConfigSync. If set to true, ConfigSync resources
581
942
  # will be created and the other ConfigSync fields will be applied if exist. If
582
- # set to false, all other ConfigSync fields will be ignored, ConfigSync
583
- # resources will be deleted. If omitted, ConfigSync resources will be managed
584
- # depends on the presence of git field.
943
+ # set to false and Managed Config Sync is disabled, all other ConfigSync fields
944
+ # will be ignored, ConfigSync resources will be deleted. Setting this field to
945
+ # false while enabling Managed Config Sync is invalid. If omitted, ConfigSync
946
+ # resources will be managed if: * the git or oci field is present; or * Managed
947
+ # Config Sync is enabled (i.e., managed.enabled is true).
585
948
  # Corresponds to the JSON property `enabled`
586
949
  # @return [Boolean]
587
950
  attr_accessor :enabled
@@ -597,6 +960,16 @@ module Google
597
960
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementManaged]
598
961
  attr_accessor :managed
599
962
 
963
+ # The Email of the GCP Service Account (GSA) used for exporting Config Sync
964
+ # metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is
965
+ # enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.
966
+ # metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the
967
+ # namespace `config-management-monitoring` should be binded to the GSA. This
968
+ # field is required when Managed Config Sync is enabled.
969
+ # Corresponds to the JSON property `metricsGcpServiceAccountEmail`
970
+ # @return [String]
971
+ attr_accessor :metrics_gcp_service_account_email
972
+
600
973
  # OCI repo configuration for a single cluster
601
974
  # Corresponds to the JSON property `oci`
602
975
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementOciConfig]
@@ -626,6 +999,7 @@ module Google
626
999
  @enabled = args[:enabled] if args.key?(:enabled)
627
1000
  @git = args[:git] if args.key?(:git)
628
1001
  @managed = args[:managed] if args.key?(:managed)
1002
+ @metrics_gcp_service_account_email = args[:metrics_gcp_service_account_email] if args.key?(:metrics_gcp_service_account_email)
629
1003
  @oci = args[:oci] if args.key?(:oci)
630
1004
  @prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
631
1005
  @source_format = args[:source_format] if args.key?(:source_format)
@@ -687,6 +1061,25 @@ module Google
687
1061
  end
688
1062
  end
689
1063
 
1064
+ # Errors pertaining to the installation of Config Sync
1065
+ class ConfigManagementConfigSyncError
1066
+ include Google::Apis::Core::Hashable
1067
+
1068
+ # A string representing the user facing error message
1069
+ # Corresponds to the JSON property `errorMessage`
1070
+ # @return [String]
1071
+ attr_accessor :error_message
1072
+
1073
+ def initialize(**args)
1074
+ update!(**args)
1075
+ end
1076
+
1077
+ # Update properties of this object
1078
+ def update!(**args)
1079
+ @error_message = args[:error_message] if args.key?(:error_message)
1080
+ end
1081
+ end
1082
+
690
1083
  # State information for ConfigSync
691
1084
  class ConfigManagementConfigSyncState
692
1085
  include Google::Apis::Core::Hashable
@@ -696,6 +1089,11 @@ module Google
696
1089
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncDeploymentState]
697
1090
  attr_accessor :deployment_state
698
1091
 
1092
+ # Errors pertaining to the installation of Config Sync.
1093
+ # Corresponds to the JSON property `errors`
1094
+ # @return [Array<Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncError>]
1095
+ attr_accessor :errors
1096
+
699
1097
  # State indicating an ACM's progress syncing configurations to a cluster
700
1098
  # Corresponds to the JSON property `syncState`
701
1099
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementSyncState]
@@ -713,6 +1111,7 @@ module Google
713
1111
  # Update properties of this object
714
1112
  def update!(**args)
715
1113
  @deployment_state = args[:deployment_state] if args.key?(:deployment_state)
1114
+ @errors = args[:errors] if args.key?(:errors)
716
1115
  @sync_state = args[:sync_state] if args.key?(:sync_state)
717
1116
  @version = args[:version] if args.key?(:version)
718
1117
  end
@@ -1070,12 +1469,20 @@ module Google
1070
1469
  include Google::Apis::Core::Hashable
1071
1470
 
1072
1471
  # Set to true to enable Managed Config Sync. Defaults to false which disables
1073
- # Managed Config Sync.
1472
+ # Managed Config Sync. Setting this field to true when configSync.enabled is
1473
+ # false is invalid.
1074
1474
  # Corresponds to the JSON property `enabled`
1075
1475
  # @return [Boolean]
1076
1476
  attr_accessor :enabled
1077
1477
  alias_method :enabled?, :enabled
1078
1478
 
1479
+ # Set to true to stop syncing configs for a single cluster. Default to false. If
1480
+ # set to true, Managed Config Sync will not upgrade Config Sync.
1481
+ # Corresponds to the JSON property `stopSyncing`
1482
+ # @return [Boolean]
1483
+ attr_accessor :stop_syncing
1484
+ alias_method :stop_syncing?, :stop_syncing
1485
+
1079
1486
  def initialize(**args)
1080
1487
  update!(**args)
1081
1488
  end
@@ -1083,6 +1490,7 @@ module Google
1083
1490
  # Update properties of this object
1084
1491
  def update!(**args)
1085
1492
  @enabled = args[:enabled] if args.key?(:enabled)
1493
+ @stop_syncing = args[:stop_syncing] if args.key?(:stop_syncing)
1086
1494
  end
1087
1495
  end
1088
1496
 
@@ -1096,6 +1504,16 @@ module Google
1096
1504
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementBinauthzConfig]
1097
1505
  attr_accessor :binauthz
1098
1506
 
1507
+ # The user-specified cluster name used by Config Sync cluster-name-selector
1508
+ # annotation or ClusterSelector, for applying configs to only a subset of
1509
+ # clusters. Omit this field if the cluster's fleet membership name is used by
1510
+ # Config Sync cluster-name-selector annotation or ClusterSelector. Set this
1511
+ # field if a name different from the cluster's fleet membership name is used by
1512
+ # Config Sync cluster-name-selector annotation or ClusterSelector.
1513
+ # Corresponds to the JSON property `cluster`
1514
+ # @return [String]
1515
+ attr_accessor :cluster
1516
+
1099
1517
  # Configuration for Config Sync
1100
1518
  # Corresponds to the JSON property `configSync`
1101
1519
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSync]
@@ -1123,6 +1541,7 @@ module Google
1123
1541
  # Update properties of this object
1124
1542
  def update!(**args)
1125
1543
  @binauthz = args[:binauthz] if args.key?(:binauthz)
1544
+ @cluster = args[:cluster] if args.key?(:cluster)
1126
1545
  @config_sync = args[:config_sync] if args.key?(:config_sync)
1127
1546
  @hierarchy_controller = args[:hierarchy_controller] if args.key?(:hierarchy_controller)
1128
1547
  @policy_controller = args[:policy_controller] if args.key?(:policy_controller)
@@ -1139,10 +1558,8 @@ module Google
1139
1558
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementBinauthzState]
1140
1559
  attr_accessor :binauthz_state
1141
1560
 
1142
- # The user-defined name for the cluster used by ClusterSelectors to group
1143
- # clusters together. This should match Membership's membership_name, unless the
1144
- # user installed ACM on the cluster manually prior to enabling the ACM hub
1145
- # feature. Unique within a Anthos Config Management installation.
1561
+ # This field is set to the `cluster_name` field of the Membership Spec if it is
1562
+ # not empty. Otherwise, it is set to the cluster's fleet membership name.
1146
1563
  # Corresponds to the JSON property `clusterName`
1147
1564
  # @return [String]
1148
1565
  attr_accessor :cluster_name
@@ -3085,7 +3502,7 @@ module Google
3085
3502
  end
3086
3503
 
3087
3504
  # MembershipFeatureSpec contains configuration information for a single
3088
- # Membership.
3505
+ # Membership. NOTE: Please use snake case in your feature name.
3089
3506
  class MembershipFeatureSpec
3090
3507
  include Google::Apis::Core::Hashable
3091
3508
 
@@ -3167,6 +3584,11 @@ module Google
3167
3584
  # @return [Google::Apis::GkehubV1alpha::AppDevExperienceFeatureState]
3168
3585
  attr_accessor :appdevexperience
3169
3586
 
3587
+ # Per-membership state for this feature.
3588
+ # Corresponds to the JSON property `clusterupgrade`
3589
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipState]
3590
+ attr_accessor :clusterupgrade
3591
+
3170
3592
  # **Anthos Config Management**: State for a single cluster.
3171
3593
  # Corresponds to the JSON property `configmanagement`
3172
3594
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipState]
@@ -3213,6 +3635,7 @@ module Google
3213
3635
  # Update properties of this object
3214
3636
  def update!(**args)
3215
3637
  @appdevexperience = args[:appdevexperience] if args.key?(:appdevexperience)
3638
+ @clusterupgrade = args[:clusterupgrade] if args.key?(:clusterupgrade)
3216
3639
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
3217
3640
  @fleetobservability = args[:fleetobservability] if args.key?(:fleetobservability)
3218
3641
  @identityservice = args[:identityservice] if args.key?(:identityservice)
@@ -4416,12 +4839,19 @@ module Google
4416
4839
  class ScopeFeatureSpec
4417
4840
  include Google::Apis::Core::Hashable
4418
4841
 
4842
+ # **ClusterUpgrade**: The configuration for the scope-level ClusterUpgrade
4843
+ # feature.
4844
+ # Corresponds to the JSON property `clusterupgrade`
4845
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeScopeSpec]
4846
+ attr_accessor :clusterupgrade
4847
+
4419
4848
  def initialize(**args)
4420
4849
  update!(**args)
4421
4850
  end
4422
4851
 
4423
4852
  # Update properties of this object
4424
4853
  def update!(**args)
4854
+ @clusterupgrade = args[:clusterupgrade] if args.key?(:clusterupgrade)
4425
4855
  end
4426
4856
  end
4427
4857
 
@@ -4429,6 +4859,11 @@ module Google
4429
4859
  class ScopeFeatureState
4430
4860
  include Google::Apis::Core::Hashable
4431
4861
 
4862
+ # **ClusterUpgrade**: The state for the scope-level ClusterUpgrade feature.
4863
+ # Corresponds to the JSON property `clusterupgrade`
4864
+ # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeScopeState]
4865
+ attr_accessor :clusterupgrade
4866
+
4432
4867
  # FeatureState describes the high-level state of a Feature. It may be used to
4433
4868
  # describe a Feature's state at the environ-level, or per-membershop, depending
4434
4869
  # on the context.
@@ -4442,6 +4877,7 @@ module Google
4442
4877
 
4443
4878
  # Update properties of this object
4444
4879
  def update!(**args)
4880
+ @clusterupgrade = args[:clusterupgrade] if args.key?(:clusterupgrade)
4445
4881
  @state = args[:state] if args.key?(:state)
4446
4882
  end
4447
4883
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1alpha
18
18
  # Version of the google-apis-gkehub_v1alpha gem
19
- GEM_VERSION = "0.54.0"
19
+ GEM_VERSION = "0.55.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230515"
25
+ REVISION = "20230606"
26
26
  end
27
27
  end
28
28
  end
@@ -94,6 +94,78 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
+ class ClusterUpgradeGkeUpgrade
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ClusterUpgradeGkeUpgradeFeatureCondition
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ClusterUpgradeGkeUpgradeFeatureState
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ClusterUpgradeGkeUpgradeOverride
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ClusterUpgradeIgnoredMembership
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ClusterUpgradeMembershipGkeUpgradeState
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ClusterUpgradeMembershipState
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ClusterUpgradePostConditions
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ClusterUpgradeScopeGkeUpgradeState
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ClusterUpgradeScopeSpec
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ClusterUpgradeScopeState
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ClusterUpgradeUpgradeStatus
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
97
169
  class CommonFeatureSpec
98
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
171
 
@@ -142,6 +214,12 @@ module Google
142
214
  include Google::Apis::Core::JsonObjectSupport
143
215
  end
144
216
 
217
+ class ConfigManagementConfigSyncError
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
145
223
  class ConfigManagementConfigSyncState
146
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
225
 
@@ -946,6 +1024,122 @@ module Google
946
1024
  end
947
1025
  end
948
1026
 
1027
+ class ClusterUpgradeGkeUpgrade
1028
+ # @private
1029
+ class Representation < Google::Apis::Core::JsonRepresentation
1030
+ property :name, as: 'name'
1031
+ property :version, as: 'version'
1032
+ end
1033
+ end
1034
+
1035
+ class ClusterUpgradeGkeUpgradeFeatureCondition
1036
+ # @private
1037
+ class Representation < Google::Apis::Core::JsonRepresentation
1038
+ property :reason, as: 'reason'
1039
+ property :status, as: 'status'
1040
+ property :type, as: 'type'
1041
+ property :update_time, as: 'updateTime'
1042
+ end
1043
+ end
1044
+
1045
+ class ClusterUpgradeGkeUpgradeFeatureState
1046
+ # @private
1047
+ class Representation < Google::Apis::Core::JsonRepresentation
1048
+ collection :conditions, as: 'conditions', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureCondition, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureCondition::Representation
1049
+
1050
+ collection :state, as: 'state', class: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeGkeUpgradeState, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeGkeUpgradeState::Representation
1051
+
1052
+ end
1053
+ end
1054
+
1055
+ class ClusterUpgradeGkeUpgradeOverride
1056
+ # @private
1057
+ class Representation < Google::Apis::Core::JsonRepresentation
1058
+ property :post_conditions, as: 'postConditions', class: Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions::Representation
1059
+
1060
+ property :upgrade, as: 'upgrade', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade::Representation
1061
+
1062
+ end
1063
+ end
1064
+
1065
+ class ClusterUpgradeIgnoredMembership
1066
+ # @private
1067
+ class Representation < Google::Apis::Core::JsonRepresentation
1068
+ property :ignored_time, as: 'ignoredTime'
1069
+ property :reason, as: 'reason'
1070
+ end
1071
+ end
1072
+
1073
+ class ClusterUpgradeMembershipGkeUpgradeState
1074
+ # @private
1075
+ class Representation < Google::Apis::Core::JsonRepresentation
1076
+ property :status, as: 'status', class: Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus::Representation
1077
+
1078
+ property :upgrade, as: 'upgrade', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade::Representation
1079
+
1080
+ end
1081
+ end
1082
+
1083
+ class ClusterUpgradeMembershipState
1084
+ # @private
1085
+ class Representation < Google::Apis::Core::JsonRepresentation
1086
+ property :ignored, as: 'ignored', class: Google::Apis::GkehubV1alpha::ClusterUpgradeIgnoredMembership, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeIgnoredMembership::Representation
1087
+
1088
+ collection :scopes, as: 'scopes'
1089
+ collection :upgrades, as: 'upgrades', class: Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipGkeUpgradeState, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipGkeUpgradeState::Representation
1090
+
1091
+ end
1092
+ end
1093
+
1094
+ class ClusterUpgradePostConditions
1095
+ # @private
1096
+ class Representation < Google::Apis::Core::JsonRepresentation
1097
+ property :soaking, as: 'soaking'
1098
+ end
1099
+ end
1100
+
1101
+ class ClusterUpgradeScopeGkeUpgradeState
1102
+ # @private
1103
+ class Representation < Google::Apis::Core::JsonRepresentation
1104
+ hash :stats, as: 'stats'
1105
+ property :status, as: 'status', class: Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus::Representation
1106
+
1107
+ property :upgrade, as: 'upgrade', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade::Representation
1108
+
1109
+ end
1110
+ end
1111
+
1112
+ class ClusterUpgradeScopeSpec
1113
+ # @private
1114
+ class Representation < Google::Apis::Core::JsonRepresentation
1115
+ collection :gke_upgrade_overrides, as: 'gkeUpgradeOverrides', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride::Representation
1116
+
1117
+ property :post_conditions, as: 'postConditions', class: Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions::Representation
1118
+
1119
+ collection :upstream_scopes, as: 'upstreamScopes'
1120
+ end
1121
+ end
1122
+
1123
+ class ClusterUpgradeScopeState
1124
+ # @private
1125
+ class Representation < Google::Apis::Core::JsonRepresentation
1126
+ collection :downstream_scopes, as: 'downstreamScopes'
1127
+ property :gke_state, as: 'gkeState', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureState, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureState::Representation
1128
+
1129
+ hash :ignored, as: 'ignored', class: Google::Apis::GkehubV1alpha::ClusterUpgradeIgnoredMembership, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeIgnoredMembership::Representation
1130
+
1131
+ end
1132
+ end
1133
+
1134
+ class ClusterUpgradeUpgradeStatus
1135
+ # @private
1136
+ class Representation < Google::Apis::Core::JsonRepresentation
1137
+ property :code, as: 'code'
1138
+ property :reason, as: 'reason'
1139
+ property :update_time, as: 'updateTime'
1140
+ end
1141
+ end
1142
+
949
1143
  class CommonFeatureSpec
950
1144
  # @private
951
1145
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1018,6 +1212,7 @@ module Google
1018
1212
 
1019
1213
  property :managed, as: 'managed', class: Google::Apis::GkehubV1alpha::ConfigManagementManaged, decorator: Google::Apis::GkehubV1alpha::ConfigManagementManaged::Representation
1020
1214
 
1215
+ property :metrics_gcp_service_account_email, as: 'metricsGcpServiceAccountEmail'
1021
1216
  property :oci, as: 'oci', class: Google::Apis::GkehubV1alpha::ConfigManagementOciConfig, decorator: Google::Apis::GkehubV1alpha::ConfigManagementOciConfig::Representation
1022
1217
 
1023
1218
  property :prevent_drift, as: 'preventDrift'
@@ -1038,11 +1233,20 @@ module Google
1038
1233
  end
1039
1234
  end
1040
1235
 
1236
+ class ConfigManagementConfigSyncError
1237
+ # @private
1238
+ class Representation < Google::Apis::Core::JsonRepresentation
1239
+ property :error_message, as: 'errorMessage'
1240
+ end
1241
+ end
1242
+
1041
1243
  class ConfigManagementConfigSyncState
1042
1244
  # @private
1043
1245
  class Representation < Google::Apis::Core::JsonRepresentation
1044
1246
  property :deployment_state, as: 'deploymentState', class: Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncDeploymentState, decorator: Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncDeploymentState::Representation
1045
1247
 
1248
+ collection :errors, as: 'errors', class: Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncError, decorator: Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncError::Representation
1249
+
1046
1250
  property :sync_state, as: 'syncState', class: Google::Apis::GkehubV1alpha::ConfigManagementSyncState, decorator: Google::Apis::GkehubV1alpha::ConfigManagementSyncState::Representation
1047
1251
 
1048
1252
  property :version, as: 'version', class: Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncVersion, decorator: Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncVersion::Representation
@@ -1152,6 +1356,7 @@ module Google
1152
1356
  # @private
1153
1357
  class Representation < Google::Apis::Core::JsonRepresentation
1154
1358
  property :enabled, as: 'enabled'
1359
+ property :stop_syncing, as: 'stopSyncing'
1155
1360
  end
1156
1361
  end
1157
1362
 
@@ -1160,6 +1365,7 @@ module Google
1160
1365
  class Representation < Google::Apis::Core::JsonRepresentation
1161
1366
  property :binauthz, as: 'binauthz', class: Google::Apis::GkehubV1alpha::ConfigManagementBinauthzConfig, decorator: Google::Apis::GkehubV1alpha::ConfigManagementBinauthzConfig::Representation
1162
1367
 
1368
+ property :cluster, as: 'cluster'
1163
1369
  property :config_sync, as: 'configSync', class: Google::Apis::GkehubV1alpha::ConfigManagementConfigSync, decorator: Google::Apis::GkehubV1alpha::ConfigManagementConfigSync::Representation
1164
1370
 
1165
1371
  property :hierarchy_controller, as: 'hierarchyController', class: Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerConfig, decorator: Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerConfig::Representation
@@ -1748,6 +1954,8 @@ module Google
1748
1954
  class Representation < Google::Apis::Core::JsonRepresentation
1749
1955
  property :appdevexperience, as: 'appdevexperience', class: Google::Apis::GkehubV1alpha::AppDevExperienceFeatureState, decorator: Google::Apis::GkehubV1alpha::AppDevExperienceFeatureState::Representation
1750
1956
 
1957
+ property :clusterupgrade, as: 'clusterupgrade', class: Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipState, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipState::Representation
1958
+
1751
1959
  property :configmanagement, as: 'configmanagement', class: Google::Apis::GkehubV1alpha::ConfigManagementMembershipState, decorator: Google::Apis::GkehubV1alpha::ConfigManagementMembershipState::Representation
1752
1960
 
1753
1961
  property :fleetobservability, as: 'fleetobservability', class: Google::Apis::GkehubV1alpha::FleetObservabilityMembershipState, decorator: Google::Apis::GkehubV1alpha::FleetObservabilityMembershipState::Representation
@@ -2081,12 +2289,16 @@ module Google
2081
2289
  class ScopeFeatureSpec
2082
2290
  # @private
2083
2291
  class Representation < Google::Apis::Core::JsonRepresentation
2292
+ property :clusterupgrade, as: 'clusterupgrade', class: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeSpec, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeSpec::Representation
2293
+
2084
2294
  end
2085
2295
  end
2086
2296
 
2087
2297
  class ScopeFeatureState
2088
2298
  # @private
2089
2299
  class Representation < Google::Apis::Core::JsonRepresentation
2300
+ property :clusterupgrade, as: 'clusterupgrade', class: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeState, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeState::Representation
2301
+
2090
2302
  property :state, as: 'state', class: Google::Apis::GkehubV1alpha::FeatureState, decorator: Google::Apis::GkehubV1alpha::FeatureState::Representation
2091
2303
 
2092
2304
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.0
4
+ version: 0.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-21 00:00:00.000000000 Z
11
+ date: 2023-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.54.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.55.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []