google-cloud-metastore-v1beta 0.2.0 → 0.3.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: 3c112fd7a4662c8b7ef176f0dc799667a836497a5fd54ca1fe3a12d0f672c2ff
4
- data.tar.gz: abb5901dad9afd4261a7cd9e30dc057306b835ebc5afa4c16ea4ef8d8226d275
3
+ metadata.gz: 9bf2489ba1993f0a431b99a78fd60b5136dbf113c98c4d6f3b019c41258dd609
4
+ data.tar.gz: a93b3fa3c3c9104fcfb591f8893c375d45e7422a17bf2d367da082a7b16de508
5
5
  SHA512:
6
- metadata.gz: 47708800194a44571565d630a1f0bd685237711410ebe2eee4f95a25aea1df08b2870ec8c5a62ac99b766b4091a286d12f6116b2412382ee05c7f424ec5c7619
7
- data.tar.gz: 448467525f2ee1928a53ca6d977f9f945a5f9e949098aee0b228dd36f739a883c0a299ea3c98432bb5d47dee73ce758ecbb103e6ebb1695ffac182cce8943c26
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
@@ -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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.
@@ -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, auto-scaled,
32
- # auto-healing, OSS-native deployments of technical metadata management
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 Backup in a given project and location.
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, auto-scaled,
37
- # auto-healing, OSS-native deployments of technical metadata management
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.