google-apis-gkehub_v1alpha 0.12.0 → 0.13.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: d8f1c7b78c35eaadfb1539f48159c42cfe4d896af96583cf7d78b7cbf0de1fc9
4
- data.tar.gz: 3cdfb96418cc4eedb22c985488f4cb0aedddfe7020824a2a046091da413e25c2
3
+ metadata.gz: 946712dd56cbe486bf92ec8790cd4ac3359f459fe9188de6f9e904d74e20022f
4
+ data.tar.gz: 242a171b2cec6a8858273f97fec7924940908d0f6d601d3c641f573afd012e58
5
5
  SHA512:
6
- metadata.gz: f99f2771dc664952d91e4e332c3291085c3eee5e1896626655fc8c3e11718d8d6fa9059addc3e407f5058e7a5a2552496c9ef02289d4632a10a3bf01e35bb21e
7
- data.tar.gz: e35877636d786bae3cf32d86a73b99c074b75721fe0d8a2eb7116ca8c9cf58392408d2c5e46d35fa3871bb083fb57be05206662b9aca196fdfc149f49cce80f5
6
+ metadata.gz: 3b47bd30c454abfeab1e183469ce5ef609d7c154e5fda72e7c03053e66925dc3a541544824cb18249f45b1f50d8408b9625efeaa6e81b2cb9d85a8af2e52713c
7
+ data.tar.gz: 88a0ed968b8fae319736e8c3a543dfb9f9c56ca445eed41f70dbcb1b165d1f3a50922bdd8c65929a1d0fcb73656065c2cabdb5f5172a4d93129f7565cb30aeee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.13.0 (2021-10-24)
4
+
5
+ * Regenerated from discovery document revision 20211015
6
+ * Unspecified changes
7
+
3
8
  ### v0.12.0 (2021-10-04)
4
9
 
5
10
  * Regenerated from discovery document revision 20210927
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Gkehub service in particular.)
67
67
 
@@ -147,7 +147,7 @@ module Google
147
147
  end
148
148
  end
149
149
 
150
- # Associates `members` with a `role`.
150
+ # Associates `members`, or principals, with a `role`.
151
151
  class Binding
152
152
  include Google::Apis::Core::Hashable
153
153
 
@@ -170,7 +170,7 @@ module Google
170
170
  # @return [Google::Apis::GkehubV1alpha::Expr]
171
171
  attr_accessor :condition
172
172
 
173
- # Specifies the identities requesting access for a Cloud Platform resource. `
173
+ # Specifies the principals requesting access for a Cloud Platform resource. `
174
174
  # members` can have the following values: * `allUsers`: A special identifier
175
175
  # that represents anyone who is on the internet; with or without a Google
176
176
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -200,8 +200,8 @@ module Google
200
200
  # @return [Array<String>]
201
201
  attr_accessor :members
202
202
 
203
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
204
- # , or `roles/owner`.
203
+ # Role that is assigned to the list of `members`, or principals. For example, `
204
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
205
205
  # Corresponds to the JSON property `role`
206
206
  # @return [String]
207
207
  attr_accessor :role
@@ -1173,6 +1173,33 @@ module Google
1173
1173
  end
1174
1174
  end
1175
1175
 
1176
+ # ConnectAgentResource represents a Kubernetes resource manifest for Connect
1177
+ # Agent deployment.
1178
+ class ConnectAgentResource
1179
+ include Google::Apis::Core::Hashable
1180
+
1181
+ # YAML manifest of the resource.
1182
+ # Corresponds to the JSON property `manifest`
1183
+ # @return [String]
1184
+ attr_accessor :manifest
1185
+
1186
+ # TypeMeta is the type information needed for content unmarshalling of
1187
+ # Kubernetes resources in the manifest.
1188
+ # Corresponds to the JSON property `type`
1189
+ # @return [Google::Apis::GkehubV1alpha::TypeMeta]
1190
+ attr_accessor :type
1191
+
1192
+ def initialize(**args)
1193
+ update!(**args)
1194
+ end
1195
+
1196
+ # Update properties of this object
1197
+ def update!(**args)
1198
+ @manifest = args[:manifest] if args.key?(:manifest)
1199
+ @type = args[:type] if args.key?(:type)
1200
+ end
1201
+ end
1202
+
1176
1203
  # A generic empty message that you can re-use to avoid defining duplicated empty
1177
1204
  # messages in your APIs. A typical example is to use it as the request or the
1178
1205
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1389,6 +1416,27 @@ module Google
1389
1416
  end
1390
1417
  end
1391
1418
 
1419
+ # GenerateConnectManifestResponse contains manifest information for installing/
1420
+ # upgrading a Connect agent.
1421
+ class GenerateConnectManifestResponse
1422
+ include Google::Apis::Core::Hashable
1423
+
1424
+ # The ordered list of Kubernetes resources that need to be applied to the
1425
+ # cluster for GKE Connect agent installation/upgrade.
1426
+ # Corresponds to the JSON property `manifest`
1427
+ # @return [Array<Google::Apis::GkehubV1alpha::ConnectAgentResource>]
1428
+ attr_accessor :manifest
1429
+
1430
+ def initialize(**args)
1431
+ update!(**args)
1432
+ end
1433
+
1434
+ # Update properties of this object
1435
+ def update!(**args)
1436
+ @manifest = args[:manifest] if args.key?(:manifest)
1437
+ end
1438
+ end
1439
+
1392
1440
  # GkeCluster contains information specific to GKE clusters.
1393
1441
  class GkeCluster
1394
1442
  include Google::Apis::Core::Hashable
@@ -1769,6 +1817,39 @@ module Google
1769
1817
  end
1770
1818
  end
1771
1819
 
1820
+ # Response message for the `GkeHub.ListMemberships` method.
1821
+ class ListMembershipsResponse
1822
+ include Google::Apis::Core::Hashable
1823
+
1824
+ # A token to request the next page of resources from the `ListMemberships`
1825
+ # method. The value of an empty string means that there are no more resources to
1826
+ # return.
1827
+ # Corresponds to the JSON property `nextPageToken`
1828
+ # @return [String]
1829
+ attr_accessor :next_page_token
1830
+
1831
+ # The list of matching Memberships.
1832
+ # Corresponds to the JSON property `resources`
1833
+ # @return [Array<Google::Apis::GkehubV1alpha::Membership>]
1834
+ attr_accessor :resources
1835
+
1836
+ # List of locations that could not be reached while fetching this list.
1837
+ # Corresponds to the JSON property `unreachable`
1838
+ # @return [Array<String>]
1839
+ attr_accessor :unreachable
1840
+
1841
+ def initialize(**args)
1842
+ update!(**args)
1843
+ end
1844
+
1845
+ # Update properties of this object
1846
+ def update!(**args)
1847
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1848
+ @resources = args[:resources] if args.key?(:resources)
1849
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1850
+ end
1851
+ end
1852
+
1772
1853
  # The response message for Operations.ListOperations.
1773
1854
  class ListOperationsResponse
1774
1855
  include Google::Apis::Core::Hashable
@@ -1999,6 +2080,11 @@ module Google
1999
2080
  # @return [Google::Apis::GkehubV1alpha::IdentityServiceMembershipSpec]
2000
2081
  attr_accessor :identityservice
2001
2082
 
2083
+ # **Service Mesh**: Spec for a single Membership for the servicemesh feature
2084
+ # Corresponds to the JSON property `mesh`
2085
+ # @return [Google::Apis::GkehubV1alpha::ServiceMeshMembershipSpec]
2086
+ attr_accessor :mesh
2087
+
2002
2088
  def initialize(**args)
2003
2089
  update!(**args)
2004
2090
  end
@@ -2007,6 +2093,7 @@ module Google
2007
2093
  def update!(**args)
2008
2094
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
2009
2095
  @identityservice = args[:identityservice] if args.key?(:identityservice)
2096
+ @mesh = args[:mesh] if args.key?(:mesh)
2010
2097
  end
2011
2098
  end
2012
2099
 
@@ -2321,31 +2408,31 @@ module Google
2321
2408
 
2322
2409
  # An Identity and Access Management (IAM) policy, which specifies access
2323
2410
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2324
- # A `binding` binds one or more `members` to a single `role`. Members can be
2325
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
2326
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
2327
- # role or a user-created custom role. For some types of Google Cloud resources,
2328
- # a `binding` can also specify a `condition`, which is a logical expression that
2329
- # allows access to a resource only if the expression evaluates to `true`. A
2330
- # condition can add constraints based on attributes of the request, the resource,
2331
- # or both. To learn which resources support conditions in their IAM policies,
2332
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2333
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2334
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2335
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2336
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2337
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2338
- # title": "expirable access", "description": "Does not grant access after Sep
2339
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2340
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2341
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
2342
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2343
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2344
- # roles/resourcemanager.organizationViewer condition: title: expirable access
2345
- # description: Does not grant access after Sep 2020 expression: request.time <
2346
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
2347
- # description of IAM and its features, see the [IAM documentation](https://cloud.
2348
- # google.com/iam/docs/).
2411
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
2412
+ # Principals can be user accounts, service accounts, Google groups, and domains (
2413
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
2414
+ # an IAM predefined role or a user-created custom role. For some types of Google
2415
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
2416
+ # logical expression that allows access to a resource only if the expression
2417
+ # evaluates to `true`. A condition can add constraints based on attributes of
2418
+ # the request, the resource, or both. To learn which resources support
2419
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2420
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2421
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2422
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2423
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2424
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2425
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
2426
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2427
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2428
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
2429
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2430
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2431
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2432
+ # access description: Does not grant access after Sep 2020 expression: request.
2433
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2434
+ # a description of IAM and its features, see the [IAM documentation](https://
2435
+ # cloud.google.com/iam/docs/).
2349
2436
  class Policy
2350
2437
  include Google::Apis::Core::Hashable
2351
2438
 
@@ -2354,9 +2441,14 @@ module Google
2354
2441
  # @return [Array<Google::Apis::GkehubV1alpha::AuditConfig>]
2355
2442
  attr_accessor :audit_configs
2356
2443
 
2357
- # Associates a list of `members` to a `role`. Optionally, may specify a `
2358
- # condition` that determines how and when the `bindings` are applied. Each of
2359
- # the `bindings` must contain at least one member.
2444
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
2445
+ # specify a `condition` that determines how and when the `bindings` are applied.
2446
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
2447
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
2448
+ # can be Google groups. Each occurrence of a principal counts towards these
2449
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
2450
+ # example.com`, and not to any other principal, then you can add another 1,450
2451
+ # principals to the `bindings` in the `Policy`.
2360
2452
  # Corresponds to the JSON property `bindings`
2361
2453
  # @return [Array<Google::Apis::GkehubV1alpha::Binding>]
2362
2454
  attr_accessor :bindings
@@ -2511,6 +2603,19 @@ module Google
2511
2603
  end
2512
2604
  end
2513
2605
 
2606
+ # **Service Mesh**: Spec for a single Membership for the servicemesh feature
2607
+ class ServiceMeshMembershipSpec
2608
+ include Google::Apis::Core::Hashable
2609
+
2610
+ def initialize(**args)
2611
+ update!(**args)
2612
+ end
2613
+
2614
+ # Update properties of this object
2615
+ def update!(**args)
2616
+ end
2617
+ end
2618
+
2514
2619
  # **Service Mesh**: State for a single Membership, as analyzed by the Service
2515
2620
  # Mesh Hub Controller.
2516
2621
  class ServiceMeshMembershipState
@@ -2570,31 +2675,31 @@ module Google
2570
2675
 
2571
2676
  # An Identity and Access Management (IAM) policy, which specifies access
2572
2677
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2573
- # A `binding` binds one or more `members` to a single `role`. Members can be
2574
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
2575
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
2576
- # role or a user-created custom role. For some types of Google Cloud resources,
2577
- # a `binding` can also specify a `condition`, which is a logical expression that
2578
- # allows access to a resource only if the expression evaluates to `true`. A
2579
- # condition can add constraints based on attributes of the request, the resource,
2580
- # or both. To learn which resources support conditions in their IAM policies,
2581
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2582
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2583
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2584
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2585
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2586
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2587
- # title": "expirable access", "description": "Does not grant access after Sep
2588
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2589
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2590
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
2591
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2592
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2593
- # roles/resourcemanager.organizationViewer condition: title: expirable access
2594
- # description: Does not grant access after Sep 2020 expression: request.time <
2595
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
2596
- # description of IAM and its features, see the [IAM documentation](https://cloud.
2597
- # google.com/iam/docs/).
2678
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
2679
+ # Principals can be user accounts, service accounts, Google groups, and domains (
2680
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
2681
+ # an IAM predefined role or a user-created custom role. For some types of Google
2682
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
2683
+ # logical expression that allows access to a resource only if the expression
2684
+ # evaluates to `true`. A condition can add constraints based on attributes of
2685
+ # the request, the resource, or both. To learn which resources support
2686
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2687
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2688
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2689
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2690
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2691
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2692
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
2693
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2694
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2695
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
2696
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2697
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2698
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2699
+ # access description: Does not grant access after Sep 2020 expression: request.
2700
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2701
+ # a description of IAM and its features, see the [IAM documentation](https://
2702
+ # cloud.google.com/iam/docs/).
2598
2703
  # Corresponds to the JSON property `policy`
2599
2704
  # @return [Google::Apis::GkehubV1alpha::Policy]
2600
2705
  attr_accessor :policy
@@ -2656,6 +2761,32 @@ module Google
2656
2761
  @permissions = args[:permissions] if args.key?(:permissions)
2657
2762
  end
2658
2763
  end
2764
+
2765
+ # TypeMeta is the type information needed for content unmarshalling of
2766
+ # Kubernetes resources in the manifest.
2767
+ class TypeMeta
2768
+ include Google::Apis::Core::Hashable
2769
+
2770
+ # APIVersion of the resource (e.g. v1).
2771
+ # Corresponds to the JSON property `apiVersion`
2772
+ # @return [String]
2773
+ attr_accessor :api_version
2774
+
2775
+ # Kind of the resource (e.g. Deployment).
2776
+ # Corresponds to the JSON property `kind`
2777
+ # @return [String]
2778
+ attr_accessor :kind
2779
+
2780
+ def initialize(**args)
2781
+ update!(**args)
2782
+ end
2783
+
2784
+ # Update properties of this object
2785
+ def update!(**args)
2786
+ @api_version = args[:api_version] if args.key?(:api_version)
2787
+ @kind = args[:kind] if args.key?(:kind)
2788
+ end
2789
+ end
2659
2790
  end
2660
2791
  end
2661
2792
  end
@@ -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.12.0"
19
+ GEM_VERSION = "0.13.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 = "20210927"
25
+ REVISION = "20211015"
26
26
  end
27
27
  end
28
28
  end
@@ -214,6 +214,12 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
+ class ConnectAgentResource
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
217
223
  class Empty
218
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
225
 
@@ -244,6 +250,12 @@ module Google
244
250
  include Google::Apis::Core::JsonObjectSupport
245
251
  end
246
252
 
253
+ class GenerateConnectManifestResponse
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
247
259
  class GkeCluster
248
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
261
 
@@ -304,6 +316,12 @@ module Google
304
316
  include Google::Apis::Core::JsonObjectSupport
305
317
  end
306
318
 
319
+ class ListMembershipsResponse
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
307
325
  class ListOperationsResponse
308
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
327
 
@@ -406,6 +424,12 @@ module Google
406
424
  include Google::Apis::Core::JsonObjectSupport
407
425
  end
408
426
 
427
+ class ServiceMeshMembershipSpec
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
409
433
  class ServiceMeshMembershipState
410
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
435
 
@@ -436,6 +460,12 @@ module Google
436
460
  include Google::Apis::Core::JsonObjectSupport
437
461
  end
438
462
 
463
+ class TypeMeta
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
439
469
  class AuditConfig
440
470
  # @private
441
471
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -760,6 +790,15 @@ module Google
760
790
  end
761
791
  end
762
792
 
793
+ class ConnectAgentResource
794
+ # @private
795
+ class Representation < Google::Apis::Core::JsonRepresentation
796
+ property :manifest, as: 'manifest'
797
+ property :type, as: 'type', class: Google::Apis::GkehubV1alpha::TypeMeta, decorator: Google::Apis::GkehubV1alpha::TypeMeta::Representation
798
+
799
+ end
800
+ end
801
+
763
802
  class Empty
764
803
  # @private
765
804
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -813,6 +852,14 @@ module Google
813
852
  end
814
853
  end
815
854
 
855
+ class GenerateConnectManifestResponse
856
+ # @private
857
+ class Representation < Google::Apis::Core::JsonRepresentation
858
+ collection :manifest, as: 'manifest', class: Google::Apis::GkehubV1alpha::ConnectAgentResource, decorator: Google::Apis::GkehubV1alpha::ConnectAgentResource::Representation
859
+
860
+ end
861
+ end
862
+
816
863
  class GkeCluster
817
864
  # @private
818
865
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -916,6 +963,16 @@ module Google
916
963
  end
917
964
  end
918
965
 
966
+ class ListMembershipsResponse
967
+ # @private
968
+ class Representation < Google::Apis::Core::JsonRepresentation
969
+ property :next_page_token, as: 'nextPageToken'
970
+ collection :resources, as: 'resources', class: Google::Apis::GkehubV1alpha::Membership, decorator: Google::Apis::GkehubV1alpha::Membership::Representation
971
+
972
+ collection :unreachable, as: 'unreachable'
973
+ end
974
+ end
975
+
919
976
  class ListOperationsResponse
920
977
  # @private
921
978
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -978,6 +1035,8 @@ module Google
978
1035
 
979
1036
  property :identityservice, as: 'identityservice', class: Google::Apis::GkehubV1alpha::IdentityServiceMembershipSpec, decorator: Google::Apis::GkehubV1alpha::IdentityServiceMembershipSpec::Representation
980
1037
 
1038
+ property :mesh, as: 'mesh', class: Google::Apis::GkehubV1alpha::ServiceMeshMembershipSpec, decorator: Google::Apis::GkehubV1alpha::ServiceMeshMembershipSpec::Representation
1039
+
981
1040
  end
982
1041
  end
983
1042
 
@@ -1103,6 +1162,12 @@ module Google
1103
1162
  end
1104
1163
  end
1105
1164
 
1165
+ class ServiceMeshMembershipSpec
1166
+ # @private
1167
+ class Representation < Google::Apis::Core::JsonRepresentation
1168
+ end
1169
+ end
1170
+
1106
1171
  class ServiceMeshMembershipState
1107
1172
  # @private
1108
1173
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1141,6 +1206,14 @@ module Google
1141
1206
  collection :permissions, as: 'permissions'
1142
1207
  end
1143
1208
  end
1209
+
1210
+ class TypeMeta
1211
+ # @private
1212
+ class Representation < Google::Apis::Core::JsonRepresentation
1213
+ property :api_version, as: 'apiVersion'
1214
+ property :kind, as: 'kind'
1215
+ end
1216
+ end
1144
1217
  end
1145
1218
  end
1146
1219
  end
@@ -462,6 +462,200 @@ module Google
462
462
  execute_or_queue_command(command, &block)
463
463
  end
464
464
 
465
+ # Creates a new Membership. **This is currently only supported for GKE clusters
466
+ # on Google Cloud**. To register other clusters, follow the instructions at
467
+ # https://cloud.google.com/anthos/multicluster-management/connect/registering-a-
468
+ # cluster.
469
+ # @param [String] parent
470
+ # Required. The parent (project and location) where the Memberships will be
471
+ # created. Specified in the format `projects/*/locations/*`.
472
+ # @param [Google::Apis::GkehubV1alpha::Membership] membership_object
473
+ # @param [String] membership_id
474
+ # Required. Client chosen ID for the membership. `membership_id` must be a valid
475
+ # RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
476
+ # consist of lower case alphanumeric characters or `-` 3. It must start and end
477
+ # with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
478
+ # -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
479
+ # @param [String] request_id
480
+ # Optional. A request ID to identify requests. Specify a unique request ID so
481
+ # that if you must retry your request, the server will know to ignore the
482
+ # request if it has already been completed. The server will guarantee that for
483
+ # at least 60 minutes after the first request. For example, consider a situation
484
+ # where you make an initial request and the request times out. If you make the
485
+ # request again with the same request ID, the server can check if original
486
+ # operation with the same request ID was received, and if so, will ignore the
487
+ # second request. This prevents clients from accidentally creating duplicate
488
+ # commitments. The request ID must be a valid UUID with the exception that zero
489
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
490
+ # @param [String] fields
491
+ # Selector specifying which fields to include in a partial response.
492
+ # @param [String] quota_user
493
+ # Available to use for quota purposes for server-side applications. Can be any
494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
495
+ # @param [Google::Apis::RequestOptions] options
496
+ # Request-specific options
497
+ #
498
+ # @yield [result, err] Result & error if block supplied
499
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
500
+ # @yieldparam err [StandardError] error object if request failed
501
+ #
502
+ # @return [Google::Apis::GkehubV1alpha::Operation]
503
+ #
504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
507
+ def create_project_location_membership(parent, membership_object = nil, membership_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
508
+ command = make_simple_command(:post, 'v1alpha/{+parent}/memberships', options)
509
+ command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation
510
+ command.request_object = membership_object
511
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
512
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
513
+ command.params['parent'] = parent unless parent.nil?
514
+ command.query['membershipId'] = membership_id unless membership_id.nil?
515
+ command.query['requestId'] = request_id unless request_id.nil?
516
+ command.query['fields'] = fields unless fields.nil?
517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ execute_or_queue_command(command, &block)
519
+ end
520
+
521
+ # Removes a Membership. **This is currently only supported for GKE clusters on
522
+ # Google Cloud**. To unregister other clusters, follow the instructions at https:
523
+ # //cloud.google.com/anthos/multicluster-management/connect/unregistering-a-
524
+ # cluster.
525
+ # @param [String] name
526
+ # Required. The Membership resource name in the format `projects/*/locations/*/
527
+ # memberships/*`.
528
+ # @param [String] request_id
529
+ # Optional. A request ID to identify requests. Specify a unique request ID so
530
+ # that if you must retry your request, the server will know to ignore the
531
+ # request if it has already been completed. The server will guarantee that for
532
+ # at least 60 minutes after the first request. For example, consider a situation
533
+ # where you make an initial request and the request times out. If you make the
534
+ # request again with the same request ID, the server can check if original
535
+ # operation with the same request ID was received, and if so, will ignore the
536
+ # second request. This prevents clients from accidentally creating duplicate
537
+ # commitments. The request ID must be a valid UUID with the exception that zero
538
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
539
+ # @param [String] fields
540
+ # Selector specifying which fields to include in a partial response.
541
+ # @param [String] quota_user
542
+ # Available to use for quota purposes for server-side applications. Can be any
543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
544
+ # @param [Google::Apis::RequestOptions] options
545
+ # Request-specific options
546
+ #
547
+ # @yield [result, err] Result & error if block supplied
548
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
549
+ # @yieldparam err [StandardError] error object if request failed
550
+ #
551
+ # @return [Google::Apis::GkehubV1alpha::Operation]
552
+ #
553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
556
+ def delete_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
557
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
558
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
559
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
560
+ command.params['name'] = name unless name.nil?
561
+ command.query['requestId'] = request_id unless request_id.nil?
562
+ command.query['fields'] = fields unless fields.nil?
563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
564
+ execute_or_queue_command(command, &block)
565
+ end
566
+
567
+ # Generates the manifest for deployment of the GKE connect agent. **This method
568
+ # is used internally by Google-provided libraries.** Most clients should not
569
+ # need to call this method directly.
570
+ # @param [String] name
571
+ # Required. The Membership resource name the Agent will associate with, in the
572
+ # format `projects/*/locations/*/memberships/*`.
573
+ # @param [String] image_pull_secret_content
574
+ # Optional. The image pull secret content for the registry, if not public.
575
+ # @param [Boolean] is_upgrade
576
+ # Optional. If true, generate the resources for upgrade only. Some resources
577
+ # generated only for installation (e.g. secrets) will be excluded.
578
+ # @param [String] namespace
579
+ # Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
580
+ # The Connect Agent is authorized automatically when run in the default
581
+ # namespace. Otherwise, explicit authorization must be granted with an
582
+ # additional IAM binding.
583
+ # @param [String] proxy
584
+ # Optional. URI of a proxy if connectivity from the agent to gkeconnect.
585
+ # googleapis.com requires the use of a proxy. Format must be in the form `http(s)
586
+ # ://`proxy_address``, depending on the HTTP/HTTPS protocol supported by the
587
+ # proxy. This will direct the connect agent's outbound traffic through a HTTP(S)
588
+ # proxy.
589
+ # @param [String] registry
590
+ # Optional. The registry to fetch the connect agent image from. Defaults to gcr.
591
+ # io/gkeconnect.
592
+ # @param [String] version
593
+ # Optional. The Connect agent version to use. Defaults to the most current
594
+ # version.
595
+ # @param [String] fields
596
+ # Selector specifying which fields to include in a partial response.
597
+ # @param [String] quota_user
598
+ # Available to use for quota purposes for server-side applications. Can be any
599
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
600
+ # @param [Google::Apis::RequestOptions] options
601
+ # Request-specific options
602
+ #
603
+ # @yield [result, err] Result & error if block supplied
604
+ # @yieldparam result [Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse] parsed result object
605
+ # @yieldparam err [StandardError] error object if request failed
606
+ #
607
+ # @return [Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse]
608
+ #
609
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
610
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
611
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
612
+ def generate_project_location_membership_connect_manifest(name, image_pull_secret_content: nil, is_upgrade: nil, namespace: nil, proxy: nil, registry: nil, version: nil, fields: nil, quota_user: nil, options: nil, &block)
613
+ command = make_simple_command(:get, 'v1alpha/{+name}:generateConnectManifest', options)
614
+ command.response_representation = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse::Representation
615
+ command.response_class = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse
616
+ command.params['name'] = name unless name.nil?
617
+ command.query['imagePullSecretContent'] = image_pull_secret_content unless image_pull_secret_content.nil?
618
+ command.query['isUpgrade'] = is_upgrade unless is_upgrade.nil?
619
+ command.query['namespace'] = namespace unless namespace.nil?
620
+ command.query['proxy'] = proxy unless proxy.nil?
621
+ command.query['registry'] = registry unless registry.nil?
622
+ command.query['version'] = version unless version.nil?
623
+ command.query['fields'] = fields unless fields.nil?
624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
625
+ execute_or_queue_command(command, &block)
626
+ end
627
+
628
+ # Gets the details of a Membership.
629
+ # @param [String] name
630
+ # Required. The Membership resource name in the format `projects/*/locations/*/
631
+ # memberships/*`.
632
+ # @param [String] fields
633
+ # Selector specifying which fields to include in a partial response.
634
+ # @param [String] quota_user
635
+ # Available to use for quota purposes for server-side applications. Can be any
636
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
637
+ # @param [Google::Apis::RequestOptions] options
638
+ # Request-specific options
639
+ #
640
+ # @yield [result, err] Result & error if block supplied
641
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Membership] parsed result object
642
+ # @yieldparam err [StandardError] error object if request failed
643
+ #
644
+ # @return [Google::Apis::GkehubV1alpha::Membership]
645
+ #
646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
649
+ def get_project_location_membership(name, fields: nil, quota_user: nil, options: nil, &block)
650
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
651
+ command.response_representation = Google::Apis::GkehubV1alpha::Membership::Representation
652
+ command.response_class = Google::Apis::GkehubV1alpha::Membership
653
+ command.params['name'] = name unless name.nil?
654
+ command.query['fields'] = fields unless fields.nil?
655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
656
+ execute_or_queue_command(command, &block)
657
+ end
658
+
465
659
  # Gets the access control policy for a resource. Returns an empty policy if the
466
660
  # resource exists and does not have a policy set.
467
661
  # @param [String] resource
@@ -503,6 +697,58 @@ module Google
503
697
  execute_or_queue_command(command, &block)
504
698
  end
505
699
 
700
+ # Lists Memberships in a given project and location.
701
+ # @param [String] parent
702
+ # Required. The parent (project and location) where the Memberships will be
703
+ # listed. Specified in the format `projects/*/locations/*`.
704
+ # @param [String] filter
705
+ # Optional. Lists Memberships that match the filter expression, following the
706
+ # syntax outlined in https://google.aip.dev/160. Examples: - Name is `bar` in
707
+ # project `foo-proj` and location `global`: name = "projects/foo-proj/locations/
708
+ # global/membership/bar" - Memberships that have a label called `foo`: labels.
709
+ # foo:* - Memberships that have a label called `foo` whose value is `bar`:
710
+ # labels.foo = bar - Memberships in the CREATING state: state = CREATING
711
+ # @param [String] order_by
712
+ # Optional. One or more fields to compare and use to sort the output. See https:/
713
+ # /google.aip.dev/132#ordering.
714
+ # @param [Fixnum] page_size
715
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
716
+ # of resources to return. If unspecified or set to 0, all resources will be
717
+ # returned.
718
+ # @param [String] page_token
719
+ # Optional. Token returned by previous call to `ListMemberships` which specifies
720
+ # the position in the list from where to continue listing the resources.
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListMembershipsResponse] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::GkehubV1alpha::ListMembershipsResponse]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ def list_project_location_memberships(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
739
+ command = make_simple_command(:get, 'v1alpha/{+parent}/memberships', options)
740
+ command.response_representation = Google::Apis::GkehubV1alpha::ListMembershipsResponse::Representation
741
+ command.response_class = Google::Apis::GkehubV1alpha::ListMembershipsResponse
742
+ command.params['parent'] = parent unless parent.nil?
743
+ command.query['filter'] = filter unless filter.nil?
744
+ command.query['orderBy'] = order_by unless order_by.nil?
745
+ command.query['pageSize'] = page_size unless page_size.nil?
746
+ command.query['pageToken'] = page_token unless page_token.nil?
747
+ command.query['fields'] = fields unless fields.nil?
748
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
749
+ execute_or_queue_command(command, &block)
750
+ end
751
+
506
752
  # Lists Memberships of admin clusters in a given project and location. **This
507
753
  # method is only used internally**.
508
754
  # @param [String] parent
@@ -552,6 +798,55 @@ module Google
552
798
  execute_or_queue_command(command, &block)
553
799
  end
554
800
 
801
+ # Updates an existing Membership.
802
+ # @param [String] name
803
+ # Required. The Membership resource name in the format `projects/*/locations/*/
804
+ # memberships/*`.
805
+ # @param [Google::Apis::GkehubV1alpha::Membership] membership_object
806
+ # @param [String] request_id
807
+ # Optional. A request ID to identify requests. Specify a unique request ID so
808
+ # that if you must retry your request, the server will know to ignore the
809
+ # request if it has already been completed. The server will guarantee that for
810
+ # at least 60 minutes after the first request. For example, consider a situation
811
+ # where you make an initial request and the request times out. If you make the
812
+ # request again with the same request ID, the server can check if original
813
+ # operation with the same request ID was received, and if so, will ignore the
814
+ # second request. This prevents clients from accidentally creating duplicate
815
+ # commitments. The request ID must be a valid UUID with the exception that zero
816
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
817
+ # @param [String] update_mask
818
+ # Required. Mask of fields to update.
819
+ # @param [String] fields
820
+ # Selector specifying which fields to include in a partial response.
821
+ # @param [String] quota_user
822
+ # Available to use for quota purposes for server-side applications. Can be any
823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
824
+ # @param [Google::Apis::RequestOptions] options
825
+ # Request-specific options
826
+ #
827
+ # @yield [result, err] Result & error if block supplied
828
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
829
+ # @yieldparam err [StandardError] error object if request failed
830
+ #
831
+ # @return [Google::Apis::GkehubV1alpha::Operation]
832
+ #
833
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
834
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
835
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
836
+ def patch_project_location_membership(name, membership_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
837
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
838
+ command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation
839
+ command.request_object = membership_object
840
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
841
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
842
+ command.params['name'] = name unless name.nil?
843
+ command.query['requestId'] = request_id unless request_id.nil?
844
+ command.query['updateMask'] = update_mask unless update_mask.nil?
845
+ command.query['fields'] = fields unless fields.nil?
846
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
847
+ execute_or_queue_command(command, &block)
848
+ end
849
+
555
850
  # Sets the access control policy on the specified resource. Replaces any
556
851
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
557
852
  # 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.12.0
4
+ version: 0.13.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-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
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.12.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1alpha
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.13.0
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: []
65
65
  require_paths: