google-cloud-metastore-v1beta 0.1.5 → 0.3.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.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +12 -7
  4. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/client.rb +8 -8
  5. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/operations.rb +3 -0
  6. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb +38 -0
  7. data/lib/google/cloud/metastore/v1beta/dataproc_metastore.rb +2 -2
  8. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/client.rb +900 -0
  9. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/credentials.rb +51 -0
  10. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/operations.rb +770 -0
  11. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/paths.rb +69 -0
  12. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation.rb +62 -0
  13. data/lib/google/cloud/metastore/v1beta/metastore_federation_pb.rb +95 -0
  14. data/lib/google/cloud/metastore/v1beta/metastore_federation_services_pb.rb +65 -0
  15. data/lib/google/cloud/metastore/v1beta/metastore_pb.rb +64 -1
  16. data/lib/google/cloud/metastore/v1beta/metastore_services_pb.rb +3 -3
  17. data/lib/google/cloud/metastore/v1beta/version.rb +1 -1
  18. data/lib/google/cloud/metastore/v1beta.rb +3 -0
  19. data/proto_docs/google/api/client.rb +318 -0
  20. data/proto_docs/google/api/launch_stage.rb +71 -0
  21. data/proto_docs/google/cloud/metastore/v1beta/metastore.rb +217 -12
  22. data/proto_docs/google/cloud/metastore/v1beta/metastore_federation.rb +305 -0
  23. data/proto_docs/google/protobuf/any.rb +3 -3
  24. data/proto_docs/google/protobuf/empty.rb +0 -2
  25. metadata +22 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 341f46d874f60afd9c2a9081052dce1d63d2460945b9d7f93abe7070fa4b71ac
4
- data.tar.gz: 5263b189c25ad9ae13cbc2b2229a51635c7f3f5a16e20d6c188c021d6ca9daff
3
+ metadata.gz: 9bf2489ba1993f0a431b99a78fd60b5136dbf113c98c4d6f3b019c41258dd609
4
+ data.tar.gz: a93b3fa3c3c9104fcfb591f8893c375d45e7422a17bf2d367da082a7b16de508
5
5
  SHA512:
6
- metadata.gz: 2788e27f2e75b2d5cbabc0a6b1c380baff98997acb27ca33ed674b81b16eeb55ebecf5af6e823c4f446344600ec67853cfa5e746b3d552156bf6d21d77850935
7
- data.tar.gz: f290f12842c0da56b99b9179dbcbad8ce3939fc4793eb6f7a98cc964bb3cec5b8ef0d3340393060c1b7a8f171de1d321bdb5724d1909b6aed56ce304d9b5f09d
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://googleapis.dev/ruby/google-cloud-metastore-v1beta/latest)
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/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.
@@ -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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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, 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.
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -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.