google-apis-servicedirectory_v1beta1 0.19.0 → 0.22.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: 463b9e0a354acf8b29d84018f9a8e92a99abaea2cb95098db79ef3039043026e
4
- data.tar.gz: 83bf300dbafeafa82f071e86e8648570e3e015fb45fd5b01245cba460f299dbb
3
+ metadata.gz: a1dffa451a1a7ae40015044f3ff96c3308833a4fb314fb44dcfffd610d423f15
4
+ data.tar.gz: 0cb4c2e7132a214c3114986ffaed85ea577bae42170f9efe8d88a2cc3b5dc5e5
5
5
  SHA512:
6
- metadata.gz: 11f45b1ae4c325bbfb2f6ffefd51203c513f6f74a951e92700a674f283ef526bae7e6010ec53dc743c594f43803bd7c5da029cedadd8f15e856ab0f507e65a1c
7
- data.tar.gz: c0a75b963371c0cd9e7bf2f03f4ec3f05859c194515e81cea0ea4ba50ec8b6c9264034d51faf46e1bcfd3d0e25a6e6afd41e8a0a9ea22ff75e44e963bb7c23c7
6
+ metadata.gz: 4565ae30368f0d967038e021a0c1ba1b7c42111f9868dbd3b35f5a2cec73fb336d3558acad012ea683bdaa48047db834c5b75cae0bca0ba77a90bcbb9c749ae8
7
+ data.tar.gz: 8e644de60ad70a15120dbe3ee478597efb368fc532ae8e667550bfe428295cd460230f2d17c7819799b15f69506918b63be83816cbecccb8b6c85a255e4c1fc7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Release history for google-apis-servicedirectory_v1beta1
2
2
 
3
+ ### v0.22.0 (2022-07-03)
4
+
5
+ * Regenerated from discovery document revision 20220622
6
+ * Regenerated using generator version 0.8.0
7
+
8
+ ### v0.21.0 (2022-06-25)
9
+
10
+ * Regenerated from discovery document revision 20220612
11
+ * Regenerated using generator version 0.7.0
12
+
13
+ ### v0.20.0 (2022-06-06)
14
+
15
+ * Regenerated from discovery document revision 20220526
16
+ * Regenerated using generator version 0.5.0
17
+
3
18
  ### v0.19.0 (2022-05-28)
4
19
 
5
20
  * Regenerated from discovery document revision 20220518
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServicedirectoryV1beta1
18
18
  # Version of the google-apis-servicedirectory_v1beta1 gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220518"
25
+ REVISION = "20220622"
26
26
  end
27
27
  end
28
28
  end
@@ -267,20 +267,22 @@ module Google
267
267
  # like to list.
268
268
  # @param [String] filter
269
269
  # Optional. The filter to list results by. General `filter` string syntax: ` ()`
270
- # * `` can be `name` or `labels.` for map field * `` can be `<`, `>`, `<=`, `>=`,
271
- # `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * ``
272
- # must be the same data type as field * `` can be `AND`, `OR`, `NOT` Examples of
273
- # valid filters: * `labels.owner` returns namespaces that have a label with the
274
- # key `owner`, this is the same as `labels:owner` * `labels.owner=sd` returns
275
- # namespaces that have key/value `owner=sd` * `name>projects/my-project/
276
- # locations/us-east1/namespaces/namespace-c` returns namespaces that have name
277
- # that is alphabetically later than the string, so "namespace-e" is returned but
278
- # "namespace-a" is not * `labels.owner!=sd AND labels.foo=bar` returns
279
- # namespaces that have `owner` in label key but value is not `sd` AND have key/
280
- # value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that
281
- # namespace doesn't have a field called "doesnotexist". Since the filter does
282
- # not match any namespaces, it returns no results For more information about
283
- # filtering, see [API Filtering](https://aip.dev/160).
270
+ # * `` can be `name`, `labels.` for map field, or `attributes.` for attributes
271
+ # field * `` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means `
272
+ # HAS`, and is roughly the same as `=` * `` must be the same data type as field *
273
+ # `` can be `AND`, `OR`, `NOT` Examples of valid filters: * `labels.owner`
274
+ # returns namespaces that have a label with the key `owner`, this is the same as
275
+ # `labels:owner` * `labels.owner=sd` returns namespaces that have key/value `
276
+ # owner=sd` * `name>projects/my-project/locations/us-east1/namespaces/namespace-
277
+ # c` returns namespaces that have name that is alphabetically later than the
278
+ # string, so "namespace-e" is returned but "namespace-a" is not * `labels.owner!=
279
+ # sd AND labels.foo=bar` returns namespaces that have `owner` in label key but
280
+ # value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar`
281
+ # returns an empty list. Note that namespace doesn't have a field called "
282
+ # doesnotexist". Since the filter does not match any namespaces, it returns no
283
+ # results * `attributes.managed_registration=true` returns namespaces that are
284
+ # managed by a GCP product or service For more information about filtering, see [
285
+ # API Filtering](https://aip.dev/160).
284
286
  # @param [String] order_by
285
287
  # Optional. The order to list results by. General `order_by` string syntax: ` ()
286
288
  # (,)` * `` allows value: `name` * `` ascending or descending order by ``. If
@@ -394,7 +396,8 @@ module Google
394
396
  execute_or_queue_command(command, &block)
395
397
  end
396
398
 
397
- # Tests IAM permissions for a resource (namespace or service only).
399
+ # Tests IAM permissions for a resource (namespace, service or service workload
400
+ # only).
398
401
  # @param [String] resource
399
402
  # REQUIRED: The resource for which the policy detail is being requested. See [
400
403
  # Resource names](https://cloud.google.com/apis/design/resource_names) for the
@@ -429,6 +432,112 @@ module Google
429
432
  execute_or_queue_command(command, &block)
430
433
  end
431
434
 
435
+ # Gets the IAM Policy for a resource (namespace or service only).
436
+ # @param [String] resource
437
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
438
+ # names](https://cloud.google.com/apis/design/resource_names) for the
439
+ # appropriate value for this field.
440
+ # @param [Google::Apis::ServicedirectoryV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
441
+ # @param [String] fields
442
+ # Selector specifying which fields to include in a partial response.
443
+ # @param [String] quota_user
444
+ # Available to use for quota purposes for server-side applications. Can be any
445
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
446
+ # @param [Google::Apis::RequestOptions] options
447
+ # Request-specific options
448
+ #
449
+ # @yield [result, err] Result & error if block supplied
450
+ # @yieldparam result [Google::Apis::ServicedirectoryV1beta1::Policy] parsed result object
451
+ # @yieldparam err [StandardError] error object if request failed
452
+ #
453
+ # @return [Google::Apis::ServicedirectoryV1beta1::Policy]
454
+ #
455
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
456
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
457
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
458
+ def get_service_workload_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
459
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
460
+ command.request_representation = Google::Apis::ServicedirectoryV1beta1::GetIamPolicyRequest::Representation
461
+ command.request_object = get_iam_policy_request_object
462
+ command.response_representation = Google::Apis::ServicedirectoryV1beta1::Policy::Representation
463
+ command.response_class = Google::Apis::ServicedirectoryV1beta1::Policy
464
+ command.params['resource'] = resource unless resource.nil?
465
+ command.query['fields'] = fields unless fields.nil?
466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
467
+ execute_or_queue_command(command, &block)
468
+ end
469
+
470
+ # Sets the IAM Policy for a resource (namespace or service only).
471
+ # @param [String] resource
472
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
473
+ # names](https://cloud.google.com/apis/design/resource_names) for the
474
+ # appropriate value for this field.
475
+ # @param [Google::Apis::ServicedirectoryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
476
+ # @param [String] fields
477
+ # Selector specifying which fields to include in a partial response.
478
+ # @param [String] quota_user
479
+ # Available to use for quota purposes for server-side applications. Can be any
480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
481
+ # @param [Google::Apis::RequestOptions] options
482
+ # Request-specific options
483
+ #
484
+ # @yield [result, err] Result & error if block supplied
485
+ # @yieldparam result [Google::Apis::ServicedirectoryV1beta1::Policy] parsed result object
486
+ # @yieldparam err [StandardError] error object if request failed
487
+ #
488
+ # @return [Google::Apis::ServicedirectoryV1beta1::Policy]
489
+ #
490
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
491
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
492
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
493
+ def set_service_workload_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
494
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
495
+ command.request_representation = Google::Apis::ServicedirectoryV1beta1::SetIamPolicyRequest::Representation
496
+ command.request_object = set_iam_policy_request_object
497
+ command.response_representation = Google::Apis::ServicedirectoryV1beta1::Policy::Representation
498
+ command.response_class = Google::Apis::ServicedirectoryV1beta1::Policy
499
+ command.params['resource'] = resource unless resource.nil?
500
+ command.query['fields'] = fields unless fields.nil?
501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
502
+ execute_or_queue_command(command, &block)
503
+ end
504
+
505
+ # Tests IAM permissions for a resource (namespace, service or service workload
506
+ # only).
507
+ # @param [String] resource
508
+ # REQUIRED: The resource for which the policy detail is being requested. See [
509
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
510
+ # appropriate value for this field.
511
+ # @param [Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
512
+ # @param [String] fields
513
+ # Selector specifying which fields to include in a partial response.
514
+ # @param [String] quota_user
515
+ # Available to use for quota purposes for server-side applications. Can be any
516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
517
+ # @param [Google::Apis::RequestOptions] options
518
+ # Request-specific options
519
+ #
520
+ # @yield [result, err] Result & error if block supplied
521
+ # @yieldparam result [Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsResponse] parsed result object
522
+ # @yieldparam err [StandardError] error object if request failed
523
+ #
524
+ # @return [Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsResponse]
525
+ #
526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
529
+ def test_service_workload_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
530
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
531
+ command.request_representation = Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsRequest::Representation
532
+ command.request_object = test_iam_permissions_request_object
533
+ command.response_representation = Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsResponse::Representation
534
+ command.response_class = Google::Apis::ServicedirectoryV1beta1::TestIamPermissionsResponse
535
+ command.params['resource'] = resource unless resource.nil?
536
+ command.query['fields'] = fields unless fields.nil?
537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
538
+ execute_or_queue_command(command, &block)
539
+ end
540
+
432
541
  # Creates a service, and returns the new service.
433
542
  # @param [String] parent
434
543
  # Required. The resource name of the namespace this service will belong to.
@@ -583,8 +692,9 @@ module Google
583
692
  # key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar`
584
693
  # returns an empty list. Note that service doesn't have a field called "
585
694
  # doesnotexist". Since the filter does not match any services, it returns no
586
- # results For more information about filtering, see [API Filtering](https://aip.
587
- # dev/160).
695
+ # results * `attributes.managed_registration=true` returns services that are
696
+ # managed by a GCP product or service For more information about filtering, see [
697
+ # API Filtering](https://aip.dev/160).
588
698
  # @param [String] order_by
589
699
  # Optional. The order to list results by. General `order_by` string syntax: ` ()
590
700
  # (,)` * `` allows value: `name` * `` ascending or descending order by ``. If
@@ -732,7 +842,8 @@ module Google
732
842
  execute_or_queue_command(command, &block)
733
843
  end
734
844
 
735
- # Tests IAM permissions for a resource (namespace or service only).
845
+ # Tests IAM permissions for a resource (namespace, service or service workload
846
+ # only).
736
847
  # @param [String] resource
737
848
  # REQUIRED: The resource for which the policy detail is being requested. See [
738
849
  # Resource names](https://cloud.google.com/apis/design/resource_names) for the
@@ -873,23 +984,26 @@ module Google
873
984
  # Required. The resource name of the service whose endpoints you'd like to list.
874
985
  # @param [String] filter
875
986
  # Optional. The filter to list results by. General `filter` string syntax: ` ()`
876
- # * `` can be `name`, `address`, `port`, or `metadata.` for map field * `` can
877
- # be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is
878
- # roughly the same as `=` * `` must be the same data type as field * `` can be `
879
- # AND`, `OR`, `NOT` Examples of valid filters: * `metadata.owner` returns
880
- # endpoints that have a metadata with the key `owner`, this is the same as `
881
- # metadata:owner` * `metadata.protocol=gRPC` returns endpoints that have key/
882
- # value `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have
883
- # this address * `port>8080` returns endpoints that have port number larger than
884
- # 8080 * `name>projects/my-project/locations/us-east1/namespaces/my-namespace/
885
- # services/my-service/endpoints/endpoint-c` returns endpoints that have name
886
- # that is alphabetically later than the string, so "endpoint-e" is returned but "
887
- # endpoint-a" is not * `metadata.owner!=sd AND metadata.foo=bar` returns
888
- # endpoints that have `owner` in metadata key but value is not `sd` AND have key/
889
- # value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that
890
- # endpoint doesn't have a field called "doesnotexist". Since the filter does not
891
- # match any endpoints, it returns no results For more information about
892
- # filtering, see [API Filtering](https://aip.dev/160).
987
+ # * `` can be `name`, `address`, `port`, `metadata.` for map field, or `
988
+ # attributes.` for attributes field * `` can be `<`, `>`, `<=`, `>=`, `!=`, `=`,
989
+ # `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `` must be the
990
+ # same data type as field * `` can be `AND`, `OR`, `NOT` Examples of valid
991
+ # filters: * `metadata.owner` returns endpoints that have a metadata with the
992
+ # key `owner`, this is the same as `metadata:owner` * `metadata.protocol=gRPC`
993
+ # returns endpoints that have key/value `protocol=gRPC` * `address=192.108.1.105`
994
+ # returns endpoints that have this address * `port>8080` returns endpoints that
995
+ # have port number larger than 8080 * `name>projects/my-project/locations/us-
996
+ # east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
997
+ # returns endpoints that have name that is alphabetically later than the string,
998
+ # so "endpoint-e" is returned but "endpoint-a" is not * `metadata.owner!=sd AND
999
+ # metadata.foo=bar` returns endpoints that have `owner` in metadata key but
1000
+ # value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar`
1001
+ # returns an empty list. Note that endpoint doesn't have a field called "
1002
+ # doesnotexist". Since the filter does not match any endpoints, it returns no
1003
+ # results * `attributes.kubernetes_resource_type=
1004
+ # KUBERNETES_RESOURCE_TYPE_CLUSTER_ IP` returns endpoints with the corresponding
1005
+ # kubernetes_resource_type For more information about filtering, see [API
1006
+ # Filtering](https://aip.dev/160).
893
1007
  # @param [String] order_by
894
1008
  # Optional. The order to list results by. General `order_by` string syntax: ` ()
895
1009
  # (,)` * `` allows values: `name`, `address`, `port` * `` ascending or
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-servicedirectory_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-30 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-servicedirectory_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-servicedirectory_v1beta1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicedirectory_v1beta1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicedirectory_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []