google-apis-gkehub_v1 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 609996b51ec3a826d1eb6de33f2318eb5c7a5414f7c2425fcf677398ab3d072f
4
- data.tar.gz: 61a07ebfd395bbc384df28a1ec0f88531cc44221715a255d5151a7632f069973
3
+ metadata.gz: 0f02d8c1a6706479c3f121f726a4ec8ab01aa4633eee2c2cdf225d2de8dbaff9
4
+ data.tar.gz: d39f3956d60d3b5cb8c1b532f12ce3ffc4f9187f3df9ca05ea55ce07a553d74c
5
5
  SHA512:
6
- metadata.gz: 360b76965b2d178fb93d2b5c07b28c582af4e46a97b162c22deaf941fe2920148de6db17776f30c189d006a7707453cf94ea5d6632988ffaf0323041a3c6173a
7
- data.tar.gz: a45e91b07742e2713fbeadff667c8687a33e0dd1fa8be2368bede28fedeb3ea097651738de133d759270e1cbb693fe4797b3dcbaead5e2e6dd3712bafbfd4a65
6
+ metadata.gz: 0f3ff03ab2873afeb53b7a3ab574b1874936391026106e8ab8734fc65b7880c03e715a943f2c20b3c0373a7d9596d4457229e9fa1a8560149b9ed445f25eae45
7
+ data.tar.gz: 7e4cfd20c7d8a46a74397844068451d2d8b3794e1a354295a491528b13ef92c6267381c127f37de879b05627a54c67f553cee2e2e5426aa326924130b87b64d2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1
2
2
 
3
+ ### v0.16.0 (2021-11-13)
4
+
5
+ * Regenerated from discovery document revision 20211105
6
+
3
7
  ### v0.15.0 (2021-10-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20211021
@@ -335,6 +335,14 @@ module Google
335
335
  # @return [Google::Apis::GkehubV1::ConfigManagementGitConfig]
336
336
  attr_accessor :git
337
337
 
338
+ # Set to true to enable the Config Sync admission webhook to prevent drifts. If
339
+ # set to `false`, disables the Config Sync admission webhook and does not
340
+ # prevent drifts.
341
+ # Corresponds to the JSON property `preventDrift`
342
+ # @return [Boolean]
343
+ attr_accessor :prevent_drift
344
+ alias_method :prevent_drift?, :prevent_drift
345
+
338
346
  # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured”
339
347
  # mode.
340
348
  # Corresponds to the JSON property `sourceFormat`
@@ -349,6 +357,7 @@ module Google
349
357
  def update!(**args)
350
358
  @enabled = args[:enabled] if args.key?(:enabled)
351
359
  @git = args[:git] if args.key?(:git)
360
+ @prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
352
361
  @source_format = args[:source_format] if args.key?(:source_format)
353
362
  end
354
363
  end
@@ -577,7 +586,9 @@ module Google
577
586
  # @return [String]
578
587
  attr_accessor :policy_dir
579
588
 
580
- # Type of secret configured for access to the Git repo.
589
+ # Type of secret configured for access to the Git repo. Must be one of ssh,
590
+ # cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this
591
+ # is case-sensitive. Required.
581
592
  # Corresponds to the JSON property `secretType`
582
593
  # @return [String]
583
594
  attr_accessor :secret_type
@@ -1480,6 +1491,61 @@ module Google
1480
1491
  end
1481
1492
  end
1482
1493
 
1494
+ # KubernetesResource contains the YAML manifests and configuration for
1495
+ # Membership Kubernetes resources in the cluster. After CreateMembership or
1496
+ # UpdateMembership, these resources should be re-applied in the cluster.
1497
+ class KubernetesResource
1498
+ include Google::Apis::Core::Hashable
1499
+
1500
+ # Output only. The Kubernetes resources for installing the GKE Connect agent
1501
+ # This field is only populated in the Membership returned from a successful long-
1502
+ # running operation from CreateMembership or UpdateMembership. It is not
1503
+ # populated during normal GetMembership or ListMemberships requests. To get the
1504
+ # resource manifest after the initial registration, the caller should make a
1505
+ # UpdateMembership call with an empty field mask.
1506
+ # Corresponds to the JSON property `connectResources`
1507
+ # @return [Array<Google::Apis::GkehubV1::ResourceManifest>]
1508
+ attr_accessor :connect_resources
1509
+
1510
+ # Input only. The YAML representation of the Membership CR. This field is
1511
+ # ignored for GKE clusters where Hub can read the CR directly. Callers should
1512
+ # provide the CR that is currently present in the cluster during
1513
+ # CreateMembership or UpdateMembership, or leave this field empty if none exists.
1514
+ # The CR manifest is used to validate the cluster has not been registered with
1515
+ # another Membership.
1516
+ # Corresponds to the JSON property `membershipCrManifest`
1517
+ # @return [String]
1518
+ attr_accessor :membership_cr_manifest
1519
+
1520
+ # Output only. Additional Kubernetes resources that need to be applied to the
1521
+ # cluster after Membership creation, and after every update. This field is only
1522
+ # populated in the Membership returned from a successful long-running operation
1523
+ # from CreateMembership or UpdateMembership. It is not populated during normal
1524
+ # GetMembership or ListMemberships requests. To get the resource manifest after
1525
+ # the initial registration, the caller should make a UpdateMembership call with
1526
+ # an empty field mask.
1527
+ # Corresponds to the JSON property `membershipResources`
1528
+ # @return [Array<Google::Apis::GkehubV1::ResourceManifest>]
1529
+ attr_accessor :membership_resources
1530
+
1531
+ # ResourceOptions represent options for Kubernetes resource generation.
1532
+ # Corresponds to the JSON property `resourceOptions`
1533
+ # @return [Google::Apis::GkehubV1::ResourceOptions]
1534
+ attr_accessor :resource_options
1535
+
1536
+ def initialize(**args)
1537
+ update!(**args)
1538
+ end
1539
+
1540
+ # Update properties of this object
1541
+ def update!(**args)
1542
+ @connect_resources = args[:connect_resources] if args.key?(:connect_resources)
1543
+ @membership_cr_manifest = args[:membership_cr_manifest] if args.key?(:membership_cr_manifest)
1544
+ @membership_resources = args[:membership_resources] if args.key?(:membership_resources)
1545
+ @resource_options = args[:resource_options] if args.key?(:resource_options)
1546
+ end
1547
+ end
1548
+
1483
1549
  # Response message for the `GkeHub.ListFeatures` method.
1484
1550
  class ListFeaturesResponse
1485
1551
  include Google::Apis::Core::Hashable
@@ -1755,6 +1821,13 @@ module Google
1755
1821
  # @return [Google::Apis::GkehubV1::KubernetesMetadata]
1756
1822
  attr_accessor :kubernetes_metadata
1757
1823
 
1824
+ # KubernetesResource contains the YAML manifests and configuration for
1825
+ # Membership Kubernetes resources in the cluster. After CreateMembership or
1826
+ # UpdateMembership, these resources should be re-applied in the cluster.
1827
+ # Corresponds to the JSON property `kubernetesResource`
1828
+ # @return [Google::Apis::GkehubV1::KubernetesResource]
1829
+ attr_accessor :kubernetes_resource
1830
+
1758
1831
  # MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
1759
1832
  # Corresponds to the JSON property `multiCloudCluster`
1760
1833
  # @return [Google::Apis::GkehubV1::MultiCloudCluster]
@@ -1773,6 +1846,7 @@ module Google
1773
1846
  def update!(**args)
1774
1847
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
1775
1848
  @kubernetes_metadata = args[:kubernetes_metadata] if args.key?(:kubernetes_metadata)
1849
+ @kubernetes_resource = args[:kubernetes_resource] if args.key?(:kubernetes_resource)
1776
1850
  @multi_cloud_cluster = args[:multi_cloud_cluster] if args.key?(:multi_cloud_cluster)
1777
1851
  @on_prem_cluster = args[:on_prem_cluster] if args.key?(:on_prem_cluster)
1778
1852
  end
@@ -2156,6 +2230,65 @@ module Google
2156
2230
  end
2157
2231
  end
2158
2232
 
2233
+ # ResourceManifest represents a single Kubernetes resource to be applied to the
2234
+ # cluster.
2235
+ class ResourceManifest
2236
+ include Google::Apis::Core::Hashable
2237
+
2238
+ # Whether the resource provided in the manifest is `cluster_scoped`. If unset,
2239
+ # the manifest is assumed to be namespace scoped. This field is used for REST
2240
+ # mapping when applying the resource in a cluster.
2241
+ # Corresponds to the JSON property `clusterScoped`
2242
+ # @return [Boolean]
2243
+ attr_accessor :cluster_scoped
2244
+ alias_method :cluster_scoped?, :cluster_scoped
2245
+
2246
+ # YAML manifest of the resource.
2247
+ # Corresponds to the JSON property `manifest`
2248
+ # @return [String]
2249
+ attr_accessor :manifest
2250
+
2251
+ def initialize(**args)
2252
+ update!(**args)
2253
+ end
2254
+
2255
+ # Update properties of this object
2256
+ def update!(**args)
2257
+ @cluster_scoped = args[:cluster_scoped] if args.key?(:cluster_scoped)
2258
+ @manifest = args[:manifest] if args.key?(:manifest)
2259
+ end
2260
+ end
2261
+
2262
+ # ResourceOptions represent options for Kubernetes resource generation.
2263
+ class ResourceOptions
2264
+ include Google::Apis::Core::Hashable
2265
+
2266
+ # Optional. The Connect agent version to use for connect_resources. Defaults to
2267
+ # the latest GKE Connect version. The version must be a currently supported
2268
+ # version, obsolete versions will be rejected.
2269
+ # Corresponds to the JSON property `connectVersion`
2270
+ # @return [String]
2271
+ attr_accessor :connect_version
2272
+
2273
+ # Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
2274
+ # CustomResourceDefinition resources. This option should be set for clusters
2275
+ # with Kubernetes apiserver versions <1.16.
2276
+ # Corresponds to the JSON property `v1beta1Crd`
2277
+ # @return [Boolean]
2278
+ attr_accessor :v1beta1_crd
2279
+ alias_method :v1beta1_crd?, :v1beta1_crd
2280
+
2281
+ def initialize(**args)
2282
+ update!(**args)
2283
+ end
2284
+
2285
+ # Update properties of this object
2286
+ def update!(**args)
2287
+ @connect_version = args[:connect_version] if args.key?(:connect_version)
2288
+ @v1beta1_crd = args[:v1beta1_crd] if args.key?(:v1beta1_crd)
2289
+ end
2290
+ end
2291
+
2159
2292
  # Request message for `SetIamPolicy` method.
2160
2293
  class SetIamPolicyRequest
2161
2294
  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.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211021"
25
+ REVISION = "20211105"
26
26
  end
27
27
  end
28
28
  end
@@ -262,6 +262,12 @@ module Google
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
+ class KubernetesResource
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
265
271
  class ListFeaturesResponse
266
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
273
 
@@ -358,6 +364,18 @@ module Google
358
364
  include Google::Apis::Core::JsonObjectSupport
359
365
  end
360
366
 
367
+ class ResourceManifest
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class ResourceOptions
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
361
379
  class SetIamPolicyRequest
362
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
381
 
@@ -471,6 +489,7 @@ module Google
471
489
  property :enabled, as: 'enabled'
472
490
  property :git, as: 'git', class: Google::Apis::GkehubV1::ConfigManagementGitConfig, decorator: Google::Apis::GkehubV1::ConfigManagementGitConfig::Representation
473
491
 
492
+ property :prevent_drift, as: 'preventDrift'
474
493
  property :source_format, as: 'sourceFormat'
475
494
  end
476
495
  end
@@ -789,6 +808,19 @@ module Google
789
808
  end
790
809
  end
791
810
 
811
+ class KubernetesResource
812
+ # @private
813
+ class Representation < Google::Apis::Core::JsonRepresentation
814
+ collection :connect_resources, as: 'connectResources', class: Google::Apis::GkehubV1::ResourceManifest, decorator: Google::Apis::GkehubV1::ResourceManifest::Representation
815
+
816
+ property :membership_cr_manifest, as: 'membershipCrManifest'
817
+ collection :membership_resources, as: 'membershipResources', class: Google::Apis::GkehubV1::ResourceManifest, decorator: Google::Apis::GkehubV1::ResourceManifest::Representation
818
+
819
+ property :resource_options, as: 'resourceOptions', class: Google::Apis::GkehubV1::ResourceOptions, decorator: Google::Apis::GkehubV1::ResourceOptions::Representation
820
+
821
+ end
822
+ end
823
+
792
824
  class ListFeaturesResponse
793
825
  # @private
794
826
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -865,6 +897,8 @@ module Google
865
897
 
866
898
  property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1::KubernetesMetadata, decorator: Google::Apis::GkehubV1::KubernetesMetadata::Representation
867
899
 
900
+ property :kubernetes_resource, as: 'kubernetesResource', class: Google::Apis::GkehubV1::KubernetesResource, decorator: Google::Apis::GkehubV1::KubernetesResource::Representation
901
+
868
902
  property :multi_cloud_cluster, as: 'multiCloudCluster', class: Google::Apis::GkehubV1::MultiCloudCluster, decorator: Google::Apis::GkehubV1::MultiCloudCluster::Representation
869
903
 
870
904
  property :on_prem_cluster, as: 'onPremCluster', class: Google::Apis::GkehubV1::OnPremCluster, decorator: Google::Apis::GkehubV1::OnPremCluster::Representation
@@ -960,6 +994,22 @@ module Google
960
994
  end
961
995
  end
962
996
 
997
+ class ResourceManifest
998
+ # @private
999
+ class Representation < Google::Apis::Core::JsonRepresentation
1000
+ property :cluster_scoped, as: 'clusterScoped'
1001
+ property :manifest, as: 'manifest'
1002
+ end
1003
+ end
1004
+
1005
+ class ResourceOptions
1006
+ # @private
1007
+ class Representation < Google::Apis::Core::JsonRepresentation
1008
+ property :connect_version, as: 'connectVersion'
1009
+ property :v1beta1_crd, as: 'v1beta1Crd'
1010
+ end
1011
+ end
1012
+
963
1013
  class SetIamPolicyRequest
964
1014
  # @private
965
1015
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -254,13 +254,16 @@ module Google
254
254
  # REQUIRED: The resource for which the policy is being requested. See the
255
255
  # operation documentation for the appropriate value for this field.
256
256
  # @param [Fixnum] options_requested_policy_version
257
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
258
- # 3. Requests specifying an invalid value will be rejected. Requests for
259
- # policies with any conditional bindings must specify version 3. Policies
260
- # without any conditional bindings may specify any valid value or leave the
261
- # field unset. To learn which resources support conditions in their IAM policies,
262
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
263
- # resource-policies).
257
+ # Optional. The maximum policy version that will be used to format the policy.
258
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
259
+ # rejected. Requests for policies with any conditional role bindings must
260
+ # specify version 3. Policies with no conditional role bindings may specify any
261
+ # valid value or leave the field unset. The policy in the response might use the
262
+ # policy version that you specified, or it might use a lower policy version. For
263
+ # example, if you specify version 3, but the policy has no conditional role
264
+ # bindings, the response uses version 1. To learn which resources support
265
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
266
+ # google.com/iam/help/conditions/resource-policies).
264
267
  # @param [String] fields
265
268
  # Selector specifying which fields to include in a partial response.
266
269
  # @param [String] quota_user
@@ -662,13 +665,16 @@ module Google
662
665
  # REQUIRED: The resource for which the policy is being requested. See the
663
666
  # operation documentation for the appropriate value for this field.
664
667
  # @param [Fixnum] options_requested_policy_version
665
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
666
- # 3. Requests specifying an invalid value will be rejected. Requests for
667
- # policies with any conditional bindings must specify version 3. Policies
668
- # without any conditional bindings may specify any valid value or leave the
669
- # field unset. To learn which resources support conditions in their IAM policies,
670
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
671
- # resource-policies).
668
+ # Optional. The maximum policy version that will be used to format the policy.
669
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
670
+ # rejected. Requests for policies with any conditional role bindings must
671
+ # specify version 3. Policies with no conditional role bindings may specify any
672
+ # valid value or leave the field unset. The policy in the response might use the
673
+ # policy version that you specified, or it might use a lower policy version. For
674
+ # example, if you specify version 3, but the policy has no conditional role
675
+ # bindings, the response uses version 1. To learn which resources support
676
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
677
+ # google.com/iam/help/conditions/resource-policies).
672
678
  # @param [String] fields
673
679
  # Selector specifying which fields to include in a partial response.
674
680
  # @param [String] quota_user
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.15.0
4
+ version: 0.16.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: 2021-11-01 00:00:00.000000000 Z
11
+ date: 2021-11-15 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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.16.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: []