google-apis-gkehub_v1alpha 0.11.0 → 0.12.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: 8bf5e9d13672c2f886f0c2dc57d4a2192082fda1e2a1bb7fb47b7825970ab4f4
4
- data.tar.gz: 90c43c4098c508dea3fa52fa0a46aa4eb9503963c9214e38dd2da7b0d77a0a11
3
+ metadata.gz: d8f1c7b78c35eaadfb1539f48159c42cfe4d896af96583cf7d78b7cbf0de1fc9
4
+ data.tar.gz: 3cdfb96418cc4eedb22c985488f4cb0aedddfe7020824a2a046091da413e25c2
5
5
  SHA512:
6
- metadata.gz: 2e438ff858547c7802d96f696307b07019657c0cfe354e9f26e50054d6bfbde5ce93885199543e038b77c2a7fe440dd3c0ac6b25183667b595ff9edaef28dbe4
7
- data.tar.gz: d42654251f64e2cbe748eda9552f5a016127ddd03fbf8491f2e520f35cac94d99d4527c19726b581b80b5437c7104a1d695f9aef9e364ae7f27bc2507657831f
6
+ metadata.gz: f99f2771dc664952d91e4e332c3291085c3eee5e1896626655fc8c3e11718d8d6fa9059addc3e407f5058e7a5a2552496c9ef02289d4632a10a3bf01e35bb21e
7
+ data.tar.gz: e35877636d786bae3cf32d86a73b99c074b75721fe0d8a2eb7116ca8c9cf58392408d2c5e46d35fa3871bb083fb57be05206662b9aca196fdfc149f49cce80f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.12.0 (2021-10-04)
4
+
5
+ * Regenerated from discovery document revision 20210927
6
+
3
7
  ### v0.11.0 (2021-09-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20210920
@@ -93,6 +93,60 @@ module Google
93
93
  end
94
94
  end
95
95
 
96
+ # Authority encodes how Google will recognize identities from this Membership.
97
+ # See the workload identity documentation for more details: https://cloud.google.
98
+ # com/kubernetes-engine/docs/how-to/workload-identity
99
+ class Authority
100
+ include Google::Apis::Core::Hashable
101
+
102
+ # Output only. An identity provider that reflects the `issuer` in the workload
103
+ # identity pool.
104
+ # Corresponds to the JSON property `identityProvider`
105
+ # @return [String]
106
+ attr_accessor :identity_provider
107
+
108
+ # Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://
109
+ # ` and be a valid URL with length <2000 characters. If set, then Google will
110
+ # allow valid OIDC tokens from this issuer to authenticate within the
111
+ # workload_identity_pool. OIDC discovery will be performed on this URI to
112
+ # validate tokens from the issuer. Clearing `issuer` disables Workload Identity.
113
+ # `issuer` cannot be directly modified; it must be cleared (and Workload
114
+ # Identity disabled) before using a new issuer (and re-enabling Workload
115
+ # Identity).
116
+ # Corresponds to the JSON property `issuer`
117
+ # @return [String]
118
+ attr_accessor :issuer
119
+
120
+ # Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
121
+ # When this field is set, OIDC discovery will NOT be performed on `issuer`, and
122
+ # instead OIDC tokens will be validated using this field.
123
+ # Corresponds to the JSON property `oidcJwks`
124
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
125
+ # @return [String]
126
+ attr_accessor :oidc_jwks
127
+
128
+ # Output only. The name of the workload identity pool in which `issuer` will be
129
+ # recognized. There is a single Workload Identity Pool per Hub that is shared
130
+ # between all Memberships that belong to that Hub. For a Hub hosted in `
131
+ # PROJECT_ID`, the workload pool format is ``PROJECT_ID`.hub.id.goog`, although
132
+ # this is subject to change in newer versions of this API.
133
+ # Corresponds to the JSON property `workloadIdentityPool`
134
+ # @return [String]
135
+ attr_accessor :workload_identity_pool
136
+
137
+ def initialize(**args)
138
+ update!(**args)
139
+ end
140
+
141
+ # Update properties of this object
142
+ def update!(**args)
143
+ @identity_provider = args[:identity_provider] if args.key?(:identity_provider)
144
+ @issuer = args[:issuer] if args.key?(:issuer)
145
+ @oidc_jwks = args[:oidc_jwks] if args.key?(:oidc_jwks)
146
+ @workload_identity_pool = args[:workload_identity_pool] if args.key?(:workload_identity_pool)
147
+ end
148
+ end
149
+
96
150
  # Associates `members` with a `role`.
97
151
  class Binding
98
152
  include Google::Apis::Core::Hashable
@@ -322,16 +376,21 @@ module Google
322
376
  class ConfigManagementConfigSync
323
377
  include Google::Apis::Core::Hashable
324
378
 
379
+ # Enables the installation of ConfigSync. If set to true, ConfigSync resources
380
+ # will be created and the other ConfigSync fields will be applied if exist. If
381
+ # set to false, all other ConfigSync fields will be ignored, ConfigSync
382
+ # resources will be deleted. If omitted, ConfigSync resources will be managed
383
+ # depends on the presence of git field.
384
+ # Corresponds to the JSON property `enabled`
385
+ # @return [Boolean]
386
+ attr_accessor :enabled
387
+ alias_method :enabled?, :enabled
388
+
325
389
  # Git repo configuration for a single cluster.
326
390
  # Corresponds to the JSON property `git`
327
391
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementGitConfig]
328
392
  attr_accessor :git
329
393
 
330
- # Specifies CPU and memory limits for containers, keyed by container name
331
- # Corresponds to the JSON property `resourceRequirements`
332
- # @return [Hash<String,Google::Apis::GkehubV1alpha::ConfigManagementContainerResourceRequirements>]
333
- attr_accessor :resource_requirements
334
-
335
394
  # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured”
336
395
  # mode.
337
396
  # Corresponds to the JSON property `sourceFormat`
@@ -344,8 +403,8 @@ module Google
344
403
 
345
404
  # Update properties of this object
346
405
  def update!(**args)
406
+ @enabled = args[:enabled] if args.key?(:enabled)
347
407
  @git = args[:git] if args.key?(:git)
348
- @resource_requirements = args[:resource_requirements] if args.key?(:resource_requirements)
349
408
  @source_format = args[:source_format] if args.key?(:source_format)
350
409
  end
351
410
  end
@@ -491,42 +550,6 @@ module Google
491
550
  end
492
551
  end
493
552
 
494
- # ResourceRequirements allows to override the CPU and memory resource
495
- # requirements of a container.
496
- class ConfigManagementContainerResourceRequirements
497
- include Google::Apis::Core::Hashable
498
-
499
- # Name of the container
500
- # Corresponds to the JSON property `containerName`
501
- # @return [String]
502
- attr_accessor :container_name
503
-
504
- # The view model of a single quantity, e.g. "800 MiB". Corresponds to https://
505
- # github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
506
- # pkg/api/resource/generated.proto
507
- # Corresponds to the JSON property `cpuLimit`
508
- # @return [Google::Apis::GkehubV1alpha::ConfigManagementQuantity]
509
- attr_accessor :cpu_limit
510
-
511
- # The view model of a single quantity, e.g. "800 MiB". Corresponds to https://
512
- # github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
513
- # pkg/api/resource/generated.proto
514
- # Corresponds to the JSON property `memoryLimit`
515
- # @return [Google::Apis::GkehubV1alpha::ConfigManagementQuantity]
516
- attr_accessor :memory_limit
517
-
518
- def initialize(**args)
519
- update!(**args)
520
- end
521
-
522
- # Update properties of this object
523
- def update!(**args)
524
- @container_name = args[:container_name] if args.key?(:container_name)
525
- @cpu_limit = args[:cpu_limit] if args.key?(:cpu_limit)
526
- @memory_limit = args[:memory_limit] if args.key?(:memory_limit)
527
- end
528
- end
529
-
530
553
  # Model for a config file in the git repo with an associated Sync error
531
554
  class ConfigManagementErrorResource
532
555
  include Google::Apis::Core::Hashable
@@ -610,12 +633,6 @@ module Google
610
633
  # @return [String]
611
634
  attr_accessor :https_proxy
612
635
 
613
- # Enable or disable the SSL certificate verification Default: false.
614
- # Corresponds to the JSON property `noSslVerify`
615
- # @return [Boolean]
616
- attr_accessor :no_ssl_verify
617
- alias_method :no_ssl_verify?, :no_ssl_verify
618
-
619
636
  # The path within the Git repository that represents the top level of the repo
620
637
  # to sync. Default: the root directory of the repository.
621
638
  # Corresponds to the JSON property `policyDir`
@@ -632,11 +649,6 @@ module Google
632
649
  # @return [String]
633
650
  attr_accessor :sync_branch
634
651
 
635
- # The depth of git commits synced by the git-sync container.
636
- # Corresponds to the JSON property `syncDepth`
637
- # @return [Fixnum]
638
- attr_accessor :sync_depth
639
-
640
652
  # The URL of the Git repository to use as the source of truth.
641
653
  # Corresponds to the JSON property `syncRepo`
642
654
  # @return [String]
@@ -660,11 +672,9 @@ module Google
660
672
  def update!(**args)
661
673
  @gcp_service_account_email = args[:gcp_service_account_email] if args.key?(:gcp_service_account_email)
662
674
  @https_proxy = args[:https_proxy] if args.key?(:https_proxy)
663
- @no_ssl_verify = args[:no_ssl_verify] if args.key?(:no_ssl_verify)
664
675
  @policy_dir = args[:policy_dir] if args.key?(:policy_dir)
665
676
  @secret_type = args[:secret_type] if args.key?(:secret_type)
666
677
  @sync_branch = args[:sync_branch] if args.key?(:sync_branch)
667
- @sync_depth = args[:sync_depth] if args.key?(:sync_depth)
668
678
  @sync_repo = args[:sync_repo] if args.key?(:sync_repo)
669
679
  @sync_rev = args[:sync_rev] if args.key?(:sync_rev)
670
680
  @sync_wait_secs = args[:sync_wait_secs] if args.key?(:sync_wait_secs)
@@ -1073,27 +1083,6 @@ module Google
1073
1083
  end
1074
1084
  end
1075
1085
 
1076
- # The view model of a single quantity, e.g. "800 MiB". Corresponds to https://
1077
- # github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
1078
- # pkg/api/resource/generated.proto
1079
- class ConfigManagementQuantity
1080
- include Google::Apis::Core::Hashable
1081
-
1082
- # Stringified version of the quantity, e.g., "800 MiB".
1083
- # Corresponds to the JSON property `string`
1084
- # @return [String]
1085
- attr_accessor :string
1086
-
1087
- def initialize(**args)
1088
- update!(**args)
1089
- end
1090
-
1091
- # Update properties of this object
1092
- def update!(**args)
1093
- @string = args[:string] if args.key?(:string)
1094
- end
1095
- end
1096
-
1097
1086
  # An ACM created error representing a problem syncing configurations
1098
1087
  class ConfigManagementSyncError
1099
1088
  include Google::Apis::Core::Hashable
@@ -1400,6 +1389,35 @@ module Google
1400
1389
  end
1401
1390
  end
1402
1391
 
1392
+ # GkeCluster contains information specific to GKE clusters.
1393
+ class GkeCluster
1394
+ include Google::Apis::Core::Hashable
1395
+
1396
+ # Output only. If cluster_missing is set then it denotes that the GKE cluster no
1397
+ # longer exists in the GKE Control Plane.
1398
+ # Corresponds to the JSON property `clusterMissing`
1399
+ # @return [Boolean]
1400
+ attr_accessor :cluster_missing
1401
+ alias_method :cluster_missing?, :cluster_missing
1402
+
1403
+ # Immutable. Self-link of the GCP resource for the GKE cluster. For example: //
1404
+ # container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-
1405
+ # cluster Zonal clusters are also supported.
1406
+ # Corresponds to the JSON property `resourceLink`
1407
+ # @return [String]
1408
+ attr_accessor :resource_link
1409
+
1410
+ def initialize(**args)
1411
+ update!(**args)
1412
+ end
1413
+
1414
+ # Update properties of this object
1415
+ def update!(**args)
1416
+ @cluster_missing = args[:cluster_missing] if args.key?(:cluster_missing)
1417
+ @resource_link = args[:resource_link] if args.key?(:resource_link)
1418
+ end
1419
+ end
1420
+
1403
1421
  # The `Status` type defines a logical error model that is suitable for different
1404
1422
  # programming environments, including REST APIs and RPC APIs. It is used by [
1405
1423
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1611,6 +1629,95 @@ module Google
1611
1629
  end
1612
1630
  end
1613
1631
 
1632
+ # KubernetesMetadata provides informational metadata for Memberships
1633
+ # representing Kubernetes clusters.
1634
+ class KubernetesMetadata
1635
+ include Google::Apis::Core::Hashable
1636
+
1637
+ # Output only. Kubernetes API server version string as reported by `/version`.
1638
+ # Corresponds to the JSON property `kubernetesApiServerVersion`
1639
+ # @return [String]
1640
+ attr_accessor :kubernetes_api_server_version
1641
+
1642
+ # Output only. The total memory capacity as reported by the sum of all
1643
+ # Kubernetes nodes resources, defined in MB.
1644
+ # Corresponds to the JSON property `memoryMb`
1645
+ # @return [Fixnum]
1646
+ attr_accessor :memory_mb
1647
+
1648
+ # Output only. Node count as reported by Kubernetes nodes resources.
1649
+ # Corresponds to the JSON property `nodeCount`
1650
+ # @return [Fixnum]
1651
+ attr_accessor :node_count
1652
+
1653
+ # Output only. Node providerID as reported by the first node in the list of
1654
+ # nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-
1655
+ # node clusters (like GKE-on-GCP), the node_count will be zero and the
1656
+ # node_provider_id will be empty.
1657
+ # Corresponds to the JSON property `nodeProviderId`
1658
+ # @return [String]
1659
+ attr_accessor :node_provider_id
1660
+
1661
+ # Output only. The time at which these details were last updated. This
1662
+ # update_time is different from the Membership-level update_time since
1663
+ # EndpointDetails are updated internally for API consumers.
1664
+ # Corresponds to the JSON property `updateTime`
1665
+ # @return [String]
1666
+ attr_accessor :update_time
1667
+
1668
+ # Output only. vCPU count as reported by Kubernetes nodes resources.
1669
+ # Corresponds to the JSON property `vcpuCount`
1670
+ # @return [Fixnum]
1671
+ attr_accessor :vcpu_count
1672
+
1673
+ def initialize(**args)
1674
+ update!(**args)
1675
+ end
1676
+
1677
+ # Update properties of this object
1678
+ def update!(**args)
1679
+ @kubernetes_api_server_version = args[:kubernetes_api_server_version] if args.key?(:kubernetes_api_server_version)
1680
+ @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
1681
+ @node_count = args[:node_count] if args.key?(:node_count)
1682
+ @node_provider_id = args[:node_provider_id] if args.key?(:node_provider_id)
1683
+ @update_time = args[:update_time] if args.key?(:update_time)
1684
+ @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
1685
+ end
1686
+ end
1687
+
1688
+ # Response message for the `GkeHub.ListAdminClusterMemberships` method.
1689
+ class ListAdminClusterMembershipsResponse
1690
+ include Google::Apis::Core::Hashable
1691
+
1692
+ # The list of matching Memberships of admin clusters.
1693
+ # Corresponds to the JSON property `adminClusterMemberships`
1694
+ # @return [Array<Google::Apis::GkehubV1alpha::Membership>]
1695
+ attr_accessor :admin_cluster_memberships
1696
+
1697
+ # A token to request the next page of resources from the `
1698
+ # ListAdminClusterMemberships` method. The value of an empty string means that
1699
+ # there are no more resources to return.
1700
+ # Corresponds to the JSON property `nextPageToken`
1701
+ # @return [String]
1702
+ attr_accessor :next_page_token
1703
+
1704
+ # List of locations that could not be reached while fetching this list.
1705
+ # Corresponds to the JSON property `unreachable`
1706
+ # @return [Array<String>]
1707
+ attr_accessor :unreachable
1708
+
1709
+ def initialize(**args)
1710
+ update!(**args)
1711
+ end
1712
+
1713
+ # Update properties of this object
1714
+ def update!(**args)
1715
+ @admin_cluster_memberships = args[:admin_cluster_memberships] if args.key?(:admin_cluster_memberships)
1716
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1717
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1718
+ end
1719
+ end
1720
+
1614
1721
  # Response message for the `GkeHub.ListFeatures` method.
1615
1722
  class ListFeaturesResponse
1616
1723
  include Google::Apis::Core::Hashable
@@ -1734,6 +1841,148 @@ module Google
1734
1841
  end
1735
1842
  end
1736
1843
 
1844
+ # Membership contains information about a member cluster.
1845
+ class Membership
1846
+ include Google::Apis::Core::Hashable
1847
+
1848
+ # Authority encodes how Google will recognize identities from this Membership.
1849
+ # See the workload identity documentation for more details: https://cloud.google.
1850
+ # com/kubernetes-engine/docs/how-to/workload-identity
1851
+ # Corresponds to the JSON property `authority`
1852
+ # @return [Google::Apis::GkehubV1alpha::Authority]
1853
+ attr_accessor :authority
1854
+
1855
+ # Output only. When the Membership was created.
1856
+ # Corresponds to the JSON property `createTime`
1857
+ # @return [String]
1858
+ attr_accessor :create_time
1859
+
1860
+ # Output only. When the Membership was deleted.
1861
+ # Corresponds to the JSON property `deleteTime`
1862
+ # @return [String]
1863
+ attr_accessor :delete_time
1864
+
1865
+ # Output only. Description of this membership, limited to 63 characters. Must
1866
+ # match the regex: `a-zA-Z0-9*` This field is present for legacy purposes.
1867
+ # Corresponds to the JSON property `description`
1868
+ # @return [String]
1869
+ attr_accessor :description
1870
+
1871
+ # MembershipEndpoint contains information needed to contact a Kubernetes API,
1872
+ # endpoint and any additional Kubernetes metadata.
1873
+ # Corresponds to the JSON property `endpoint`
1874
+ # @return [Google::Apis::GkehubV1alpha::MembershipEndpoint]
1875
+ attr_accessor :endpoint
1876
+
1877
+ # Optional. An externally-generated and managed ID for this Membership. This ID
1878
+ # may be modified after creation, but this is not recommended. The ID must match
1879
+ # the regex: `a-zA-Z0-9*` If this Membership represents a Kubernetes cluster,
1880
+ # this value should be set to the UID of the `kube-system` namespace object.
1881
+ # Corresponds to the JSON property `externalId`
1882
+ # @return [String]
1883
+ attr_accessor :external_id
1884
+
1885
+ # Optional. GCP labels for this membership.
1886
+ # Corresponds to the JSON property `labels`
1887
+ # @return [Hash<String,String>]
1888
+ attr_accessor :labels
1889
+
1890
+ # Output only. For clusters using Connect, the timestamp of the most recent
1891
+ # connection established with Google Cloud. This time is updated every several
1892
+ # minutes, not continuously. For clusters that do not use GKE Connect, or that
1893
+ # have never connected successfully, this field will be unset.
1894
+ # Corresponds to the JSON property `lastConnectionTime`
1895
+ # @return [String]
1896
+ attr_accessor :last_connection_time
1897
+
1898
+ # Output only. The full, unique name of this Membership resource in the format `
1899
+ # projects/*/locations/*/memberships/`membership_id``, set during creation. `
1900
+ # membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63
1901
+ # characters in length 2. It must consist of lower case alphanumeric characters
1902
+ # or `-` 3. It must start and end with an alphanumeric character Which can be
1903
+ # expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length
1904
+ # of 63 characters.
1905
+ # Corresponds to the JSON property `name`
1906
+ # @return [String]
1907
+ attr_accessor :name
1908
+
1909
+ # MembershipState describes the state of a Membership resource.
1910
+ # Corresponds to the JSON property `state`
1911
+ # @return [Google::Apis::GkehubV1alpha::MembershipState]
1912
+ attr_accessor :state
1913
+
1914
+ # Output only. Google-generated UUID for this resource. This is unique across
1915
+ # all Membership resources. If a Membership resource is deleted and another
1916
+ # resource with the same name is created, it gets a different unique_id.
1917
+ # Corresponds to the JSON property `uniqueId`
1918
+ # @return [String]
1919
+ attr_accessor :unique_id
1920
+
1921
+ # Output only. When the Membership was last updated.
1922
+ # Corresponds to the JSON property `updateTime`
1923
+ # @return [String]
1924
+ attr_accessor :update_time
1925
+
1926
+ def initialize(**args)
1927
+ update!(**args)
1928
+ end
1929
+
1930
+ # Update properties of this object
1931
+ def update!(**args)
1932
+ @authority = args[:authority] if args.key?(:authority)
1933
+ @create_time = args[:create_time] if args.key?(:create_time)
1934
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1935
+ @description = args[:description] if args.key?(:description)
1936
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
1937
+ @external_id = args[:external_id] if args.key?(:external_id)
1938
+ @labels = args[:labels] if args.key?(:labels)
1939
+ @last_connection_time = args[:last_connection_time] if args.key?(:last_connection_time)
1940
+ @name = args[:name] if args.key?(:name)
1941
+ @state = args[:state] if args.key?(:state)
1942
+ @unique_id = args[:unique_id] if args.key?(:unique_id)
1943
+ @update_time = args[:update_time] if args.key?(:update_time)
1944
+ end
1945
+ end
1946
+
1947
+ # MembershipEndpoint contains information needed to contact a Kubernetes API,
1948
+ # endpoint and any additional Kubernetes metadata.
1949
+ class MembershipEndpoint
1950
+ include Google::Apis::Core::Hashable
1951
+
1952
+ # GkeCluster contains information specific to GKE clusters.
1953
+ # Corresponds to the JSON property `gkeCluster`
1954
+ # @return [Google::Apis::GkehubV1alpha::GkeCluster]
1955
+ attr_accessor :gke_cluster
1956
+
1957
+ # KubernetesMetadata provides informational metadata for Memberships
1958
+ # representing Kubernetes clusters.
1959
+ # Corresponds to the JSON property `kubernetesMetadata`
1960
+ # @return [Google::Apis::GkehubV1alpha::KubernetesMetadata]
1961
+ attr_accessor :kubernetes_metadata
1962
+
1963
+ # MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
1964
+ # Corresponds to the JSON property `multiCloudCluster`
1965
+ # @return [Google::Apis::GkehubV1alpha::MultiCloudCluster]
1966
+ attr_accessor :multi_cloud_cluster
1967
+
1968
+ # OnPremCluster contains information specific to GKE On-Prem clusters.
1969
+ # Corresponds to the JSON property `onPremCluster`
1970
+ # @return [Google::Apis::GkehubV1alpha::OnPremCluster]
1971
+ attr_accessor :on_prem_cluster
1972
+
1973
+ def initialize(**args)
1974
+ update!(**args)
1975
+ end
1976
+
1977
+ # Update properties of this object
1978
+ def update!(**args)
1979
+ @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
1980
+ @kubernetes_metadata = args[:kubernetes_metadata] if args.key?(:kubernetes_metadata)
1981
+ @multi_cloud_cluster = args[:multi_cloud_cluster] if args.key?(:multi_cloud_cluster)
1982
+ @on_prem_cluster = args[:on_prem_cluster] if args.key?(:on_prem_cluster)
1983
+ end
1984
+ end
1985
+
1737
1986
  # MembershipFeatureSpec contains configuration information for a single
1738
1987
  # Membership.
1739
1988
  class MembershipFeatureSpec
@@ -1808,6 +2057,25 @@ module Google
1808
2057
  end
1809
2058
  end
1810
2059
 
2060
+ # MembershipState describes the state of a Membership resource.
2061
+ class MembershipState
2062
+ include Google::Apis::Core::Hashable
2063
+
2064
+ # Output only. The current state of the Membership resource.
2065
+ # Corresponds to the JSON property `code`
2066
+ # @return [String]
2067
+ attr_accessor :code
2068
+
2069
+ def initialize(**args)
2070
+ update!(**args)
2071
+ end
2072
+
2073
+ # Update properties of this object
2074
+ def update!(**args)
2075
+ @code = args[:code] if args.key?(:code)
2076
+ end
2077
+ end
2078
+
1811
2079
  # **Metering**: Per-Membership Feature State.
1812
2080
  class MeteringMembershipState
1813
2081
  include Google::Apis::Core::Hashable
@@ -1835,6 +2103,36 @@ module Google
1835
2103
  end
1836
2104
  end
1837
2105
 
2106
+ # MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
2107
+ class MultiCloudCluster
2108
+ include Google::Apis::Core::Hashable
2109
+
2110
+ # Output only. If cluster_missing is set then it denotes that API(gkemulticloud.
2111
+ # googleapis.com) resource for this GKE Multi-Cloud cluster no longer exists.
2112
+ # Corresponds to the JSON property `clusterMissing`
2113
+ # @return [Boolean]
2114
+ attr_accessor :cluster_missing
2115
+ alias_method :cluster_missing?, :cluster_missing
2116
+
2117
+ # Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
2118
+ # example: //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-
2119
+ # a/awsClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/
2120
+ # locations/us-west1-a/azureClusters/my-cluster
2121
+ # Corresponds to the JSON property `resourceLink`
2122
+ # @return [String]
2123
+ attr_accessor :resource_link
2124
+
2125
+ def initialize(**args)
2126
+ update!(**args)
2127
+ end
2128
+
2129
+ # Update properties of this object
2130
+ def update!(**args)
2131
+ @cluster_missing = args[:cluster_missing] if args.key?(:cluster_missing)
2132
+ @resource_link = args[:resource_link] if args.key?(:resource_link)
2133
+ end
2134
+ end
2135
+
1838
2136
  # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
1839
2137
  # feature.
1840
2138
  class MultiClusterIngressFeatureSpec
@@ -1863,6 +2161,43 @@ module Google
1863
2161
  end
1864
2162
  end
1865
2163
 
2164
+ # OnPremCluster contains information specific to GKE On-Prem clusters.
2165
+ class OnPremCluster
2166
+ include Google::Apis::Core::Hashable
2167
+
2168
+ # Immutable. Whether the cluster is an admin cluster.
2169
+ # Corresponds to the JSON property `adminCluster`
2170
+ # @return [Boolean]
2171
+ attr_accessor :admin_cluster
2172
+ alias_method :admin_cluster?, :admin_cluster
2173
+
2174
+ # Output only. If cluster_missing is set then it denotes that API(gkeonprem.
2175
+ # googleapis.com) resource for this GKE On-Prem cluster no longer exists.
2176
+ # Corresponds to the JSON property `clusterMissing`
2177
+ # @return [Boolean]
2178
+ attr_accessor :cluster_missing
2179
+ alias_method :cluster_missing?, :cluster_missing
2180
+
2181
+ # Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For
2182
+ # example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/
2183
+ # vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/
2184
+ # locations/us-west1-a/bareMetalClusters/my-cluster
2185
+ # Corresponds to the JSON property `resourceLink`
2186
+ # @return [String]
2187
+ attr_accessor :resource_link
2188
+
2189
+ def initialize(**args)
2190
+ update!(**args)
2191
+ end
2192
+
2193
+ # Update properties of this object
2194
+ def update!(**args)
2195
+ @admin_cluster = args[:admin_cluster] if args.key?(:admin_cluster)
2196
+ @cluster_missing = args[:cluster_missing] if args.key?(:cluster_missing)
2197
+ @resource_link = args[:resource_link] if args.key?(:resource_link)
2198
+ end
2199
+ end
2200
+
1866
2201
  # This resource represents a long-running operation that is the result of a
1867
2202
  # network API call.
1868
2203
  class Operation
@@ -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.11.0"
19
+ GEM_VERSION = "0.12.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 = "20210920"
25
+ REVISION = "20210927"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class Authority
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Binding
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -106,12 +112,6 @@ module Google
106
112
  include Google::Apis::Core::JsonObjectSupport
107
113
  end
108
114
 
109
- class ConfigManagementContainerResourceRequirements
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
115
  class ConfigManagementErrorResource
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
@@ -202,12 +202,6 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
- class ConfigManagementQuantity
206
- class Representation < Google::Apis::Core::JsonRepresentation; end
207
-
208
- include Google::Apis::Core::JsonObjectSupport
209
- end
210
-
211
205
  class ConfigManagementSyncError
212
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
207
 
@@ -250,6 +244,12 @@ module Google
250
244
  include Google::Apis::Core::JsonObjectSupport
251
245
  end
252
246
 
247
+ class GkeCluster
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
253
  class GoogleRpcStatus
254
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
255
 
@@ -280,6 +280,18 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class KubernetesMetadata
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class ListAdminClusterMembershipsResponse
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
283
295
  class ListFeaturesResponse
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -304,6 +316,18 @@ module Google
304
316
  include Google::Apis::Core::JsonObjectSupport
305
317
  end
306
318
 
319
+ class Membership
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class MembershipEndpoint
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
307
331
  class MembershipFeatureSpec
308
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
333
 
@@ -316,18 +340,36 @@ module Google
316
340
  include Google::Apis::Core::JsonObjectSupport
317
341
  end
318
342
 
343
+ class MembershipState
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
319
349
  class MeteringMembershipState
320
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
351
 
322
352
  include Google::Apis::Core::JsonObjectSupport
323
353
  end
324
354
 
355
+ class MultiCloudCluster
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
325
361
  class MultiClusterIngressFeatureSpec
326
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
363
 
328
364
  include Google::Apis::Core::JsonObjectSupport
329
365
  end
330
366
 
367
+ class OnPremCluster
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
331
373
  class Operation
332
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
375
 
@@ -411,6 +453,16 @@ module Google
411
453
  end
412
454
  end
413
455
 
456
+ class Authority
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :identity_provider, as: 'identityProvider'
460
+ property :issuer, as: 'issuer'
461
+ property :oidc_jwks, :base64 => true, as: 'oidcJwks'
462
+ property :workload_identity_pool, as: 'workloadIdentityPool'
463
+ end
464
+ end
465
+
414
466
  class Binding
415
467
  # @private
416
468
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -480,10 +532,9 @@ module Google
480
532
  class ConfigManagementConfigSync
481
533
  # @private
482
534
  class Representation < Google::Apis::Core::JsonRepresentation
535
+ property :enabled, as: 'enabled'
483
536
  property :git, as: 'git', class: Google::Apis::GkehubV1alpha::ConfigManagementGitConfig, decorator: Google::Apis::GkehubV1alpha::ConfigManagementGitConfig::Representation
484
537
 
485
- hash :resource_requirements, as: 'resourceRequirements', class: Google::Apis::GkehubV1alpha::ConfigManagementContainerResourceRequirements, decorator: Google::Apis::GkehubV1alpha::ConfigManagementContainerResourceRequirements::Representation
486
-
487
538
  property :source_format, as: 'sourceFormat'
488
539
  end
489
540
  end
@@ -526,17 +577,6 @@ module Google
526
577
  end
527
578
  end
528
579
 
529
- class ConfigManagementContainerResourceRequirements
530
- # @private
531
- class Representation < Google::Apis::Core::JsonRepresentation
532
- property :container_name, as: 'containerName'
533
- property :cpu_limit, as: 'cpuLimit', class: Google::Apis::GkehubV1alpha::ConfigManagementQuantity, decorator: Google::Apis::GkehubV1alpha::ConfigManagementQuantity::Representation
534
-
535
- property :memory_limit, as: 'memoryLimit', class: Google::Apis::GkehubV1alpha::ConfigManagementQuantity, decorator: Google::Apis::GkehubV1alpha::ConfigManagementQuantity::Representation
536
-
537
- end
538
- end
539
-
540
580
  class ConfigManagementErrorResource
541
581
  # @private
542
582
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -562,11 +602,9 @@ module Google
562
602
  class Representation < Google::Apis::Core::JsonRepresentation
563
603
  property :gcp_service_account_email, as: 'gcpServiceAccountEmail'
564
604
  property :https_proxy, as: 'httpsProxy'
565
- property :no_ssl_verify, as: 'noSslVerify'
566
605
  property :policy_dir, as: 'policyDir'
567
606
  property :secret_type, as: 'secretType'
568
607
  property :sync_branch, as: 'syncBranch'
569
- property :sync_depth, :numeric_string => true, as: 'syncDepth'
570
608
  property :sync_repo, as: 'syncRepo'
571
609
  property :sync_rev, as: 'syncRev'
572
610
  property :sync_wait_secs, :numeric_string => true, as: 'syncWaitSecs'
@@ -698,13 +736,6 @@ module Google
698
736
  end
699
737
  end
700
738
 
701
- class ConfigManagementQuantity
702
- # @private
703
- class Representation < Google::Apis::Core::JsonRepresentation
704
- property :string, as: 'string'
705
- end
706
- end
707
-
708
739
  class ConfigManagementSyncError
709
740
  # @private
710
741
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -782,6 +813,14 @@ module Google
782
813
  end
783
814
  end
784
815
 
816
+ class GkeCluster
817
+ # @private
818
+ class Representation < Google::Apis::Core::JsonRepresentation
819
+ property :cluster_missing, as: 'clusterMissing'
820
+ property :resource_link, as: 'resourceLink'
821
+ end
822
+ end
823
+
785
824
  class GoogleRpcStatus
786
825
  # @private
787
826
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -837,6 +876,28 @@ module Google
837
876
  end
838
877
  end
839
878
 
879
+ class KubernetesMetadata
880
+ # @private
881
+ class Representation < Google::Apis::Core::JsonRepresentation
882
+ property :kubernetes_api_server_version, as: 'kubernetesApiServerVersion'
883
+ property :memory_mb, as: 'memoryMb'
884
+ property :node_count, as: 'nodeCount'
885
+ property :node_provider_id, as: 'nodeProviderId'
886
+ property :update_time, as: 'updateTime'
887
+ property :vcpu_count, as: 'vcpuCount'
888
+ end
889
+ end
890
+
891
+ class ListAdminClusterMembershipsResponse
892
+ # @private
893
+ class Representation < Google::Apis::Core::JsonRepresentation
894
+ collection :admin_cluster_memberships, as: 'adminClusterMemberships', class: Google::Apis::GkehubV1alpha::Membership, decorator: Google::Apis::GkehubV1alpha::Membership::Representation
895
+
896
+ property :next_page_token, as: 'nextPageToken'
897
+ collection :unreachable, as: 'unreachable'
898
+ end
899
+ end
900
+
840
901
  class ListFeaturesResponse
841
902
  # @private
842
903
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -875,6 +936,41 @@ module Google
875
936
  end
876
937
  end
877
938
 
939
+ class Membership
940
+ # @private
941
+ class Representation < Google::Apis::Core::JsonRepresentation
942
+ property :authority, as: 'authority', class: Google::Apis::GkehubV1alpha::Authority, decorator: Google::Apis::GkehubV1alpha::Authority::Representation
943
+
944
+ property :create_time, as: 'createTime'
945
+ property :delete_time, as: 'deleteTime'
946
+ property :description, as: 'description'
947
+ property :endpoint, as: 'endpoint', class: Google::Apis::GkehubV1alpha::MembershipEndpoint, decorator: Google::Apis::GkehubV1alpha::MembershipEndpoint::Representation
948
+
949
+ property :external_id, as: 'externalId'
950
+ hash :labels, as: 'labels'
951
+ property :last_connection_time, as: 'lastConnectionTime'
952
+ property :name, as: 'name'
953
+ property :state, as: 'state', class: Google::Apis::GkehubV1alpha::MembershipState, decorator: Google::Apis::GkehubV1alpha::MembershipState::Representation
954
+
955
+ property :unique_id, as: 'uniqueId'
956
+ property :update_time, as: 'updateTime'
957
+ end
958
+ end
959
+
960
+ class MembershipEndpoint
961
+ # @private
962
+ class Representation < Google::Apis::Core::JsonRepresentation
963
+ property :gke_cluster, as: 'gkeCluster', class: Google::Apis::GkehubV1alpha::GkeCluster, decorator: Google::Apis::GkehubV1alpha::GkeCluster::Representation
964
+
965
+ property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1alpha::KubernetesMetadata, decorator: Google::Apis::GkehubV1alpha::KubernetesMetadata::Representation
966
+
967
+ property :multi_cloud_cluster, as: 'multiCloudCluster', class: Google::Apis::GkehubV1alpha::MultiCloudCluster, decorator: Google::Apis::GkehubV1alpha::MultiCloudCluster::Representation
968
+
969
+ property :on_prem_cluster, as: 'onPremCluster', class: Google::Apis::GkehubV1alpha::OnPremCluster, decorator: Google::Apis::GkehubV1alpha::OnPremCluster::Representation
970
+
971
+ end
972
+ end
973
+
878
974
  class MembershipFeatureSpec
879
975
  # @private
880
976
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -901,6 +997,13 @@ module Google
901
997
  end
902
998
  end
903
999
 
1000
+ class MembershipState
1001
+ # @private
1002
+ class Representation < Google::Apis::Core::JsonRepresentation
1003
+ property :code, as: 'code'
1004
+ end
1005
+ end
1006
+
904
1007
  class MeteringMembershipState
905
1008
  # @private
906
1009
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -909,6 +1012,14 @@ module Google
909
1012
  end
910
1013
  end
911
1014
 
1015
+ class MultiCloudCluster
1016
+ # @private
1017
+ class Representation < Google::Apis::Core::JsonRepresentation
1018
+ property :cluster_missing, as: 'clusterMissing'
1019
+ property :resource_link, as: 'resourceLink'
1020
+ end
1021
+ end
1022
+
912
1023
  class MultiClusterIngressFeatureSpec
913
1024
  # @private
914
1025
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -917,6 +1028,15 @@ module Google
917
1028
  end
918
1029
  end
919
1030
 
1031
+ class OnPremCluster
1032
+ # @private
1033
+ class Representation < Google::Apis::Core::JsonRepresentation
1034
+ property :admin_cluster, as: 'adminCluster'
1035
+ property :cluster_missing, as: 'clusterMissing'
1036
+ property :resource_link, as: 'resourceLink'
1037
+ end
1038
+ end
1039
+
920
1040
  class Operation
921
1041
  # @private
922
1042
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -503,6 +503,55 @@ module Google
503
503
  execute_or_queue_command(command, &block)
504
504
  end
505
505
 
506
+ # Lists Memberships of admin clusters in a given project and location. **This
507
+ # method is only used internally**.
508
+ # @param [String] parent
509
+ # Required. The parent (project and location) where the Memberships of admin
510
+ # cluster will be listed. Specified in the format `projects/*/locations/*`.
511
+ # @param [String] filter
512
+ # Optional. Lists Memberships of admin clusters that match the filter expression.
513
+ # @param [String] order_by
514
+ # Optional. One or more fields to compare and use to sort the output. See https:/
515
+ # /google.aip.dev/132#ordering.
516
+ # @param [Fixnum] page_size
517
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
518
+ # of resources to return. If unspecified or set to 0, all resources will be
519
+ # returned.
520
+ # @param [String] page_token
521
+ # Optional. Token returned by previous call to `ListAdminClusterMemberships`
522
+ # which specifies the position in the list from where to continue listing the
523
+ # resources.
524
+ # @param [String] fields
525
+ # Selector specifying which fields to include in a partial response.
526
+ # @param [String] quota_user
527
+ # Available to use for quota purposes for server-side applications. Can be any
528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
529
+ # @param [Google::Apis::RequestOptions] options
530
+ # Request-specific options
531
+ #
532
+ # @yield [result, err] Result & error if block supplied
533
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse] parsed result object
534
+ # @yieldparam err [StandardError] error object if request failed
535
+ #
536
+ # @return [Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse]
537
+ #
538
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
539
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
540
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
541
+ def list_project_location_membership_admin(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
542
+ command = make_simple_command(:get, 'v1alpha/{+parent}/memberships:listAdmin', options)
543
+ command.response_representation = Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse::Representation
544
+ command.response_class = Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse
545
+ command.params['parent'] = parent unless parent.nil?
546
+ command.query['filter'] = filter unless filter.nil?
547
+ command.query['orderBy'] = order_by unless order_by.nil?
548
+ command.query['pageSize'] = page_size unless page_size.nil?
549
+ command.query['pageToken'] = page_token unless page_token.nil?
550
+ command.query['fields'] = fields unless fields.nil?
551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
552
+ execute_or_queue_command(command, &block)
553
+ end
554
+
506
555
  # Sets the access control policy on the specified resource. Replaces any
507
556
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
508
557
  # PERMISSION_DENIED` errors.
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.11.0
4
+ version: 0.12.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-09-27 00:00:00.000000000 Z
11
+ date: 2021-10-11 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/master/generated/google-apis-gkehub_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []