google-cloud-cloud_controls_partner-v1beta 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/client.rb +295 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/rest/client.rb +286 -6
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/rest/service_stub.rb +185 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/client.rb +7 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/rest/client.rb +11 -2
- data/lib/google/cloud/cloud_controls_partner/v1beta/version.rb +1 -1
- data/lib/google/cloud/cloudcontrolspartner/v1beta/core_pb.rb +2 -1
- data/lib/google/cloud/cloudcontrolspartner/v1beta/core_services_pb.rb +6 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/customers_pb.rb +6 -1
- data/lib/google/cloud/cloudcontrolspartner/v1beta/partners_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +8 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/core.rb +1 -1
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/customers.rb +46 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/partners.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +8 -9
    
        data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/rest/client.rb
    CHANGED
    
    | @@ -323,10 +323,10 @@ module Google | |
| 323 323 | 
             
                          #   @param order_by [::String]
         | 
| 324 324 | 
             
                          #     Optional. Hint for how to order the results.
         | 
| 325 325 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 326 | 
            -
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 326 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Workload>]
         | 
| 327 327 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 328 328 | 
             
                          #
         | 
| 329 | 
            -
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 329 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Workload>]
         | 
| 330 330 | 
             
                          #
         | 
| 331 331 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 332 332 | 
             
                          #
         | 
| @@ -378,7 +378,9 @@ module Google | |
| 378 378 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 379 379 |  | 
| 380 380 | 
             
                            @cloud_controls_partner_core_stub.list_workloads request, options do |result, operation|
         | 
| 381 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @cloud_controls_partner_core_stub, :list_workloads, "workloads", request, result, options
         | 
| 381 382 | 
             
                              yield result, operation if block_given?
         | 
| 383 | 
            +
                              throw :response, result
         | 
| 382 384 | 
             
                            end
         | 
| 383 385 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 384 386 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -495,10 +497,10 @@ module Google | |
| 495 497 | 
             
                          #   @param order_by [::String]
         | 
| 496 498 | 
             
                          #     Optional. Hint for how to order the results
         | 
| 497 499 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 498 | 
            -
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 500 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Customer>]
         | 
| 499 501 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 500 502 | 
             
                          #
         | 
| 501 | 
            -
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 503 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Customer>]
         | 
| 502 504 | 
             
                          #
         | 
| 503 505 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 504 506 | 
             
                          #
         | 
| @@ -550,7 +552,9 @@ module Google | |
| 550 552 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 551 553 |  | 
| 552 554 | 
             
                            @cloud_controls_partner_core_stub.list_customers request, options do |result, operation|
         | 
| 555 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @cloud_controls_partner_core_stub, :list_customers, "customers", request, result, options
         | 
| 553 556 | 
             
                              yield result, operation if block_given?
         | 
| 557 | 
            +
                              throw :response, result
         | 
| 554 558 | 
             
                            end
         | 
| 555 559 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 556 560 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -750,10 +754,10 @@ module Google | |
| 750 754 | 
             
                          #   @param order_by [::String]
         | 
| 751 755 | 
             
                          #     Optional. Hint for how to order the results.
         | 
| 752 756 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 753 | 
            -
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 757 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest>]
         | 
| 754 758 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 755 759 | 
             
                          #
         | 
| 756 | 
            -
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 760 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest>]
         | 
| 757 761 | 
             
                          #
         | 
| 758 762 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 759 763 | 
             
                          #
         | 
| @@ -805,7 +809,9 @@ module Google | |
| 805 809 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 806 810 |  | 
| 807 811 | 
             
                            @cloud_controls_partner_core_stub.list_access_approval_requests request, options do |result, operation|
         | 
| 812 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @cloud_controls_partner_core_stub, :list_access_approval_requests, "access_approval_requests", request, result, options
         | 
| 808 813 | 
             
                              yield result, operation if block_given?
         | 
| 814 | 
            +
                              throw :response, result
         | 
| 809 815 | 
             
                            end
         | 
| 810 816 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 811 817 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -890,6 +896,252 @@ module Google | |
| 890 896 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| 891 897 | 
             
                          end
         | 
| 892 898 |  | 
| 899 | 
            +
                          ##
         | 
| 900 | 
            +
                          # Creates a new customer.
         | 
| 901 | 
            +
                          #
         | 
| 902 | 
            +
                          # @overload create_customer(request, options = nil)
         | 
| 903 | 
            +
                          #   Pass arguments to `create_customer` via a request object, either of type
         | 
| 904 | 
            +
                          #   {::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest} or an equivalent Hash.
         | 
| 905 | 
            +
                          #
         | 
| 906 | 
            +
                          #   @param request [::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest, ::Hash]
         | 
| 907 | 
            +
                          #     A request object representing the call parameters. Required. To specify no
         | 
| 908 | 
            +
                          #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 909 | 
            +
                          #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 910 | 
            +
                          #     Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         | 
| 911 | 
            +
                          #
         | 
| 912 | 
            +
                          # @overload create_customer(parent: nil, customer: nil, customer_id: nil)
         | 
| 913 | 
            +
                          #   Pass arguments to `create_customer` via keyword arguments. Note that at
         | 
| 914 | 
            +
                          #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 915 | 
            +
                          #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 916 | 
            +
                          #
         | 
| 917 | 
            +
                          #   @param parent [::String]
         | 
| 918 | 
            +
                          #     Required. Parent resource
         | 
| 919 | 
            +
                          #     Format: `organizations/{organization}/locations/{location}`
         | 
| 920 | 
            +
                          #   @param customer [::Google::Cloud::CloudControlsPartner::V1beta::Customer, ::Hash]
         | 
| 921 | 
            +
                          #     Required. The customer to create.
         | 
| 922 | 
            +
                          #   @param customer_id [::String]
         | 
| 923 | 
            +
                          #     Required. The customer id to use for the customer, which will become the
         | 
| 924 | 
            +
                          #     final component of the customer's resource name. The specified value must
         | 
| 925 | 
            +
                          #     be a valid Google cloud organization id.
         | 
| 926 | 
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 927 | 
            +
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 928 | 
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 929 | 
            +
                          #
         | 
| 930 | 
            +
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 931 | 
            +
                          #
         | 
| 932 | 
            +
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 933 | 
            +
                          #
         | 
| 934 | 
            +
                          # @example Basic example
         | 
| 935 | 
            +
                          #   require "google/cloud/cloud_controls_partner/v1beta"
         | 
| 936 | 
            +
                          #
         | 
| 937 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 938 | 
            +
                          #   client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new
         | 
| 939 | 
            +
                          #
         | 
| 940 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 941 | 
            +
                          #   request = Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest.new
         | 
| 942 | 
            +
                          #
         | 
| 943 | 
            +
                          #   # Call the create_customer method.
         | 
| 944 | 
            +
                          #   result = client.create_customer request
         | 
| 945 | 
            +
                          #
         | 
| 946 | 
            +
                          #   # The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Customer.
         | 
| 947 | 
            +
                          #   p result
         | 
| 948 | 
            +
                          #
         | 
| 949 | 
            +
                          def create_customer request, options = nil
         | 
| 950 | 
            +
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 951 | 
            +
             | 
| 952 | 
            +
                            request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest
         | 
| 953 | 
            +
             | 
| 954 | 
            +
                            # Converts hash and nil to an options object
         | 
| 955 | 
            +
                            options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 956 | 
            +
             | 
| 957 | 
            +
                            # Customize the options with defaults
         | 
| 958 | 
            +
                            call_metadata = @config.rpcs.create_customer.metadata.to_h
         | 
| 959 | 
            +
             | 
| 960 | 
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         | 
| 961 | 
            +
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 962 | 
            +
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 963 | 
            +
                              gapic_version: ::Google::Cloud::CloudControlsPartner::V1beta::VERSION,
         | 
| 964 | 
            +
                              transports_version_send: [:rest]
         | 
| 965 | 
            +
             | 
| 966 | 
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         | 
| 967 | 
            +
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 968 | 
            +
             | 
| 969 | 
            +
                            options.apply_defaults timeout:      @config.rpcs.create_customer.timeout,
         | 
| 970 | 
            +
                                                   metadata:     call_metadata,
         | 
| 971 | 
            +
                                                   retry_policy: @config.rpcs.create_customer.retry_policy
         | 
| 972 | 
            +
             | 
| 973 | 
            +
                            options.apply_defaults timeout:      @config.timeout,
         | 
| 974 | 
            +
                                                   metadata:     @config.metadata,
         | 
| 975 | 
            +
                                                   retry_policy: @config.retry_policy
         | 
| 976 | 
            +
             | 
| 977 | 
            +
                            @cloud_controls_partner_core_stub.create_customer request, options do |result, operation|
         | 
| 978 | 
            +
                              yield result, operation if block_given?
         | 
| 979 | 
            +
                            end
         | 
| 980 | 
            +
                          rescue ::Gapic::Rest::Error => e
         | 
| 981 | 
            +
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| 982 | 
            +
                          end
         | 
| 983 | 
            +
             | 
| 984 | 
            +
                          ##
         | 
| 985 | 
            +
                          # Update details of a single customer
         | 
| 986 | 
            +
                          #
         | 
| 987 | 
            +
                          # @overload update_customer(request, options = nil)
         | 
| 988 | 
            +
                          #   Pass arguments to `update_customer` via a request object, either of type
         | 
| 989 | 
            +
                          #   {::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest} or an equivalent Hash.
         | 
| 990 | 
            +
                          #
         | 
| 991 | 
            +
                          #   @param request [::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest, ::Hash]
         | 
| 992 | 
            +
                          #     A request object representing the call parameters. Required. To specify no
         | 
| 993 | 
            +
                          #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 994 | 
            +
                          #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 995 | 
            +
                          #     Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         | 
| 996 | 
            +
                          #
         | 
| 997 | 
            +
                          # @overload update_customer(customer: nil, update_mask: nil)
         | 
| 998 | 
            +
                          #   Pass arguments to `update_customer` via keyword arguments. Note that at
         | 
| 999 | 
            +
                          #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1000 | 
            +
                          #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 1001 | 
            +
                          #
         | 
| 1002 | 
            +
                          #   @param customer [::Google::Cloud::CloudControlsPartner::V1beta::Customer, ::Hash]
         | 
| 1003 | 
            +
                          #     Required. The customer to update
         | 
| 1004 | 
            +
                          #     Format:
         | 
| 1005 | 
            +
                          #     `organizations/{organization}/locations/{location}/customers/{customer}`
         | 
| 1006 | 
            +
                          #   @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
         | 
| 1007 | 
            +
                          #     Optional. The list of fields to update
         | 
| 1008 | 
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 1009 | 
            +
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 1010 | 
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 1011 | 
            +
                          #
         | 
| 1012 | 
            +
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 1013 | 
            +
                          #
         | 
| 1014 | 
            +
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 1015 | 
            +
                          #
         | 
| 1016 | 
            +
                          # @example Basic example
         | 
| 1017 | 
            +
                          #   require "google/cloud/cloud_controls_partner/v1beta"
         | 
| 1018 | 
            +
                          #
         | 
| 1019 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 1020 | 
            +
                          #   client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new
         | 
| 1021 | 
            +
                          #
         | 
| 1022 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 1023 | 
            +
                          #   request = Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest.new
         | 
| 1024 | 
            +
                          #
         | 
| 1025 | 
            +
                          #   # Call the update_customer method.
         | 
| 1026 | 
            +
                          #   result = client.update_customer request
         | 
| 1027 | 
            +
                          #
         | 
| 1028 | 
            +
                          #   # The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Customer.
         | 
| 1029 | 
            +
                          #   p result
         | 
| 1030 | 
            +
                          #
         | 
| 1031 | 
            +
                          def update_customer request, options = nil
         | 
| 1032 | 
            +
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 1033 | 
            +
             | 
| 1034 | 
            +
                            request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest
         | 
| 1035 | 
            +
             | 
| 1036 | 
            +
                            # Converts hash and nil to an options object
         | 
| 1037 | 
            +
                            options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 1038 | 
            +
             | 
| 1039 | 
            +
                            # Customize the options with defaults
         | 
| 1040 | 
            +
                            call_metadata = @config.rpcs.update_customer.metadata.to_h
         | 
| 1041 | 
            +
             | 
| 1042 | 
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         | 
| 1043 | 
            +
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 1044 | 
            +
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 1045 | 
            +
                              gapic_version: ::Google::Cloud::CloudControlsPartner::V1beta::VERSION,
         | 
| 1046 | 
            +
                              transports_version_send: [:rest]
         | 
| 1047 | 
            +
             | 
| 1048 | 
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         | 
| 1049 | 
            +
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 1050 | 
            +
             | 
| 1051 | 
            +
                            options.apply_defaults timeout:      @config.rpcs.update_customer.timeout,
         | 
| 1052 | 
            +
                                                   metadata:     call_metadata,
         | 
| 1053 | 
            +
                                                   retry_policy: @config.rpcs.update_customer.retry_policy
         | 
| 1054 | 
            +
             | 
| 1055 | 
            +
                            options.apply_defaults timeout:      @config.timeout,
         | 
| 1056 | 
            +
                                                   metadata:     @config.metadata,
         | 
| 1057 | 
            +
                                                   retry_policy: @config.retry_policy
         | 
| 1058 | 
            +
             | 
| 1059 | 
            +
                            @cloud_controls_partner_core_stub.update_customer request, options do |result, operation|
         | 
| 1060 | 
            +
                              yield result, operation if block_given?
         | 
| 1061 | 
            +
                            end
         | 
| 1062 | 
            +
                          rescue ::Gapic::Rest::Error => e
         | 
| 1063 | 
            +
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| 1064 | 
            +
                          end
         | 
| 1065 | 
            +
             | 
| 1066 | 
            +
                          ##
         | 
| 1067 | 
            +
                          # Delete details of a single customer
         | 
| 1068 | 
            +
                          #
         | 
| 1069 | 
            +
                          # @overload delete_customer(request, options = nil)
         | 
| 1070 | 
            +
                          #   Pass arguments to `delete_customer` via a request object, either of type
         | 
| 1071 | 
            +
                          #   {::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest} or an equivalent Hash.
         | 
| 1072 | 
            +
                          #
         | 
| 1073 | 
            +
                          #   @param request [::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest, ::Hash]
         | 
| 1074 | 
            +
                          #     A request object representing the call parameters. Required. To specify no
         | 
| 1075 | 
            +
                          #     parameters, or to keep all the default parameter values, pass an empty Hash.
         | 
| 1076 | 
            +
                          #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1077 | 
            +
                          #     Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         | 
| 1078 | 
            +
                          #
         | 
| 1079 | 
            +
                          # @overload delete_customer(name: nil)
         | 
| 1080 | 
            +
                          #   Pass arguments to `delete_customer` via keyword arguments. Note that at
         | 
| 1081 | 
            +
                          #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1082 | 
            +
                          #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 1083 | 
            +
                          #
         | 
| 1084 | 
            +
                          #   @param name [::String]
         | 
| 1085 | 
            +
                          #     Required. name of the resource to be deleted
         | 
| 1086 | 
            +
                          #     format: name=organizations/*/locations/*/customers/*
         | 
| 1087 | 
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 1088 | 
            +
                          # @yieldparam result [::Google::Protobuf::Empty]
         | 
| 1089 | 
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 1090 | 
            +
                          #
         | 
| 1091 | 
            +
                          # @return [::Google::Protobuf::Empty]
         | 
| 1092 | 
            +
                          #
         | 
| 1093 | 
            +
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 1094 | 
            +
                          #
         | 
| 1095 | 
            +
                          # @example Basic example
         | 
| 1096 | 
            +
                          #   require "google/cloud/cloud_controls_partner/v1beta"
         | 
| 1097 | 
            +
                          #
         | 
| 1098 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 1099 | 
            +
                          #   client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new
         | 
| 1100 | 
            +
                          #
         | 
| 1101 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 1102 | 
            +
                          #   request = Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest.new
         | 
| 1103 | 
            +
                          #
         | 
| 1104 | 
            +
                          #   # Call the delete_customer method.
         | 
| 1105 | 
            +
                          #   result = client.delete_customer request
         | 
| 1106 | 
            +
                          #
         | 
| 1107 | 
            +
                          #   # The returned object is of type Google::Protobuf::Empty.
         | 
| 1108 | 
            +
                          #   p result
         | 
| 1109 | 
            +
                          #
         | 
| 1110 | 
            +
                          def delete_customer request, options = nil
         | 
| 1111 | 
            +
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 1112 | 
            +
             | 
| 1113 | 
            +
                            request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest
         | 
| 1114 | 
            +
             | 
| 1115 | 
            +
                            # Converts hash and nil to an options object
         | 
| 1116 | 
            +
                            options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         | 
| 1117 | 
            +
             | 
| 1118 | 
            +
                            # Customize the options with defaults
         | 
| 1119 | 
            +
                            call_metadata = @config.rpcs.delete_customer.metadata.to_h
         | 
| 1120 | 
            +
             | 
| 1121 | 
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         | 
| 1122 | 
            +
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         | 
| 1123 | 
            +
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         | 
| 1124 | 
            +
                              gapic_version: ::Google::Cloud::CloudControlsPartner::V1beta::VERSION,
         | 
| 1125 | 
            +
                              transports_version_send: [:rest]
         | 
| 1126 | 
            +
             | 
| 1127 | 
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         | 
| 1128 | 
            +
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 1129 | 
            +
             | 
| 1130 | 
            +
                            options.apply_defaults timeout:      @config.rpcs.delete_customer.timeout,
         | 
| 1131 | 
            +
                                                   metadata:     call_metadata,
         | 
| 1132 | 
            +
                                                   retry_policy: @config.rpcs.delete_customer.retry_policy
         | 
| 1133 | 
            +
             | 
| 1134 | 
            +
                            options.apply_defaults timeout:      @config.timeout,
         | 
| 1135 | 
            +
                                                   metadata:     @config.metadata,
         | 
| 1136 | 
            +
                                                   retry_policy: @config.retry_policy
         | 
| 1137 | 
            +
             | 
| 1138 | 
            +
                            @cloud_controls_partner_core_stub.delete_customer request, options do |result, operation|
         | 
| 1139 | 
            +
                              yield result, operation if block_given?
         | 
| 1140 | 
            +
                            end
         | 
| 1141 | 
            +
                          rescue ::Gapic::Rest::Error => e
         | 
| 1142 | 
            +
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| 1143 | 
            +
                          end
         | 
| 1144 | 
            +
             | 
| 893 1145 | 
             
                          ##
         | 
| 894 1146 | 
             
                          # Configuration class for the CloudControlsPartnerCore REST API.
         | 
| 895 1147 | 
             
                          #
         | 
| @@ -932,6 +1184,13 @@ module Google | |
| 932 1184 | 
             
                          #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| 933 1185 | 
             
                          #       (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
         | 
| 934 1186 | 
             
                          #    *  (`nil`) indicating no credentials
         | 
| 1187 | 
            +
                          #
         | 
| 1188 | 
            +
                          #   Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 1189 | 
            +
                          #   external source for authentication to Google Cloud, you must validate it before
         | 
| 1190 | 
            +
                          #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 1191 | 
            +
                          #   configuration to Google APIs can compromise the security of your systems and data.
         | 
| 1192 | 
            +
                          #   For more information, refer to [Validate credential configurations from external
         | 
| 1193 | 
            +
                          #   sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
         | 
| 935 1194 | 
             
                          #   @return [::Object]
         | 
| 936 1195 | 
             
                          # @!attribute [rw] scope
         | 
| 937 1196 | 
             
                          #   The OAuth scopes
         | 
| @@ -1069,6 +1328,21 @@ module Google | |
| 1069 1328 | 
             
                              # @return [::Gapic::Config::Method]
         | 
| 1070 1329 | 
             
                              #
         | 
| 1071 1330 | 
             
                              attr_reader :get_partner
         | 
| 1331 | 
            +
                              ##
         | 
| 1332 | 
            +
                              # RPC-specific configuration for `create_customer`
         | 
| 1333 | 
            +
                              # @return [::Gapic::Config::Method]
         | 
| 1334 | 
            +
                              #
         | 
| 1335 | 
            +
                              attr_reader :create_customer
         | 
| 1336 | 
            +
                              ##
         | 
| 1337 | 
            +
                              # RPC-specific configuration for `update_customer`
         | 
| 1338 | 
            +
                              # @return [::Gapic::Config::Method]
         | 
| 1339 | 
            +
                              #
         | 
| 1340 | 
            +
                              attr_reader :update_customer
         | 
| 1341 | 
            +
                              ##
         | 
| 1342 | 
            +
                              # RPC-specific configuration for `delete_customer`
         | 
| 1343 | 
            +
                              # @return [::Gapic::Config::Method]
         | 
| 1344 | 
            +
                              #
         | 
| 1345 | 
            +
                              attr_reader :delete_customer
         | 
| 1072 1346 |  | 
| 1073 1347 | 
             
                              # @private
         | 
| 1074 1348 | 
             
                              def initialize parent_rpcs = nil
         | 
| @@ -1088,6 +1362,12 @@ module Google | |
| 1088 1362 | 
             
                                @list_access_approval_requests = ::Gapic::Config::Method.new list_access_approval_requests_config
         | 
| 1089 1363 | 
             
                                get_partner_config = parent_rpcs.get_partner if parent_rpcs.respond_to? :get_partner
         | 
| 1090 1364 | 
             
                                @get_partner = ::Gapic::Config::Method.new get_partner_config
         | 
| 1365 | 
            +
                                create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer
         | 
| 1366 | 
            +
                                @create_customer = ::Gapic::Config::Method.new create_customer_config
         | 
| 1367 | 
            +
                                update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer
         | 
| 1368 | 
            +
                                @update_customer = ::Gapic::Config::Method.new update_customer_config
         | 
| 1369 | 
            +
                                delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer
         | 
| 1370 | 
            +
                                @delete_customer = ::Gapic::Config::Method.new delete_customer_config
         | 
| 1091 1371 |  | 
| 1092 1372 | 
             
                                yield self if block_given?
         | 
| 1093 1373 | 
             
                              end
         | 
    
        data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/rest/service_stub.rb
    CHANGED
    
    | @@ -393,6 +393,126 @@ module Google | |
| 393 393 | 
             
                            end
         | 
| 394 394 | 
             
                          end
         | 
| 395 395 |  | 
| 396 | 
            +
                          ##
         | 
| 397 | 
            +
                          # Baseline implementation for the create_customer REST call
         | 
| 398 | 
            +
                          #
         | 
| 399 | 
            +
                          # @param request_pb [::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest]
         | 
| 400 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 401 | 
            +
                          # @param options [::Gapic::CallOptions]
         | 
| 402 | 
            +
                          #   Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         | 
| 403 | 
            +
                          #
         | 
| 404 | 
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 405 | 
            +
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 406 | 
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 407 | 
            +
                          #
         | 
| 408 | 
            +
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 409 | 
            +
                          #   A result object deserialized from the server's reply
         | 
| 410 | 
            +
                          def create_customer request_pb, options = nil
         | 
| 411 | 
            +
                            raise ::ArgumentError, "request must be provided" if request_pb.nil?
         | 
| 412 | 
            +
             | 
| 413 | 
            +
                            verb, uri, query_string_params, body = ServiceStub.transcode_create_customer_request request_pb
         | 
| 414 | 
            +
                            query_string_params = if query_string_params.any?
         | 
| 415 | 
            +
                                                    query_string_params.to_h { |p| p.split "=", 2 }
         | 
| 416 | 
            +
                                                  else
         | 
| 417 | 
            +
                                                    {}
         | 
| 418 | 
            +
                                                  end
         | 
| 419 | 
            +
             | 
| 420 | 
            +
                            response = @client_stub.make_http_request(
         | 
| 421 | 
            +
                              verb,
         | 
| 422 | 
            +
                              uri: uri,
         | 
| 423 | 
            +
                              body: body || "",
         | 
| 424 | 
            +
                              params: query_string_params,
         | 
| 425 | 
            +
                              method_name: "create_customer",
         | 
| 426 | 
            +
                              options: options
         | 
| 427 | 
            +
                            )
         | 
| 428 | 
            +
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 429 | 
            +
                            result = ::Google::Cloud::CloudControlsPartner::V1beta::Customer.decode_json response.body, ignore_unknown_fields: true
         | 
| 430 | 
            +
                            catch :response do
         | 
| 431 | 
            +
                              yield result, operation if block_given?
         | 
| 432 | 
            +
                              result
         | 
| 433 | 
            +
                            end
         | 
| 434 | 
            +
                          end
         | 
| 435 | 
            +
             | 
| 436 | 
            +
                          ##
         | 
| 437 | 
            +
                          # Baseline implementation for the update_customer REST call
         | 
| 438 | 
            +
                          #
         | 
| 439 | 
            +
                          # @param request_pb [::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest]
         | 
| 440 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 441 | 
            +
                          # @param options [::Gapic::CallOptions]
         | 
| 442 | 
            +
                          #   Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         | 
| 443 | 
            +
                          #
         | 
| 444 | 
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 445 | 
            +
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 446 | 
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 447 | 
            +
                          #
         | 
| 448 | 
            +
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
         | 
| 449 | 
            +
                          #   A result object deserialized from the server's reply
         | 
| 450 | 
            +
                          def update_customer request_pb, options = nil
         | 
| 451 | 
            +
                            raise ::ArgumentError, "request must be provided" if request_pb.nil?
         | 
| 452 | 
            +
             | 
| 453 | 
            +
                            verb, uri, query_string_params, body = ServiceStub.transcode_update_customer_request request_pb
         | 
| 454 | 
            +
                            query_string_params = if query_string_params.any?
         | 
| 455 | 
            +
                                                    query_string_params.to_h { |p| p.split "=", 2 }
         | 
| 456 | 
            +
                                                  else
         | 
| 457 | 
            +
                                                    {}
         | 
| 458 | 
            +
                                                  end
         | 
| 459 | 
            +
             | 
| 460 | 
            +
                            response = @client_stub.make_http_request(
         | 
| 461 | 
            +
                              verb,
         | 
| 462 | 
            +
                              uri: uri,
         | 
| 463 | 
            +
                              body: body || "",
         | 
| 464 | 
            +
                              params: query_string_params,
         | 
| 465 | 
            +
                              method_name: "update_customer",
         | 
| 466 | 
            +
                              options: options
         | 
| 467 | 
            +
                            )
         | 
| 468 | 
            +
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 469 | 
            +
                            result = ::Google::Cloud::CloudControlsPartner::V1beta::Customer.decode_json response.body, ignore_unknown_fields: true
         | 
| 470 | 
            +
                            catch :response do
         | 
| 471 | 
            +
                              yield result, operation if block_given?
         | 
| 472 | 
            +
                              result
         | 
| 473 | 
            +
                            end
         | 
| 474 | 
            +
                          end
         | 
| 475 | 
            +
             | 
| 476 | 
            +
                          ##
         | 
| 477 | 
            +
                          # Baseline implementation for the delete_customer REST call
         | 
| 478 | 
            +
                          #
         | 
| 479 | 
            +
                          # @param request_pb [::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest]
         | 
| 480 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 481 | 
            +
                          # @param options [::Gapic::CallOptions]
         | 
| 482 | 
            +
                          #   Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         | 
| 483 | 
            +
                          #
         | 
| 484 | 
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 485 | 
            +
                          # @yieldparam result [::Google::Protobuf::Empty]
         | 
| 486 | 
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 487 | 
            +
                          #
         | 
| 488 | 
            +
                          # @return [::Google::Protobuf::Empty]
         | 
| 489 | 
            +
                          #   A result object deserialized from the server's reply
         | 
| 490 | 
            +
                          def delete_customer request_pb, options = nil
         | 
| 491 | 
            +
                            raise ::ArgumentError, "request must be provided" if request_pb.nil?
         | 
| 492 | 
            +
             | 
| 493 | 
            +
                            verb, uri, query_string_params, body = ServiceStub.transcode_delete_customer_request request_pb
         | 
| 494 | 
            +
                            query_string_params = if query_string_params.any?
         | 
| 495 | 
            +
                                                    query_string_params.to_h { |p| p.split "=", 2 }
         | 
| 496 | 
            +
                                                  else
         | 
| 497 | 
            +
                                                    {}
         | 
| 498 | 
            +
                                                  end
         | 
| 499 | 
            +
             | 
| 500 | 
            +
                            response = @client_stub.make_http_request(
         | 
| 501 | 
            +
                              verb,
         | 
| 502 | 
            +
                              uri: uri,
         | 
| 503 | 
            +
                              body: body || "",
         | 
| 504 | 
            +
                              params: query_string_params,
         | 
| 505 | 
            +
                              method_name: "delete_customer",
         | 
| 506 | 
            +
                              options: options
         | 
| 507 | 
            +
                            )
         | 
| 508 | 
            +
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 509 | 
            +
                            result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
         | 
| 510 | 
            +
                            catch :response do
         | 
| 511 | 
            +
                              yield result, operation if block_given?
         | 
| 512 | 
            +
                              result
         | 
| 513 | 
            +
                            end
         | 
| 514 | 
            +
                          end
         | 
| 515 | 
            +
             | 
| 396 516 | 
             
                          ##
         | 
| 397 517 | 
             
                          # @private
         | 
| 398 518 | 
             
                          #
         | 
| @@ -560,6 +680,71 @@ module Google | |
| 560 680 | 
             
                                                                    )
         | 
| 561 681 | 
             
                            transcoder.transcode request_pb
         | 
| 562 682 | 
             
                          end
         | 
| 683 | 
            +
             | 
| 684 | 
            +
                          ##
         | 
| 685 | 
            +
                          # @private
         | 
| 686 | 
            +
                          #
         | 
| 687 | 
            +
                          # GRPC transcoding helper method for the create_customer REST call
         | 
| 688 | 
            +
                          #
         | 
| 689 | 
            +
                          # @param request_pb [::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest]
         | 
| 690 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 691 | 
            +
                          # @return [Array(String, [String, nil], Hash{String => String})]
         | 
| 692 | 
            +
                          #   Uri, Body, Query string parameters
         | 
| 693 | 
            +
                          def self.transcode_create_customer_request request_pb
         | 
| 694 | 
            +
                            transcoder = Gapic::Rest::GrpcTranscoder.new
         | 
| 695 | 
            +
                                                                    .with_bindings(
         | 
| 696 | 
            +
                                                                      uri_method: :post,
         | 
| 697 | 
            +
                                                                      uri_template: "/v1beta/{parent}/customers",
         | 
| 698 | 
            +
                                                                      body: "customer",
         | 
| 699 | 
            +
                                                                      matches: [
         | 
| 700 | 
            +
                                                                        ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
         | 
| 701 | 
            +
                                                                      ]
         | 
| 702 | 
            +
                                                                    )
         | 
| 703 | 
            +
                            transcoder.transcode request_pb
         | 
| 704 | 
            +
                          end
         | 
| 705 | 
            +
             | 
| 706 | 
            +
                          ##
         | 
| 707 | 
            +
                          # @private
         | 
| 708 | 
            +
                          #
         | 
| 709 | 
            +
                          # GRPC transcoding helper method for the update_customer REST call
         | 
| 710 | 
            +
                          #
         | 
| 711 | 
            +
                          # @param request_pb [::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest]
         | 
| 712 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 713 | 
            +
                          # @return [Array(String, [String, nil], Hash{String => String})]
         | 
| 714 | 
            +
                          #   Uri, Body, Query string parameters
         | 
| 715 | 
            +
                          def self.transcode_update_customer_request request_pb
         | 
| 716 | 
            +
                            transcoder = Gapic::Rest::GrpcTranscoder.new
         | 
| 717 | 
            +
                                                                    .with_bindings(
         | 
| 718 | 
            +
                                                                      uri_method: :patch,
         | 
| 719 | 
            +
                                                                      uri_template: "/v1beta/{customer.name}",
         | 
| 720 | 
            +
                                                                      body: "customer",
         | 
| 721 | 
            +
                                                                      matches: [
         | 
| 722 | 
            +
                                                                        ["customer.name", %r{^organizations/[^/]+/locations/[^/]+/customers/[^/]+/?$}, false]
         | 
| 723 | 
            +
                                                                      ]
         | 
| 724 | 
            +
                                                                    )
         | 
| 725 | 
            +
                            transcoder.transcode request_pb
         | 
| 726 | 
            +
                          end
         | 
| 727 | 
            +
             | 
| 728 | 
            +
                          ##
         | 
| 729 | 
            +
                          # @private
         | 
| 730 | 
            +
                          #
         | 
| 731 | 
            +
                          # GRPC transcoding helper method for the delete_customer REST call
         | 
| 732 | 
            +
                          #
         | 
| 733 | 
            +
                          # @param request_pb [::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest]
         | 
| 734 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 735 | 
            +
                          # @return [Array(String, [String, nil], Hash{String => String})]
         | 
| 736 | 
            +
                          #   Uri, Body, Query string parameters
         | 
| 737 | 
            +
                          def self.transcode_delete_customer_request request_pb
         | 
| 738 | 
            +
                            transcoder = Gapic::Rest::GrpcTranscoder.new
         | 
| 739 | 
            +
                                                                    .with_bindings(
         | 
| 740 | 
            +
                                                                      uri_method: :delete,
         | 
| 741 | 
            +
                                                                      uri_template: "/v1beta/{name}",
         | 
| 742 | 
            +
                                                                      matches: [
         | 
| 743 | 
            +
                                                                        ["name", %r{^organizations/[^/]+/locations/[^/]+/customers/[^/]+/?$}, false]
         | 
| 744 | 
            +
                                                                      ]
         | 
| 745 | 
            +
                                                                    )
         | 
| 746 | 
            +
                            transcoder.transcode request_pb
         | 
| 747 | 
            +
                          end
         | 
| 563 748 | 
             
                        end
         | 
| 564 749 | 
             
                      end
         | 
| 565 750 | 
             
                    end
         | 
    
        data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/client.rb
    CHANGED
    
    | @@ -436,6 +436,13 @@ module Google | |
| 436 436 | 
             
                        #    *  (`GRPC::Core::Channel`) a gRPC channel with included credentials
         | 
| 437 437 | 
             
                        #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 438 438 | 
             
                        #    *  (`nil`) indicating no credentials
         | 
| 439 | 
            +
                        #
         | 
| 440 | 
            +
                        #   Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 441 | 
            +
                        #   external source for authentication to Google Cloud, you must validate it before
         | 
| 442 | 
            +
                        #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 443 | 
            +
                        #   configuration to Google APIs can compromise the security of your systems and data.
         | 
| 444 | 
            +
                        #   For more information, refer to [Validate credential configurations from external
         | 
| 445 | 
            +
                        #   sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
         | 
| 439 446 | 
             
                        #   @return [::Object]
         | 
| 440 447 | 
             
                        # @!attribute [rw] scope
         | 
| 441 448 | 
             
                        #   The OAuth scopes
         | 
    
        data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/rest/client.rb
    CHANGED
    
    | @@ -229,10 +229,10 @@ module Google | |
| 229 229 | 
             
                          #     Optional. Specifies the interval for retrieving violations.
         | 
| 230 230 | 
             
                          #     if unspecified, all violations will be returned.
         | 
| 231 231 | 
             
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 232 | 
            -
                          # @yieldparam result [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 232 | 
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Violation>]
         | 
| 233 233 | 
             
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 234 234 | 
             
                          #
         | 
| 235 | 
            -
                          # @return [::Google::Cloud::CloudControlsPartner::V1beta:: | 
| 235 | 
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Violation>]
         | 
| 236 236 | 
             
                          #
         | 
| 237 237 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 238 238 | 
             
                          #
         | 
| @@ -284,7 +284,9 @@ module Google | |
| 284 284 | 
             
                                                   retry_policy: @config.retry_policy
         | 
| 285 285 |  | 
| 286 286 | 
             
                            @cloud_controls_partner_monitoring_stub.list_violations request, options do |result, operation|
         | 
| 287 | 
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @cloud_controls_partner_monitoring_stub, :list_violations, "violations", request, result, options
         | 
| 287 288 | 
             
                              yield result, operation if block_given?
         | 
| 289 | 
            +
                              throw :response, result
         | 
| 288 290 | 
             
                            end
         | 
| 289 291 | 
             
                          rescue ::Gapic::Rest::Error => e
         | 
| 290 292 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -411,6 +413,13 @@ module Google | |
| 411 413 | 
             
                          #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| 412 414 | 
             
                          #       (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
         | 
| 413 415 | 
             
                          #    *  (`nil`) indicating no credentials
         | 
| 416 | 
            +
                          #
         | 
| 417 | 
            +
                          #   Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 418 | 
            +
                          #   external source for authentication to Google Cloud, you must validate it before
         | 
| 419 | 
            +
                          #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 420 | 
            +
                          #   configuration to Google APIs can compromise the security of your systems and data.
         | 
| 421 | 
            +
                          #   For more information, refer to [Validate credential configurations from external
         | 
| 422 | 
            +
                          #   sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
         | 
| 414 423 | 
             
                          #   @return [::Object]
         | 
| 415 424 | 
             
                          # @!attribute [rw] scope
         | 
| 416 425 | 
             
                          #   The OAuth scopes
         |