google-apis-gkehub_v1 0.58.0 → 0.60.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: 8da5a1249c759908519b7504f02c043024066e2a96a964146ebfbd05c24857c1
4
- data.tar.gz: 21271335c6362a1118204115ff7605aa65d1d4758949ada2141c0bb050adccfa
3
+ metadata.gz: b8c341163fa5fff048c825d3109aad2825398155ffe0e5edc55fb1019e15aa43
4
+ data.tar.gz: 996f74a7e7a287efed1d65f512254d9e94cc71f462a83c87ed773e066dd3763c
5
5
  SHA512:
6
- metadata.gz: 7debff6d10dea9a57f91b9cd98b2155acd5c8690269ad5fdec0500f1cc0b790858cf472dc47d35d11a7baf83849179b14d2f0eca322fbda4f9f43a9e06827494
7
- data.tar.gz: 49529052efba0507a5fa49595ada6973771254a3294436f6fc0b0220a210fb8c266dd0709334fcb790bc328ff6e71814f328bb1c5b0fed53314273861e66cef6
6
+ metadata.gz: f61772fbfe51736d6a29cfef0fb7bd1c296f969a7af0abae231fc8eb9b351918be7d3747ff5cd38da6ae7a365236638ab99b8c98545c441873df53e825cb98c1
7
+ data.tar.gz: bc2c02125e7e5cf23f3eebdb4a628084f02c6dd734e0a1cf9a8be5b5cd4a753fa122ab508518c0cca18f45d45ed6769aacd7d7336c12ca810f8fab01899fd2d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-gkehub_v1
2
2
 
3
+ ### v0.60.0 (2023-10-22)
4
+
5
+ * Regenerated from discovery document revision 20231013
6
+
7
+ ### v0.59.0 (2023-10-15)
8
+
9
+ * Regenerated from discovery document revision 20231006
10
+
3
11
  ### v0.58.0 (2023-10-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20230921
@@ -365,6 +365,12 @@ module Google
365
365
  # @return [Google::Apis::GkehubV1::ConfigManagementMembershipSpec]
366
366
  attr_accessor :configmanagement
367
367
 
368
+ # **Policy Controller**: Configuration for a single cluster. Intended to
369
+ # parallel the PolicyController CR.
370
+ # Corresponds to the JSON property `policycontroller`
371
+ # @return [Google::Apis::GkehubV1::PolicyControllerMembershipSpec]
372
+ attr_accessor :policycontroller
373
+
368
374
  def initialize(**args)
369
375
  update!(**args)
370
376
  end
@@ -372,6 +378,7 @@ module Google
372
378
  # Update properties of this object
373
379
  def update!(**args)
374
380
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
381
+ @policycontroller = args[:policycontroller] if args.key?(:policycontroller)
375
382
  end
376
383
  end
377
384
 
@@ -2770,8 +2777,10 @@ module Google
2770
2777
  # @return [String]
2771
2778
  attr_accessor :last_connection_time
2772
2779
 
2773
- # This field informs Fleet-based applications/services/UIs with the necessary
2774
- # information for where each underlying Cluster reports its metrics.
2780
+ # MonitoringConfig informs Fleet-based applications/services/UIs how the metrics
2781
+ # for the underlying cluster is reported to cloud monitoring services. It can be
2782
+ # set from empty to non-empty, but can't be mutated directly to prevent
2783
+ # accidentally breaking the constinousty of metrics.
2775
2784
  # Corresponds to the JSON property `monitoringConfig`
2776
2785
  # @return [Google::Apis::GkehubV1::MonitoringConfig]
2777
2786
  attr_accessor :monitoring_config
@@ -3009,6 +3018,12 @@ module Google
3009
3018
  # @return [Google::Apis::GkehubV1::Origin]
3010
3019
  attr_accessor :origin
3011
3020
 
3021
+ # **Policy Controller**: Configuration for a single cluster. Intended to
3022
+ # parallel the PolicyController CR.
3023
+ # Corresponds to the JSON property `policycontroller`
3024
+ # @return [Google::Apis::GkehubV1::PolicyControllerMembershipSpec]
3025
+ attr_accessor :policycontroller
3026
+
3012
3027
  def initialize(**args)
3013
3028
  update!(**args)
3014
3029
  end
@@ -3020,6 +3035,7 @@ module Google
3020
3035
  @identityservice = args[:identityservice] if args.key?(:identityservice)
3021
3036
  @mesh = args[:mesh] if args.key?(:mesh)
3022
3037
  @origin = args[:origin] if args.key?(:origin)
3038
+ @policycontroller = args[:policycontroller] if args.key?(:policycontroller)
3023
3039
  end
3024
3040
  end
3025
3041
 
@@ -3049,6 +3065,11 @@ module Google
3049
3065
  # @return [Google::Apis::GkehubV1::IdentityServiceMembershipState]
3050
3066
  attr_accessor :identityservice
3051
3067
 
3068
+ # **Policy Controller**: State for a single cluster.
3069
+ # Corresponds to the JSON property `policycontroller`
3070
+ # @return [Google::Apis::GkehubV1::PolicyControllerMembershipState]
3071
+ attr_accessor :policycontroller
3072
+
3052
3073
  # **Service Mesh**: State for a single Membership, as analyzed by the Service
3053
3074
  # Mesh Hub Controller.
3054
3075
  # Corresponds to the JSON property `servicemesh`
@@ -3072,6 +3093,7 @@ module Google
3072
3093
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
3073
3094
  @fleetobservability = args[:fleetobservability] if args.key?(:fleetobservability)
3074
3095
  @identityservice = args[:identityservice] if args.key?(:identityservice)
3096
+ @policycontroller = args[:policycontroller] if args.key?(:policycontroller)
3075
3097
  @servicemesh = args[:servicemesh] if args.key?(:servicemesh)
3076
3098
  @state = args[:state] if args.key?(:state)
3077
3099
  end
@@ -3096,40 +3118,40 @@ module Google
3096
3118
  end
3097
3119
  end
3098
3120
 
3099
- # This field informs Fleet-based applications/services/UIs with the necessary
3100
- # information for where each underlying Cluster reports its metrics.
3121
+ # MonitoringConfig informs Fleet-based applications/services/UIs how the metrics
3122
+ # for the underlying cluster is reported to cloud monitoring services. It can be
3123
+ # set from empty to non-empty, but can't be mutated directly to prevent
3124
+ # accidentally breaking the constinousty of metrics.
3101
3125
  class MonitoringConfig
3102
3126
  include Google::Apis::Core::Hashable
3103
3127
 
3104
- # Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal,
3105
- # it would be in format `memberClusters/cluster_name`; And for Anthos on
3106
- # MultiCloud, it would be in format ``azureClusters, awsClusters`/cluster_name`.
3128
+ # Optional. Cluster name used to report metrics. For Anthos on VMWare/Baremetal/
3129
+ # MultiCloud clusters, it would be in format `cluster_type`/`cluster_name`, e.g.,
3130
+ # "awsClusters/cluster_1".
3107
3131
  # Corresponds to the JSON property `cluster`
3108
3132
  # @return [String]
3109
3133
  attr_accessor :cluster
3110
3134
 
3111
- # Immutable. Cluster hash, this is a unique string generated by google code,
3112
- # which does not contain any PII, which we can use to reference the cluster.
3113
- # This is expected to be created by the monitoring stack and persisted into the
3114
- # Cluster object as well as to GKE-Hub.
3135
+ # Optional. For GKE and Multicloud clusters, this is the UUID of the cluster
3136
+ # resource. For VMWare and Baremetal clusters, this is the kube-system UID.
3115
3137
  # Corresponds to the JSON property `clusterHash`
3116
3138
  # @return [String]
3117
3139
  attr_accessor :cluster_hash
3118
3140
 
3119
- # Kubernetes system metrics, if available, are written to this prefix. This
3120
- # defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
3141
+ # Optional. Kubernetes system metrics, if available, are written to this prefix.
3142
+ # This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
3121
3143
  # eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but
3122
- # will migration to be under kubernetes.io/anthos
3144
+ # will migration to be under kubernetes.io/anthos.
3123
3145
  # Corresponds to the JSON property `kubernetesMetricsPrefix`
3124
3146
  # @return [String]
3125
3147
  attr_accessor :kubernetes_metrics_prefix
3126
3148
 
3127
- # Immutable. Location used to report Metrics
3149
+ # Optional. Location used to report Metrics
3128
3150
  # Corresponds to the JSON property `location`
3129
3151
  # @return [String]
3130
3152
  attr_accessor :location
3131
3153
 
3132
- # Immutable. Project used to report Metrics
3154
+ # Optional. Project used to report Metrics
3133
3155
  # Corresponds to the JSON property `projectId`
3134
3156
  # @return [String]
3135
3157
  attr_accessor :project_id
@@ -3572,6 +3594,428 @@ module Google
3572
3594
  end
3573
3595
  end
3574
3596
 
3597
+ # BundleInstallSpec is the specification configuration for a single managed
3598
+ # bundle.
3599
+ class PolicyControllerBundleInstallSpec
3600
+ include Google::Apis::Core::Hashable
3601
+
3602
+ # The set of namespaces to be exempted from the bundle.
3603
+ # Corresponds to the JSON property `exemptedNamespaces`
3604
+ # @return [Array<String>]
3605
+ attr_accessor :exempted_namespaces
3606
+
3607
+ def initialize(**args)
3608
+ update!(**args)
3609
+ end
3610
+
3611
+ # Update properties of this object
3612
+ def update!(**args)
3613
+ @exempted_namespaces = args[:exempted_namespaces] if args.key?(:exempted_namespaces)
3614
+ end
3615
+ end
3616
+
3617
+ # Configuration for Policy Controller
3618
+ class PolicyControllerHubConfig
3619
+ include Google::Apis::Core::Hashable
3620
+
3621
+ # Sets the interval for Policy Controller Audit Scans (in seconds). When set to
3622
+ # 0, this disables audit functionality altogether.
3623
+ # Corresponds to the JSON property `auditIntervalSeconds`
3624
+ # @return [Fixnum]
3625
+ attr_accessor :audit_interval_seconds
3626
+
3627
+ # The maximum number of audit violations to be stored in a constraint. If not
3628
+ # set, the internal default (currently 20) will be used.
3629
+ # Corresponds to the JSON property `constraintViolationLimit`
3630
+ # @return [Fixnum]
3631
+ attr_accessor :constraint_violation_limit
3632
+
3633
+ # Map of deployment configs to deployments ("admission", "audit", "mutation').
3634
+ # Corresponds to the JSON property `deploymentConfigs`
3635
+ # @return [Hash<String,Google::Apis::GkehubV1::PolicyControllerPolicyControllerDeploymentConfig>]
3636
+ attr_accessor :deployment_configs
3637
+
3638
+ # The set of namespaces that are excluded from Policy Controller checks.
3639
+ # Namespaces do not need to currently exist on the cluster.
3640
+ # Corresponds to the JSON property `exemptableNamespaces`
3641
+ # @return [Array<String>]
3642
+ attr_accessor :exemptable_namespaces
3643
+
3644
+ # The install_spec represents the intended state specified by the latest request
3645
+ # that mutated install_spec in the feature spec, not the lifecycle state of the
3646
+ # feature observed by the Hub feature controller that is reported in the feature
3647
+ # state.
3648
+ # Corresponds to the JSON property `installSpec`
3649
+ # @return [String]
3650
+ attr_accessor :install_spec
3651
+
3652
+ # Logs all denies and dry run failures.
3653
+ # Corresponds to the JSON property `logDeniesEnabled`
3654
+ # @return [Boolean]
3655
+ attr_accessor :log_denies_enabled
3656
+ alias_method :log_denies_enabled?, :log_denies_enabled
3657
+
3658
+ # MonitoringConfig specifies the backends Policy Controller should export
3659
+ # metrics to. For example, to specify metrics should be exported to Cloud
3660
+ # Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]
3661
+ # Corresponds to the JSON property `monitoring`
3662
+ # @return [Google::Apis::GkehubV1::PolicyControllerMonitoringConfig]
3663
+ attr_accessor :monitoring
3664
+
3665
+ # Enables the ability to mutate resources using Policy Controller.
3666
+ # Corresponds to the JSON property `mutationEnabled`
3667
+ # @return [Boolean]
3668
+ attr_accessor :mutation_enabled
3669
+ alias_method :mutation_enabled?, :mutation_enabled
3670
+
3671
+ # PolicyContentSpec defines the user's desired content configuration on the
3672
+ # cluster.
3673
+ # Corresponds to the JSON property `policyContent`
3674
+ # @return [Google::Apis::GkehubV1::PolicyControllerPolicyContentSpec]
3675
+ attr_accessor :policy_content
3676
+
3677
+ # Enables the ability to use Constraint Templates that reference to objects
3678
+ # other than the object currently being evaluated.
3679
+ # Corresponds to the JSON property `referentialRulesEnabled`
3680
+ # @return [Boolean]
3681
+ attr_accessor :referential_rules_enabled
3682
+ alias_method :referential_rules_enabled?, :referential_rules_enabled
3683
+
3684
+ def initialize(**args)
3685
+ update!(**args)
3686
+ end
3687
+
3688
+ # Update properties of this object
3689
+ def update!(**args)
3690
+ @audit_interval_seconds = args[:audit_interval_seconds] if args.key?(:audit_interval_seconds)
3691
+ @constraint_violation_limit = args[:constraint_violation_limit] if args.key?(:constraint_violation_limit)
3692
+ @deployment_configs = args[:deployment_configs] if args.key?(:deployment_configs)
3693
+ @exemptable_namespaces = args[:exemptable_namespaces] if args.key?(:exemptable_namespaces)
3694
+ @install_spec = args[:install_spec] if args.key?(:install_spec)
3695
+ @log_denies_enabled = args[:log_denies_enabled] if args.key?(:log_denies_enabled)
3696
+ @monitoring = args[:monitoring] if args.key?(:monitoring)
3697
+ @mutation_enabled = args[:mutation_enabled] if args.key?(:mutation_enabled)
3698
+ @policy_content = args[:policy_content] if args.key?(:policy_content)
3699
+ @referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
3700
+ end
3701
+ end
3702
+
3703
+ # **Policy Controller**: Configuration for a single cluster. Intended to
3704
+ # parallel the PolicyController CR.
3705
+ class PolicyControllerMembershipSpec
3706
+ include Google::Apis::Core::Hashable
3707
+
3708
+ # Configuration for Policy Controller
3709
+ # Corresponds to the JSON property `policyControllerHubConfig`
3710
+ # @return [Google::Apis::GkehubV1::PolicyControllerHubConfig]
3711
+ attr_accessor :policy_controller_hub_config
3712
+
3713
+ # Version of Policy Controller installed.
3714
+ # Corresponds to the JSON property `version`
3715
+ # @return [String]
3716
+ attr_accessor :version
3717
+
3718
+ def initialize(**args)
3719
+ update!(**args)
3720
+ end
3721
+
3722
+ # Update properties of this object
3723
+ def update!(**args)
3724
+ @policy_controller_hub_config = args[:policy_controller_hub_config] if args.key?(:policy_controller_hub_config)
3725
+ @version = args[:version] if args.key?(:version)
3726
+ end
3727
+ end
3728
+
3729
+ # **Policy Controller**: State for a single cluster.
3730
+ class PolicyControllerMembershipState
3731
+ include Google::Apis::Core::Hashable
3732
+
3733
+ # Currently these include (also serving as map keys): 1. "admission" 2. "audit"
3734
+ # 3. "mutation"
3735
+ # Corresponds to the JSON property `componentStates`
3736
+ # @return [Hash<String,Google::Apis::GkehubV1::PolicyControllerOnClusterState>]
3737
+ attr_accessor :component_states
3738
+
3739
+ # The state of the policy controller policy content
3740
+ # Corresponds to the JSON property `policyContentState`
3741
+ # @return [Google::Apis::GkehubV1::PolicyControllerPolicyContentState]
3742
+ attr_accessor :policy_content_state
3743
+
3744
+ # The overall Policy Controller lifecycle state observed by the Hub Feature
3745
+ # controller.
3746
+ # Corresponds to the JSON property `state`
3747
+ # @return [String]
3748
+ attr_accessor :state
3749
+
3750
+ def initialize(**args)
3751
+ update!(**args)
3752
+ end
3753
+
3754
+ # Update properties of this object
3755
+ def update!(**args)
3756
+ @component_states = args[:component_states] if args.key?(:component_states)
3757
+ @policy_content_state = args[:policy_content_state] if args.key?(:policy_content_state)
3758
+ @state = args[:state] if args.key?(:state)
3759
+ end
3760
+ end
3761
+
3762
+ # MonitoringConfig specifies the backends Policy Controller should export
3763
+ # metrics to. For example, to specify metrics should be exported to Cloud
3764
+ # Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]
3765
+ class PolicyControllerMonitoringConfig
3766
+ include Google::Apis::Core::Hashable
3767
+
3768
+ # Specifies the list of backends Policy Controller will export to. An empty list
3769
+ # would effectively disable metrics export.
3770
+ # Corresponds to the JSON property `backends`
3771
+ # @return [Array<String>]
3772
+ attr_accessor :backends
3773
+
3774
+ def initialize(**args)
3775
+ update!(**args)
3776
+ end
3777
+
3778
+ # Update properties of this object
3779
+ def update!(**args)
3780
+ @backends = args[:backends] if args.key?(:backends)
3781
+ end
3782
+ end
3783
+
3784
+ # OnClusterState represents the state of a sub-component of Policy Controller.
3785
+ class PolicyControllerOnClusterState
3786
+ include Google::Apis::Core::Hashable
3787
+
3788
+ # Surface potential errors or information logs.
3789
+ # Corresponds to the JSON property `details`
3790
+ # @return [String]
3791
+ attr_accessor :details
3792
+
3793
+ # The lifecycle state of this component.
3794
+ # Corresponds to the JSON property `state`
3795
+ # @return [String]
3796
+ attr_accessor :state
3797
+
3798
+ def initialize(**args)
3799
+ update!(**args)
3800
+ end
3801
+
3802
+ # Update properties of this object
3803
+ def update!(**args)
3804
+ @details = args[:details] if args.key?(:details)
3805
+ @state = args[:state] if args.key?(:state)
3806
+ end
3807
+ end
3808
+
3809
+ # PolicyContentSpec defines the user's desired content configuration on the
3810
+ # cluster.
3811
+ class PolicyControllerPolicyContentSpec
3812
+ include Google::Apis::Core::Hashable
3813
+
3814
+ # map of bundle name to BundleInstallSpec. The bundle name maps to the `
3815
+ # bundleName` key in the `policycontroller.gke.io/constraintData` annotation on
3816
+ # a constraint.
3817
+ # Corresponds to the JSON property `bundles`
3818
+ # @return [Hash<String,Google::Apis::GkehubV1::PolicyControllerBundleInstallSpec>]
3819
+ attr_accessor :bundles
3820
+
3821
+ # The config specifying which default library templates to install.
3822
+ # Corresponds to the JSON property `templateLibrary`
3823
+ # @return [Google::Apis::GkehubV1::PolicyControllerTemplateLibraryConfig]
3824
+ attr_accessor :template_library
3825
+
3826
+ def initialize(**args)
3827
+ update!(**args)
3828
+ end
3829
+
3830
+ # Update properties of this object
3831
+ def update!(**args)
3832
+ @bundles = args[:bundles] if args.key?(:bundles)
3833
+ @template_library = args[:template_library] if args.key?(:template_library)
3834
+ end
3835
+ end
3836
+
3837
+ # The state of the policy controller policy content
3838
+ class PolicyControllerPolicyContentState
3839
+ include Google::Apis::Core::Hashable
3840
+
3841
+ # The state of the any bundles included in the chosen version of the manifest
3842
+ # Corresponds to the JSON property `bundleStates`
3843
+ # @return [Hash<String,Google::Apis::GkehubV1::PolicyControllerOnClusterState>]
3844
+ attr_accessor :bundle_states
3845
+
3846
+ # OnClusterState represents the state of a sub-component of Policy Controller.
3847
+ # Corresponds to the JSON property `referentialSyncConfigState`
3848
+ # @return [Google::Apis::GkehubV1::PolicyControllerOnClusterState]
3849
+ attr_accessor :referential_sync_config_state
3850
+
3851
+ # OnClusterState represents the state of a sub-component of Policy Controller.
3852
+ # Corresponds to the JSON property `templateLibraryState`
3853
+ # @return [Google::Apis::GkehubV1::PolicyControllerOnClusterState]
3854
+ attr_accessor :template_library_state
3855
+
3856
+ def initialize(**args)
3857
+ update!(**args)
3858
+ end
3859
+
3860
+ # Update properties of this object
3861
+ def update!(**args)
3862
+ @bundle_states = args[:bundle_states] if args.key?(:bundle_states)
3863
+ @referential_sync_config_state = args[:referential_sync_config_state] if args.key?(:referential_sync_config_state)
3864
+ @template_library_state = args[:template_library_state] if args.key?(:template_library_state)
3865
+ end
3866
+ end
3867
+
3868
+ # Deployment-specific configuration.
3869
+ class PolicyControllerPolicyControllerDeploymentConfig
3870
+ include Google::Apis::Core::Hashable
3871
+
3872
+ # ResourceRequirements describes the compute resource requirements.
3873
+ # Corresponds to the JSON property `containerResources`
3874
+ # @return [Google::Apis::GkehubV1::PolicyControllerResourceRequirements]
3875
+ attr_accessor :container_resources
3876
+
3877
+ # Pod affinity configuration.
3878
+ # Corresponds to the JSON property `podAffinity`
3879
+ # @return [String]
3880
+ attr_accessor :pod_affinity
3881
+
3882
+ # Pod anti-affinity enablement.
3883
+ # Corresponds to the JSON property `podAntiAffinity`
3884
+ # @return [Boolean]
3885
+ attr_accessor :pod_anti_affinity
3886
+ alias_method :pod_anti_affinity?, :pod_anti_affinity
3887
+
3888
+ # Pod tolerations of node taints.
3889
+ # Corresponds to the JSON property `podTolerations`
3890
+ # @return [Array<Google::Apis::GkehubV1::PolicyControllerToleration>]
3891
+ attr_accessor :pod_tolerations
3892
+
3893
+ # Pod replica count.
3894
+ # Corresponds to the JSON property `replicaCount`
3895
+ # @return [Fixnum]
3896
+ attr_accessor :replica_count
3897
+
3898
+ def initialize(**args)
3899
+ update!(**args)
3900
+ end
3901
+
3902
+ # Update properties of this object
3903
+ def update!(**args)
3904
+ @container_resources = args[:container_resources] if args.key?(:container_resources)
3905
+ @pod_affinity = args[:pod_affinity] if args.key?(:pod_affinity)
3906
+ @pod_anti_affinity = args[:pod_anti_affinity] if args.key?(:pod_anti_affinity)
3907
+ @pod_tolerations = args[:pod_tolerations] if args.key?(:pod_tolerations)
3908
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
3909
+ end
3910
+ end
3911
+
3912
+ # ResourceList contains container resource requirements.
3913
+ class PolicyControllerResourceList
3914
+ include Google::Apis::Core::Hashable
3915
+
3916
+ # CPU requirement expressed in Kubernetes resource units.
3917
+ # Corresponds to the JSON property `cpu`
3918
+ # @return [String]
3919
+ attr_accessor :cpu
3920
+
3921
+ # Memory requirement expressed in Kubernetes resource units.
3922
+ # Corresponds to the JSON property `memory`
3923
+ # @return [String]
3924
+ attr_accessor :memory
3925
+
3926
+ def initialize(**args)
3927
+ update!(**args)
3928
+ end
3929
+
3930
+ # Update properties of this object
3931
+ def update!(**args)
3932
+ @cpu = args[:cpu] if args.key?(:cpu)
3933
+ @memory = args[:memory] if args.key?(:memory)
3934
+ end
3935
+ end
3936
+
3937
+ # ResourceRequirements describes the compute resource requirements.
3938
+ class PolicyControllerResourceRequirements
3939
+ include Google::Apis::Core::Hashable
3940
+
3941
+ # ResourceList contains container resource requirements.
3942
+ # Corresponds to the JSON property `limits`
3943
+ # @return [Google::Apis::GkehubV1::PolicyControllerResourceList]
3944
+ attr_accessor :limits
3945
+
3946
+ # ResourceList contains container resource requirements.
3947
+ # Corresponds to the JSON property `requests`
3948
+ # @return [Google::Apis::GkehubV1::PolicyControllerResourceList]
3949
+ attr_accessor :requests
3950
+
3951
+ def initialize(**args)
3952
+ update!(**args)
3953
+ end
3954
+
3955
+ # Update properties of this object
3956
+ def update!(**args)
3957
+ @limits = args[:limits] if args.key?(:limits)
3958
+ @requests = args[:requests] if args.key?(:requests)
3959
+ end
3960
+ end
3961
+
3962
+ # The config specifying which default library templates to install.
3963
+ class PolicyControllerTemplateLibraryConfig
3964
+ include Google::Apis::Core::Hashable
3965
+
3966
+ # Configures the manner in which the template library is installed on the
3967
+ # cluster.
3968
+ # Corresponds to the JSON property `installation`
3969
+ # @return [String]
3970
+ attr_accessor :installation
3971
+
3972
+ def initialize(**args)
3973
+ update!(**args)
3974
+ end
3975
+
3976
+ # Update properties of this object
3977
+ def update!(**args)
3978
+ @installation = args[:installation] if args.key?(:installation)
3979
+ end
3980
+ end
3981
+
3982
+ # Toleration of a node taint.
3983
+ class PolicyControllerToleration
3984
+ include Google::Apis::Core::Hashable
3985
+
3986
+ # Matches a taint effect.
3987
+ # Corresponds to the JSON property `effect`
3988
+ # @return [String]
3989
+ attr_accessor :effect
3990
+
3991
+ # Matches a taint key (not necessarily unique).
3992
+ # Corresponds to the JSON property `key`
3993
+ # @return [String]
3994
+ attr_accessor :key
3995
+
3996
+ # Matches a taint operator.
3997
+ # Corresponds to the JSON property `operator`
3998
+ # @return [String]
3999
+ attr_accessor :operator
4000
+
4001
+ # Matches a taint value.
4002
+ # Corresponds to the JSON property `value`
4003
+ # @return [String]
4004
+ attr_accessor :value
4005
+
4006
+ def initialize(**args)
4007
+ update!(**args)
4008
+ end
4009
+
4010
+ # Update properties of this object
4011
+ def update!(**args)
4012
+ @effect = args[:effect] if args.key?(:effect)
4013
+ @key = args[:key] if args.key?(:key)
4014
+ @operator = args[:operator] if args.key?(:operator)
4015
+ @value = args[:value] if args.key?(:value)
4016
+ end
4017
+ end
4018
+
3575
4019
  # RBACRoleBinding represents a rbacrolebinding across the Fleet
3576
4020
  class RbacRoleBinding
3577
4021
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1
18
18
  # Version of the google-apis-gkehub_v1 gem
19
- GEM_VERSION = "0.58.0"
19
+ GEM_VERSION = "0.60.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 = "20230921"
25
+ REVISION = "20231013"
26
26
  end
27
27
  end
28
28
  end
@@ -580,6 +580,84 @@ module Google
580
580
  include Google::Apis::Core::JsonObjectSupport
581
581
  end
582
582
 
583
+ class PolicyControllerBundleInstallSpec
584
+ class Representation < Google::Apis::Core::JsonRepresentation; end
585
+
586
+ include Google::Apis::Core::JsonObjectSupport
587
+ end
588
+
589
+ class PolicyControllerHubConfig
590
+ class Representation < Google::Apis::Core::JsonRepresentation; end
591
+
592
+ include Google::Apis::Core::JsonObjectSupport
593
+ end
594
+
595
+ class PolicyControllerMembershipSpec
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
601
+ class PolicyControllerMembershipState
602
+ class Representation < Google::Apis::Core::JsonRepresentation; end
603
+
604
+ include Google::Apis::Core::JsonObjectSupport
605
+ end
606
+
607
+ class PolicyControllerMonitoringConfig
608
+ class Representation < Google::Apis::Core::JsonRepresentation; end
609
+
610
+ include Google::Apis::Core::JsonObjectSupport
611
+ end
612
+
613
+ class PolicyControllerOnClusterState
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
619
+ class PolicyControllerPolicyContentSpec
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
625
+ class PolicyControllerPolicyContentState
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
631
+ class PolicyControllerPolicyControllerDeploymentConfig
632
+ class Representation < Google::Apis::Core::JsonRepresentation; end
633
+
634
+ include Google::Apis::Core::JsonObjectSupport
635
+ end
636
+
637
+ class PolicyControllerResourceList
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
643
+ class PolicyControllerResourceRequirements
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
649
+ class PolicyControllerTemplateLibraryConfig
650
+ class Representation < Google::Apis::Core::JsonRepresentation; end
651
+
652
+ include Google::Apis::Core::JsonObjectSupport
653
+ end
654
+
655
+ class PolicyControllerToleration
656
+ class Representation < Google::Apis::Core::JsonRepresentation; end
657
+
658
+ include Google::Apis::Core::JsonObjectSupport
659
+ end
660
+
583
661
  class RbacRoleBinding
584
662
  class Representation < Google::Apis::Core::JsonRepresentation; end
585
663
 
@@ -787,6 +865,8 @@ module Google
787
865
  class Representation < Google::Apis::Core::JsonRepresentation
788
866
  property :configmanagement, as: 'configmanagement', class: Google::Apis::GkehubV1::ConfigManagementMembershipSpec, decorator: Google::Apis::GkehubV1::ConfigManagementMembershipSpec::Representation
789
867
 
868
+ property :policycontroller, as: 'policycontroller', class: Google::Apis::GkehubV1::PolicyControllerMembershipSpec, decorator: Google::Apis::GkehubV1::PolicyControllerMembershipSpec::Representation
869
+
790
870
  end
791
871
  end
792
872
 
@@ -1537,6 +1617,8 @@ module Google
1537
1617
 
1538
1618
  property :origin, as: 'origin', class: Google::Apis::GkehubV1::Origin, decorator: Google::Apis::GkehubV1::Origin::Representation
1539
1619
 
1620
+ property :policycontroller, as: 'policycontroller', class: Google::Apis::GkehubV1::PolicyControllerMembershipSpec, decorator: Google::Apis::GkehubV1::PolicyControllerMembershipSpec::Representation
1621
+
1540
1622
  end
1541
1623
  end
1542
1624
 
@@ -1551,6 +1633,8 @@ module Google
1551
1633
 
1552
1634
  property :identityservice, as: 'identityservice', class: Google::Apis::GkehubV1::IdentityServiceMembershipState, decorator: Google::Apis::GkehubV1::IdentityServiceMembershipState::Representation
1553
1635
 
1636
+ property :policycontroller, as: 'policycontroller', class: Google::Apis::GkehubV1::PolicyControllerMembershipState, decorator: Google::Apis::GkehubV1::PolicyControllerMembershipState::Representation
1637
+
1554
1638
  property :servicemesh, as: 'servicemesh', class: Google::Apis::GkehubV1::ServiceMeshMembershipState, decorator: Google::Apis::GkehubV1::ServiceMeshMembershipState::Representation
1555
1639
 
1556
1640
  property :state, as: 'state', class: Google::Apis::GkehubV1::FeatureState, decorator: Google::Apis::GkehubV1::FeatureState::Representation
@@ -1668,6 +1752,137 @@ module Google
1668
1752
  end
1669
1753
  end
1670
1754
 
1755
+ class PolicyControllerBundleInstallSpec
1756
+ # @private
1757
+ class Representation < Google::Apis::Core::JsonRepresentation
1758
+ collection :exempted_namespaces, as: 'exemptedNamespaces'
1759
+ end
1760
+ end
1761
+
1762
+ class PolicyControllerHubConfig
1763
+ # @private
1764
+ class Representation < Google::Apis::Core::JsonRepresentation
1765
+ property :audit_interval_seconds, :numeric_string => true, as: 'auditIntervalSeconds'
1766
+ property :constraint_violation_limit, :numeric_string => true, as: 'constraintViolationLimit'
1767
+ hash :deployment_configs, as: 'deploymentConfigs', class: Google::Apis::GkehubV1::PolicyControllerPolicyControllerDeploymentConfig, decorator: Google::Apis::GkehubV1::PolicyControllerPolicyControllerDeploymentConfig::Representation
1768
+
1769
+ collection :exemptable_namespaces, as: 'exemptableNamespaces'
1770
+ property :install_spec, as: 'installSpec'
1771
+ property :log_denies_enabled, as: 'logDeniesEnabled'
1772
+ property :monitoring, as: 'monitoring', class: Google::Apis::GkehubV1::PolicyControllerMonitoringConfig, decorator: Google::Apis::GkehubV1::PolicyControllerMonitoringConfig::Representation
1773
+
1774
+ property :mutation_enabled, as: 'mutationEnabled'
1775
+ property :policy_content, as: 'policyContent', class: Google::Apis::GkehubV1::PolicyControllerPolicyContentSpec, decorator: Google::Apis::GkehubV1::PolicyControllerPolicyContentSpec::Representation
1776
+
1777
+ property :referential_rules_enabled, as: 'referentialRulesEnabled'
1778
+ end
1779
+ end
1780
+
1781
+ class PolicyControllerMembershipSpec
1782
+ # @private
1783
+ class Representation < Google::Apis::Core::JsonRepresentation
1784
+ property :policy_controller_hub_config, as: 'policyControllerHubConfig', class: Google::Apis::GkehubV1::PolicyControllerHubConfig, decorator: Google::Apis::GkehubV1::PolicyControllerHubConfig::Representation
1785
+
1786
+ property :version, as: 'version'
1787
+ end
1788
+ end
1789
+
1790
+ class PolicyControllerMembershipState
1791
+ # @private
1792
+ class Representation < Google::Apis::Core::JsonRepresentation
1793
+ hash :component_states, as: 'componentStates', class: Google::Apis::GkehubV1::PolicyControllerOnClusterState, decorator: Google::Apis::GkehubV1::PolicyControllerOnClusterState::Representation
1794
+
1795
+ property :policy_content_state, as: 'policyContentState', class: Google::Apis::GkehubV1::PolicyControllerPolicyContentState, decorator: Google::Apis::GkehubV1::PolicyControllerPolicyContentState::Representation
1796
+
1797
+ property :state, as: 'state'
1798
+ end
1799
+ end
1800
+
1801
+ class PolicyControllerMonitoringConfig
1802
+ # @private
1803
+ class Representation < Google::Apis::Core::JsonRepresentation
1804
+ collection :backends, as: 'backends'
1805
+ end
1806
+ end
1807
+
1808
+ class PolicyControllerOnClusterState
1809
+ # @private
1810
+ class Representation < Google::Apis::Core::JsonRepresentation
1811
+ property :details, as: 'details'
1812
+ property :state, as: 'state'
1813
+ end
1814
+ end
1815
+
1816
+ class PolicyControllerPolicyContentSpec
1817
+ # @private
1818
+ class Representation < Google::Apis::Core::JsonRepresentation
1819
+ hash :bundles, as: 'bundles', class: Google::Apis::GkehubV1::PolicyControllerBundleInstallSpec, decorator: Google::Apis::GkehubV1::PolicyControllerBundleInstallSpec::Representation
1820
+
1821
+ property :template_library, as: 'templateLibrary', class: Google::Apis::GkehubV1::PolicyControllerTemplateLibraryConfig, decorator: Google::Apis::GkehubV1::PolicyControllerTemplateLibraryConfig::Representation
1822
+
1823
+ end
1824
+ end
1825
+
1826
+ class PolicyControllerPolicyContentState
1827
+ # @private
1828
+ class Representation < Google::Apis::Core::JsonRepresentation
1829
+ hash :bundle_states, as: 'bundleStates', class: Google::Apis::GkehubV1::PolicyControllerOnClusterState, decorator: Google::Apis::GkehubV1::PolicyControllerOnClusterState::Representation
1830
+
1831
+ property :referential_sync_config_state, as: 'referentialSyncConfigState', class: Google::Apis::GkehubV1::PolicyControllerOnClusterState, decorator: Google::Apis::GkehubV1::PolicyControllerOnClusterState::Representation
1832
+
1833
+ property :template_library_state, as: 'templateLibraryState', class: Google::Apis::GkehubV1::PolicyControllerOnClusterState, decorator: Google::Apis::GkehubV1::PolicyControllerOnClusterState::Representation
1834
+
1835
+ end
1836
+ end
1837
+
1838
+ class PolicyControllerPolicyControllerDeploymentConfig
1839
+ # @private
1840
+ class Representation < Google::Apis::Core::JsonRepresentation
1841
+ property :container_resources, as: 'containerResources', class: Google::Apis::GkehubV1::PolicyControllerResourceRequirements, decorator: Google::Apis::GkehubV1::PolicyControllerResourceRequirements::Representation
1842
+
1843
+ property :pod_affinity, as: 'podAffinity'
1844
+ property :pod_anti_affinity, as: 'podAntiAffinity'
1845
+ collection :pod_tolerations, as: 'podTolerations', class: Google::Apis::GkehubV1::PolicyControllerToleration, decorator: Google::Apis::GkehubV1::PolicyControllerToleration::Representation
1846
+
1847
+ property :replica_count, :numeric_string => true, as: 'replicaCount'
1848
+ end
1849
+ end
1850
+
1851
+ class PolicyControllerResourceList
1852
+ # @private
1853
+ class Representation < Google::Apis::Core::JsonRepresentation
1854
+ property :cpu, as: 'cpu'
1855
+ property :memory, as: 'memory'
1856
+ end
1857
+ end
1858
+
1859
+ class PolicyControllerResourceRequirements
1860
+ # @private
1861
+ class Representation < Google::Apis::Core::JsonRepresentation
1862
+ property :limits, as: 'limits', class: Google::Apis::GkehubV1::PolicyControllerResourceList, decorator: Google::Apis::GkehubV1::PolicyControllerResourceList::Representation
1863
+
1864
+ property :requests, as: 'requests', class: Google::Apis::GkehubV1::PolicyControllerResourceList, decorator: Google::Apis::GkehubV1::PolicyControllerResourceList::Representation
1865
+
1866
+ end
1867
+ end
1868
+
1869
+ class PolicyControllerTemplateLibraryConfig
1870
+ # @private
1871
+ class Representation < Google::Apis::Core::JsonRepresentation
1872
+ property :installation, as: 'installation'
1873
+ end
1874
+ end
1875
+
1876
+ class PolicyControllerToleration
1877
+ # @private
1878
+ class Representation < Google::Apis::Core::JsonRepresentation
1879
+ property :effect, as: 'effect'
1880
+ property :key, as: 'key'
1881
+ property :operator, as: 'operator'
1882
+ property :value, as: 'value'
1883
+ end
1884
+ end
1885
+
1671
1886
  class RbacRoleBinding
1672
1887
  # @private
1673
1888
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.58.0
4
+ version: 0.60.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-10-01 00:00:00.000000000 Z
11
+ date: 2023-10-29 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.58.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.60.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1
63
63
  post_install_message:
64
64
  rdoc_options: []