google-apis-gkehub_v1 0.19.0 → 0.20.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: 23c6123c6729108b028965b2094e5318c4d23a5eef5f4acea67f15c531df1516
4
- data.tar.gz: 2cce1d26bf673ed67cdfd70aff05379faadbbb6845bcaca4f8e51f8f65dc5ced
3
+ metadata.gz: 7fd488230206adbb4f29dc96a92f7e9c5012d705e93055cd33dca7abdd0433a3
4
+ data.tar.gz: f39fe7747d28debd43d4ab0ab97c524e49fca53703941217e7f60c416fb757f5
5
5
  SHA512:
6
- metadata.gz: cd494b8b4859dd08d5b89fef7449ad1eecd5b9f5ed2f2b9254fdb2d23f2b6a7d2aa778fc1b89825dd984892b39ca4a1a730ada37f370e81794d23c3eed342bfe
7
- data.tar.gz: 0fd72b3e9d62744cb56e4c7051ce1bf45819ead0286bce25a26402578a89b5a5756267277af8fce77f21808644a9ef5f8dd8dd1c78a533245ea62c18fab81a66
6
+ metadata.gz: f8eced6503b78ec3f16ec9a4c1aa0b8f2a48828d1d38078b9267c5852eb36ffecc156f0e32c240b14dee2c4ce8c8f9c6ebad48dc96e60f49217fc3768801702b
7
+ data.tar.gz: c6a420c2892b88b4793f9eec5165322844408d40fca63dcad9335b9aa8f057ff1dd93e91a3709b0b64d98402a2b9366d3302fef4907c21de3ab17802b16ed47d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1
2
2
 
3
+ ### v0.20.0 (2022-01-30)
4
+
5
+ * Regenerated from discovery document revision 20220122
6
+
3
7
  ### v0.19.0 (2022-01-15)
4
8
 
5
9
  * Regenerated from discovery document revision 20220107
@@ -1130,6 +1130,27 @@ module Google
1130
1130
  end
1131
1131
  end
1132
1132
 
1133
+ # EdgeCluster contains information specific to Google Edge Clusters.
1134
+ class EdgeCluster
1135
+ include Google::Apis::Core::Hashable
1136
+
1137
+ # Immutable. Self-link of the GCP resource for the Edge Cluster. For example: //
1138
+ # edgecontainer.googleapis.com/projects/my-project/locations/us-west1-a/clusters/
1139
+ # my-cluster
1140
+ # Corresponds to the JSON property `resourceLink`
1141
+ # @return [String]
1142
+ attr_accessor :resource_link
1143
+
1144
+ def initialize(**args)
1145
+ update!(**args)
1146
+ end
1147
+
1148
+ # Update properties of this object
1149
+ def update!(**args)
1150
+ @resource_link = args[:resource_link] if args.key?(:resource_link)
1151
+ end
1152
+ end
1153
+
1133
1154
  # A generic empty message that you can re-use to avoid defining duplicated empty
1134
1155
  # messages in your APIs. A typical example is to use it as the request or the
1135
1156
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1810,6 +1831,11 @@ module Google
1810
1831
  class MembershipEndpoint
1811
1832
  include Google::Apis::Core::Hashable
1812
1833
 
1834
+ # EdgeCluster contains information specific to Google Edge Clusters.
1835
+ # Corresponds to the JSON property `edgeCluster`
1836
+ # @return [Google::Apis::GkehubV1::EdgeCluster]
1837
+ attr_accessor :edge_cluster
1838
+
1813
1839
  # GkeCluster contains information specific to GKE clusters.
1814
1840
  # Corresponds to the JSON property `gkeCluster`
1815
1841
  # @return [Google::Apis::GkehubV1::GkeCluster]
@@ -1844,6 +1870,7 @@ module Google
1844
1870
 
1845
1871
  # Update properties of this object
1846
1872
  def update!(**args)
1873
+ @edge_cluster = args[:edge_cluster] if args.key?(:edge_cluster)
1847
1874
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
1848
1875
  @kubernetes_metadata = args[:kubernetes_metadata] if args.key?(:kubernetes_metadata)
1849
1876
  @kubernetes_resource = args[:kubernetes_resource] if args.key?(:kubernetes_resource)
@@ -1888,6 +1915,11 @@ module Google
1888
1915
  # @return [Google::Apis::GkehubV1::ConfigManagementMembershipState]
1889
1916
  attr_accessor :configmanagement
1890
1917
 
1918
+ # **Policy Controller**: State for a single cluster.
1919
+ # Corresponds to the JSON property `policycontroller`
1920
+ # @return [Google::Apis::GkehubV1::PolicyControllerMembershipState]
1921
+ attr_accessor :policycontroller
1922
+
1891
1923
  # FeatureState describes the high-level state of a Feature. It may be used to
1892
1924
  # describe a Feature's state at the environ-level, or per-membershop, depending
1893
1925
  # on the context.
@@ -1903,6 +1935,7 @@ module Google
1903
1935
  def update!(**args)
1904
1936
  @appdevexperience = args[:appdevexperience] if args.key?(:appdevexperience)
1905
1937
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
1938
+ @policycontroller = args[:policycontroller] if args.key?(:policycontroller)
1906
1939
  @state = args[:state] if args.key?(:state)
1907
1940
  end
1908
1941
  end
@@ -2230,6 +2263,197 @@ module Google
2230
2263
  end
2231
2264
  end
2232
2265
 
2266
+ # **Policy Controller**: Configuration for a single cluster. Intended to
2267
+ # parallel the PolicyController CR.
2268
+ class PolicyControllerMembershipSpec
2269
+ include Google::Apis::Core::Hashable
2270
+
2271
+ # Configuration for Policy Controller
2272
+ # Corresponds to the JSON property `policyControllerHubConfig`
2273
+ # @return [Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubConfig]
2274
+ attr_accessor :policy_controller_hub_config
2275
+
2276
+ # Version of Policy Controller installed.
2277
+ # Corresponds to the JSON property `version`
2278
+ # @return [String]
2279
+ attr_accessor :version
2280
+
2281
+ def initialize(**args)
2282
+ update!(**args)
2283
+ end
2284
+
2285
+ # Update properties of this object
2286
+ def update!(**args)
2287
+ @policy_controller_hub_config = args[:policy_controller_hub_config] if args.key?(:policy_controller_hub_config)
2288
+ @version = args[:version] if args.key?(:version)
2289
+ end
2290
+ end
2291
+
2292
+ # **Policy Controller**: State for a single cluster.
2293
+ class PolicyControllerMembershipState
2294
+ include Google::Apis::Core::Hashable
2295
+
2296
+ # The user-defined name for the cluster used by ClusterSelectors to group
2297
+ # clusters together. This should match Membership's membership_name, unless the
2298
+ # user installed PC on the cluster manually prior to enabling the PC hub feature.
2299
+ # Unique within a Policy Controller installation.
2300
+ # Corresponds to the JSON property `clusterName`
2301
+ # @return [String]
2302
+ attr_accessor :cluster_name
2303
+
2304
+ # **Policy Controller**: Configuration for a single cluster. Intended to
2305
+ # parallel the PolicyController CR.
2306
+ # Corresponds to the JSON property `membershipSpec`
2307
+ # @return [Google::Apis::GkehubV1::PolicyControllerMembershipSpec]
2308
+ attr_accessor :membership_spec
2309
+
2310
+ # State of the Policy Controller.
2311
+ # Corresponds to the JSON property `policyControllerHubState`
2312
+ # @return [Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubState]
2313
+ attr_accessor :policy_controller_hub_state
2314
+
2315
+ # The lifecycle state Policy Controller is in.
2316
+ # Corresponds to the JSON property `state`
2317
+ # @return [String]
2318
+ attr_accessor :state
2319
+
2320
+ def initialize(**args)
2321
+ update!(**args)
2322
+ end
2323
+
2324
+ # Update properties of this object
2325
+ def update!(**args)
2326
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
2327
+ @membership_spec = args[:membership_spec] if args.key?(:membership_spec)
2328
+ @policy_controller_hub_state = args[:policy_controller_hub_state] if args.key?(:policy_controller_hub_state)
2329
+ @state = args[:state] if args.key?(:state)
2330
+ end
2331
+ end
2332
+
2333
+ # Configuration for Policy Controller
2334
+ class PolicyControllerPolicyControllerHubConfig
2335
+ include Google::Apis::Core::Hashable
2336
+
2337
+ # Sets the interval for Policy Controller Audit Scans (in seconds). When set to
2338
+ # 0, this disables audit functionality altogether.
2339
+ # Corresponds to the JSON property `auditIntervalSeconds`
2340
+ # @return [Fixnum]
2341
+ attr_accessor :audit_interval_seconds
2342
+
2343
+ # The set of namespaces that are excluded from Policy Controller checks.
2344
+ # Namespaces do not need to currently exist on the cluster.
2345
+ # Corresponds to the JSON property `exemptableNamespaces`
2346
+ # @return [Array<String>]
2347
+ attr_accessor :exemptable_namespaces
2348
+
2349
+ # The install_spec represents the intended state specified by the latest request
2350
+ # that mutated install_spec in the feature spec, not the lifecycle state of the
2351
+ # feature observed by the Hub feature controller that is reported in the feature
2352
+ # state.
2353
+ # Corresponds to the JSON property `installSpec`
2354
+ # @return [String]
2355
+ attr_accessor :install_spec
2356
+
2357
+ # Logs all denies and dry run failures.
2358
+ # Corresponds to the JSON property `logDeniesEnabled`
2359
+ # @return [Boolean]
2360
+ attr_accessor :log_denies_enabled
2361
+ alias_method :log_denies_enabled?, :log_denies_enabled
2362
+
2363
+ # Enables the ability to use Constraint Templates that reference to objects
2364
+ # other than the object currently being evaluated.
2365
+ # Corresponds to the JSON property `referentialRulesEnabled`
2366
+ # @return [Boolean]
2367
+ attr_accessor :referential_rules_enabled
2368
+ alias_method :referential_rules_enabled?, :referential_rules_enabled
2369
+
2370
+ # The config specifying which default library templates to install.
2371
+ # Corresponds to the JSON property `templateLibraryConfig`
2372
+ # @return [Google::Apis::GkehubV1::PolicyControllerTemplateLibraryConfig]
2373
+ attr_accessor :template_library_config
2374
+
2375
+ def initialize(**args)
2376
+ update!(**args)
2377
+ end
2378
+
2379
+ # Update properties of this object
2380
+ def update!(**args)
2381
+ @audit_interval_seconds = args[:audit_interval_seconds] if args.key?(:audit_interval_seconds)
2382
+ @exemptable_namespaces = args[:exemptable_namespaces] if args.key?(:exemptable_namespaces)
2383
+ @install_spec = args[:install_spec] if args.key?(:install_spec)
2384
+ @log_denies_enabled = args[:log_denies_enabled] if args.key?(:log_denies_enabled)
2385
+ @referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
2386
+ @template_library_config = args[:template_library_config] if args.key?(:template_library_config)
2387
+ end
2388
+ end
2389
+
2390
+ # State of the Policy Controller.
2391
+ class PolicyControllerPolicyControllerHubState
2392
+ include Google::Apis::Core::Hashable
2393
+
2394
+ # Map from deployment name to deployment state. Example deployments are
2395
+ # gatekeeper-controller-manager, gatekeeper-audit deployment, and gatekeeper-
2396
+ # mutation.
2397
+ # Corresponds to the JSON property `deploymentStates`
2398
+ # @return [Hash<String,String>]
2399
+ attr_accessor :deployment_states
2400
+
2401
+ # The build version of Gatekeeper that Policy Controller is using.
2402
+ # Corresponds to the JSON property `version`
2403
+ # @return [Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubVersion]
2404
+ attr_accessor :version
2405
+
2406
+ def initialize(**args)
2407
+ update!(**args)
2408
+ end
2409
+
2410
+ # Update properties of this object
2411
+ def update!(**args)
2412
+ @deployment_states = args[:deployment_states] if args.key?(:deployment_states)
2413
+ @version = args[:version] if args.key?(:version)
2414
+ end
2415
+ end
2416
+
2417
+ # The build version of Gatekeeper that Policy Controller is using.
2418
+ class PolicyControllerPolicyControllerHubVersion
2419
+ include Google::Apis::Core::Hashable
2420
+
2421
+ # The gatekeeper image tag that is composed of ACM version, git tag, build
2422
+ # number.
2423
+ # Corresponds to the JSON property `version`
2424
+ # @return [String]
2425
+ attr_accessor :version
2426
+
2427
+ def initialize(**args)
2428
+ update!(**args)
2429
+ end
2430
+
2431
+ # Update properties of this object
2432
+ def update!(**args)
2433
+ @version = args[:version] if args.key?(:version)
2434
+ end
2435
+ end
2436
+
2437
+ # The config specifying which default library templates to install.
2438
+ class PolicyControllerTemplateLibraryConfig
2439
+ include Google::Apis::Core::Hashable
2440
+
2441
+ # Whether the standard template library should be installed or not.
2442
+ # Corresponds to the JSON property `included`
2443
+ # @return [Boolean]
2444
+ attr_accessor :included
2445
+ alias_method :included?, :included
2446
+
2447
+ def initialize(**args)
2448
+ update!(**args)
2449
+ end
2450
+
2451
+ # Update properties of this object
2452
+ def update!(**args)
2453
+ @included = args[:included] if args.key?(:included)
2454
+ end
2455
+ end
2456
+
2233
2457
  # ResourceManifest represents a single Kubernetes resource to be applied to the
2234
2458
  # cluster.
2235
2459
  class ResourceManifest
@@ -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.19.0"
19
+ GEM_VERSION = "0.20.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
@@ -208,6 +208,12 @@ module Google
208
208
  include Google::Apis::Core::JsonObjectSupport
209
209
  end
210
210
 
211
+ class EdgeCluster
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
211
217
  class Empty
212
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
219
 
@@ -364,6 +370,42 @@ module Google
364
370
  include Google::Apis::Core::JsonObjectSupport
365
371
  end
366
372
 
373
+ class PolicyControllerMembershipSpec
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class PolicyControllerMembershipState
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class PolicyControllerPolicyControllerHubConfig
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class PolicyControllerPolicyControllerHubState
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
397
+ class PolicyControllerPolicyControllerHubVersion
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
403
+ class PolicyControllerTemplateLibraryConfig
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
367
409
  class ResourceManifest
368
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
411
 
@@ -718,6 +760,13 @@ module Google
718
760
  end
719
761
  end
720
762
 
763
+ class EdgeCluster
764
+ # @private
765
+ class Representation < Google::Apis::Core::JsonRepresentation
766
+ property :resource_link, as: 'resourceLink'
767
+ end
768
+ end
769
+
721
770
  class Empty
722
771
  # @private
723
772
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -893,6 +942,8 @@ module Google
893
942
  class MembershipEndpoint
894
943
  # @private
895
944
  class Representation < Google::Apis::Core::JsonRepresentation
945
+ property :edge_cluster, as: 'edgeCluster', class: Google::Apis::GkehubV1::EdgeCluster, decorator: Google::Apis::GkehubV1::EdgeCluster::Representation
946
+
896
947
  property :gke_cluster, as: 'gkeCluster', class: Google::Apis::GkehubV1::GkeCluster, decorator: Google::Apis::GkehubV1::GkeCluster::Representation
897
948
 
898
949
  property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1::KubernetesMetadata, decorator: Google::Apis::GkehubV1::KubernetesMetadata::Representation
@@ -921,6 +972,8 @@ module Google
921
972
 
922
973
  property :configmanagement, as: 'configmanagement', class: Google::Apis::GkehubV1::ConfigManagementMembershipState, decorator: Google::Apis::GkehubV1::ConfigManagementMembershipState::Representation
923
974
 
975
+ property :policycontroller, as: 'policycontroller', class: Google::Apis::GkehubV1::PolicyControllerMembershipState, decorator: Google::Apis::GkehubV1::PolicyControllerMembershipState::Representation
976
+
924
977
  property :state, as: 'state', class: Google::Apis::GkehubV1::FeatureState, decorator: Google::Apis::GkehubV1::FeatureState::Representation
925
978
 
926
979
  end
@@ -994,6 +1047,63 @@ module Google
994
1047
  end
995
1048
  end
996
1049
 
1050
+ class PolicyControllerMembershipSpec
1051
+ # @private
1052
+ class Representation < Google::Apis::Core::JsonRepresentation
1053
+ property :policy_controller_hub_config, as: 'policyControllerHubConfig', class: Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubConfig, decorator: Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubConfig::Representation
1054
+
1055
+ property :version, as: 'version'
1056
+ end
1057
+ end
1058
+
1059
+ class PolicyControllerMembershipState
1060
+ # @private
1061
+ class Representation < Google::Apis::Core::JsonRepresentation
1062
+ property :cluster_name, as: 'clusterName'
1063
+ property :membership_spec, as: 'membershipSpec', class: Google::Apis::GkehubV1::PolicyControllerMembershipSpec, decorator: Google::Apis::GkehubV1::PolicyControllerMembershipSpec::Representation
1064
+
1065
+ property :policy_controller_hub_state, as: 'policyControllerHubState', class: Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubState, decorator: Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubState::Representation
1066
+
1067
+ property :state, as: 'state'
1068
+ end
1069
+ end
1070
+
1071
+ class PolicyControllerPolicyControllerHubConfig
1072
+ # @private
1073
+ class Representation < Google::Apis::Core::JsonRepresentation
1074
+ property :audit_interval_seconds, :numeric_string => true, as: 'auditIntervalSeconds'
1075
+ collection :exemptable_namespaces, as: 'exemptableNamespaces'
1076
+ property :install_spec, as: 'installSpec'
1077
+ property :log_denies_enabled, as: 'logDeniesEnabled'
1078
+ property :referential_rules_enabled, as: 'referentialRulesEnabled'
1079
+ property :template_library_config, as: 'templateLibraryConfig', class: Google::Apis::GkehubV1::PolicyControllerTemplateLibraryConfig, decorator: Google::Apis::GkehubV1::PolicyControllerTemplateLibraryConfig::Representation
1080
+
1081
+ end
1082
+ end
1083
+
1084
+ class PolicyControllerPolicyControllerHubState
1085
+ # @private
1086
+ class Representation < Google::Apis::Core::JsonRepresentation
1087
+ hash :deployment_states, as: 'deploymentStates'
1088
+ property :version, as: 'version', class: Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubVersion, decorator: Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubVersion::Representation
1089
+
1090
+ end
1091
+ end
1092
+
1093
+ class PolicyControllerPolicyControllerHubVersion
1094
+ # @private
1095
+ class Representation < Google::Apis::Core::JsonRepresentation
1096
+ property :version, as: 'version'
1097
+ end
1098
+ end
1099
+
1100
+ class PolicyControllerTemplateLibraryConfig
1101
+ # @private
1102
+ class Representation < Google::Apis::Core::JsonRepresentation
1103
+ property :included, as: 'included'
1104
+ end
1105
+ end
1106
+
997
1107
  class ResourceManifest
998
1108
  # @private
999
1109
  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.19.0
4
+ version: 0.20.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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.20.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: []