google-cloud-bigquery-data_transfer-v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5ac24f10540929f3bde8dcb5a4186182a294d48393c37120f0f5c8454e660da
4
- data.tar.gz: 75c4e15572b025ec95158d68c414d901ca95426ebac192bf49af5f4cbd2ae86b
3
+ metadata.gz: 46304248e3b061c881f70239ac107fc35c21e0dfcae2b150ce4728f7698c203f
4
+ data.tar.gz: b381cf69b527730d9bdf896f24e5fd523d4df2d97b96b8a164c72c4c2bc522d7
5
5
  SHA512:
6
- metadata.gz: da11924741a1b9efdec00cd75173da83c330632fb57cfd07774e6d52cb5164d5b602dab7d46b9e8ef95c67aa29563cae88c0bebf134aa4225324e5a743113304
7
- data.tar.gz: 8e59e4d6bec516eb97302812c51507ab1a5c1c0654b9b2bf13221fb4804dc09225ea75b56a54922a8ed01df74557d5f88f85c3858b5c4edc0ed5a4c127b82645
6
+ metadata.gz: 9d16954a5db2103f13d3771a3c57500c8cb89fb7e92bed9055f4181088e2ef8df46f2ae7d26551031a620d6c18f7130c3d13cb2917988d2fc3fb1c4cd8132d43
7
+ data.tar.gz: 128b7672e7fa3e31f9dfeb4579de96efb0005768734722f242bd2229496b2335b8debc511a9c5f9746197af95535be2b835e175a8e84a0b5bf652c1b5bb2df83
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the BigQuery Data Transfer Service V1 API
2
2
 
3
- API Client library for the BigQuery Data Transfer Service V1 API
3
+ Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis.
4
4
 
5
5
  Schedules queries and transfers external data from SaaS applications to Google BigQuery on a regular basis.
6
6
 
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Bigquery
24
+ module DataTransfer
25
+ ##
26
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
27
+ #
28
+ # require "google/cloud/bigquery/data_transfer/v1/rest"
29
+ # client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
30
+ #
31
+ module V1
32
+ ##
33
+ # @private
34
+ # Initialize the mixin bindings configuration
35
+ #
36
+ def self.configure
37
+ @configure ||= begin
38
+ namespace = ["Google", "Cloud", "Bigquery", "DataTransfer"]
39
+ parent_config = while namespace.any?
40
+ parent_name = namespace.join "::"
41
+ parent_const = const_get parent_name
42
+ break parent_const.configure if parent_const.respond_to? :configure
43
+ namespace.pop
44
+ end
45
+
46
+ default_config = Configuration.new parent_config
47
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
48
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
49
+ uri_method: :get,
50
+ uri_template: "/v1/{name}",
51
+ matches: [
52
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
53
+ ],
54
+ body: nil
55
+ )
56
+ ]
57
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
58
+
59
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
60
+ uri_method: :get,
61
+ uri_template: "/v1/{name}/locations",
62
+ matches: [
63
+ ["name", %r{^projects/[^/]+/?$}, false]
64
+ ],
65
+ body: nil
66
+ )
67
+ ]
68
+ default_config
69
+ end
70
+ yield @configure if block_given?
71
+ @configure
72
+ end
73
+
74
+ ##
75
+ # @private
76
+ # Configuration class for the google.cloud.bigquery.datatransfer.v1 package.
77
+ #
78
+ # This class contains common configuration for all services
79
+ # of the google.cloud.bigquery.datatransfer.v1 package.
80
+ #
81
+ # This configuration is for internal use of the client library classes,
82
+ # and it is not intended that the end-users will read or change it.
83
+ #
84
+ class Configuration
85
+ extend ::Gapic::Config
86
+
87
+ # @private
88
+ # Overrides for http bindings for the RPC of the mixins for this package.
89
+ # Services in this package should use these when creating clients for the mixin services.
90
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
91
+ config_attr :bindings_override, {}, ::Hash, nil
92
+
93
+ # @private
94
+ def initialize parent_config = nil
95
+ @parent_config = parent_config unless parent_config.nil?
96
+
97
+ yield self if block_given?
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
@@ -234,8 +234,8 @@ module Google
234
234
  # the default parameter values, pass an empty Hash as a request object (see above).
235
235
  #
236
236
  # @param name [::String]
237
- # Required. The field will contain name of the resource requested, for example:
238
- # `projects/{project_id}/dataSources/{data_source_id}` or
237
+ # Required. The field will contain name of the resource requested, for
238
+ # example: `projects/{project_id}/dataSources/{data_source_id}` or
239
239
  # `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
240
240
  #
241
241
  # @yield [response, operation] Access the result along with the RPC operation
@@ -321,8 +321,8 @@ module Google
321
321
  # the default parameter values, pass an empty Hash as a request object (see above).
322
322
  #
323
323
  # @param parent [::String]
324
- # Required. The BigQuery project id for which data sources should be returned.
325
- # Must be in the form: `projects/{project_id}` or
324
+ # Required. The BigQuery project id for which data sources should be
325
+ # returned. Must be in the form: `projects/{project_id}` or
326
326
  # `projects/{project_id}/locations/{location_id}`
327
327
  # @param page_token [::String]
328
328
  # Pagination token, which can be used to request a specific page
@@ -353,13 +353,11 @@ module Google
353
353
  # # Call the list_data_sources method.
354
354
  # result = client.list_data_sources request
355
355
  #
356
- # # The returned object is of type Gapic::PagedEnumerable. You can
357
- # # iterate over all elements by calling #each, and the enumerable
358
- # # will lazily make API calls to fetch subsequent pages. Other
359
- # # methods are also available for managing paging directly.
360
- # result.each do |response|
356
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
357
+ # # over elements, and API calls will be issued to fetch pages as needed.
358
+ # result.each do |item|
361
359
  # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::DataSource.
362
- # p response
360
+ # p item
363
361
  # end
364
362
  #
365
363
  def list_data_sources request, options = nil
@@ -423,10 +421,11 @@ module Google
423
421
  # the default parameter values, pass an empty Hash as a request object (see above).
424
422
  #
425
423
  # @param parent [::String]
426
- # Required. The BigQuery project id where the transfer configuration should be created.
427
- # Must be in the format projects/\\{project_id}/locations/\\{location_id} or
428
- # projects/\\{project_id}. If specified location and location of the
429
- # destination bigquery dataset do not match - the request will fail.
424
+ # Required. The BigQuery project id where the transfer configuration should
425
+ # be created. Must be in the format
426
+ # projects/\\{project_id}/locations/\\{location_id} or projects/\\{project_id}. If
427
+ # specified location and location of the destination bigquery dataset do not
428
+ # match - the request will fail.
430
429
  # @param transfer_config [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig, ::Hash]
431
430
  # Required. Data transfer configuration to create.
432
431
  # @param authorization_code [::String]
@@ -460,7 +459,7 @@ module Google
460
459
  # Note that this should not be set when `service_account_name` is used to
461
460
  # create the transfer config.
462
461
  # @param service_account_name [::String]
463
- # Optional service account name. If this field is set, the transfer config
462
+ # Optional service account email. If this field is set, the transfer config
464
463
  # will be created with this service account's credentials. It requires that
465
464
  # the requesting user calling this API has permissions to act as this service
466
465
  # account.
@@ -588,7 +587,7 @@ module Google
588
587
  # Note that this should not be set when `service_account_name` is used to
589
588
  # update the transfer config.
590
589
  # @param service_account_name [::String]
591
- # Optional service account name. If this field is set, the transfer config
590
+ # Optional service account email. If this field is set, the transfer config
592
591
  # will be created with this service account's credentials. It requires that
593
592
  # the requesting user calling this API has permissions to act as this service
594
593
  # account.
@@ -682,8 +681,8 @@ module Google
682
681
  # the default parameter values, pass an empty Hash as a request object (see above).
683
682
  #
684
683
  # @param name [::String]
685
- # Required. The field will contain name of the resource requested, for example:
686
- # `projects/{project_id}/transferConfigs/{config_id}` or
684
+ # Required. The field will contain name of the resource requested, for
685
+ # example: `projects/{project_id}/transferConfigs/{config_id}` or
687
686
  # `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
688
687
  #
689
688
  # @yield [response, operation] Access the result along with the RPC operation
@@ -769,8 +768,8 @@ module Google
769
768
  # the default parameter values, pass an empty Hash as a request object (see above).
770
769
  #
771
770
  # @param name [::String]
772
- # Required. The field will contain name of the resource requested, for example:
773
- # `projects/{project_id}/transferConfigs/{config_id}` or
771
+ # Required. The field will contain name of the resource requested, for
772
+ # example: `projects/{project_id}/transferConfigs/{config_id}` or
774
773
  # `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
775
774
  #
776
775
  # @yield [response, operation] Access the result along with the RPC operation
@@ -891,13 +890,11 @@ module Google
891
890
  # # Call the list_transfer_configs method.
892
891
  # result = client.list_transfer_configs request
893
892
  #
894
- # # The returned object is of type Gapic::PagedEnumerable. You can
895
- # # iterate over all elements by calling #each, and the enumerable
896
- # # will lazily make API calls to fetch subsequent pages. Other
897
- # # methods are also available for managing paging directly.
898
- # result.each do |response|
893
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
894
+ # # over elements, and API calls will be issued to fetch pages as needed.
895
+ # result.each do |item|
899
896
  # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
900
- # p response
897
+ # p item
901
898
  # end
902
899
  #
903
900
  def list_transfer_configs request, options = nil
@@ -1155,8 +1152,9 @@ module Google
1155
1152
  # the default parameter values, pass an empty Hash as a request object (see above).
1156
1153
  #
1157
1154
  # @param name [::String]
1158
- # Required. The field will contain name of the resource requested, for example:
1159
- # `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1155
+ # Required. The field will contain name of the resource requested, for
1156
+ # example: `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
1157
+ # or
1160
1158
  # `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
1161
1159
  #
1162
1160
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1242,8 +1240,9 @@ module Google
1242
1240
  # the default parameter values, pass an empty Hash as a request object (see above).
1243
1241
  #
1244
1242
  # @param name [::String]
1245
- # Required. The field will contain name of the resource requested, for example:
1246
- # `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1243
+ # Required. The field will contain name of the resource requested, for
1244
+ # example: `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
1245
+ # or
1247
1246
  # `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
1248
1247
  #
1249
1248
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1329,8 +1328,8 @@ module Google
1329
1328
  # the default parameter values, pass an empty Hash as a request object (see above).
1330
1329
  #
1331
1330
  # @param parent [::String]
1332
- # Required. Name of transfer configuration for which transfer runs should be retrieved.
1333
- # Format of transfer configuration resource name is:
1331
+ # Required. Name of transfer configuration for which transfer runs should be
1332
+ # retrieved. Format of transfer configuration resource name is:
1334
1333
  # `projects/{project_id}/transferConfigs/{config_id}` or
1335
1334
  # `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
1336
1335
  # @param states [::Array<::Google::Cloud::Bigquery::DataTransfer::V1::TransferState>]
@@ -1366,13 +1365,11 @@ module Google
1366
1365
  # # Call the list_transfer_runs method.
1367
1366
  # result = client.list_transfer_runs request
1368
1367
  #
1369
- # # The returned object is of type Gapic::PagedEnumerable. You can
1370
- # # iterate over all elements by calling #each, and the enumerable
1371
- # # will lazily make API calls to fetch subsequent pages. Other
1372
- # # methods are also available for managing paging directly.
1373
- # result.each do |response|
1368
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1369
+ # # over elements, and API calls will be issued to fetch pages as needed.
1370
+ # result.each do |item|
1374
1371
  # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun.
1375
- # p response
1372
+ # p item
1376
1373
  # end
1377
1374
  #
1378
1375
  def list_transfer_runs request, options = nil
@@ -1471,13 +1468,11 @@ module Google
1471
1468
  # # Call the list_transfer_logs method.
1472
1469
  # result = client.list_transfer_logs request
1473
1470
  #
1474
- # # The returned object is of type Gapic::PagedEnumerable. You can
1475
- # # iterate over all elements by calling #each, and the enumerable
1476
- # # will lazily make API calls to fetch subsequent pages. Other
1477
- # # methods are also available for managing paging directly.
1478
- # result.each do |response|
1471
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1472
+ # # over elements, and API calls will be issued to fetch pages as needed.
1473
+ # result.each do |item|
1479
1474
  # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferMessage.
1480
- # p response
1475
+ # p item
1481
1476
  # end
1482
1477
  #
1483
1478
  def list_transfer_logs request, options = nil