google-cloud-bigquery-data_transfer-v1 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/bigquery/data_transfer/v1/bindings_override.rb +104 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/client.rb +1582 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest/service_stub.rb +1052 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/rest.rb +55 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service.rb +6 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/rest.rb +40 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1.rb +5 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46304248e3b061c881f70239ac107fc35c21e0dfcae2b150ce4728f7698c203f
|
4
|
+
data.tar.gz: b381cf69b527730d9bdf896f24e5fd523d4df2d97b96b8a164c72c4c2bc522d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d16954a5db2103f13d3771a3c57500c8cb89fb7e92bed9055f4181088e2ef8df46f2ae7d26551031a620d6c18f7130c3d13cb2917988d2fc3fb1c4cd8132d43
|
7
|
+
data.tar.gz: 128b7672e7fa3e31f9dfeb4579de96efb0005768734722f242bd2229496b2335b8debc511a9c5f9746197af95535be2b835e175a8e84a0b5bf652c1b5bb2df83
|
@@ -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
|