google-cloud-bigquery-data_transfer 0.5.1 → 0.6.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: e4f09ec139669b561a2ffe9fe802c10a4aa3cadff7d8df44c7e28b8ee0f1bb53
4
- data.tar.gz: d6162b7b16a09666fbd907bbe6156f471090054766a9b8ff26571d3e396306bb
3
+ metadata.gz: c18c686d3bdbd341b2b9009ba1ad1f91f475095162b0ccdb855867dd3183cb5f
4
+ data.tar.gz: 6c0a4216f485e798aa9c47e0b80e1d743cdf27618ecb9df01cdb624a041dd91d
5
5
  SHA512:
6
- metadata.gz: 79ee795a8f13a94dc13eeb529efd9dbf5875232aabc4066073f6c500a94a1cc8e845d144958530b72abf1603e8fe7cc4f9b32780966d4dc4750e72e1fbff2133
7
- data.tar.gz: 0e9b7b78136abf8af3aa9136bbfdbcffdb32eefff04345c322961b5b4a15dc266ddb0a19e3ae8baee7463059848cf68329d0ec3cedb2ecd79e5e3c2ea0777cd4
6
+ metadata.gz: 4b870fdb06133e93dfad3f44da5337dc51e43285e0d33d1f58eb6083f93f3289cc006deed6751d6eba5a423f771166ed990edebe9c0519fa35a76da71c896981
7
+ data.tar.gz: c656dd3bccf8a557ee5a575097a2e495718010617f76001129d0b7d37deae41a5c689c3a6ada735e0fb4da38660454c988c224c8c35091832e3c0b3b6f010f78
data/README.md CHANGED
@@ -26,7 +26,7 @@ $ gem install google-cloud-bigquery-data_transfer
26
26
  require "google/cloud/bigquery/data_transfer"
27
27
 
28
28
  data_transfer_client = Google::Cloud::Bigquery::DataTransfer.new
29
- formatted_parent = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferServiceClient.location_path(project_id, "us-central1")
29
+ formatted_parent = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferServiceClient.project_path(project_id)
30
30
 
31
31
  # Iterate over all results.
32
32
  data_transfer_client.list_data_sources(formatted_parent).each do |element|
@@ -49,7 +49,7 @@ module Google
49
49
  # require "google/cloud/bigquery/data_transfer"
50
50
  #
51
51
  # data_transfer_client = Google::Cloud::Bigquery::DataTransfer.new
52
- # formatted_parent = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferServiceClient.location_path(project_id, "us-central1")
52
+ # formatted_parent = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferServiceClient.project_path(project_id)
53
53
  #
54
54
  # # Iterate over all results.
55
55
  # data_transfer_client.list_data_sources(formatted_parent).each do |element|
@@ -49,7 +49,7 @@ module Google
49
49
  # require "google/cloud/bigquery/data_transfer"
50
50
  #
51
51
  # data_transfer_client = Google::Cloud::Bigquery::DataTransfer.new(version: :v1)
52
- # formatted_parent = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferServiceClient.location_path(project_id, "us-central1")
52
+ # formatted_parent = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferServiceClient.project_path(project_id)
53
53
  #
54
54
  # # Iterate over all results.
55
55
  # data_transfer_client.list_data_sources(formatted_parent).each do |element|
@@ -144,6 +144,8 @@ module Google
144
144
  end
145
145
 
146
146
  # Returns a fully-qualified location_data_source resource name string.
147
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
148
+ # This helper function will be deleted in the next major version.
147
149
  # @param project [String]
148
150
  # @param location [String]
149
151
  # @param data_source [String]
@@ -157,6 +159,8 @@ module Google
157
159
  end
158
160
 
159
161
  # Returns a fully-qualified location_run resource name string.
162
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
163
+ # This helper function will be deleted in the next major version.
160
164
  # @param project [String]
161
165
  # @param location [String]
162
166
  # @param transfer_config [String]
@@ -172,6 +176,8 @@ module Google
172
176
  end
173
177
 
174
178
  # Returns a fully-qualified location_transfer_config resource name string.
179
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
180
+ # This helper function will be deleted in the next major version.
175
181
  # @param project [String]
176
182
  # @param location [String]
177
183
  # @param transfer_config [String]
@@ -194,6 +200,8 @@ module Google
194
200
  end
195
201
 
196
202
  # Returns a fully-qualified project_data_source resource name string.
203
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
204
+ # This helper function will be deleted in the next major version.
197
205
  # @param project [String]
198
206
  # @param data_source [String]
199
207
  # @return [String]
@@ -205,6 +213,8 @@ module Google
205
213
  end
206
214
 
207
215
  # Returns a fully-qualified project_run resource name string.
216
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
217
+ # This helper function will be deleted in the next major version.
208
218
  # @param project [String]
209
219
  # @param transfer_config [String]
210
220
  # @param run [String]
@@ -218,6 +228,8 @@ module Google
218
228
  end
219
229
 
220
230
  # Returns a fully-qualified project_transfer_config resource name string.
231
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
232
+ # This helper function will be deleted in the next major version.
221
233
  # @param project [String]
222
234
  # @param transfer_config [String]
223
235
  # @return [String]
@@ -401,6 +413,14 @@ module Google
401
413
  {'parent' => request.parent}
402
414
  end
403
415
  )
416
+ @start_manual_transfer_runs = Google::Gax.create_api_call(
417
+ @data_transfer_service_stub.method(:start_manual_transfer_runs),
418
+ defaults["start_manual_transfer_runs"],
419
+ exception_transformer: exception_transformer,
420
+ params_extractor: proc do |request|
421
+ {'parent' => request.parent}
422
+ end
423
+ )
404
424
  @get_transfer_run = Google::Gax.create_api_call(
405
425
  @data_transfer_service_stub.method(:get_transfer_run),
406
426
  defaults["get_transfer_run"],
@@ -441,14 +461,6 @@ module Google
441
461
  {'name' => request.name}
442
462
  end
443
463
  )
444
- @start_manual_transfer_runs = Google::Gax.create_api_call(
445
- @data_transfer_service_stub.method(:start_manual_transfer_runs),
446
- defaults["start_manual_transfer_runs"],
447
- exception_transformer: exception_transformer,
448
- params_extractor: proc do |request|
449
- {'parent' => request.parent}
450
- end
451
- )
452
464
  end
453
465
 
454
466
  # Service calls
@@ -881,6 +893,53 @@ module Google
881
893
  @schedule_transfer_runs.call(req, options, &block)
882
894
  end
883
895
 
896
+ # Start manual transfer runs to be executed now with schedule_time equal to
897
+ # current time. The transfer runs can be created for a time range where the
898
+ # run_time is between start_time (inclusive) and end_time (exclusive), or for
899
+ # a specific run_time.
900
+ #
901
+ # @param parent [String]
902
+ # Transfer configuration name in the form:
903
+ # `projects/{project_id}/transferConfigs/{config_id}` or
904
+ # `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
905
+ # @param requested_time_range [Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsRequest::TimeRange | Hash]
906
+ # Time range for the transfer runs that should be started.
907
+ # A hash of the same form as `Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsRequest::TimeRange`
908
+ # can also be provided.
909
+ # @param requested_run_time [Google::Protobuf::Timestamp | Hash]
910
+ # Specific run_time for a transfer run to be started. The
911
+ # requested_run_time must not be in the future.
912
+ # A hash of the same form as `Google::Protobuf::Timestamp`
913
+ # can also be provided.
914
+ # @param options [Google::Gax::CallOptions]
915
+ # Overrides the default settings for this call, e.g, timeout,
916
+ # retries, etc.
917
+ # @yield [result, operation] Access the result along with the RPC operation
918
+ # @yieldparam result [Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsResponse]
919
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
920
+ # @return [Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsResponse]
921
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
922
+ # @example
923
+ # require "google/cloud/bigquery/data_transfer"
924
+ #
925
+ # data_transfer_client = Google::Cloud::Bigquery::DataTransfer.new(version: :v1)
926
+ # response = data_transfer_client.start_manual_transfer_runs
927
+
928
+ def start_manual_transfer_runs \
929
+ parent: nil,
930
+ requested_time_range: nil,
931
+ requested_run_time: nil,
932
+ options: nil,
933
+ &block
934
+ req = {
935
+ parent: parent,
936
+ requested_time_range: requested_time_range,
937
+ requested_run_time: requested_run_time
938
+ }.delete_if { |_, v| v.nil? }
939
+ req = Google::Gax::to_proto(req, Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsRequest)
940
+ @start_manual_transfer_runs.call(req, options, &block)
941
+ end
942
+
884
943
  # Returns information about the particular transfer run.
885
944
  #
886
945
  # @param name [String]
@@ -1107,53 +1166,6 @@ module Google
1107
1166
  req = Google::Gax::to_proto(req, Google::Cloud::Bigquery::Datatransfer::V1::CheckValidCredsRequest)
1108
1167
  @check_valid_creds.call(req, options, &block)
1109
1168
  end
1110
-
1111
- # Start manual transfer runs to be executed now with schedule_time equal to
1112
- # current time. The transfer runs can be created for a time range where the
1113
- # run_time is between start_time (inclusive) and end_time (exclusive), or for
1114
- # a specific run_time.
1115
- #
1116
- # @param parent [String]
1117
- # Transfer configuration name in the form:
1118
- # `projects/{project_id}/transferConfigs/{config_id}` or
1119
- # `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
1120
- # @param requested_time_range [Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsRequest::TimeRange | Hash]
1121
- # Time range for the transfer runs that should be started.
1122
- # A hash of the same form as `Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsRequest::TimeRange`
1123
- # can also be provided.
1124
- # @param requested_run_time [Google::Protobuf::Timestamp | Hash]
1125
- # Specific run_time for a transfer run to be started. The
1126
- # requested_run_time must not be in the future.
1127
- # A hash of the same form as `Google::Protobuf::Timestamp`
1128
- # can also be provided.
1129
- # @param options [Google::Gax::CallOptions]
1130
- # Overrides the default settings for this call, e.g, timeout,
1131
- # retries, etc.
1132
- # @yield [result, operation] Access the result along with the RPC operation
1133
- # @yieldparam result [Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsResponse]
1134
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1135
- # @return [Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsResponse]
1136
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
1137
- # @example
1138
- # require "google/cloud/bigquery/data_transfer"
1139
- #
1140
- # data_transfer_client = Google::Cloud::Bigquery::DataTransfer.new(version: :v1)
1141
- # response = data_transfer_client.start_manual_transfer_runs
1142
-
1143
- def start_manual_transfer_runs \
1144
- parent: nil,
1145
- requested_time_range: nil,
1146
- requested_run_time: nil,
1147
- options: nil,
1148
- &block
1149
- req = {
1150
- parent: parent,
1151
- requested_time_range: requested_time_range,
1152
- requested_run_time: requested_run_time
1153
- }.delete_if { |_, v| v.nil? }
1154
- req = Google::Gax::to_proto(req, Google::Cloud::Bigquery::Datatransfer::V1::StartManualTransferRunsRequest)
1155
- @start_manual_transfer_runs.call(req, options, &block)
1156
- end
1157
1169
  end
1158
1170
  end
1159
1171
  end
@@ -21,71 +21,71 @@
21
21
  },
22
22
  "methods": {
23
23
  "GetDataSource": {
24
- "timeout_millis": 20000,
24
+ "timeout_millis": 60000,
25
25
  "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
28
  "ListDataSources": {
29
- "timeout_millis": 20000,
29
+ "timeout_millis": 60000,
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  },
33
33
  "CreateTransferConfig": {
34
- "timeout_millis": 30000,
34
+ "timeout_millis": 60000,
35
35
  "retry_codes_name": "non_idempotent",
36
36
  "retry_params_name": "default"
37
37
  },
38
38
  "UpdateTransferConfig": {
39
- "timeout_millis": 30000,
39
+ "timeout_millis": 60000,
40
40
  "retry_codes_name": "non_idempotent",
41
41
  "retry_params_name": "default"
42
42
  },
43
43
  "DeleteTransferConfig": {
44
- "timeout_millis": 30000,
45
- "retry_codes_name": "idempotent",
44
+ "timeout_millis": 60000,
45
+ "retry_codes_name": "non_idempotent",
46
46
  "retry_params_name": "default"
47
47
  },
48
48
  "GetTransferConfig": {
49
- "timeout_millis": 30000,
49
+ "timeout_millis": 60000,
50
50
  "retry_codes_name": "idempotent",
51
51
  "retry_params_name": "default"
52
52
  },
53
53
  "ListTransferConfigs": {
54
- "timeout_millis": 30000,
54
+ "timeout_millis": 60000,
55
55
  "retry_codes_name": "idempotent",
56
56
  "retry_params_name": "default"
57
57
  },
58
58
  "ScheduleTransferRuns": {
59
- "timeout_millis": 30000,
59
+ "timeout_millis": 60000,
60
+ "retry_codes_name": "non_idempotent",
61
+ "retry_params_name": "default"
62
+ },
63
+ "StartManualTransferRuns": {
64
+ "timeout_millis": 60000,
60
65
  "retry_codes_name": "non_idempotent",
61
66
  "retry_params_name": "default"
62
67
  },
63
68
  "GetTransferRun": {
64
- "timeout_millis": 30000,
69
+ "timeout_millis": 60000,
65
70
  "retry_codes_name": "idempotent",
66
71
  "retry_params_name": "default"
67
72
  },
68
73
  "DeleteTransferRun": {
69
- "timeout_millis": 30000,
70
- "retry_codes_name": "idempotent",
74
+ "timeout_millis": 60000,
75
+ "retry_codes_name": "non_idempotent",
71
76
  "retry_params_name": "default"
72
77
  },
73
78
  "ListTransferRuns": {
74
- "timeout_millis": 30000,
79
+ "timeout_millis": 60000,
75
80
  "retry_codes_name": "idempotent",
76
81
  "retry_params_name": "default"
77
82
  },
78
83
  "ListTransferLogs": {
79
- "timeout_millis": 30000,
84
+ "timeout_millis": 60000,
80
85
  "retry_codes_name": "idempotent",
81
86
  "retry_params_name": "default"
82
87
  },
83
88
  "CheckValidCreds": {
84
- "timeout_millis": 30000,
85
- "retry_codes_name": "idempotent",
86
- "retry_params_name": "default"
87
- },
88
- "StartManualTransferRuns": {
89
89
  "timeout_millis": 60000,
90
90
  "retry_codes_name": "non_idempotent",
91
91
  "retry_params_name": "default"
@@ -17,7 +17,7 @@ module Google
17
17
  module Cloud
18
18
  module Bigquery
19
19
  module DataTransfer
20
- VERSION = "0.5.1".freeze
20
+ VERSION = "0.6.0".freeze
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-data_transfer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax