google-cloud-metastore-v1beta 0.1.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore/client.rb +8 -8
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore/operations.rb +3 -0
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb +38 -0
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore.rb +2 -2
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/client.rb +900 -0
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/credentials.rb +51 -0
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/operations.rb +770 -0
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/paths.rb +69 -0
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation.rb +62 -0
- data/lib/google/cloud/metastore/v1beta/metastore_federation_pb.rb +95 -0
- data/lib/google/cloud/metastore/v1beta/metastore_federation_services_pb.rb +65 -0
- data/lib/google/cloud/metastore/v1beta/metastore_pb.rb +64 -1
- data/lib/google/cloud/metastore/v1beta/metastore_services_pb.rb +3 -3
- data/lib/google/cloud/metastore/v1beta/version.rb +1 -1
- data/lib/google/cloud/metastore/v1beta.rb +3 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/metastore/v1beta/metastore.rb +217 -12
- data/proto_docs/google/cloud/metastore/v1beta/metastore_federation.rb +305 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +22 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bf2489ba1993f0a431b99a78fd60b5136dbf113c98c4d6f3b019c41258dd609
|
4
|
+
data.tar.gz: a93b3fa3c3c9104fcfb591f8893c375d45e7422a17bf2d367da082a7b16de508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a4832e15c12aaa0ff65add93cc6d839b6fcba391b5e20707a7741d3373bc8c4098531f70bfb3d0266dec897a7324c130d39de8c14011422f602c3c60663185
|
7
|
+
data.tar.gz: acc093be9b0a94bda09fe9097a844f4d793e3371653585dddaf1f3e1f7c36d38ca29e6aa9e69e4bd8eb24c6b0b12899cffbb703bdebe49fdcafa55834fd49a43
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Metastore::V1beta::ListServicesRequest.new # (request
|
|
37
37
|
response = client.list_services request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1beta/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/dataproc-metastore/)
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -28,8 +28,8 @@ module Google
|
|
28
28
|
# Client for the DataprocMetastore service.
|
29
29
|
#
|
30
30
|
# Configures and manages metastore services.
|
31
|
-
# Metastore services are fully managed, highly available,
|
32
|
-
#
|
31
|
+
# Metastore services are fully managed, highly available, autoscaled,
|
32
|
+
# autohealing, OSS-native deployments of technical metadata management
|
33
33
|
# software. Each metastore service exposes a network endpoint through which
|
34
34
|
# metadata queries are served. Metadata queries can originate from a variety
|
35
35
|
# of sources, including Apache Hive, Apache Presto, and Apache Spark.
|
@@ -969,7 +969,7 @@ module Google
|
|
969
969
|
# Required. The relative resource name of the service in which to create a
|
970
970
|
# metastore import, in the following form:
|
971
971
|
#
|
972
|
-
# `projects/{project_number}/locations/{location_id}/services/{service_id}
|
972
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
973
973
|
# @param metadata_import_id [::String]
|
974
974
|
# Required. The ID of the metadata import, which is used as the final
|
975
975
|
# component of the metadata import's name.
|
@@ -1209,7 +1209,7 @@ module Google
|
|
1209
1209
|
# Required. The relative resource name of the metastore service to run
|
1210
1210
|
# export, in the following form:
|
1211
1211
|
#
|
1212
|
-
# `projects/{project_id}/locations/{location_id}/services/{service_id}
|
1212
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1213
1213
|
# @param request_id [::String]
|
1214
1214
|
# Optional. A request ID. Specify a unique request ID to allow the server to
|
1215
1215
|
# ignore the request if it has completed. The server will ignore subsequent
|
@@ -1321,12 +1321,12 @@ module Google
|
|
1321
1321
|
# Required. The relative resource name of the metastore service to run
|
1322
1322
|
# restore, in the following form:
|
1323
1323
|
#
|
1324
|
-
# `projects/{project_id}/locations/{location_id}/services/{service_id}
|
1324
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1325
1325
|
# @param backup [::String]
|
1326
1326
|
# Required. The relative resource name of the metastore service backup to
|
1327
1327
|
# restore from, in the following form:
|
1328
1328
|
#
|
1329
|
-
# `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}
|
1329
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
|
1330
1330
|
# @param restore_type [::Google::Cloud::Metastore::V1beta::Restore::RestoreType]
|
1331
1331
|
# Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
|
1332
1332
|
# @param request_id [::String]
|
@@ -1619,7 +1619,7 @@ module Google
|
|
1619
1619
|
end
|
1620
1620
|
|
1621
1621
|
##
|
1622
|
-
# Creates a new
|
1622
|
+
# Creates a new backup in a given project and location.
|
1623
1623
|
#
|
1624
1624
|
# @overload create_backup(request, options = nil)
|
1625
1625
|
# Pass arguments to `create_backup` via a request object, either of type
|
@@ -1640,7 +1640,7 @@ module Google
|
|
1640
1640
|
# Required. The relative resource name of the service in which to create a
|
1641
1641
|
# backup of the following form:
|
1642
1642
|
#
|
1643
|
-
# `projects/{project_number}/locations/{location_id}/services/{service_id}
|
1643
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
1644
1644
|
# @param backup_id [::String]
|
1645
1645
|
# Required. The ID of the backup, which is used as the final component of the
|
1646
1646
|
# backup's name.
|
@@ -45,6 +45,25 @@ module Google
|
|
45
45
|
"projects/#{project}/locations/#{location}/services/#{service}/backups/#{backup}"
|
46
46
|
end
|
47
47
|
|
48
|
+
##
|
49
|
+
# Create a fully-qualified Lake resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/lakes/{lake}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param lake [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def lake_path project:, location:, lake:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}"
|
65
|
+
end
|
66
|
+
|
48
67
|
##
|
49
68
|
# Create a fully-qualified Location resource string.
|
50
69
|
#
|
@@ -119,6 +138,25 @@ module Google
|
|
119
138
|
"projects/#{project}/locations/#{location}/services/#{service}"
|
120
139
|
end
|
121
140
|
|
141
|
+
##
|
142
|
+
# Create a fully-qualified Subnetwork resource string.
|
143
|
+
#
|
144
|
+
# The resource will be in the following format:
|
145
|
+
#
|
146
|
+
# `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
147
|
+
#
|
148
|
+
# @param project [String]
|
149
|
+
# @param region [String]
|
150
|
+
# @param subnetwork [String]
|
151
|
+
#
|
152
|
+
# @return [::String]
|
153
|
+
def subnetwork_path project:, region:, subnetwork:
|
154
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
155
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
156
|
+
|
157
|
+
"projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
|
158
|
+
end
|
159
|
+
|
122
160
|
extend self
|
123
161
|
end
|
124
162
|
end
|
@@ -33,8 +33,8 @@ module Google
|
|
33
33
|
module V1beta
|
34
34
|
##
|
35
35
|
# Configures and manages metastore services.
|
36
|
-
# Metastore services are fully managed, highly available,
|
37
|
-
#
|
36
|
+
# Metastore services are fully managed, highly available, autoscaled,
|
37
|
+
# autohealing, OSS-native deployments of technical metadata management
|
38
38
|
# software. Each metastore service exposes a network endpoint through which
|
39
39
|
# metadata queries are served. Metadata queries can originate from a variety
|
40
40
|
# of sources, including Apache Hive, Apache Presto, and Apache Spark.
|