google-cloud-bigquery-analytics_hub-v1 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/client.rb +1790 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/credentials.rb +50 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb +109 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service.rb +56 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/version.rb +7 -2
- data/lib/google/cloud/bigquery/analytics_hub/v1.rb +42 -0
- data/lib/google/cloud/bigquery/analyticshub/v1/analyticshub_pb.rb +193 -0
- data/lib/google/cloud/bigquery/analyticshub/v1/analyticshub_services_pb.rb +86 -0
- data/lib/google-cloud-bigquery-analytics_hub-v1.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/analyticshub/v1/analyticshub.rb +497 -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 +34 -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 +194 -11
@@ -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 AnalyticsHub
|
25
|
+
module V1
|
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 AnalyticsHub
|
24
|
+
module V1
|
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,56 @@
|
|
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/analytics_hub/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/credentials"
|
26
|
+
require "google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths"
|
27
|
+
require "google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Bigquery
|
32
|
+
module AnalyticsHub
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# The `AnalyticsHubService` API facilitates data sharing within and across
|
36
|
+
# organizations. It allows data providers to publish listings that reference
|
37
|
+
# shared datasets. With Analytics Hub, users can discover and search for
|
38
|
+
# listings that they have access to. Subscribers can view and subscribe to
|
39
|
+
# listings. When you subscribe to a listing, Analytics Hub creates a linked
|
40
|
+
# dataset in your project.
|
41
|
+
#
|
42
|
+
# To load this service and instantiate a client:
|
43
|
+
#
|
44
|
+
# require "google/cloud/bigquery/analytics_hub/v1/analytics_hub_service"
|
45
|
+
# client = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Client.new
|
46
|
+
#
|
47
|
+
module AnalyticsHubService
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "analytics_hub_service", "helpers.rb"
|
56
|
+
require "google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/helpers" if ::File.file? helper_path
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2022 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
5
7
|
# You may obtain a copy of the License at
|
6
8
|
#
|
7
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
10
|
#
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -12,12 +14,15 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
15
20
|
module Google
|
16
21
|
module Cloud
|
17
22
|
module Bigquery
|
18
23
|
module AnalyticsHub
|
19
24
|
module V1
|
20
|
-
VERSION = "0.
|
25
|
+
VERSION = "0.1.0"
|
21
26
|
end
|
22
27
|
end
|
23
28
|
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/analytics_hub/v1/analytics_hub_service"
|
20
|
+
require "google/cloud/bigquery/analytics_hub/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Bigquery
|
25
|
+
module AnalyticsHub
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/bigquery/analytics_hub/v1"
|
32
|
+
# client = ::Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
42
|
+
require "google/cloud/bigquery/analytics_hub/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,193 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/bigquery/analyticshub/v1/analyticshub.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/iam/v1/iam_policy_pb'
|
11
|
+
require 'google/iam/v1/policy_pb'
|
12
|
+
require 'google/protobuf/empty_pb'
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/protobuf/wrappers_pb'
|
15
|
+
|
16
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
|
+
add_file("google/cloud/bigquery/analyticshub/v1/analyticshub.proto", :syntax => :proto3) do
|
18
|
+
add_message "google.cloud.bigquery.analyticshub.v1.DataExchange" do
|
19
|
+
optional :name, :string, 1
|
20
|
+
optional :display_name, :string, 2
|
21
|
+
optional :description, :string, 3
|
22
|
+
optional :primary_contact, :string, 4
|
23
|
+
optional :documentation, :string, 5
|
24
|
+
optional :listing_count, :int32, 6
|
25
|
+
optional :icon, :bytes, 7
|
26
|
+
end
|
27
|
+
add_message "google.cloud.bigquery.analyticshub.v1.DataProvider" do
|
28
|
+
optional :name, :string, 1
|
29
|
+
optional :primary_contact, :string, 2
|
30
|
+
end
|
31
|
+
add_message "google.cloud.bigquery.analyticshub.v1.Publisher" do
|
32
|
+
optional :name, :string, 1
|
33
|
+
optional :primary_contact, :string, 2
|
34
|
+
end
|
35
|
+
add_message "google.cloud.bigquery.analyticshub.v1.DestinationDatasetReference" do
|
36
|
+
optional :dataset_id, :string, 1
|
37
|
+
optional :project_id, :string, 2
|
38
|
+
end
|
39
|
+
add_message "google.cloud.bigquery.analyticshub.v1.DestinationDataset" do
|
40
|
+
optional :dataset_reference, :message, 1, "google.cloud.bigquery.analyticshub.v1.DestinationDatasetReference"
|
41
|
+
optional :friendly_name, :message, 2, "google.protobuf.StringValue"
|
42
|
+
optional :description, :message, 3, "google.protobuf.StringValue"
|
43
|
+
map :labels, :string, :string, 4
|
44
|
+
optional :location, :string, 5
|
45
|
+
end
|
46
|
+
add_message "google.cloud.bigquery.analyticshub.v1.Listing" do
|
47
|
+
optional :name, :string, 1
|
48
|
+
optional :display_name, :string, 2
|
49
|
+
optional :description, :string, 3
|
50
|
+
optional :primary_contact, :string, 4
|
51
|
+
optional :documentation, :string, 5
|
52
|
+
optional :state, :enum, 7, "google.cloud.bigquery.analyticshub.v1.Listing.State"
|
53
|
+
optional :icon, :bytes, 8
|
54
|
+
optional :data_provider, :message, 9, "google.cloud.bigquery.analyticshub.v1.DataProvider"
|
55
|
+
repeated :categories, :enum, 10, "google.cloud.bigquery.analyticshub.v1.Listing.Category"
|
56
|
+
optional :publisher, :message, 11, "google.cloud.bigquery.analyticshub.v1.Publisher"
|
57
|
+
optional :request_access, :string, 12
|
58
|
+
oneof :source do
|
59
|
+
optional :bigquery_dataset, :message, 6, "google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
add_message "google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource" do
|
63
|
+
optional :dataset, :string, 1
|
64
|
+
end
|
65
|
+
add_enum "google.cloud.bigquery.analyticshub.v1.Listing.State" do
|
66
|
+
value :STATE_UNSPECIFIED, 0
|
67
|
+
value :ACTIVE, 1
|
68
|
+
end
|
69
|
+
add_enum "google.cloud.bigquery.analyticshub.v1.Listing.Category" do
|
70
|
+
value :CATEGORY_UNSPECIFIED, 0
|
71
|
+
value :CATEGORY_OTHERS, 1
|
72
|
+
value :CATEGORY_ADVERTISING_AND_MARKETING, 2
|
73
|
+
value :CATEGORY_COMMERCE, 3
|
74
|
+
value :CATEGORY_CLIMATE_AND_ENVIRONMENT, 4
|
75
|
+
value :CATEGORY_DEMOGRAPHICS, 5
|
76
|
+
value :CATEGORY_ECONOMICS, 6
|
77
|
+
value :CATEGORY_EDUCATION, 7
|
78
|
+
value :CATEGORY_ENERGY, 8
|
79
|
+
value :CATEGORY_FINANCIAL, 9
|
80
|
+
value :CATEGORY_GAMING, 10
|
81
|
+
value :CATEGORY_GEOSPATIAL, 11
|
82
|
+
value :CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE, 12
|
83
|
+
value :CATEGORY_MEDIA, 13
|
84
|
+
value :CATEGORY_PUBLIC_SECTOR, 14
|
85
|
+
value :CATEGORY_RETAIL, 15
|
86
|
+
value :CATEGORY_SPORTS, 16
|
87
|
+
value :CATEGORY_SCIENCE_AND_RESEARCH, 17
|
88
|
+
value :CATEGORY_TRANSPORTATION_AND_LOGISTICS, 18
|
89
|
+
value :CATEGORY_TRAVEL_AND_TOURISM, 19
|
90
|
+
end
|
91
|
+
add_message "google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest" do
|
92
|
+
optional :parent, :string, 1
|
93
|
+
optional :page_size, :int32, 2
|
94
|
+
optional :page_token, :string, 3
|
95
|
+
end
|
96
|
+
add_message "google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse" do
|
97
|
+
repeated :data_exchanges, :message, 1, "google.cloud.bigquery.analyticshub.v1.DataExchange"
|
98
|
+
optional :next_page_token, :string, 2
|
99
|
+
end
|
100
|
+
add_message "google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest" do
|
101
|
+
optional :organization, :string, 1
|
102
|
+
optional :page_size, :int32, 2
|
103
|
+
optional :page_token, :string, 3
|
104
|
+
end
|
105
|
+
add_message "google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse" do
|
106
|
+
repeated :data_exchanges, :message, 1, "google.cloud.bigquery.analyticshub.v1.DataExchange"
|
107
|
+
optional :next_page_token, :string, 2
|
108
|
+
end
|
109
|
+
add_message "google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest" do
|
110
|
+
optional :name, :string, 1
|
111
|
+
end
|
112
|
+
add_message "google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest" do
|
113
|
+
optional :parent, :string, 1
|
114
|
+
optional :data_exchange_id, :string, 2
|
115
|
+
optional :data_exchange, :message, 3, "google.cloud.bigquery.analyticshub.v1.DataExchange"
|
116
|
+
end
|
117
|
+
add_message "google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest" do
|
118
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
119
|
+
optional :data_exchange, :message, 2, "google.cloud.bigquery.analyticshub.v1.DataExchange"
|
120
|
+
end
|
121
|
+
add_message "google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest" do
|
122
|
+
optional :name, :string, 1
|
123
|
+
end
|
124
|
+
add_message "google.cloud.bigquery.analyticshub.v1.ListListingsRequest" do
|
125
|
+
optional :parent, :string, 1
|
126
|
+
optional :page_size, :int32, 2
|
127
|
+
optional :page_token, :string, 3
|
128
|
+
end
|
129
|
+
add_message "google.cloud.bigquery.analyticshub.v1.ListListingsResponse" do
|
130
|
+
repeated :listings, :message, 1, "google.cloud.bigquery.analyticshub.v1.Listing"
|
131
|
+
optional :next_page_token, :string, 2
|
132
|
+
end
|
133
|
+
add_message "google.cloud.bigquery.analyticshub.v1.GetListingRequest" do
|
134
|
+
optional :name, :string, 1
|
135
|
+
end
|
136
|
+
add_message "google.cloud.bigquery.analyticshub.v1.CreateListingRequest" do
|
137
|
+
optional :parent, :string, 1
|
138
|
+
optional :listing_id, :string, 2
|
139
|
+
optional :listing, :message, 3, "google.cloud.bigquery.analyticshub.v1.Listing"
|
140
|
+
end
|
141
|
+
add_message "google.cloud.bigquery.analyticshub.v1.UpdateListingRequest" do
|
142
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
143
|
+
optional :listing, :message, 2, "google.cloud.bigquery.analyticshub.v1.Listing"
|
144
|
+
end
|
145
|
+
add_message "google.cloud.bigquery.analyticshub.v1.DeleteListingRequest" do
|
146
|
+
optional :name, :string, 1
|
147
|
+
end
|
148
|
+
add_message "google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest" do
|
149
|
+
optional :name, :string, 1
|
150
|
+
oneof :destination do
|
151
|
+
optional :destination_dataset, :message, 3, "google.cloud.bigquery.analyticshub.v1.DestinationDataset"
|
152
|
+
end
|
153
|
+
end
|
154
|
+
add_message "google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse" do
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
module Google
|
160
|
+
module Cloud
|
161
|
+
module Bigquery
|
162
|
+
module AnalyticsHub
|
163
|
+
module V1
|
164
|
+
DataExchange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.DataExchange").msgclass
|
165
|
+
DataProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.DataProvider").msgclass
|
166
|
+
Publisher = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.Publisher").msgclass
|
167
|
+
DestinationDatasetReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.DestinationDatasetReference").msgclass
|
168
|
+
DestinationDataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.DestinationDataset").msgclass
|
169
|
+
Listing = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.Listing").msgclass
|
170
|
+
Listing::BigQueryDatasetSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource").msgclass
|
171
|
+
Listing::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.Listing.State").enummodule
|
172
|
+
Listing::Category = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.Listing.Category").enummodule
|
173
|
+
ListDataExchangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest").msgclass
|
174
|
+
ListDataExchangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse").msgclass
|
175
|
+
ListOrgDataExchangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest").msgclass
|
176
|
+
ListOrgDataExchangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse").msgclass
|
177
|
+
GetDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest").msgclass
|
178
|
+
CreateDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest").msgclass
|
179
|
+
UpdateDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest").msgclass
|
180
|
+
DeleteDataExchangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest").msgclass
|
181
|
+
ListListingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.ListListingsRequest").msgclass
|
182
|
+
ListListingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.ListListingsResponse").msgclass
|
183
|
+
GetListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.GetListingRequest").msgclass
|
184
|
+
CreateListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.CreateListingRequest").msgclass
|
185
|
+
UpdateListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.UpdateListingRequest").msgclass
|
186
|
+
DeleteListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.DeleteListingRequest").msgclass
|
187
|
+
SubscribeListingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest").msgclass
|
188
|
+
SubscribeListingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse").msgclass
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto for package 'Google.Cloud.Bigquery.AnalyticsHub.V1'
|
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/analyticshub/v1/analyticshub_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Bigquery
|
25
|
+
module AnalyticsHub
|
26
|
+
module V1
|
27
|
+
module AnalyticsHubService
|
28
|
+
# The `AnalyticsHubService` API facilitates data sharing within and across
|
29
|
+
# organizations. It allows data providers to publish listings that reference
|
30
|
+
# shared datasets. With Analytics Hub, users can discover and search for
|
31
|
+
# listings that they have access to. Subscribers can view and subscribe to
|
32
|
+
# listings. When you subscribe to a listing, Analytics Hub creates a linked
|
33
|
+
# dataset in your project.
|
34
|
+
class Service
|
35
|
+
|
36
|
+
include ::GRPC::GenericService
|
37
|
+
|
38
|
+
self.marshal_class_method = :encode
|
39
|
+
self.unmarshal_class_method = :decode
|
40
|
+
self.service_name = 'google.cloud.bigquery.analyticshub.v1.AnalyticsHubService'
|
41
|
+
|
42
|
+
# Lists all data exchanges in a given project and location.
|
43
|
+
rpc :ListDataExchanges, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesResponse
|
44
|
+
# Lists all data exchanges from projects in a given organization and
|
45
|
+
# location.
|
46
|
+
rpc :ListOrgDataExchanges, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesResponse
|
47
|
+
# Gets the details of a data exchange.
|
48
|
+
rpc :GetDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetDataExchangeRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange
|
49
|
+
# Creates a new data exchange.
|
50
|
+
rpc :CreateDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateDataExchangeRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange
|
51
|
+
# Updates an existing data exchange.
|
52
|
+
rpc :UpdateDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateDataExchangeRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange
|
53
|
+
# Deletes an existing data exchange.
|
54
|
+
rpc :DeleteDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteDataExchangeRequest, ::Google::Protobuf::Empty
|
55
|
+
# Lists all listings in a given project and location.
|
56
|
+
rpc :ListListings, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsResponse
|
57
|
+
# Gets the details of a listing.
|
58
|
+
rpc :GetListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing
|
59
|
+
# Creates a new listing.
|
60
|
+
rpc :CreateListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing
|
61
|
+
# Updates an existing listing.
|
62
|
+
rpc :UpdateListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing
|
63
|
+
# Deletes a listing.
|
64
|
+
rpc :DeleteListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteListingRequest, ::Google::Protobuf::Empty
|
65
|
+
# Subscribes to a listing.
|
66
|
+
#
|
67
|
+
# Currently, with Analytics Hub, you can create listings that
|
68
|
+
# reference only BigQuery datasets.
|
69
|
+
# Upon subscription to a listing for a BigQuery dataset, Analytics Hub
|
70
|
+
# creates a linked dataset in the subscriber's project.
|
71
|
+
rpc :SubscribeListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingResponse
|
72
|
+
# Gets the IAM policy.
|
73
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
74
|
+
# Sets the IAM policy.
|
75
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
76
|
+
# Returns the permissions that a caller has.
|
77
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
78
|
+
end
|
79
|
+
|
80
|
+
Stub = Service.rpc_stub_class
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
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/analytics_hub/v1"
|
@@ -0,0 +1,71 @@
|
|
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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|