google-cloud-dataplex-v1 0.2.0 → 0.4.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: b1aa6df4e9a0ccb7f3c6c78f8202ec8ff6e73dd60181a45c60bf3cf3573d23cd
4
- data.tar.gz: 4548e6c2e9e0371c396ec5ebed7b44eb42c58e0cd518a12e3bcc4fb73f87fb4d
3
+ metadata.gz: 8fdae0307f328bf97514eb59eda15e43858e53ff185f4a0d1d202ee0c2f64665
4
+ data.tar.gz: ebf6c7b4d1818fae6e7d974686b72d444132d92bbf073ad491b0f22deade6fd8
5
5
  SHA512:
6
- metadata.gz: fa15d1251e9f11bb406e60a63b9120c8097ad507f6785b63915a0a70ff1493786c42aea93d50c7f405dadb2cb8121c6a7e3f53842d75c08c8ff20b41ecc34f97
7
- data.tar.gz: e04ec4c198436cd0e2132698166d5ea0fcb06097d6d9469544de5abee5578867018bd9248c8d3d4624d2a18b94d1d677b119bf04fff2dff32982c098a8dd9939
6
+ metadata.gz: 7bf4419212b2c90cc5f4d7a25194291985c704b24d0b5c8a9053e8451f94830f5ea4e4d5cfaf3397ead3e9d21820391588f0917b5b943a6a57a20cd3afc5519d
7
+ data.tar.gz: 85f84b7b32306d85d53bf0c7c19db9e397fffe60d0047e3b4785395afee95b654146dc297eacf77d5293c583fe488e58877ed942dc105a667cac430f55b6005a
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dataplex/v1/analyze.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/cloud/dataplex/v1/resources_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
- require 'google/protobuf'
11
11
 
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/dataplex/v1/analyze.proto", :syntax => :proto3) do
@@ -1,14 +1,17 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dataplex/v1/content.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
10
  require 'google/cloud/dataplex/v1/analyze_pb'
11
+ require 'google/iam/v1/iam_policy_pb'
12
+ require 'google/iam/v1/policy_pb'
9
13
  require 'google/protobuf/empty_pb'
10
14
  require 'google/protobuf/field_mask_pb'
11
- require 'google/protobuf'
12
15
 
13
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
17
  add_file("google/cloud/dataplex/v1/content.proto", :syntax => :proto3) do
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dataplex/v1/content_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -64,6 +66,34 @@ module Google
64
66
  end
65
67
  default_config = Client::Configuration.new parent_config
66
68
 
69
+ default_config.rpcs.create_content.timeout = 60.0
70
+
71
+ default_config.rpcs.update_content.timeout = 60.0
72
+
73
+ default_config.rpcs.delete_content.timeout = 60.0
74
+
75
+ default_config.rpcs.get_content.timeout = 60.0
76
+ default_config.rpcs.get_content.retry_policy = {
77
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
78
+ }
79
+
80
+ default_config.rpcs.get_iam_policy.timeout = 60.0
81
+ default_config.rpcs.get_iam_policy.retry_policy = {
82
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
83
+ }
84
+
85
+ default_config.rpcs.set_iam_policy.timeout = 60.0
86
+
87
+ default_config.rpcs.test_iam_permissions.timeout = 60.0
88
+ default_config.rpcs.test_iam_permissions.retry_policy = {
89
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
90
+ }
91
+
92
+ default_config.rpcs.list_content.timeout = 60.0
93
+ default_config.rpcs.list_content.retry_policy = {
94
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
95
+ }
96
+
67
97
  default_config
68
98
  end
69
99
  yield @configure if block_given?
@@ -133,6 +163,18 @@ module Google
133
163
  @quota_project_id = @config.quota_project
134
164
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
135
165
 
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @config.endpoint
170
+ end
171
+
172
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
173
+ config.credentials = credentials
174
+ config.quota_project = @quota_project_id
175
+ config.endpoint = @config.endpoint
176
+ end
177
+
136
178
  @content_service_stub = ::Gapic::ServiceStub.new(
137
179
  ::Google::Cloud::Dataplex::V1::ContentService::Stub,
138
180
  credentials: credentials,
@@ -142,6 +184,20 @@ module Google
142
184
  )
143
185
  end
144
186
 
187
+ ##
188
+ # Get the associated client for mix-in of the Locations.
189
+ #
190
+ # @return [Google::Cloud::Location::Locations::Client]
191
+ #
192
+ attr_reader :location_client
193
+
194
+ ##
195
+ # Get the associated client for mix-in of the IAMPolicy.
196
+ #
197
+ # @return [Google::Iam::V1::IAMPolicy::Client]
198
+ #
199
+ attr_reader :iam_policy_client
200
+
145
201
  # Service calls
146
202
 
147
203
  ##
@@ -500,6 +556,301 @@ module Google
500
556
  raise ::Google::Cloud::Error.from_error(e)
501
557
  end
502
558
 
559
+ ##
560
+ # Gets the access control policy for a contentitem resource. A `NOT_FOUND`
561
+ # error is returned if the resource does not exist. An empty policy is
562
+ # returned if the resource exists but does not have a policy set on it.
563
+ #
564
+ # Caller must have Google IAM `dataplex.content.getIamPolicy` permission
565
+ # on the resource.
566
+ #
567
+ # @overload get_iam_policy(request, options = nil)
568
+ # Pass arguments to `get_iam_policy` via a request object, either of type
569
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
570
+ #
571
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
572
+ # A request object representing the call parameters. Required. To specify no
573
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
574
+ # @param options [::Gapic::CallOptions, ::Hash]
575
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
576
+ #
577
+ # @overload get_iam_policy(resource: nil, options: nil)
578
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
579
+ # least one keyword argument is required. To specify no parameters, or to keep all
580
+ # the default parameter values, pass an empty Hash as a request object (see above).
581
+ #
582
+ # @param resource [::String]
583
+ # REQUIRED: The resource for which the policy is being requested.
584
+ # See the operation documentation for the appropriate value for this field.
585
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
586
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
587
+ # `GetIamPolicy`.
588
+ #
589
+ # @yield [response, operation] Access the result along with the RPC operation
590
+ # @yieldparam response [::Google::Iam::V1::Policy]
591
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
592
+ #
593
+ # @return [::Google::Iam::V1::Policy]
594
+ #
595
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
596
+ #
597
+ # @example Basic example
598
+ # require "google/cloud/dataplex/v1"
599
+ #
600
+ # # Create a client object. The client can be reused for multiple calls.
601
+ # client = Google::Cloud::Dataplex::V1::ContentService::Client.new
602
+ #
603
+ # # Create a request. To set request fields, pass in keyword arguments.
604
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
605
+ #
606
+ # # Call the get_iam_policy method.
607
+ # result = client.get_iam_policy request
608
+ #
609
+ # # The returned object is of type Google::Iam::V1::Policy.
610
+ # p result
611
+ #
612
+ def get_iam_policy request, options = nil
613
+ raise ::ArgumentError, "request must be provided" if request.nil?
614
+
615
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
616
+
617
+ # Converts hash and nil to an options object
618
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
619
+
620
+ # Customize the options with defaults
621
+ metadata = @config.rpcs.get_iam_policy.metadata.to_h
622
+
623
+ # Set x-goog-api-client and x-goog-user-project headers
624
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
625
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
626
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
627
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
+
629
+ header_params = {}
630
+ if request.resource
631
+ header_params["resource"] = request.resource
632
+ end
633
+
634
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
635
+ metadata[:"x-goog-request-params"] ||= request_params_header
636
+
637
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
638
+ metadata: metadata,
639
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
640
+
641
+ options.apply_defaults timeout: @config.timeout,
642
+ metadata: @config.metadata,
643
+ retry_policy: @config.retry_policy
644
+
645
+ @content_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
646
+ yield response, operation if block_given?
647
+ return response
648
+ end
649
+ rescue ::GRPC::BadStatus => e
650
+ raise ::Google::Cloud::Error.from_error(e)
651
+ end
652
+
653
+ ##
654
+ # Sets the access control policy on the specified contentitem resource.
655
+ # Replaces any existing policy.
656
+ #
657
+ # Caller must have Google IAM `dataplex.content.setIamPolicy` permission
658
+ # on the resource.
659
+ #
660
+ # @overload set_iam_policy(request, options = nil)
661
+ # Pass arguments to `set_iam_policy` via a request object, either of type
662
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
663
+ #
664
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
665
+ # A request object representing the call parameters. Required. To specify no
666
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
667
+ # @param options [::Gapic::CallOptions, ::Hash]
668
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
669
+ #
670
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
671
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
672
+ # least one keyword argument is required. To specify no parameters, or to keep all
673
+ # the default parameter values, pass an empty Hash as a request object (see above).
674
+ #
675
+ # @param resource [::String]
676
+ # REQUIRED: The resource for which the policy is being specified.
677
+ # See the operation documentation for the appropriate value for this field.
678
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
679
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
680
+ # the policy is limited to a few 10s of KB. An empty policy is a
681
+ # valid policy but certain Cloud Platform services (such as Projects)
682
+ # might reject them.
683
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
684
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
685
+ # the fields in the mask will be modified. If no mask is provided, the
686
+ # following default mask is used:
687
+ #
688
+ # `paths: "bindings, etag"`
689
+ #
690
+ # @yield [response, operation] Access the result along with the RPC operation
691
+ # @yieldparam response [::Google::Iam::V1::Policy]
692
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
693
+ #
694
+ # @return [::Google::Iam::V1::Policy]
695
+ #
696
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
697
+ #
698
+ # @example Basic example
699
+ # require "google/cloud/dataplex/v1"
700
+ #
701
+ # # Create a client object. The client can be reused for multiple calls.
702
+ # client = Google::Cloud::Dataplex::V1::ContentService::Client.new
703
+ #
704
+ # # Create a request. To set request fields, pass in keyword arguments.
705
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
706
+ #
707
+ # # Call the set_iam_policy method.
708
+ # result = client.set_iam_policy request
709
+ #
710
+ # # The returned object is of type Google::Iam::V1::Policy.
711
+ # p result
712
+ #
713
+ def set_iam_policy request, options = nil
714
+ raise ::ArgumentError, "request must be provided" if request.nil?
715
+
716
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
717
+
718
+ # Converts hash and nil to an options object
719
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
720
+
721
+ # Customize the options with defaults
722
+ metadata = @config.rpcs.set_iam_policy.metadata.to_h
723
+
724
+ # Set x-goog-api-client and x-goog-user-project headers
725
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
726
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
727
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
728
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
729
+
730
+ header_params = {}
731
+ if request.resource
732
+ header_params["resource"] = request.resource
733
+ end
734
+
735
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
736
+ metadata[:"x-goog-request-params"] ||= request_params_header
737
+
738
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
739
+ metadata: metadata,
740
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
741
+
742
+ options.apply_defaults timeout: @config.timeout,
743
+ metadata: @config.metadata,
744
+ retry_policy: @config.retry_policy
745
+
746
+ @content_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
747
+ yield response, operation if block_given?
748
+ return response
749
+ end
750
+ rescue ::GRPC::BadStatus => e
751
+ raise ::Google::Cloud::Error.from_error(e)
752
+ end
753
+
754
+ ##
755
+ # Returns the caller's permissions on a resource.
756
+ # If the resource does not exist, an empty set of
757
+ # permissions is returned (a `NOT_FOUND` error is not returned).
758
+ #
759
+ # A caller is not required to have Google IAM permission to make this
760
+ # request.
761
+ #
762
+ # Note: This operation is designed to be used for building permission-aware
763
+ # UIs and command-line tools, not for authorization checking. This operation
764
+ # may "fail open" without warning.
765
+ #
766
+ # @overload test_iam_permissions(request, options = nil)
767
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
768
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
769
+ #
770
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
771
+ # A request object representing the call parameters. Required. To specify no
772
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
773
+ # @param options [::Gapic::CallOptions, ::Hash]
774
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
775
+ #
776
+ # @overload test_iam_permissions(resource: nil, permissions: nil)
777
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
778
+ # least one keyword argument is required. To specify no parameters, or to keep all
779
+ # the default parameter values, pass an empty Hash as a request object (see above).
780
+ #
781
+ # @param resource [::String]
782
+ # REQUIRED: The resource for which the policy detail is being requested.
783
+ # See the operation documentation for the appropriate value for this field.
784
+ # @param permissions [::Array<::String>]
785
+ # The set of permissions to check for the `resource`. Permissions with
786
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
787
+ # information see
788
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
789
+ #
790
+ # @yield [response, operation] Access the result along with the RPC operation
791
+ # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
792
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
793
+ #
794
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
795
+ #
796
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
797
+ #
798
+ # @example Basic example
799
+ # require "google/cloud/dataplex/v1"
800
+ #
801
+ # # Create a client object. The client can be reused for multiple calls.
802
+ # client = Google::Cloud::Dataplex::V1::ContentService::Client.new
803
+ #
804
+ # # Create a request. To set request fields, pass in keyword arguments.
805
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
806
+ #
807
+ # # Call the test_iam_permissions method.
808
+ # result = client.test_iam_permissions request
809
+ #
810
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
811
+ # p result
812
+ #
813
+ def test_iam_permissions request, options = nil
814
+ raise ::ArgumentError, "request must be provided" if request.nil?
815
+
816
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
817
+
818
+ # Converts hash and nil to an options object
819
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
820
+
821
+ # Customize the options with defaults
822
+ metadata = @config.rpcs.test_iam_permissions.metadata.to_h
823
+
824
+ # Set x-goog-api-client and x-goog-user-project headers
825
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
826
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
827
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
828
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
829
+
830
+ header_params = {}
831
+ if request.resource
832
+ header_params["resource"] = request.resource
833
+ end
834
+
835
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
836
+ metadata[:"x-goog-request-params"] ||= request_params_header
837
+
838
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
839
+ metadata: metadata,
840
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
841
+
842
+ options.apply_defaults timeout: @config.timeout,
843
+ metadata: @config.metadata,
844
+ retry_policy: @config.retry_policy
845
+
846
+ @content_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
847
+ yield response, operation if block_given?
848
+ return response
849
+ end
850
+ rescue ::GRPC::BadStatus => e
851
+ raise ::Google::Cloud::Error.from_error(e)
852
+ end
853
+
503
854
  ##
504
855
  # List content.
505
856
  #
@@ -768,6 +1119,21 @@ module Google
768
1119
  #
769
1120
  attr_reader :get_content
770
1121
  ##
1122
+ # RPC-specific configuration for `get_iam_policy`
1123
+ # @return [::Gapic::Config::Method]
1124
+ #
1125
+ attr_reader :get_iam_policy
1126
+ ##
1127
+ # RPC-specific configuration for `set_iam_policy`
1128
+ # @return [::Gapic::Config::Method]
1129
+ #
1130
+ attr_reader :set_iam_policy
1131
+ ##
1132
+ # RPC-specific configuration for `test_iam_permissions`
1133
+ # @return [::Gapic::Config::Method]
1134
+ #
1135
+ attr_reader :test_iam_permissions
1136
+ ##
771
1137
  # RPC-specific configuration for `list_content`
772
1138
  # @return [::Gapic::Config::Method]
773
1139
  #
@@ -783,6 +1149,12 @@ module Google
783
1149
  @delete_content = ::Gapic::Config::Method.new delete_content_config
784
1150
  get_content_config = parent_rpcs.get_content if parent_rpcs.respond_to? :get_content
785
1151
  @get_content = ::Gapic::Config::Method.new get_content_config
1152
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
1153
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1154
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1155
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1156
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1157
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
786
1158
  list_content_config = parent_rpcs.list_content if parent_rpcs.respond_to? :list_content
787
1159
  @list_content = ::Gapic::Config::Method.new list_content_config
788
1160
 
@@ -41,6 +41,30 @@ module Google
41
41
  rpc :DeleteContent, ::Google::Cloud::Dataplex::V1::DeleteContentRequest, ::Google::Protobuf::Empty
42
42
  # Get a content resource.
43
43
  rpc :GetContent, ::Google::Cloud::Dataplex::V1::GetContentRequest, ::Google::Cloud::Dataplex::V1::Content
44
+ # Gets the access control policy for a contentitem resource. A `NOT_FOUND`
45
+ # error is returned if the resource does not exist. An empty policy is
46
+ # returned if the resource exists but does not have a policy set on it.
47
+ #
48
+ # Caller must have Google IAM `dataplex.content.getIamPolicy` permission
49
+ # on the resource.
50
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
51
+ # Sets the access control policy on the specified contentitem resource.
52
+ # Replaces any existing policy.
53
+ #
54
+ # Caller must have Google IAM `dataplex.content.setIamPolicy` permission
55
+ # on the resource.
56
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
57
+ # Returns the caller's permissions on a resource.
58
+ # If the resource does not exist, an empty set of
59
+ # permissions is returned (a `NOT_FOUND` error is not returned).
60
+ #
61
+ # A caller is not required to have Google IAM permission to make this
62
+ # request.
63
+ #
64
+ # Note: This operation is designed to be used for building permission-aware
65
+ # UIs and command-line tools, not for authorization checking. This operation
66
+ # may "fail open" without warning.
67
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
44
68
  # List content.
45
69
  rpc :ListContent, ::Google::Cloud::Dataplex::V1::ListContentRequest, ::Google::Cloud::Dataplex::V1::ListContentResponse
46
70
  end