google-cloud-bigquery-analytics_hub-v1 0.8.1 → 0.10.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 +31 -21
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/client.rb +42 -23
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/operations.rb +19 -15
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/client.rb +42 -23
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/operations.rb +50 -38
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/service_stub.rb +190 -134
- data/lib/google/cloud/bigquery/analytics_hub/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/bigquery/analyticshub/v1/analyticshub.rb +8 -0
- data/proto_docs/google/longrunning/operations.rb +23 -14
- metadata +6 -9
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 44c37a6dede033b3d9a209a4f2b367f9eb46904833817b42f63088d67419b795
         | 
| 4 | 
            +
              data.tar.gz: 47a72c6ec884a289a0f7c4855fe31d6fb1cc98891b0a3cec73fe3fbdfe77fc90
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9fb90afdc9638d1c8ec44879befbe8686cdd4830ae09745ffe7ac2aa3e9cfec370a7d31e004040884494d995f17d36af66b38ff9c2aaf95da7f0106cf96abbe2
         | 
| 7 | 
            +
              data.tar.gz: a02bf0f9385260714176f713342c05ebea9d0e89cb1675ab96b9e0e7f14ed7cfd8bb95fac305e026d00f1dcd84db54a1ce2aacd989cb95c49ec8f06e01337998
         | 
    
        data/README.md
    CHANGED
    
    | @@ -43,40 +43,50 @@ for class and method documentation. | |
| 43 43 | 
             
            See also the [Product Documentation](https://cloud.google.com/bigquery/docs)
         | 
| 44 44 | 
             
            for general usage information.
         | 
| 45 45 |  | 
| 46 | 
            -
            ##  | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 49 | 
            -
             | 
| 50 | 
            -
             | 
| 51 | 
            -
             | 
| 52 | 
            -
             | 
| 53 | 
            -
             | 
| 54 | 
            -
             | 
| 46 | 
            +
            ## Debug Logging
         | 
| 47 | 
            +
             | 
| 48 | 
            +
            This library comes with opt-in Debug Logging that can help you troubleshoot
         | 
| 49 | 
            +
            your application's integration with the API. When logging is activated, key
         | 
| 50 | 
            +
            events such as requests and responses, along with data payloads and metadata
         | 
| 51 | 
            +
            such as headers and client configuration, are logged to the standard error
         | 
| 52 | 
            +
            stream.
         | 
| 53 | 
            +
             | 
| 54 | 
            +
            **WARNING:** Client Library Debug Logging includes your data payloads in
         | 
| 55 | 
            +
            plaintext, which could include sensitive data such as PII for yourself or your
         | 
| 56 | 
            +
            customers, private keys, or other security data that could be compromising if
         | 
| 57 | 
            +
            leaked. Always practice good data hygiene with your application logs, and follow
         | 
| 58 | 
            +
            the principle of least access. Google also recommends that Client Library Debug
         | 
| 59 | 
            +
            Logging be enabled only temporarily during active debugging, and not used
         | 
| 60 | 
            +
            permanently in production.
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
         | 
| 63 | 
            +
            to the value `all`. Alternatively, you can set the value to a comma-delimited
         | 
| 64 | 
            +
            list of client library gem names. This will select the default logging behavior,
         | 
| 65 | 
            +
            which writes logs to the standard error stream. On a local workstation, this may
         | 
| 66 | 
            +
            result in logs appearing on the console. When running on a Google Cloud hosting
         | 
| 67 | 
            +
            service such as [Google Cloud Run](https://cloud.google.com/run), this generally
         | 
| 68 | 
            +
            results in logs appearing alongside your application logs in the
         | 
| 69 | 
            +
            [Google Cloud Logging](https://cloud.google.com/logging/) service.
         | 
| 70 | 
            +
             | 
| 71 | 
            +
            You can customize logging by modifying the `logger` configuration when
         | 
| 72 | 
            +
            constructing a client object. For example:
         | 
| 55 73 |  | 
| 56 74 | 
             
            ```ruby
         | 
| 75 | 
            +
            require "google/cloud/bigquery/analytics_hub/v1"
         | 
| 57 76 | 
             
            require "logger"
         | 
| 58 77 |  | 
| 59 | 
            -
             | 
| 60 | 
            -
               | 
| 61 | 
            -
              def logger
         | 
| 62 | 
            -
                LOGGER
         | 
| 63 | 
            -
              end
         | 
| 64 | 
            -
            end
         | 
| 65 | 
            -
             | 
| 66 | 
            -
            # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
         | 
| 67 | 
            -
            module GRPC
         | 
| 68 | 
            -
              extend MyLogger
         | 
| 78 | 
            +
            client = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Client.new do |config|
         | 
| 79 | 
            +
              config.logger = Logger.new "my-app.log"
         | 
| 69 80 | 
             
            end
         | 
| 70 81 | 
             
            ```
         | 
| 71 82 |  | 
| 72 | 
            -
             | 
| 73 83 | 
             
            ## Google Cloud Samples
         | 
| 74 84 |  | 
| 75 85 | 
             
            To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
         | 
| 76 86 |  | 
| 77 87 | 
             
            ## Supported Ruby Versions
         | 
| 78 88 |  | 
| 79 | 
            -
            This library is supported on Ruby  | 
| 89 | 
            +
            This library is supported on Ruby 3.0+.
         | 
| 80 90 |  | 
| 81 91 | 
             
            Google provides official support for Ruby versions that are actively supported
         | 
| 82 92 | 
             
            by Ruby Core—that is, Ruby versions that are either in normal maintenance or
         | 
| @@ -175,8 +175,19 @@ module Google | |
| 175 175 | 
             
                              universe_domain: @config.universe_domain,
         | 
| 176 176 | 
             
                              channel_args: @config.channel_args,
         | 
| 177 177 | 
             
                              interceptors: @config.interceptors,
         | 
| 178 | 
            -
                              channel_pool_config: @config.channel_pool
         | 
| 178 | 
            +
                              channel_pool_config: @config.channel_pool,
         | 
| 179 | 
            +
                              logger: @config.logger
         | 
| 179 180 | 
             
                            )
         | 
| 181 | 
            +
             | 
| 182 | 
            +
                            @analytics_hub_service_stub.stub_logger&.info do |entry|
         | 
| 183 | 
            +
                              entry.set_system_name
         | 
| 184 | 
            +
                              entry.set_service
         | 
| 185 | 
            +
                              entry.message = "Created client for #{entry.service}"
         | 
| 186 | 
            +
                              entry.set_credentials_fields credentials
         | 
| 187 | 
            +
                              entry.set "customEndpoint", @config.endpoint if @config.endpoint
         | 
| 188 | 
            +
                              entry.set "defaultTimeout", @config.timeout if @config.timeout
         | 
| 189 | 
            +
                              entry.set "quotaProject", @quota_project_id if @quota_project_id
         | 
| 190 | 
            +
                            end
         | 
| 180 191 | 
             
                          end
         | 
| 181 192 |  | 
| 182 193 | 
             
                          ##
         | 
| @@ -186,6 +197,15 @@ module Google | |
| 186 197 | 
             
                          #
         | 
| 187 198 | 
             
                          attr_reader :operations_client
         | 
| 188 199 |  | 
| 200 | 
            +
                          ##
         | 
| 201 | 
            +
                          # The logger used for request/response debug logging.
         | 
| 202 | 
            +
                          #
         | 
| 203 | 
            +
                          # @return [Logger]
         | 
| 204 | 
            +
                          #
         | 
| 205 | 
            +
                          def logger
         | 
| 206 | 
            +
                            @analytics_hub_service_stub.logger
         | 
| 207 | 
            +
                          end
         | 
| 208 | 
            +
             | 
| 189 209 | 
             
                          # Service calls
         | 
| 190 210 |  | 
| 191 211 | 
             
                          ##
         | 
| @@ -280,7 +300,7 @@ module Google | |
| 280 300 | 
             
                            @analytics_hub_service_stub.call_rpc :list_data_exchanges, request, options: options do |response, operation|
         | 
| 281 301 | 
             
                              response = ::Gapic::PagedEnumerable.new @analytics_hub_service_stub, :list_data_exchanges, request, response, operation, options
         | 
| 282 302 | 
             
                              yield response, operation if block_given?
         | 
| 283 | 
            -
                               | 
| 303 | 
            +
                              throw :response, response
         | 
| 284 304 | 
             
                            end
         | 
| 285 305 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 286 306 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -379,7 +399,7 @@ module Google | |
| 379 399 | 
             
                            @analytics_hub_service_stub.call_rpc :list_org_data_exchanges, request, options: options do |response, operation|
         | 
| 380 400 | 
             
                              response = ::Gapic::PagedEnumerable.new @analytics_hub_service_stub, :list_org_data_exchanges, request, response, operation, options
         | 
| 381 401 | 
             
                              yield response, operation if block_given?
         | 
| 382 | 
            -
                               | 
| 402 | 
            +
                              throw :response, response
         | 
| 383 403 | 
             
                            end
         | 
| 384 404 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 385 405 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -466,7 +486,6 @@ module Google | |
| 466 486 |  | 
| 467 487 | 
             
                            @analytics_hub_service_stub.call_rpc :get_data_exchange, request, options: options do |response, operation|
         | 
| 468 488 | 
             
                              yield response, operation if block_given?
         | 
| 469 | 
            -
                              return response
         | 
| 470 489 | 
             
                            end
         | 
| 471 490 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 472 491 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -561,7 +580,6 @@ module Google | |
| 561 580 |  | 
| 562 581 | 
             
                            @analytics_hub_service_stub.call_rpc :create_data_exchange, request, options: options do |response, operation|
         | 
| 563 582 | 
             
                              yield response, operation if block_given?
         | 
| 564 | 
            -
                              return response
         | 
| 565 583 | 
             
                            end
         | 
| 566 584 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 567 585 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -651,7 +669,6 @@ module Google | |
| 651 669 |  | 
| 652 670 | 
             
                            @analytics_hub_service_stub.call_rpc :update_data_exchange, request, options: options do |response, operation|
         | 
| 653 671 | 
             
                              yield response, operation if block_given?
         | 
| 654 | 
            -
                              return response
         | 
| 655 672 | 
             
                            end
         | 
| 656 673 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 657 674 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -738,7 +755,6 @@ module Google | |
| 738 755 |  | 
| 739 756 | 
             
                            @analytics_hub_service_stub.call_rpc :delete_data_exchange, request, options: options do |response, operation|
         | 
| 740 757 | 
             
                              yield response, operation if block_given?
         | 
| 741 | 
            -
                              return response
         | 
| 742 758 | 
             
                            end
         | 
| 743 759 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 744 760 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -836,7 +852,7 @@ module Google | |
| 836 852 | 
             
                            @analytics_hub_service_stub.call_rpc :list_listings, request, options: options do |response, operation|
         | 
| 837 853 | 
             
                              response = ::Gapic::PagedEnumerable.new @analytics_hub_service_stub, :list_listings, request, response, operation, options
         | 
| 838 854 | 
             
                              yield response, operation if block_given?
         | 
| 839 | 
            -
                               | 
| 855 | 
            +
                              throw :response, response
         | 
| 840 856 | 
             
                            end
         | 
| 841 857 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 842 858 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -923,7 +939,6 @@ module Google | |
| 923 939 |  | 
| 924 940 | 
             
                            @analytics_hub_service_stub.call_rpc :get_listing, request, options: options do |response, operation|
         | 
| 925 941 | 
             
                              yield response, operation if block_given?
         | 
| 926 | 
            -
                              return response
         | 
| 927 942 | 
             
                            end
         | 
| 928 943 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 929 944 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1018,7 +1033,6 @@ module Google | |
| 1018 1033 |  | 
| 1019 1034 | 
             
                            @analytics_hub_service_stub.call_rpc :create_listing, request, options: options do |response, operation|
         | 
| 1020 1035 | 
             
                              yield response, operation if block_given?
         | 
| 1021 | 
            -
                              return response
         | 
| 1022 1036 | 
             
                            end
         | 
| 1023 1037 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1024 1038 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1108,7 +1122,6 @@ module Google | |
| 1108 1122 |  | 
| 1109 1123 | 
             
                            @analytics_hub_service_stub.call_rpc :update_listing, request, options: options do |response, operation|
         | 
| 1110 1124 | 
             
                              yield response, operation if block_given?
         | 
| 1111 | 
            -
                              return response
         | 
| 1112 1125 | 
             
                            end
         | 
| 1113 1126 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1114 1127 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1195,7 +1208,6 @@ module Google | |
| 1195 1208 |  | 
| 1196 1209 | 
             
                            @analytics_hub_service_stub.call_rpc :delete_listing, request, options: options do |response, operation|
         | 
| 1197 1210 | 
             
                              yield response, operation if block_given?
         | 
| 1198 | 
            -
                              return response
         | 
| 1199 1211 | 
             
                            end
         | 
| 1200 1212 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1201 1213 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1289,7 +1301,6 @@ module Google | |
| 1289 1301 |  | 
| 1290 1302 | 
             
                            @analytics_hub_service_stub.call_rpc :subscribe_listing, request, options: options do |response, operation|
         | 
| 1291 1303 | 
             
                              yield response, operation if block_given?
         | 
| 1292 | 
            -
                              return response
         | 
| 1293 1304 | 
             
                            end
         | 
| 1294 1305 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1295 1306 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1393,7 +1404,7 @@ module Google | |
| 1393 1404 | 
             
                            @analytics_hub_service_stub.call_rpc :subscribe_data_exchange, request, options: options do |response, operation|
         | 
| 1394 1405 | 
             
                              response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 1395 1406 | 
             
                              yield response, operation if block_given?
         | 
| 1396 | 
            -
                               | 
| 1407 | 
            +
                              throw :response, response
         | 
| 1397 1408 | 
             
                            end
         | 
| 1398 1409 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1399 1410 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1490,7 +1501,7 @@ module Google | |
| 1490 1501 | 
             
                            @analytics_hub_service_stub.call_rpc :refresh_subscription, request, options: options do |response, operation|
         | 
| 1491 1502 | 
             
                              response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 1492 1503 | 
             
                              yield response, operation if block_given?
         | 
| 1493 | 
            -
                               | 
| 1504 | 
            +
                              throw :response, response
         | 
| 1494 1505 | 
             
                            end
         | 
| 1495 1506 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1496 1507 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1577,7 +1588,6 @@ module Google | |
| 1577 1588 |  | 
| 1578 1589 | 
             
                            @analytics_hub_service_stub.call_rpc :get_subscription, request, options: options do |response, operation|
         | 
| 1579 1590 | 
             
                              yield response, operation if block_given?
         | 
| 1580 | 
            -
                              return response
         | 
| 1581 1591 | 
             
                            end
         | 
| 1582 1592 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1583 1593 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1689,7 +1699,7 @@ module Google | |
| 1689 1699 | 
             
                            @analytics_hub_service_stub.call_rpc :list_subscriptions, request, options: options do |response, operation|
         | 
| 1690 1700 | 
             
                              response = ::Gapic::PagedEnumerable.new @analytics_hub_service_stub, :list_subscriptions, request, response, operation, options
         | 
| 1691 1701 | 
             
                              yield response, operation if block_given?
         | 
| 1692 | 
            -
                               | 
| 1702 | 
            +
                              throw :response, response
         | 
| 1693 1703 | 
             
                            end
         | 
| 1694 1704 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1695 1705 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1790,7 +1800,7 @@ module Google | |
| 1790 1800 | 
             
                            @analytics_hub_service_stub.call_rpc :list_shared_resource_subscriptions, request, options: options do |response, operation|
         | 
| 1791 1801 | 
             
                              response = ::Gapic::PagedEnumerable.new @analytics_hub_service_stub, :list_shared_resource_subscriptions, request, response, operation, options
         | 
| 1792 1802 | 
             
                              yield response, operation if block_given?
         | 
| 1793 | 
            -
                               | 
| 1803 | 
            +
                              throw :response, response
         | 
| 1794 1804 | 
             
                            end
         | 
| 1795 1805 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1796 1806 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1877,7 +1887,6 @@ module Google | |
| 1877 1887 |  | 
| 1878 1888 | 
             
                            @analytics_hub_service_stub.call_rpc :revoke_subscription, request, options: options do |response, operation|
         | 
| 1879 1889 | 
             
                              yield response, operation if block_given?
         | 
| 1880 | 
            -
                              return response
         | 
| 1881 1890 | 
             
                            end
         | 
| 1882 1891 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1883 1892 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -1972,7 +1981,7 @@ module Google | |
| 1972 1981 | 
             
                            @analytics_hub_service_stub.call_rpc :delete_subscription, request, options: options do |response, operation|
         | 
| 1973 1982 | 
             
                              response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 1974 1983 | 
             
                              yield response, operation if block_given?
         | 
| 1975 | 
            -
                               | 
| 1984 | 
            +
                              throw :response, response
         | 
| 1976 1985 | 
             
                            end
         | 
| 1977 1986 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 1978 1987 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -2062,7 +2071,6 @@ module Google | |
| 2062 2071 |  | 
| 2063 2072 | 
             
                            @analytics_hub_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
         | 
| 2064 2073 | 
             
                              yield response, operation if block_given?
         | 
| 2065 | 
            -
                              return response
         | 
| 2066 2074 | 
             
                            end
         | 
| 2067 2075 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 2068 2076 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -2160,7 +2168,6 @@ module Google | |
| 2160 2168 |  | 
| 2161 2169 | 
             
                            @analytics_hub_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
         | 
| 2162 2170 | 
             
                              yield response, operation if block_given?
         | 
| 2163 | 
            -
                              return response
         | 
| 2164 2171 | 
             
                            end
         | 
| 2165 2172 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 2166 2173 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -2252,7 +2259,6 @@ module Google | |
| 2252 2259 |  | 
| 2253 2260 | 
             
                            @analytics_hub_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
         | 
| 2254 2261 | 
             
                              yield response, operation if block_given?
         | 
| 2255 | 
            -
                              return response
         | 
| 2256 2262 | 
             
                            end
         | 
| 2257 2263 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 2258 2264 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -2302,6 +2308,13 @@ module Google | |
| 2302 2308 | 
             
                          #    *  (`GRPC::Core::Channel`) a gRPC channel with included credentials
         | 
| 2303 2309 | 
             
                          #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 2304 2310 | 
             
                          #    *  (`nil`) indicating no credentials
         | 
| 2311 | 
            +
                          #
         | 
| 2312 | 
            +
                          #   Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 2313 | 
            +
                          #   external source for authentication to Google Cloud, you must validate it before
         | 
| 2314 | 
            +
                          #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 2315 | 
            +
                          #   configuration to Google APIs can compromise the security of your systems and data.
         | 
| 2316 | 
            +
                          #   For more information, refer to [Validate credential configurations from external
         | 
| 2317 | 
            +
                          #   sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
         | 
| 2305 2318 | 
             
                          #   @return [::Object]
         | 
| 2306 2319 | 
             
                          # @!attribute [rw] scope
         | 
| 2307 2320 | 
             
                          #   The OAuth scopes
         | 
| @@ -2341,6 +2354,11 @@ module Google | |
| 2341 2354 | 
             
                          #   default endpoint URL. The default value of nil uses the environment
         | 
| 2342 2355 | 
             
                          #   universe (usually the default "googleapis.com" universe).
         | 
| 2343 2356 | 
             
                          #   @return [::String,nil]
         | 
| 2357 | 
            +
                          # @!attribute [rw] logger
         | 
| 2358 | 
            +
                          #   A custom logger to use for request/response debug logging, or the value
         | 
| 2359 | 
            +
                          #   `:default` (the default) to construct a default logger, or `nil` to
         | 
| 2360 | 
            +
                          #   explicitly disable logging.
         | 
| 2361 | 
            +
                          #   @return [::Logger,:default,nil]
         | 
| 2344 2362 | 
             
                          #
         | 
| 2345 2363 | 
             
                          class Configuration
         | 
| 2346 2364 | 
             
                            extend ::Gapic::Config
         | 
| @@ -2365,6 +2383,7 @@ module Google | |
| 2365 2383 | 
             
                            config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
         | 
| 2366 2384 | 
             
                            config_attr :quota_project, nil, ::String, nil
         | 
| 2367 2385 | 
             
                            config_attr :universe_domain, nil, ::String, nil
         | 
| 2386 | 
            +
                            config_attr :logger, :default, ::Logger, nil, :default
         | 
| 2368 2387 |  | 
| 2369 2388 | 
             
                            # @private
         | 
| 2370 2389 | 
             
                            def initialize parent_config = nil
         | 
| @@ -125,14 +125,6 @@ module Google | |
| 125 125 | 
             
                          # Lists operations that match the specified filter in the request. If the
         | 
| 126 126 | 
             
                          # server doesn't support this method, it returns `UNIMPLEMENTED`.
         | 
| 127 127 | 
             
                          #
         | 
| 128 | 
            -
                          # NOTE: the `name` binding allows API services to override the binding
         | 
| 129 | 
            -
                          # to use different resource name schemes, such as `users/*/operations`. To
         | 
| 130 | 
            -
                          # override the binding, API services can add a binding such as
         | 
| 131 | 
            -
                          # `"/v1/{name=users/*}/operations"` to their service configuration.
         | 
| 132 | 
            -
                          # For backwards compatibility, the default name includes the operations
         | 
| 133 | 
            -
                          # collection id, however overriding users must ensure the name binding
         | 
| 134 | 
            -
                          # is the parent resource, without the operations collection id.
         | 
| 135 | 
            -
                          #
         | 
| 136 128 | 
             
                          # @overload list_operations(request, options = nil)
         | 
| 137 129 | 
             
                          #   Pass arguments to `list_operations` via a request object, either of type
         | 
| 138 130 | 
             
                          #   {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
         | 
| @@ -222,7 +214,7 @@ module Google | |
| 222 214 | 
             
                              wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
         | 
| 223 215 | 
             
                              response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
         | 
| 224 216 | 
             
                              yield response, operation if block_given?
         | 
| 225 | 
            -
                               | 
| 217 | 
            +
                              throw :response, response
         | 
| 226 218 | 
             
                            end
         | 
| 227 219 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 228 220 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -318,7 +310,7 @@ module Google | |
| 318 310 | 
             
                            @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
         | 
| 319 311 | 
             
                              response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 320 312 | 
             
                              yield response, operation if block_given?
         | 
| 321 | 
            -
                               | 
| 313 | 
            +
                              throw :response, response
         | 
| 322 314 | 
             
                            end
         | 
| 323 315 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 324 316 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -407,7 +399,6 @@ module Google | |
| 407 399 |  | 
| 408 400 | 
             
                            @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
         | 
| 409 401 | 
             
                              yield response, operation if block_given?
         | 
| 410 | 
            -
                              return response
         | 
| 411 402 | 
             
                            end
         | 
| 412 403 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 413 404 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -422,8 +413,9 @@ module Google | |
| 422 413 | 
             
                          # other methods to check whether the cancellation succeeded or whether the
         | 
| 423 414 | 
             
                          # operation completed despite cancellation. On successful cancellation,
         | 
| 424 415 | 
             
                          # the operation is not deleted; instead, it becomes an operation with
         | 
| 425 | 
            -
                          # an {::Google::Longrunning::Operation#error Operation.error} value with a | 
| 426 | 
            -
                          # corresponding to | 
| 416 | 
            +
                          # an {::Google::Longrunning::Operation#error Operation.error} value with a
         | 
| 417 | 
            +
                          # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
         | 
| 418 | 
            +
                          # `Code.CANCELLED`.
         | 
| 427 419 | 
             
                          #
         | 
| 428 420 | 
             
                          # @overload cancel_operation(request, options = nil)
         | 
| 429 421 | 
             
                          #   Pass arguments to `cancel_operation` via a request object, either of type
         | 
| @@ -502,7 +494,6 @@ module Google | |
| 502 494 |  | 
| 503 495 | 
             
                            @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
         | 
| 504 496 | 
             
                              yield response, operation if block_given?
         | 
| 505 | 
            -
                              return response
         | 
| 506 497 | 
             
                            end
         | 
| 507 498 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 508 499 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -600,7 +591,7 @@ module Google | |
| 600 591 | 
             
                            @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
         | 
| 601 592 | 
             
                              response = ::Gapic::Operation.new response, @operations_client, options: options
         | 
| 602 593 | 
             
                              yield response, operation if block_given?
         | 
| 603 | 
            -
                               | 
| 594 | 
            +
                              throw :response, response
         | 
| 604 595 | 
             
                            end
         | 
| 605 596 | 
             
                          rescue ::GRPC::BadStatus => e
         | 
| 606 597 | 
             
                            raise ::Google::Cloud::Error.from_error(e)
         | 
| @@ -650,6 +641,13 @@ module Google | |
| 650 641 | 
             
                          #    *  (`GRPC::Core::Channel`) a gRPC channel with included credentials
         | 
| 651 642 | 
             
                          #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 652 643 | 
             
                          #    *  (`nil`) indicating no credentials
         | 
| 644 | 
            +
                          #
         | 
| 645 | 
            +
                          #   Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 646 | 
            +
                          #   external source for authentication to Google Cloud, you must validate it before
         | 
| 647 | 
            +
                          #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 648 | 
            +
                          #   configuration to Google APIs can compromise the security of your systems and data.
         | 
| 649 | 
            +
                          #   For more information, refer to [Validate credential configurations from external
         | 
| 650 | 
            +
                          #   sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
         | 
| 653 651 | 
             
                          #   @return [::Object]
         | 
| 654 652 | 
             
                          # @!attribute [rw] scope
         | 
| 655 653 | 
             
                          #   The OAuth scopes
         | 
| @@ -689,6 +687,11 @@ module Google | |
| 689 687 | 
             
                          #   default endpoint URL. The default value of nil uses the environment
         | 
| 690 688 | 
             
                          #   universe (usually the default "googleapis.com" universe).
         | 
| 691 689 | 
             
                          #   @return [::String,nil]
         | 
| 690 | 
            +
                          # @!attribute [rw] logger
         | 
| 691 | 
            +
                          #   A custom logger to use for request/response debug logging, or the value
         | 
| 692 | 
            +
                          #   `:default` (the default) to construct a default logger, or `nil` to
         | 
| 693 | 
            +
                          #   explicitly disable logging.
         | 
| 694 | 
            +
                          #   @return [::Logger,:default,nil]
         | 
| 692 695 | 
             
                          #
         | 
| 693 696 | 
             
                          class Configuration
         | 
| 694 697 | 
             
                            extend ::Gapic::Config
         | 
| @@ -713,6 +716,7 @@ module Google | |
| 713 716 | 
             
                            config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
         | 
| 714 717 | 
             
                            config_attr :quota_project, nil, ::String, nil
         | 
| 715 718 | 
             
                            config_attr :universe_domain, nil, ::String, nil
         | 
| 719 | 
            +
                            config_attr :logger, :default, ::Logger, nil, :default
         | 
| 716 720 |  | 
| 717 721 | 
             
                            # @private
         | 
| 718 722 | 
             
                            def initialize parent_config = nil
         |