google-apis-gkehub_v1alpha 0.14.0 → 0.15.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: 5c7ab5a704372ef40349e8080311c38427279c6a46042581a4ddc274c878695f
4
- data.tar.gz: 908aaeb2caaac955de81f927f54822ed767d747eb3fdb73e2d170bfa0e81dc63
3
+ metadata.gz: a7b10916097ca4d3112440d34bf8335df618a3c195ea635460dbf35e8d1863d0
4
+ data.tar.gz: dd6520f4090328de91f8c787eaee6df87b59e69e28ed71b2cb20292d05ae4149
5
5
  SHA512:
6
- metadata.gz: d6ac8bc661031ef89e93bf984204ed8c30545fa2344b50996d4fd4adc98e0b69effd72549d1996471b22caa63dd31dcf529a9be23d5d033c7d72bc1c35a80de1
7
- data.tar.gz: d3e5816d2f7f254854e2cceac547c016467d30cb70db22dd34eca96dd7d210cccc8501590f9492deaedf28b70a3ef10d529a034d6f92f564cb72430af3f128c7
6
+ metadata.gz: c571f35a8494af322207415fa9c5c3ab1b4761e5bc5cf985b1a0ec7b987aee4032d82b53e58db8dcbf1be478285804ca1f5b41aefc318df3ff795810c9b683cb
7
+ data.tar.gz: 1675980291105294aa44b7b4db230df1dfc06f16cacc1ff8862232d8ae553723754a4994e4b5ed53e8946ad2098ce8eb1506dd280b578e514515d66304756e2b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.15.0 (2021-11-13)
4
+
5
+ * Regenerated from discovery document revision 20211105
6
+
3
7
  ### v0.14.0 (2021-10-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20211021
@@ -435,6 +435,14 @@ module Google
435
435
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementGitConfig]
436
436
  attr_accessor :git
437
437
 
438
+ # Set to true to enable the Config Sync admission webhook to prevent drifts. If
439
+ # set to `false`, disables the Config Sync admission webhook and does not
440
+ # prevent drifts.
441
+ # Corresponds to the JSON property `preventDrift`
442
+ # @return [Boolean]
443
+ attr_accessor :prevent_drift
444
+ alias_method :prevent_drift?, :prevent_drift
445
+
438
446
  # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured”
439
447
  # mode.
440
448
  # Corresponds to the JSON property `sourceFormat`
@@ -449,6 +457,7 @@ module Google
449
457
  def update!(**args)
450
458
  @enabled = args[:enabled] if args.key?(:enabled)
451
459
  @git = args[:git] if args.key?(:git)
460
+ @prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
452
461
  @source_format = args[:source_format] if args.key?(:source_format)
453
462
  end
454
463
  end
@@ -683,7 +692,9 @@ module Google
683
692
  # @return [String]
684
693
  attr_accessor :policy_dir
685
694
 
686
- # Type of secret configured for access to the Git repo.
695
+ # Type of secret configured for access to the Git repo. Must be one of ssh,
696
+ # cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this
697
+ # is case-sensitive. Required.
687
698
  # Corresponds to the JSON property `secretType`
688
699
  # @return [String]
689
700
  attr_accessor :secret_type
@@ -1777,6 +1788,61 @@ module Google
1777
1788
  end
1778
1789
  end
1779
1790
 
1791
+ # KubernetesResource contains the YAML manifests and configuration for
1792
+ # Membership Kubernetes resources in the cluster. After CreateMembership or
1793
+ # UpdateMembership, these resources should be re-applied in the cluster.
1794
+ class KubernetesResource
1795
+ include Google::Apis::Core::Hashable
1796
+
1797
+ # Output only. The Kubernetes resources for installing the GKE Connect agent
1798
+ # This field is only populated in the Membership returned from a successful long-
1799
+ # running operation from CreateMembership or UpdateMembership. It is not
1800
+ # populated during normal GetMembership or ListMemberships requests. To get the
1801
+ # resource manifest after the initial registration, the caller should make a
1802
+ # UpdateMembership call with an empty field mask.
1803
+ # Corresponds to the JSON property `connectResources`
1804
+ # @return [Array<Google::Apis::GkehubV1alpha::ResourceManifest>]
1805
+ attr_accessor :connect_resources
1806
+
1807
+ # Input only. The YAML representation of the Membership CR. This field is
1808
+ # ignored for GKE clusters where Hub can read the CR directly. Callers should
1809
+ # provide the CR that is currently present in the cluster during
1810
+ # CreateMembership or UpdateMembership, or leave this field empty if none exists.
1811
+ # The CR manifest is used to validate the cluster has not been registered with
1812
+ # another Membership.
1813
+ # Corresponds to the JSON property `membershipCrManifest`
1814
+ # @return [String]
1815
+ attr_accessor :membership_cr_manifest
1816
+
1817
+ # Output only. Additional Kubernetes resources that need to be applied to the
1818
+ # cluster after Membership creation, and after every update. This field is only
1819
+ # populated in the Membership returned from a successful long-running operation
1820
+ # from CreateMembership or UpdateMembership. It is not populated during normal
1821
+ # GetMembership or ListMemberships requests. To get the resource manifest after
1822
+ # the initial registration, the caller should make a UpdateMembership call with
1823
+ # an empty field mask.
1824
+ # Corresponds to the JSON property `membershipResources`
1825
+ # @return [Array<Google::Apis::GkehubV1alpha::ResourceManifest>]
1826
+ attr_accessor :membership_resources
1827
+
1828
+ # ResourceOptions represent options for Kubernetes resource generation.
1829
+ # Corresponds to the JSON property `resourceOptions`
1830
+ # @return [Google::Apis::GkehubV1alpha::ResourceOptions]
1831
+ attr_accessor :resource_options
1832
+
1833
+ def initialize(**args)
1834
+ update!(**args)
1835
+ end
1836
+
1837
+ # Update properties of this object
1838
+ def update!(**args)
1839
+ @connect_resources = args[:connect_resources] if args.key?(:connect_resources)
1840
+ @membership_cr_manifest = args[:membership_cr_manifest] if args.key?(:membership_cr_manifest)
1841
+ @membership_resources = args[:membership_resources] if args.key?(:membership_resources)
1842
+ @resource_options = args[:resource_options] if args.key?(:resource_options)
1843
+ end
1844
+ end
1845
+
1780
1846
  # Response message for the `GkeHub.ListAdminClusterMemberships` method.
1781
1847
  class ListAdminClusterMembershipsResponse
1782
1848
  include Google::Apis::Core::Hashable
@@ -2085,6 +2151,13 @@ module Google
2085
2151
  # @return [Google::Apis::GkehubV1alpha::KubernetesMetadata]
2086
2152
  attr_accessor :kubernetes_metadata
2087
2153
 
2154
+ # KubernetesResource contains the YAML manifests and configuration for
2155
+ # Membership Kubernetes resources in the cluster. After CreateMembership or
2156
+ # UpdateMembership, these resources should be re-applied in the cluster.
2157
+ # Corresponds to the JSON property `kubernetesResource`
2158
+ # @return [Google::Apis::GkehubV1alpha::KubernetesResource]
2159
+ attr_accessor :kubernetes_resource
2160
+
2088
2161
  # MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
2089
2162
  # Corresponds to the JSON property `multiCloudCluster`
2090
2163
  # @return [Google::Apis::GkehubV1alpha::MultiCloudCluster]
@@ -2103,6 +2176,7 @@ module Google
2103
2176
  def update!(**args)
2104
2177
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
2105
2178
  @kubernetes_metadata = args[:kubernetes_metadata] if args.key?(:kubernetes_metadata)
2179
+ @kubernetes_resource = args[:kubernetes_resource] if args.key?(:kubernetes_resource)
2106
2180
  @multi_cloud_cluster = args[:multi_cloud_cluster] if args.key?(:multi_cloud_cluster)
2107
2181
  @on_prem_cluster = args[:on_prem_cluster] if args.key?(:on_prem_cluster)
2108
2182
  end
@@ -2551,6 +2625,65 @@ module Google
2551
2625
  end
2552
2626
  end
2553
2627
 
2628
+ # ResourceManifest represents a single Kubernetes resource to be applied to the
2629
+ # cluster.
2630
+ class ResourceManifest
2631
+ include Google::Apis::Core::Hashable
2632
+
2633
+ # Whether the resource provided in the manifest is `cluster_scoped`. If unset,
2634
+ # the manifest is assumed to be namespace scoped. This field is used for REST
2635
+ # mapping when applying the resource in a cluster.
2636
+ # Corresponds to the JSON property `clusterScoped`
2637
+ # @return [Boolean]
2638
+ attr_accessor :cluster_scoped
2639
+ alias_method :cluster_scoped?, :cluster_scoped
2640
+
2641
+ # YAML manifest of the resource.
2642
+ # Corresponds to the JSON property `manifest`
2643
+ # @return [String]
2644
+ attr_accessor :manifest
2645
+
2646
+ def initialize(**args)
2647
+ update!(**args)
2648
+ end
2649
+
2650
+ # Update properties of this object
2651
+ def update!(**args)
2652
+ @cluster_scoped = args[:cluster_scoped] if args.key?(:cluster_scoped)
2653
+ @manifest = args[:manifest] if args.key?(:manifest)
2654
+ end
2655
+ end
2656
+
2657
+ # ResourceOptions represent options for Kubernetes resource generation.
2658
+ class ResourceOptions
2659
+ include Google::Apis::Core::Hashable
2660
+
2661
+ # Optional. The Connect agent version to use for connect_resources. Defaults to
2662
+ # the latest GKE Connect version. The version must be a currently supported
2663
+ # version, obsolete versions will be rejected.
2664
+ # Corresponds to the JSON property `connectVersion`
2665
+ # @return [String]
2666
+ attr_accessor :connect_version
2667
+
2668
+ # Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
2669
+ # CustomResourceDefinition resources. This option should be set for clusters
2670
+ # with Kubernetes apiserver versions <1.16.
2671
+ # Corresponds to the JSON property `v1beta1Crd`
2672
+ # @return [Boolean]
2673
+ attr_accessor :v1beta1_crd
2674
+ alias_method :v1beta1_crd?, :v1beta1_crd
2675
+
2676
+ def initialize(**args)
2677
+ update!(**args)
2678
+ end
2679
+
2680
+ # Update properties of this object
2681
+ def update!(**args)
2682
+ @connect_version = args[:connect_version] if args.key?(:connect_version)
2683
+ @v1beta1_crd = args[:v1beta1_crd] if args.key?(:v1beta1_crd)
2684
+ end
2685
+ end
2686
+
2554
2687
  # AnalysisMessage is a single message produced by an analyzer, and it used to
2555
2688
  # communicate to the end user about the state of their Service Mesh
2556
2689
  # configuration.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1alpha
18
18
  # Version of the google-apis-gkehub_v1alpha gem
19
- GEM_VERSION = "0.14.0"
19
+ GEM_VERSION = "0.15.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
@@ -310,6 +310,12 @@ module Google
310
310
  include Google::Apis::Core::JsonObjectSupport
311
311
  end
312
312
 
313
+ class KubernetesResource
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
313
319
  class ListAdminClusterMembershipsResponse
314
320
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
321
 
@@ -418,6 +424,18 @@ module Google
418
424
  include Google::Apis::Core::JsonObjectSupport
419
425
  end
420
426
 
427
+ class ResourceManifest
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
433
+ class ResourceOptions
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
421
439
  class ServiceMeshAnalysisMessage
422
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
441
 
@@ -601,6 +619,7 @@ module Google
601
619
  property :enabled, as: 'enabled'
602
620
  property :git, as: 'git', class: Google::Apis::GkehubV1alpha::ConfigManagementGitConfig, decorator: Google::Apis::GkehubV1alpha::ConfigManagementGitConfig::Representation
603
621
 
622
+ property :prevent_drift, as: 'preventDrift'
604
623
  property :source_format, as: 'sourceFormat'
605
624
  end
606
625
  end
@@ -971,6 +990,19 @@ module Google
971
990
  end
972
991
  end
973
992
 
993
+ class KubernetesResource
994
+ # @private
995
+ class Representation < Google::Apis::Core::JsonRepresentation
996
+ collection :connect_resources, as: 'connectResources', class: Google::Apis::GkehubV1alpha::ResourceManifest, decorator: Google::Apis::GkehubV1alpha::ResourceManifest::Representation
997
+
998
+ property :membership_cr_manifest, as: 'membershipCrManifest'
999
+ collection :membership_resources, as: 'membershipResources', class: Google::Apis::GkehubV1alpha::ResourceManifest, decorator: Google::Apis::GkehubV1alpha::ResourceManifest::Representation
1000
+
1001
+ property :resource_options, as: 'resourceOptions', class: Google::Apis::GkehubV1alpha::ResourceOptions, decorator: Google::Apis::GkehubV1alpha::ResourceOptions::Representation
1002
+
1003
+ end
1004
+ end
1005
+
974
1006
  class ListAdminClusterMembershipsResponse
975
1007
  # @private
976
1008
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1057,6 +1089,8 @@ module Google
1057
1089
 
1058
1090
  property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1alpha::KubernetesMetadata, decorator: Google::Apis::GkehubV1alpha::KubernetesMetadata::Representation
1059
1091
 
1092
+ property :kubernetes_resource, as: 'kubernetesResource', class: Google::Apis::GkehubV1alpha::KubernetesResource, decorator: Google::Apis::GkehubV1alpha::KubernetesResource::Representation
1093
+
1060
1094
  property :multi_cloud_cluster, as: 'multiCloudCluster', class: Google::Apis::GkehubV1alpha::MultiCloudCluster, decorator: Google::Apis::GkehubV1alpha::MultiCloudCluster::Representation
1061
1095
 
1062
1096
  property :on_prem_cluster, as: 'onPremCluster', class: Google::Apis::GkehubV1alpha::OnPremCluster, decorator: Google::Apis::GkehubV1alpha::OnPremCluster::Representation
@@ -1171,6 +1205,22 @@ module Google
1171
1205
  end
1172
1206
  end
1173
1207
 
1208
+ class ResourceManifest
1209
+ # @private
1210
+ class Representation < Google::Apis::Core::JsonRepresentation
1211
+ property :cluster_scoped, as: 'clusterScoped'
1212
+ property :manifest, as: 'manifest'
1213
+ end
1214
+ end
1215
+
1216
+ class ResourceOptions
1217
+ # @private
1218
+ class Representation < Google::Apis::Core::JsonRepresentation
1219
+ property :connect_version, as: 'connectVersion'
1220
+ property :v1beta1_crd, as: 'v1beta1Crd'
1221
+ end
1222
+ end
1223
+
1174
1224
  class ServiceMeshAnalysisMessage
1175
1225
  # @private
1176
1226
  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_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.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_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []