google-apis-gkehub_v1alpha 0.53.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: f2098d408e7b245ac99897b2ac39dfa6d66bbf2e7d301ffd5d7bb733d8d2f66e
4
- data.tar.gz: 8b0459898dad91d90d6f4df00ec73a6537194a007a0a4db1196b181bcb285280
3
+ metadata.gz: 950cfd629e1a813fbd21c6c34224c380607cac6e1d7e1536f19c83b98d0321f7
4
+ data.tar.gz: 180f8952e7d06c88180a304be958e64ecceb666d0741259187fc8c6dbb7862da
5
5
  SHA512:
6
- metadata.gz: 857a286fa2951f822209f63c931b1f80891fcdbcaeccb5fa58019cb99f5bb2390f14c5bc15a55c8ef8d808d2f77b88ed8bd048b1f2fd8206be2ffc459cf3b20c
7
- data.tar.gz: 0bb08022db8d6b6eaf9c12cc16407885b17be015989154ba6430e061c7733c96315b87902e625fc049ad2c75fc56326380449b866d89dda91d044c5427e1cf20
6
+ metadata.gz: 81f803f2bf0797f4e2f21140fa4b7e2b75df4989b609f1d92ce2d21c63a8a6371eb9ae4c397712744fa92778fe036af11a04a474795ddd64fe26c6c5d5aa0b47
7
+ data.tar.gz: 01f106bba615dab37530106a1c3ceefac155493d0c5d518f1908ca85f76f7c784650f46ab98a7e3d520289f7e742caa4261465b229d5162942a1955f4de1b2de
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.54.0 (2023-05-21)
8
+
9
+ * Regenerated from discovery document revision 20230515
10
+
3
11
  ### v0.53.0 (2023-04-30)
4
12
 
5
13
  * Regenerated from discovery document revision 20230424
@@ -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
@@ -451,8 +812,7 @@ module Google
451
812
  # @return [Google::Apis::GkehubV1alpha::AppDevExperienceFeatureState]
452
813
  attr_accessor :appdevexperience
453
814
 
454
- # **FleetObservability**: An empty state left as an example Hub-wide Feature
455
- # state.
815
+ # **FleetObservability**: Hub-wide Feature for FleetObservability feature. state.
456
816
  # Corresponds to the JSON property `fleetobservability`
457
817
  # @return [Google::Apis::GkehubV1alpha::FleetObservabilityFeatureState]
458
818
  attr_accessor :fleetobservability
@@ -580,9 +940,11 @@ module Google
580
940
 
581
941
  # Enables the installation of ConfigSync. If set to true, ConfigSync resources
582
942
  # will be created and the other ConfigSync fields will be applied if exist. If
583
- # set to false, all other ConfigSync fields will be ignored, ConfigSync
584
- # resources will be deleted. If omitted, ConfigSync resources will be managed
585
- # 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).
586
948
  # Corresponds to the JSON property `enabled`
587
949
  # @return [Boolean]
588
950
  attr_accessor :enabled
@@ -598,6 +960,16 @@ module Google
598
960
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementManaged]
599
961
  attr_accessor :managed
600
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
+
601
973
  # OCI repo configuration for a single cluster
602
974
  # Corresponds to the JSON property `oci`
603
975
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementOciConfig]
@@ -627,6 +999,7 @@ module Google
627
999
  @enabled = args[:enabled] if args.key?(:enabled)
628
1000
  @git = args[:git] if args.key?(:git)
629
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)
630
1003
  @oci = args[:oci] if args.key?(:oci)
631
1004
  @prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
632
1005
  @source_format = args[:source_format] if args.key?(:source_format)
@@ -688,6 +1061,25 @@ module Google
688
1061
  end
689
1062
  end
690
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
+
691
1083
  # State information for ConfigSync
692
1084
  class ConfigManagementConfigSyncState
693
1085
  include Google::Apis::Core::Hashable
@@ -697,6 +1089,11 @@ module Google
697
1089
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncDeploymentState]
698
1090
  attr_accessor :deployment_state
699
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
+
700
1097
  # State indicating an ACM's progress syncing configurations to a cluster
701
1098
  # Corresponds to the JSON property `syncState`
702
1099
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementSyncState]
@@ -714,6 +1111,7 @@ module Google
714
1111
  # Update properties of this object
715
1112
  def update!(**args)
716
1113
  @deployment_state = args[:deployment_state] if args.key?(:deployment_state)
1114
+ @errors = args[:errors] if args.key?(:errors)
717
1115
  @sync_state = args[:sync_state] if args.key?(:sync_state)
718
1116
  @version = args[:version] if args.key?(:version)
719
1117
  end
@@ -1071,12 +1469,20 @@ module Google
1071
1469
  include Google::Apis::Core::Hashable
1072
1470
 
1073
1471
  # Set to true to enable Managed Config Sync. Defaults to false which disables
1074
- # Managed Config Sync.
1472
+ # Managed Config Sync. Setting this field to true when configSync.enabled is
1473
+ # false is invalid.
1075
1474
  # Corresponds to the JSON property `enabled`
1076
1475
  # @return [Boolean]
1077
1476
  attr_accessor :enabled
1078
1477
  alias_method :enabled?, :enabled
1079
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
+
1080
1486
  def initialize(**args)
1081
1487
  update!(**args)
1082
1488
  end
@@ -1084,6 +1490,7 @@ module Google
1084
1490
  # Update properties of this object
1085
1491
  def update!(**args)
1086
1492
  @enabled = args[:enabled] if args.key?(:enabled)
1493
+ @stop_syncing = args[:stop_syncing] if args.key?(:stop_syncing)
1087
1494
  end
1088
1495
  end
1089
1496
 
@@ -1097,6 +1504,16 @@ module Google
1097
1504
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementBinauthzConfig]
1098
1505
  attr_accessor :binauthz
1099
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
+
1100
1517
  # Configuration for Config Sync
1101
1518
  # Corresponds to the JSON property `configSync`
1102
1519
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSync]
@@ -1124,6 +1541,7 @@ module Google
1124
1541
  # Update properties of this object
1125
1542
  def update!(**args)
1126
1543
  @binauthz = args[:binauthz] if args.key?(:binauthz)
1544
+ @cluster = args[:cluster] if args.key?(:cluster)
1127
1545
  @config_sync = args[:config_sync] if args.key?(:config_sync)
1128
1546
  @hierarchy_controller = args[:hierarchy_controller] if args.key?(:hierarchy_controller)
1129
1547
  @policy_controller = args[:policy_controller] if args.key?(:policy_controller)
@@ -1140,10 +1558,8 @@ module Google
1140
1558
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementBinauthzState]
1141
1559
  attr_accessor :binauthz_state
1142
1560
 
1143
- # The user-defined name for the cluster used by ClusterSelectors to group
1144
- # clusters together. This should match Membership's membership_name, unless the
1145
- # user installed ACM on the cluster manually prior to enabling the ACM hub
1146
- # 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.
1147
1563
  # Corresponds to the JSON property `clusterName`
1148
1564
  # @return [String]
1149
1565
  attr_accessor :cluster_name
@@ -1944,8 +2360,7 @@ module Google
1944
2360
  end
1945
2361
  end
1946
2362
 
1947
- # **FleetObservability**: An empty state left as an example Hub-wide Feature
1948
- # state.
2363
+ # **FleetObservability**: Hub-wide Feature for FleetObservability feature. state.
1949
2364
  class FleetObservabilityFeatureState
1950
2365
  include Google::Apis::Core::Hashable
1951
2366
 
@@ -1997,8 +2412,8 @@ module Google
1997
2412
  end
1998
2413
  end
1999
2414
 
2000
- # **FleetObservability**: An empty state left as an example membership-specific
2001
- # Feature state.
2415
+ # **FleetObservability**: Membership-specific Feature state for
2416
+ # fleetobservability.
2002
2417
  class FleetObservabilityMembershipState
2003
2418
  include Google::Apis::Core::Hashable
2004
2419
 
@@ -2961,7 +3376,7 @@ module Google
2961
3376
  # @return [String]
2962
3377
  attr_accessor :name
2963
3378
 
2964
- # A Workspace resource name in the format `projects/*/locations/*/scopes/*`.
3379
+ # A Scope resource name in the format `projects/*/locations/*/scopes/*`.
2965
3380
  # Corresponds to the JSON property `scope`
2966
3381
  # @return [String]
2967
3382
  attr_accessor :scope
@@ -3087,7 +3502,7 @@ module Google
3087
3502
  end
3088
3503
 
3089
3504
  # MembershipFeatureSpec contains configuration information for a single
3090
- # Membership.
3505
+ # Membership. NOTE: Please use snake case in your feature name.
3091
3506
  class MembershipFeatureSpec
3092
3507
  include Google::Apis::Core::Hashable
3093
3508
 
@@ -3169,13 +3584,18 @@ module Google
3169
3584
  # @return [Google::Apis::GkehubV1alpha::AppDevExperienceFeatureState]
3170
3585
  attr_accessor :appdevexperience
3171
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
+
3172
3592
  # **Anthos Config Management**: State for a single cluster.
3173
3593
  # Corresponds to the JSON property `configmanagement`
3174
3594
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipState]
3175
3595
  attr_accessor :configmanagement
3176
3596
 
3177
- # **FleetObservability**: An empty state left as an example membership-specific
3178
- # Feature state.
3597
+ # **FleetObservability**: Membership-specific Feature state for
3598
+ # fleetobservability.
3179
3599
  # Corresponds to the JSON property `fleetobservability`
3180
3600
  # @return [Google::Apis::GkehubV1alpha::FleetObservabilityMembershipState]
3181
3601
  attr_accessor :fleetobservability
@@ -3215,6 +3635,7 @@ module Google
3215
3635
  # Update properties of this object
3216
3636
  def update!(**args)
3217
3637
  @appdevexperience = args[:appdevexperience] if args.key?(:appdevexperience)
3638
+ @clusterupgrade = args[:clusterupgrade] if args.key?(:clusterupgrade)
3218
3639
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
3219
3640
  @fleetobservability = args[:fleetobservability] if args.key?(:fleetobservability)
3220
3641
  @identityservice = args[:identityservice] if args.key?(:identityservice)
@@ -4418,12 +4839,19 @@ module Google
4418
4839
  class ScopeFeatureSpec
4419
4840
  include Google::Apis::Core::Hashable
4420
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
+
4421
4848
  def initialize(**args)
4422
4849
  update!(**args)
4423
4850
  end
4424
4851
 
4425
4852
  # Update properties of this object
4426
4853
  def update!(**args)
4854
+ @clusterupgrade = args[:clusterupgrade] if args.key?(:clusterupgrade)
4427
4855
  end
4428
4856
  end
4429
4857
 
@@ -4431,6 +4859,11 @@ module Google
4431
4859
  class ScopeFeatureState
4432
4860
  include Google::Apis::Core::Hashable
4433
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
+
4434
4867
  # FeatureState describes the high-level state of a Feature. It may be used to
4435
4868
  # describe a Feature's state at the environ-level, or per-membershop, depending
4436
4869
  # on the context.
@@ -4444,6 +4877,7 @@ module Google
4444
4877
 
4445
4878
  # Update properties of this object
4446
4879
  def update!(**args)
4880
+ @clusterupgrade = args[:clusterupgrade] if args.key?(:clusterupgrade)
4447
4881
  @state = args[:state] if args.key?(:state)
4448
4882
  end
4449
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.53.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 = "20230424"
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
@@ -1299,6 +1299,9 @@ module Google
1299
1299
  # @param [String] parent
1300
1300
  # Required. The parent Membership for which the MembershipBindings will be
1301
1301
  # listed. Specified in the format `projects/*/locations/*/memberships/*`.
1302
+ # @param [String] filter
1303
+ # Optional. Lists MembershipBindings that match the filter expression, following
1304
+ # the syntax outlined in https://google.aip.dev/160.
1302
1305
  # @param [Fixnum] page_size
1303
1306
  # Optional. When requesting a 'page' of resources, `page_size` specifies number
1304
1307
  # of resources to return. If unspecified or set to 0, all resources will be
@@ -1324,11 +1327,12 @@ module Google
1324
1327
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1325
1328
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1326
1329
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1327
- def list_project_location_membership_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1330
+ def list_project_location_membership_bindings(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1328
1331
  command = make_simple_command(:get, 'v1alpha/{+parent}/bindings', options)
1329
1332
  command.response_representation = Google::Apis::GkehubV1alpha::ListMembershipBindingsResponse::Representation
1330
1333
  command.response_class = Google::Apis::GkehubV1alpha::ListMembershipBindingsResponse
1331
1334
  command.params['parent'] = parent unless parent.nil?
1335
+ command.query['filter'] = filter unless filter.nil?
1332
1336
  command.query['pageSize'] = page_size unless page_size.nil?
1333
1337
  command.query['pageToken'] = page_token unless page_token.nil?
1334
1338
  command.query['fields'] = fields unless fields.nil?
@@ -1979,6 +1983,51 @@ module Google
1979
1983
  execute_or_queue_command(command, &block)
1980
1984
  end
1981
1985
 
1986
+ # Gets the access control policy for a resource. Returns an empty policy if the
1987
+ # resource exists and does not have a policy set.
1988
+ # @param [String] resource
1989
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1990
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1991
+ # appropriate value for this field.
1992
+ # @param [Fixnum] options_requested_policy_version
1993
+ # Optional. The maximum policy version that will be used to format the policy.
1994
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1995
+ # rejected. Requests for policies with any conditional role bindings must
1996
+ # specify version 3. Policies with no conditional role bindings may specify any
1997
+ # valid value or leave the field unset. The policy in the response might use the
1998
+ # policy version that you specified, or it might use a lower policy version. For
1999
+ # example, if you specify version 3, but the policy has no conditional role
2000
+ # bindings, the response uses version 1. To learn which resources support
2001
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2002
+ # google.com/iam/help/conditions/resource-policies).
2003
+ # @param [String] fields
2004
+ # Selector specifying which fields to include in a partial response.
2005
+ # @param [String] quota_user
2006
+ # Available to use for quota purposes for server-side applications. Can be any
2007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2008
+ # @param [Google::Apis::RequestOptions] options
2009
+ # Request-specific options
2010
+ #
2011
+ # @yield [result, err] Result & error if block supplied
2012
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Policy] parsed result object
2013
+ # @yieldparam err [StandardError] error object if request failed
2014
+ #
2015
+ # @return [Google::Apis::GkehubV1alpha::Policy]
2016
+ #
2017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2020
+ def get_project_location_scope_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2021
+ command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
2022
+ command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
2023
+ command.response_class = Google::Apis::GkehubV1alpha::Policy
2024
+ command.params['resource'] = resource unless resource.nil?
2025
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2026
+ command.query['fields'] = fields unless fields.nil?
2027
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2028
+ execute_or_queue_command(command, &block)
2029
+ end
2030
+
1982
2031
  # Lists Scopes.
1983
2032
  # @param [String] parent
1984
2033
  # Required. The parent (project and location) where the Scope will be listed.
@@ -2055,6 +2104,82 @@ module Google
2055
2104
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2056
2105
  execute_or_queue_command(command, &block)
2057
2106
  end
2107
+
2108
+ # Sets the access control policy on the specified resource. Replaces any
2109
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2110
+ # PERMISSION_DENIED` errors.
2111
+ # @param [String] resource
2112
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2113
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2114
+ # appropriate value for this field.
2115
+ # @param [Google::Apis::GkehubV1alpha::SetIamPolicyRequest] set_iam_policy_request_object
2116
+ # @param [String] fields
2117
+ # Selector specifying which fields to include in a partial response.
2118
+ # @param [String] quota_user
2119
+ # Available to use for quota purposes for server-side applications. Can be any
2120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2121
+ # @param [Google::Apis::RequestOptions] options
2122
+ # Request-specific options
2123
+ #
2124
+ # @yield [result, err] Result & error if block supplied
2125
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Policy] parsed result object
2126
+ # @yieldparam err [StandardError] error object if request failed
2127
+ #
2128
+ # @return [Google::Apis::GkehubV1alpha::Policy]
2129
+ #
2130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2133
+ def set_scope_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2134
+ command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
2135
+ command.request_representation = Google::Apis::GkehubV1alpha::SetIamPolicyRequest::Representation
2136
+ command.request_object = set_iam_policy_request_object
2137
+ command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
2138
+ command.response_class = Google::Apis::GkehubV1alpha::Policy
2139
+ command.params['resource'] = resource unless resource.nil?
2140
+ command.query['fields'] = fields unless fields.nil?
2141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2142
+ execute_or_queue_command(command, &block)
2143
+ end
2144
+
2145
+ # Returns permissions that a caller has on the specified resource. If the
2146
+ # resource does not exist, this will return an empty set of permissions, not a `
2147
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
2148
+ # permission-aware UIs and command-line tools, not for authorization checking.
2149
+ # This operation may "fail open" without warning.
2150
+ # @param [String] resource
2151
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2152
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2153
+ # appropriate value for this field.
2154
+ # @param [Google::Apis::GkehubV1alpha::TestIamPermissionsRequest] test_iam_permissions_request_object
2155
+ # @param [String] fields
2156
+ # Selector specifying which fields to include in a partial response.
2157
+ # @param [String] quota_user
2158
+ # Available to use for quota purposes for server-side applications. Can be any
2159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2160
+ # @param [Google::Apis::RequestOptions] options
2161
+ # Request-specific options
2162
+ #
2163
+ # @yield [result, err] Result & error if block supplied
2164
+ # @yieldparam result [Google::Apis::GkehubV1alpha::TestIamPermissionsResponse] parsed result object
2165
+ # @yieldparam err [StandardError] error object if request failed
2166
+ #
2167
+ # @return [Google::Apis::GkehubV1alpha::TestIamPermissionsResponse]
2168
+ #
2169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2172
+ def test_scope_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2173
+ command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
2174
+ command.request_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsRequest::Representation
2175
+ command.request_object = test_iam_permissions_request_object
2176
+ command.response_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse::Representation
2177
+ command.response_class = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse
2178
+ command.params['resource'] = resource unless resource.nil?
2179
+ command.query['fields'] = fields unless fields.nil?
2180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2181
+ execute_or_queue_command(command, &block)
2182
+ end
2058
2183
 
2059
2184
  protected
2060
2185
 
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.53.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-04-30 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.53.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: []