google-cloud-bigquery-data_exchange-v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/client.rb +1791 -0
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/credentials.rb +50 -0
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/paths.rb +109 -0
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service.rb +55 -0
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/version.rb +30 -0
- data/lib/google/cloud/bigquery/data_exchange/v1beta1.rb +42 -0
- data/lib/google/cloud/bigquery/dataexchange/common/common_pb.rb +43 -0
- data/lib/google/cloud/bigquery/dataexchange/v1beta1/dataexchange_pb.rb +171 -0
- data/lib/google/cloud/bigquery/dataexchange/v1beta1/dataexchange_services_pb.rb +85 -0
- data/lib/google-cloud-bigquery-data_exchange-v1beta1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/bigquery/dataexchange/common/common.rb +71 -0
- data/proto_docs/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.rb +459 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +418 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +234 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Bigquery
|
24
|
+
module DataExchange
|
25
|
+
module V1beta1
|
26
|
+
module AnalyticsHubService
|
27
|
+
# Credentials for the AnalyticsHubService API.
|
28
|
+
class Credentials < ::Google::Auth::Credentials
|
29
|
+
self.scope = [
|
30
|
+
"https://www.googleapis.com/auth/bigquery",
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
32
|
+
]
|
33
|
+
self.env_vars = [
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
36
|
+
"GCLOUD_KEYFILE",
|
37
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
38
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
39
|
+
"GCLOUD_KEYFILE_JSON"
|
40
|
+
]
|
41
|
+
self.paths = [
|
42
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
43
|
+
]
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Bigquery
|
23
|
+
module DataExchange
|
24
|
+
module V1beta1
|
25
|
+
module AnalyticsHubService
|
26
|
+
# Path helper methods for the AnalyticsHubService API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified DataExchange resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/dataExchanges/{data_exchange}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param data_exchange [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def data_exchange_path project:, location:, data_exchange:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/dataExchanges/#{data_exchange}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified Dataset resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/datasets/{dataset}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param dataset [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def dataset_path project:, dataset:
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
|
61
|
+
"projects/#{project}/datasets/#{dataset}"
|
62
|
+
end
|
63
|
+
|
64
|
+
##
|
65
|
+
# Create a fully-qualified Listing resource string.
|
66
|
+
#
|
67
|
+
# The resource will be in the following format:
|
68
|
+
#
|
69
|
+
# `projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}`
|
70
|
+
#
|
71
|
+
# @param project [String]
|
72
|
+
# @param location [String]
|
73
|
+
# @param data_exchange [String]
|
74
|
+
# @param listing [String]
|
75
|
+
#
|
76
|
+
# @return [::String]
|
77
|
+
def listing_path project:, location:, data_exchange:, listing:
|
78
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
79
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
80
|
+
raise ::ArgumentError, "data_exchange cannot contain /" if data_exchange.to_s.include? "/"
|
81
|
+
|
82
|
+
"projects/#{project}/locations/#{location}/dataExchanges/#{data_exchange}/listings/#{listing}"
|
83
|
+
end
|
84
|
+
|
85
|
+
##
|
86
|
+
# Create a fully-qualified Location resource string.
|
87
|
+
#
|
88
|
+
# The resource will be in the following format:
|
89
|
+
#
|
90
|
+
# `projects/{project}/locations/{location}`
|
91
|
+
#
|
92
|
+
# @param project [String]
|
93
|
+
# @param location [String]
|
94
|
+
#
|
95
|
+
# @return [::String]
|
96
|
+
def location_path project:, location:
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
|
99
|
+
"projects/#{project}/locations/#{location}"
|
100
|
+
end
|
101
|
+
|
102
|
+
extend self
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/bigquery/data_exchange/v1beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/credentials"
|
26
|
+
require "google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/paths"
|
27
|
+
require "google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Bigquery
|
32
|
+
module DataExchange
|
33
|
+
module V1beta1
|
34
|
+
##
|
35
|
+
# The AnalyticsHubService API facilitates data sharing within and across
|
36
|
+
# organizations. It allows data providers to publish Listings --- a
|
37
|
+
# discoverable and searchable SKU representing a dataset. Data consumers can
|
38
|
+
# subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked
|
39
|
+
# Datasets" surfacing the data in the consumer's project.
|
40
|
+
#
|
41
|
+
# To load this service and instantiate a client:
|
42
|
+
#
|
43
|
+
# require "google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service"
|
44
|
+
# client = ::Google::Cloud::Bigquery::DataExchange::V1beta1::AnalyticsHubService::Client.new
|
45
|
+
#
|
46
|
+
module AnalyticsHubService
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
helper_path = ::File.join __dir__, "analytics_hub_service", "helpers.rb"
|
55
|
+
require "google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Bigquery
|
23
|
+
module DataExchange
|
24
|
+
module V1beta1
|
25
|
+
VERSION = "0.1.0"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 "google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service"
|
20
|
+
require "google/cloud/bigquery/data_exchange/v1beta1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Bigquery
|
25
|
+
module DataExchange
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/bigquery/data_exchange/v1beta1"
|
32
|
+
# client = ::Google::Cloud::Bigquery::DataExchange::V1beta1::AnalyticsHubService::Client.new
|
33
|
+
#
|
34
|
+
module V1beta1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
|
42
|
+
require "google/cloud/bigquery/data_exchange/v1beta1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/bigquery/dataexchange/common/common.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/bigquery/dataexchange/common/common.proto", :syntax => :proto3) do
|
8
|
+
add_enum "google.cloud.bigquery.dataexchange.common.Category" do
|
9
|
+
value :CATEGORY_UNSPECIFIED, 0
|
10
|
+
value :CATEGORY_OTHERS, 1
|
11
|
+
value :CATEGORY_ADVERTISING_AND_MARKETING, 2
|
12
|
+
value :CATEGORY_COMMERCE, 3
|
13
|
+
value :CATEGORY_CLIMATE_AND_ENVIRONMENT, 4
|
14
|
+
value :CATEGORY_DEMOGRAPHICS, 5
|
15
|
+
value :CATEGORY_ECONOMICS, 6
|
16
|
+
value :CATEGORY_EDUCATION, 7
|
17
|
+
value :CATEGORY_ENERGY, 8
|
18
|
+
value :CATEGORY_FINANCIAL, 9
|
19
|
+
value :CATEGORY_GAMING, 10
|
20
|
+
value :CATEGORY_GEOSPATIAL, 11
|
21
|
+
value :CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE, 12
|
22
|
+
value :CATEGORY_MEDIA, 13
|
23
|
+
value :CATEGORY_PUBLIC_SECTOR, 14
|
24
|
+
value :CATEGORY_RETAIL, 15
|
25
|
+
value :CATEGORY_SPORTS, 16
|
26
|
+
value :CATEGORY_SCIENCE_AND_RESEARCH, 17
|
27
|
+
value :CATEGORY_TRANSPORTATION_AND_LOGISTICS, 18
|
28
|
+
value :CATEGORY_TRAVEL_AND_TOURISM, 19
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
module Google
|
34
|
+
module Cloud
|
35
|
+
module Bigquery
|
36
|
+
module DataExchange
|
37
|
+
module Common
|
38
|
+
Category = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.common.Category").enummodule
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/bigquery/dataexchange/common/common_pb'
|
11
|
+
require 'google/iam/v1/iam_policy_pb'
|
12
|
+
require 'google/iam/v1/policy_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf/wrappers_pb'
|
16
|
+
|
17
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
+
add_file("google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto", :syntax => :proto3) do
|
19
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.DataExchange" do
|
20
|
+
optional :name, :string, 1
|
21
|
+
optional :display_name, :string, 2
|
22
|
+
optional :description, :string, 3
|
23
|
+
optional :primary_contact, :string, 4
|
24
|
+
optional :documentation, :string, 5
|
25
|
+
optional :listing_count, :int32, 6
|
26
|
+
optional :icon, :bytes, 7
|
27
|
+
end
|
28
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.DataProvider" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
optional :primary_contact, :string, 2
|
31
|
+
end
|
32
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.Publisher" do
|
33
|
+
optional :name, :string, 1
|
34
|
+
optional :primary_contact, :string, 2
|
35
|
+
end
|
36
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference" do
|
37
|
+
optional :dataset_id, :string, 1
|
38
|
+
optional :project_id, :string, 2
|
39
|
+
end
|
40
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset" do
|
41
|
+
optional :dataset_reference, :message, 1, "google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference"
|
42
|
+
optional :friendly_name, :message, 2, "google.protobuf.StringValue"
|
43
|
+
optional :description, :message, 3, "google.protobuf.StringValue"
|
44
|
+
map :labels, :string, :string, 4
|
45
|
+
optional :location, :string, 5
|
46
|
+
end
|
47
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.Listing" do
|
48
|
+
optional :name, :string, 1
|
49
|
+
optional :display_name, :string, 2
|
50
|
+
optional :description, :string, 3
|
51
|
+
optional :primary_contact, :string, 4
|
52
|
+
optional :documentation, :string, 5
|
53
|
+
optional :state, :enum, 7, "google.cloud.bigquery.dataexchange.v1beta1.Listing.State"
|
54
|
+
optional :icon, :bytes, 8
|
55
|
+
optional :data_provider, :message, 9, "google.cloud.bigquery.dataexchange.v1beta1.DataProvider"
|
56
|
+
repeated :categories, :enum, 10, "google.cloud.bigquery.dataexchange.common.Category"
|
57
|
+
optional :publisher, :message, 11, "google.cloud.bigquery.dataexchange.v1beta1.Publisher"
|
58
|
+
optional :request_access, :string, 12
|
59
|
+
oneof :source do
|
60
|
+
optional :bigquery_dataset, :message, 6, "google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource"
|
61
|
+
end
|
62
|
+
end
|
63
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource" do
|
64
|
+
optional :dataset, :string, 1
|
65
|
+
end
|
66
|
+
add_enum "google.cloud.bigquery.dataexchange.v1beta1.Listing.State" do
|
67
|
+
value :STATE_UNSPECIFIED, 0
|
68
|
+
value :ACTIVE, 1
|
69
|
+
end
|
70
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest" do
|
71
|
+
optional :parent, :string, 1
|
72
|
+
optional :page_size, :int32, 2
|
73
|
+
optional :page_token, :string, 3
|
74
|
+
end
|
75
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse" do
|
76
|
+
repeated :data_exchanges, :message, 1, "google.cloud.bigquery.dataexchange.v1beta1.DataExchange"
|
77
|
+
optional :next_page_token, :string, 2
|
78
|
+
end
|
79
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest" do
|
80
|
+
optional :organization, :string, 1
|
81
|
+
optional :page_size, :int32, 2
|
82
|
+
optional :page_token, :string, 3
|
83
|
+
end
|
84
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse" do
|
85
|
+
repeated :data_exchanges, :message, 1, "google.cloud.bigquery.dataexchange.v1beta1.DataExchange"
|
86
|
+
optional :next_page_token, :string, 2
|
87
|
+
end
|
88
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest" do
|
89
|
+
optional :name, :string, 1
|
90
|
+
end
|
91
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest" do
|
92
|
+
optional :parent, :string, 1
|
93
|
+
optional :data_exchange_id, :string, 2
|
94
|
+
optional :data_exchange, :message, 3, "google.cloud.bigquery.dataexchange.v1beta1.DataExchange"
|
95
|
+
end
|
96
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest" do
|
97
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
98
|
+
optional :data_exchange, :message, 2, "google.cloud.bigquery.dataexchange.v1beta1.DataExchange"
|
99
|
+
end
|
100
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest" do
|
101
|
+
optional :name, :string, 1
|
102
|
+
end
|
103
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest" do
|
104
|
+
optional :parent, :string, 1
|
105
|
+
optional :page_size, :int32, 2
|
106
|
+
optional :page_token, :string, 3
|
107
|
+
end
|
108
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse" do
|
109
|
+
repeated :listings, :message, 1, "google.cloud.bigquery.dataexchange.v1beta1.Listing"
|
110
|
+
optional :next_page_token, :string, 2
|
111
|
+
end
|
112
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest" do
|
113
|
+
optional :name, :string, 1
|
114
|
+
end
|
115
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest" do
|
116
|
+
optional :parent, :string, 1
|
117
|
+
optional :listing_id, :string, 2
|
118
|
+
optional :listing, :message, 3, "google.cloud.bigquery.dataexchange.v1beta1.Listing"
|
119
|
+
end
|
120
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest" do
|
121
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
122
|
+
optional :listing, :message, 2, "google.cloud.bigquery.dataexchange.v1beta1.Listing"
|
123
|
+
end
|
124
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest" do
|
125
|
+
optional :name, :string, 1
|
126
|
+
end
|
127
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest" do
|
128
|
+
optional :name, :string, 1
|
129
|
+
oneof :destination do
|
130
|
+
optional :destination_dataset, :message, 3, "google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset"
|
131
|
+
end
|
132
|
+
end
|
133
|
+
add_message "google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse" do
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
module Google
|
139
|
+
module Cloud
|
140
|
+
module Bigquery
|
141
|
+
module DataExchange
|
142
|
+
module V1beta1
|
143
|
+
DataExchange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.DataExchange").msgclass
|
144
|
+
DataProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.DataProvider").msgclass
|
145
|
+
Publisher = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.Publisher").msgclass
|
146
|
+
DestinationDatasetReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference").msgclass
|
147
|
+
DestinationDataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset").msgclass
|
148
|
+
Listing = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.Listing").msgclass
|
149
|
+
Listing::BigQueryDatasetSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource").msgclass
|
150
|
+
Listing::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.Listing.State").enummodule
|
151
|
+
ListDataExchangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest").msgclass
|
152
|
+
ListDataExchangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse").msgclass
|
153
|
+
ListOrgDataExchangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest").msgclass
|
154
|
+
ListOrgDataExchangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse").msgclass
|
155
|
+
GetDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest").msgclass
|
156
|
+
CreateDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest").msgclass
|
157
|
+
UpdateDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest").msgclass
|
158
|
+
DeleteDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest").msgclass
|
159
|
+
ListListingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest").msgclass
|
160
|
+
ListListingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse").msgclass
|
161
|
+
GetListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest").msgclass
|
162
|
+
CreateListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest").msgclass
|
163
|
+
UpdateListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest").msgclass
|
164
|
+
DeleteListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest").msgclass
|
165
|
+
SubscribeListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest").msgclass
|
166
|
+
SubscribeListingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse").msgclass
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto for package 'Google.Cloud.Bigquery.DataExchange.V1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/bigquery/dataexchange/v1beta1/dataexchange_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Bigquery
|
25
|
+
module DataExchange
|
26
|
+
module V1beta1
|
27
|
+
module AnalyticsHubService
|
28
|
+
# The AnalyticsHubService API facilitates data sharing within and across
|
29
|
+
# organizations. It allows data providers to publish Listings --- a
|
30
|
+
# discoverable and searchable SKU representing a dataset. Data consumers can
|
31
|
+
# subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked
|
32
|
+
# Datasets" surfacing the data in the consumer's project.
|
33
|
+
class Service
|
34
|
+
|
35
|
+
include ::GRPC::GenericService
|
36
|
+
|
37
|
+
self.marshal_class_method = :encode
|
38
|
+
self.unmarshal_class_method = :decode
|
39
|
+
self.service_name = 'google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService'
|
40
|
+
|
41
|
+
# Lists DataExchanges in a given project and location.
|
42
|
+
rpc :ListDataExchanges, ::Google::Cloud::Bigquery::DataExchange::V1beta1::ListDataExchangesRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::ListDataExchangesResponse
|
43
|
+
# Lists DataExchanges from projects in a given organization and location.
|
44
|
+
rpc :ListOrgDataExchanges, ::Google::Cloud::Bigquery::DataExchange::V1beta1::ListOrgDataExchangesRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::ListOrgDataExchangesResponse
|
45
|
+
# Gets details of a single DataExchange.
|
46
|
+
rpc :GetDataExchange, ::Google::Cloud::Bigquery::DataExchange::V1beta1::GetDataExchangeRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange
|
47
|
+
# Creates a new DataExchange in a given project and location.
|
48
|
+
rpc :CreateDataExchange, ::Google::Cloud::Bigquery::DataExchange::V1beta1::CreateDataExchangeRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange
|
49
|
+
# Updates the parameters of a single DataExchange.
|
50
|
+
rpc :UpdateDataExchange, ::Google::Cloud::Bigquery::DataExchange::V1beta1::UpdateDataExchangeRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange
|
51
|
+
# Deletes a single DataExchange.
|
52
|
+
rpc :DeleteDataExchange, ::Google::Cloud::Bigquery::DataExchange::V1beta1::DeleteDataExchangeRequest, ::Google::Protobuf::Empty
|
53
|
+
# Lists Listings in a given project and location.
|
54
|
+
rpc :ListListings, ::Google::Cloud::Bigquery::DataExchange::V1beta1::ListListingsRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::ListListingsResponse
|
55
|
+
# Gets details of a single Listing.
|
56
|
+
rpc :GetListing, ::Google::Cloud::Bigquery::DataExchange::V1beta1::GetListingRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::Listing
|
57
|
+
# Creates a new Listing in a given project and location.
|
58
|
+
rpc :CreateListing, ::Google::Cloud::Bigquery::DataExchange::V1beta1::CreateListingRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::Listing
|
59
|
+
# Updates the parameters of a single Listing.
|
60
|
+
rpc :UpdateListing, ::Google::Cloud::Bigquery::DataExchange::V1beta1::UpdateListingRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::Listing
|
61
|
+
# Deletes a single Listing, as long as there are no subscriptions
|
62
|
+
# associated with the source of this Listing.
|
63
|
+
rpc :DeleteListing, ::Google::Cloud::Bigquery::DataExchange::V1beta1::DeleteListingRequest, ::Google::Protobuf::Empty
|
64
|
+
# Subscribes to a single Listing.
|
65
|
+
#
|
66
|
+
# Data Exchange currently supports one type of Listing: a BigQuery dataset.
|
67
|
+
# Upon subscription to a Listing for a BigQuery dataset, Data Exchange
|
68
|
+
# creates a linked dataset in the subscriber's project.
|
69
|
+
rpc :SubscribeListing, ::Google::Cloud::Bigquery::DataExchange::V1beta1::SubscribeListingRequest, ::Google::Cloud::Bigquery::DataExchange::V1beta1::SubscribeListingResponse
|
70
|
+
# Gets the IAM policy for a dataExchange or a listing.
|
71
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
72
|
+
# Sets the IAM policy for a dataExchange or a listing.
|
73
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
74
|
+
# Returns the permissions that a caller has on a specified dataExchange or
|
75
|
+
# listing.
|
76
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
77
|
+
end
|
78
|
+
|
79
|
+
Stub = Service.rpc_stub_class
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/bigquery/data_exchange/v1beta1"
|