google-apis-gkehub_v1beta 0.16.0 → 0.17.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: 4fdb499f1712ca252b973a566debd41bc1e3594958d4d7f4026facd0a16d3c83
4
- data.tar.gz: 44dfa2c12889fc5b94c8344fe5b9cae0488f500e48a67b68e782f4899d3b4ea9
3
+ metadata.gz: d3d74c5124c3a7b1357bdc032d294f63a242d8d4930415a525c7151a9da4ba60
4
+ data.tar.gz: 4f13bea1186f956d5acb674f344ddcd0e29a7d2acb2cebdab530923167574c46
5
5
  SHA512:
6
- metadata.gz: cc486496a7c2dfc0808dc2fd52d5aa3e9df5a9131fa248bfdddd3d777c35a6bc36c228465cf507d60fb818bd0b494e658c71636d6dcd184319faf4f364391840
7
- data.tar.gz: d1cc31edf61836c4e2d825e81179922c6adfffcf6915240c054d04a3e0693b2084b117e27c6ab58044d0bef4a4930e3b31b04cdf3010104bf80d80cafa4d1523
6
+ metadata.gz: 5549dced5e585da9d01b53bab73678147bbb64f9535b1ff26eca74ddffe0240df41db4751de698501613cc13976b20df49be2af949cb5b6d2a930b7d48399b60
7
+ data.tar.gz: 0f3ba712e694f59aeb74f1a7289d5acb8095be963ee8d5318ed86660c2ec29f190d6ee034b896bead8b96b02022726a7d014b5fa03de167402fe1bc2ee809813
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1beta
2
2
 
3
+ ### v0.17.0 (2022-01-30)
4
+
5
+ * Regenerated from discovery document revision 20220122
6
+
3
7
  ### v0.16.0 (2022-01-15)
4
8
 
5
9
  * Regenerated from discovery document revision 20220107
@@ -1680,6 +1680,11 @@ module Google
1680
1680
  class MembershipFeatureSpec
1681
1681
  include Google::Apis::Core::Hashable
1682
1682
 
1683
+ # **Cloud Build**: Configurations for each Cloud Build enabled cluster.
1684
+ # Corresponds to the JSON property `cloudbuild`
1685
+ # @return [Google::Apis::GkehubV1beta::MembershipSpec]
1686
+ attr_accessor :cloudbuild
1687
+
1683
1688
  # **Anthos Config Management**: Configuration for a single cluster. Intended to
1684
1689
  # parallel the ConfigManagement CR.
1685
1690
  # Corresponds to the JSON property `configmanagement`
@@ -1697,6 +1702,7 @@ module Google
1697
1702
 
1698
1703
  # Update properties of this object
1699
1704
  def update!(**args)
1705
+ @cloudbuild = args[:cloudbuild] if args.key?(:cloudbuild)
1700
1706
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
1701
1707
  @identityservice = args[:identityservice] if args.key?(:identityservice)
1702
1708
  end
@@ -1727,6 +1733,11 @@ module Google
1727
1733
  # @return [Google::Apis::GkehubV1beta::MeteringMembershipState]
1728
1734
  attr_accessor :metering
1729
1735
 
1736
+ # **Policy Controller**: State for a single cluster.
1737
+ # Corresponds to the JSON property `policycontroller`
1738
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerMembershipState]
1739
+ attr_accessor :policycontroller
1740
+
1730
1741
  # FeatureState describes the high-level state of a Feature. It may be used to
1731
1742
  # describe a Feature's state at the environ-level, or per-membershop, depending
1732
1743
  # on the context.
@@ -1744,10 +1755,36 @@ module Google
1744
1755
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
1745
1756
  @identityservice = args[:identityservice] if args.key?(:identityservice)
1746
1757
  @metering = args[:metering] if args.key?(:metering)
1758
+ @policycontroller = args[:policycontroller] if args.key?(:policycontroller)
1747
1759
  @state = args[:state] if args.key?(:state)
1748
1760
  end
1749
1761
  end
1750
1762
 
1763
+ # **Cloud Build**: Configurations for each Cloud Build enabled cluster.
1764
+ class MembershipSpec
1765
+ include Google::Apis::Core::Hashable
1766
+
1767
+ # Whether it is allowed to run the privileged builds on the cluster or not.
1768
+ # Corresponds to the JSON property `securityPolicy`
1769
+ # @return [String]
1770
+ attr_accessor :security_policy
1771
+
1772
+ # Version of the cloud build software on the cluster.
1773
+ # Corresponds to the JSON property `version`
1774
+ # @return [String]
1775
+ attr_accessor :version
1776
+
1777
+ def initialize(**args)
1778
+ update!(**args)
1779
+ end
1780
+
1781
+ # Update properties of this object
1782
+ def update!(**args)
1783
+ @security_policy = args[:security_policy] if args.key?(:security_policy)
1784
+ @version = args[:version] if args.key?(:version)
1785
+ end
1786
+ end
1787
+
1751
1788
  # **Metering**: Per-Membership Feature State.
1752
1789
  class MeteringMembershipState
1753
1790
  include Google::Apis::Core::Hashable
@@ -2019,6 +2056,197 @@ module Google
2019
2056
  end
2020
2057
  end
2021
2058
 
2059
+ # **Policy Controller**: Configuration for a single cluster. Intended to
2060
+ # parallel the PolicyController CR.
2061
+ class PolicyControllerMembershipSpec
2062
+ include Google::Apis::Core::Hashable
2063
+
2064
+ # Configuration for Policy Controller
2065
+ # Corresponds to the JSON property `policyControllerHubConfig`
2066
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubConfig]
2067
+ attr_accessor :policy_controller_hub_config
2068
+
2069
+ # Version of Policy Controller installed.
2070
+ # Corresponds to the JSON property `version`
2071
+ # @return [String]
2072
+ attr_accessor :version
2073
+
2074
+ def initialize(**args)
2075
+ update!(**args)
2076
+ end
2077
+
2078
+ # Update properties of this object
2079
+ def update!(**args)
2080
+ @policy_controller_hub_config = args[:policy_controller_hub_config] if args.key?(:policy_controller_hub_config)
2081
+ @version = args[:version] if args.key?(:version)
2082
+ end
2083
+ end
2084
+
2085
+ # **Policy Controller**: State for a single cluster.
2086
+ class PolicyControllerMembershipState
2087
+ include Google::Apis::Core::Hashable
2088
+
2089
+ # The user-defined name for the cluster used by ClusterSelectors to group
2090
+ # clusters together. This should match Membership's membership_name, unless the
2091
+ # user installed PC on the cluster manually prior to enabling the PC hub feature.
2092
+ # Unique within a Policy Controller installation.
2093
+ # Corresponds to the JSON property `clusterName`
2094
+ # @return [String]
2095
+ attr_accessor :cluster_name
2096
+
2097
+ # **Policy Controller**: Configuration for a single cluster. Intended to
2098
+ # parallel the PolicyController CR.
2099
+ # Corresponds to the JSON property `membershipSpec`
2100
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerMembershipSpec]
2101
+ attr_accessor :membership_spec
2102
+
2103
+ # State of the Policy Controller.
2104
+ # Corresponds to the JSON property `policyControllerHubState`
2105
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubState]
2106
+ attr_accessor :policy_controller_hub_state
2107
+
2108
+ # The lifecycle state Policy Controller is in.
2109
+ # Corresponds to the JSON property `state`
2110
+ # @return [String]
2111
+ attr_accessor :state
2112
+
2113
+ def initialize(**args)
2114
+ update!(**args)
2115
+ end
2116
+
2117
+ # Update properties of this object
2118
+ def update!(**args)
2119
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
2120
+ @membership_spec = args[:membership_spec] if args.key?(:membership_spec)
2121
+ @policy_controller_hub_state = args[:policy_controller_hub_state] if args.key?(:policy_controller_hub_state)
2122
+ @state = args[:state] if args.key?(:state)
2123
+ end
2124
+ end
2125
+
2126
+ # Configuration for Policy Controller
2127
+ class PolicyControllerPolicyControllerHubConfig
2128
+ include Google::Apis::Core::Hashable
2129
+
2130
+ # Sets the interval for Policy Controller Audit Scans (in seconds). When set to
2131
+ # 0, this disables audit functionality altogether.
2132
+ # Corresponds to the JSON property `auditIntervalSeconds`
2133
+ # @return [Fixnum]
2134
+ attr_accessor :audit_interval_seconds
2135
+
2136
+ # The set of namespaces that are excluded from Policy Controller checks.
2137
+ # Namespaces do not need to currently exist on the cluster.
2138
+ # Corresponds to the JSON property `exemptableNamespaces`
2139
+ # @return [Array<String>]
2140
+ attr_accessor :exemptable_namespaces
2141
+
2142
+ # The install_spec represents the intended state specified by the latest request
2143
+ # that mutated install_spec in the feature spec, not the lifecycle state of the
2144
+ # feature observed by the Hub feature controller that is reported in the feature
2145
+ # state.
2146
+ # Corresponds to the JSON property `installSpec`
2147
+ # @return [String]
2148
+ attr_accessor :install_spec
2149
+
2150
+ # Logs all denies and dry run failures.
2151
+ # Corresponds to the JSON property `logDeniesEnabled`
2152
+ # @return [Boolean]
2153
+ attr_accessor :log_denies_enabled
2154
+ alias_method :log_denies_enabled?, :log_denies_enabled
2155
+
2156
+ # Enables the ability to use Constraint Templates that reference to objects
2157
+ # other than the object currently being evaluated.
2158
+ # Corresponds to the JSON property `referentialRulesEnabled`
2159
+ # @return [Boolean]
2160
+ attr_accessor :referential_rules_enabled
2161
+ alias_method :referential_rules_enabled?, :referential_rules_enabled
2162
+
2163
+ # The config specifying which default library templates to install.
2164
+ # Corresponds to the JSON property `templateLibraryConfig`
2165
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerTemplateLibraryConfig]
2166
+ attr_accessor :template_library_config
2167
+
2168
+ def initialize(**args)
2169
+ update!(**args)
2170
+ end
2171
+
2172
+ # Update properties of this object
2173
+ def update!(**args)
2174
+ @audit_interval_seconds = args[:audit_interval_seconds] if args.key?(:audit_interval_seconds)
2175
+ @exemptable_namespaces = args[:exemptable_namespaces] if args.key?(:exemptable_namespaces)
2176
+ @install_spec = args[:install_spec] if args.key?(:install_spec)
2177
+ @log_denies_enabled = args[:log_denies_enabled] if args.key?(:log_denies_enabled)
2178
+ @referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
2179
+ @template_library_config = args[:template_library_config] if args.key?(:template_library_config)
2180
+ end
2181
+ end
2182
+
2183
+ # State of the Policy Controller.
2184
+ class PolicyControllerPolicyControllerHubState
2185
+ include Google::Apis::Core::Hashable
2186
+
2187
+ # Map from deployment name to deployment state. Example deployments are
2188
+ # gatekeeper-controller-manager, gatekeeper-audit deployment, and gatekeeper-
2189
+ # mutation.
2190
+ # Corresponds to the JSON property `deploymentStates`
2191
+ # @return [Hash<String,String>]
2192
+ attr_accessor :deployment_states
2193
+
2194
+ # The build version of Gatekeeper that Policy Controller is using.
2195
+ # Corresponds to the JSON property `version`
2196
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubVersion]
2197
+ attr_accessor :version
2198
+
2199
+ def initialize(**args)
2200
+ update!(**args)
2201
+ end
2202
+
2203
+ # Update properties of this object
2204
+ def update!(**args)
2205
+ @deployment_states = args[:deployment_states] if args.key?(:deployment_states)
2206
+ @version = args[:version] if args.key?(:version)
2207
+ end
2208
+ end
2209
+
2210
+ # The build version of Gatekeeper that Policy Controller is using.
2211
+ class PolicyControllerPolicyControllerHubVersion
2212
+ include Google::Apis::Core::Hashable
2213
+
2214
+ # The gatekeeper image tag that is composed of ACM version, git tag, build
2215
+ # number.
2216
+ # Corresponds to the JSON property `version`
2217
+ # @return [String]
2218
+ attr_accessor :version
2219
+
2220
+ def initialize(**args)
2221
+ update!(**args)
2222
+ end
2223
+
2224
+ # Update properties of this object
2225
+ def update!(**args)
2226
+ @version = args[:version] if args.key?(:version)
2227
+ end
2228
+ end
2229
+
2230
+ # The config specifying which default library templates to install.
2231
+ class PolicyControllerTemplateLibraryConfig
2232
+ include Google::Apis::Core::Hashable
2233
+
2234
+ # Whether the standard template library should be installed or not.
2235
+ # Corresponds to the JSON property `included`
2236
+ # @return [Boolean]
2237
+ attr_accessor :included
2238
+ alias_method :included?, :included
2239
+
2240
+ def initialize(**args)
2241
+ update!(**args)
2242
+ end
2243
+
2244
+ # Update properties of this object
2245
+ def update!(**args)
2246
+ @included = args[:included] if args.key?(:included)
2247
+ end
2248
+ end
2249
+
2022
2250
  # Request message for `SetIamPolicy` method.
2023
2251
  class SetIamPolicyRequest
2024
2252
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1beta
18
18
  # Version of the google-apis-gkehub_v1beta gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220107"
25
+ REVISION = "20220122"
26
26
  end
27
27
  end
28
28
  end
@@ -310,6 +310,12 @@ module Google
310
310
  include Google::Apis::Core::JsonObjectSupport
311
311
  end
312
312
 
313
+ class MembershipSpec
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
313
319
  class MeteringMembershipState
314
320
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
321
 
@@ -340,6 +346,42 @@ module Google
340
346
  include Google::Apis::Core::JsonObjectSupport
341
347
  end
342
348
 
349
+ class PolicyControllerMembershipSpec
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class PolicyControllerMembershipState
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class PolicyControllerPolicyControllerHubConfig
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
367
+ class PolicyControllerPolicyControllerHubState
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class PolicyControllerPolicyControllerHubVersion
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class PolicyControllerTemplateLibraryConfig
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
343
385
  class SetIamPolicyRequest
344
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
387
 
@@ -833,6 +875,8 @@ module Google
833
875
  class MembershipFeatureSpec
834
876
  # @private
835
877
  class Representation < Google::Apis::Core::JsonRepresentation
878
+ property :cloudbuild, as: 'cloudbuild', class: Google::Apis::GkehubV1beta::MembershipSpec, decorator: Google::Apis::GkehubV1beta::MembershipSpec::Representation
879
+
836
880
  property :configmanagement, as: 'configmanagement', class: Google::Apis::GkehubV1beta::ConfigManagementMembershipSpec, decorator: Google::Apis::GkehubV1beta::ConfigManagementMembershipSpec::Representation
837
881
 
838
882
  property :identityservice, as: 'identityservice', class: Google::Apis::GkehubV1beta::IdentityServiceMembershipSpec, decorator: Google::Apis::GkehubV1beta::IdentityServiceMembershipSpec::Representation
@@ -851,11 +895,21 @@ module Google
851
895
 
852
896
  property :metering, as: 'metering', class: Google::Apis::GkehubV1beta::MeteringMembershipState, decorator: Google::Apis::GkehubV1beta::MeteringMembershipState::Representation
853
897
 
898
+ property :policycontroller, as: 'policycontroller', class: Google::Apis::GkehubV1beta::PolicyControllerMembershipState, decorator: Google::Apis::GkehubV1beta::PolicyControllerMembershipState::Representation
899
+
854
900
  property :state, as: 'state', class: Google::Apis::GkehubV1beta::FeatureState, decorator: Google::Apis::GkehubV1beta::FeatureState::Representation
855
901
 
856
902
  end
857
903
  end
858
904
 
905
+ class MembershipSpec
906
+ # @private
907
+ class Representation < Google::Apis::Core::JsonRepresentation
908
+ property :security_policy, as: 'securityPolicy'
909
+ property :version, as: 'version'
910
+ end
911
+ end
912
+
859
913
  class MeteringMembershipState
860
914
  # @private
861
915
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -909,6 +963,63 @@ module Google
909
963
  end
910
964
  end
911
965
 
966
+ class PolicyControllerMembershipSpec
967
+ # @private
968
+ class Representation < Google::Apis::Core::JsonRepresentation
969
+ property :policy_controller_hub_config, as: 'policyControllerHubConfig', class: Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubConfig, decorator: Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubConfig::Representation
970
+
971
+ property :version, as: 'version'
972
+ end
973
+ end
974
+
975
+ class PolicyControllerMembershipState
976
+ # @private
977
+ class Representation < Google::Apis::Core::JsonRepresentation
978
+ property :cluster_name, as: 'clusterName'
979
+ property :membership_spec, as: 'membershipSpec', class: Google::Apis::GkehubV1beta::PolicyControllerMembershipSpec, decorator: Google::Apis::GkehubV1beta::PolicyControllerMembershipSpec::Representation
980
+
981
+ property :policy_controller_hub_state, as: 'policyControllerHubState', class: Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubState, decorator: Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubState::Representation
982
+
983
+ property :state, as: 'state'
984
+ end
985
+ end
986
+
987
+ class PolicyControllerPolicyControllerHubConfig
988
+ # @private
989
+ class Representation < Google::Apis::Core::JsonRepresentation
990
+ property :audit_interval_seconds, :numeric_string => true, as: 'auditIntervalSeconds'
991
+ collection :exemptable_namespaces, as: 'exemptableNamespaces'
992
+ property :install_spec, as: 'installSpec'
993
+ property :log_denies_enabled, as: 'logDeniesEnabled'
994
+ property :referential_rules_enabled, as: 'referentialRulesEnabled'
995
+ property :template_library_config, as: 'templateLibraryConfig', class: Google::Apis::GkehubV1beta::PolicyControllerTemplateLibraryConfig, decorator: Google::Apis::GkehubV1beta::PolicyControllerTemplateLibraryConfig::Representation
996
+
997
+ end
998
+ end
999
+
1000
+ class PolicyControllerPolicyControllerHubState
1001
+ # @private
1002
+ class Representation < Google::Apis::Core::JsonRepresentation
1003
+ hash :deployment_states, as: 'deploymentStates'
1004
+ property :version, as: 'version', class: Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubVersion, decorator: Google::Apis::GkehubV1beta::PolicyControllerPolicyControllerHubVersion::Representation
1005
+
1006
+ end
1007
+ end
1008
+
1009
+ class PolicyControllerPolicyControllerHubVersion
1010
+ # @private
1011
+ class Representation < Google::Apis::Core::JsonRepresentation
1012
+ property :version, as: 'version'
1013
+ end
1014
+ end
1015
+
1016
+ class PolicyControllerTemplateLibraryConfig
1017
+ # @private
1018
+ class Representation < Google::Apis::Core::JsonRepresentation
1019
+ property :included, as: 'included'
1020
+ end
1021
+ end
1022
+
912
1023
  class SetIamPolicyRequest
913
1024
  # @private
914
1025
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.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: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-01-31 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_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []