google-cloud-api_hub-v1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +1 -27
  4. data/lib/google/cloud/api_hub/v1/api_hub.rb +0 -7
  5. data/lib/google/cloud/api_hub/v1/api_hub_dependencies.rb +0 -7
  6. data/lib/google/cloud/api_hub/v1/api_hub_plugin.rb +0 -7
  7. data/lib/google/cloud/api_hub/v1/host_project_registration_service.rb +0 -7
  8. data/lib/google/cloud/api_hub/v1/linting_service.rb +0 -7
  9. data/lib/google/cloud/api_hub/v1/provisioning.rb +0 -8
  10. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service.rb +0 -7
  11. data/lib/google/cloud/api_hub/v1/version.rb +1 -1
  12. data/lib/google/cloud/api_hub/v1.rb +0 -5
  13. data/proto_docs/google/api/client.rb +17 -0
  14. data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +47 -47
  15. data/proto_docs/google/cloud/apihub/v1/common_fields.rb +1 -1
  16. data/proto_docs/google/cloud/apihub/v1/host_project_registration_service.rb +4 -4
  17. data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +3 -3
  18. data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +4 -4
  19. data/proto_docs/google/cloud/apihub/v1/runtime_project_attachment_service.rb +7 -7
  20. metadata +2 -10
  21. data/lib/google/cloud/api_hub/v1/api_hub/client.rb +0 -4514
  22. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/client.rb +0 -906
  23. data/lib/google/cloud/api_hub/v1/api_hub_plugin/client.rb +0 -640
  24. data/lib/google/cloud/api_hub/v1/host_project_registration_service/client.rb +0 -689
  25. data/lib/google/cloud/api_hub/v1/linting_service/client.rb +0 -744
  26. data/lib/google/cloud/api_hub/v1/provisioning/client.rb +0 -676
  27. data/lib/google/cloud/api_hub/v1/provisioning/operations.rb +0 -809
  28. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/client.rb +0 -885
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48953bfe5667c6457b497d211ef6932e918995ddb933151fe41c74be0d834439
4
- data.tar.gz: 7d5c47b3ccd6ca3122d8f2a66d1857dee4ce9c68c906fc1d711e2220d4abb376
3
+ metadata.gz: d1bf41a283c08bd0449f6ad1a4a72dc03620810ccd66697f931de51f2a915f33
4
+ data.tar.gz: 2794aafbd6bf6356f908e84b4a7a291259735340144465af3933cbe327e57fc1
5
5
  SHA512:
6
- metadata.gz: b3bf416538de364483fddb408f671bdab6c2963a2008a3be7ada22d19a302ed22f439131b8e07e4f715ff590849c4280e33091c0dfbb21eb5ac1fe570cc44bd4
7
- data.tar.gz: 91df3771ba0ae6f4664bb325c47b593aff4c5b27bdb0057d2c789d8de219afbfdc8e6c1fa02943179fd717418c6f8fcecfb67574ce8897f4465f485e699f5faa
6
+ metadata.gz: e49056bbd0fe3cc1b9dbad2563f770a444e7ab99b7e755af928359c021f2e31f6b75f0b11de641beb1f9ce8f0229ecee0b03c7907cc0ee7f390074da6f2ac531
7
+ data.tar.gz: 7b90efd60173df61c8572ade0a417008f4406839b9db193e5dd31232622ce71be294f0fcdf44cc002f7511744b7f3159ad942af7ae81ce45c440fc6c8f29df21
data/AUTHENTICATION.md CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
56
56
  ```ruby
57
57
  require "google/cloud/api_hub/v1"
58
58
 
59
- client = ::Google::Cloud::ApiHub::V1::ApiHub::Client.new do |config|
59
+ client = ::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client.new do |config|
60
60
  config.credentials = "path/to/credentialfile.json"
61
61
  end
62
62
  ```
@@ -66,11 +66,11 @@ To configure a credentials file globally for all clients:
66
66
  ```ruby
67
67
  require "google/cloud/api_hub/v1"
68
68
 
69
- ::Google::Cloud::ApiHub::V1::ApiHub::Client.configure do |config|
69
+ ::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client.configure do |config|
70
70
  config.credentials = "path/to/credentialfile.json"
71
71
  end
72
72
 
73
- client = ::Google::Cloud::ApiHub::V1::ApiHub::Client.new
73
+ client = ::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client.new
74
74
  ```
75
75
 
76
76
  ### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/api_hub/v1"
100
100
 
101
101
  ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
102
102
 
103
- client = ::Google::Cloud::ApiHub::V1::ApiHub::Client.new
103
+ client = ::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client.new
104
104
  ```
105
105
 
106
106
  ### Local ADC file
data/README.md CHANGED
@@ -32,7 +32,7 @@ In order to use this library, you first need to go through the following steps:
32
32
  ```ruby
33
33
  require "google/cloud/api_hub/v1"
34
34
 
35
- client = ::Google::Cloud::ApiHub::V1::ApiHub::Client.new
35
+ client = ::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client.new
36
36
  request = ::Google::Cloud::ApiHub::V1::CreateApiRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_api request
38
38
  ```
@@ -43,32 +43,6 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/apigee/docs/apihub/what-is-api-hub)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
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/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
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
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
55
-
56
- ```ruby
57
- require "logger"
58
-
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
69
- end
70
- ```
71
-
72
46
 
73
47
  ## Google Cloud Samples
74
48
 
@@ -16,7 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/config"
21
20
  require "gapic/config/method"
22
21
 
@@ -24,7 +23,6 @@ require "google/cloud/api_hub/v1/version"
24
23
 
25
24
  require "google/cloud/api_hub/v1/api_hub/credentials"
26
25
  require "google/cloud/api_hub/v1/api_hub/paths"
27
- require "google/cloud/api_hub/v1/api_hub/client"
28
26
  require "google/cloud/api_hub/v1/api_hub/rest"
29
27
 
30
28
  module Google
@@ -34,11 +32,6 @@ module Google
34
32
  ##
35
33
  # This service provides all methods related to the API hub.
36
34
  #
37
- # @example Load this service and instantiate a gRPC client
38
- #
39
- # require "google/cloud/api_hub/v1/api_hub"
40
- # client = ::Google::Cloud::ApiHub::V1::ApiHub::Client.new
41
- #
42
35
  # @example Load this service and instantiate a REST client
43
36
  #
44
37
  # require "google/cloud/api_hub/v1/api_hub/rest"
@@ -16,7 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/config"
21
20
  require "gapic/config/method"
22
21
 
@@ -24,7 +23,6 @@ require "google/cloud/api_hub/v1/version"
24
23
 
25
24
  require "google/cloud/api_hub/v1/api_hub_dependencies/credentials"
26
25
  require "google/cloud/api_hub/v1/api_hub_dependencies/paths"
27
- require "google/cloud/api_hub/v1/api_hub_dependencies/client"
28
26
  require "google/cloud/api_hub/v1/api_hub_dependencies/rest"
29
27
 
30
28
  module Google
@@ -35,11 +33,6 @@ module Google
35
33
  # This service provides methods for various operations related to a
36
34
  # {::Google::Cloud::ApiHub::V1::Dependency Dependency} in the API hub.
37
35
  #
38
- # @example Load this service and instantiate a gRPC client
39
- #
40
- # require "google/cloud/api_hub/v1/api_hub_dependencies"
41
- # client = ::Google::Cloud::ApiHub::V1::ApiHubDependencies::Client.new
42
- #
43
36
  # @example Load this service and instantiate a REST client
44
37
  #
45
38
  # require "google/cloud/api_hub/v1/api_hub_dependencies/rest"
@@ -16,7 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/config"
21
20
  require "gapic/config/method"
22
21
 
@@ -24,7 +23,6 @@ require "google/cloud/api_hub/v1/version"
24
23
 
25
24
  require "google/cloud/api_hub/v1/api_hub_plugin/credentials"
26
25
  require "google/cloud/api_hub/v1/api_hub_plugin/paths"
27
- require "google/cloud/api_hub/v1/api_hub_plugin/client"
28
26
  require "google/cloud/api_hub/v1/api_hub_plugin/rest"
29
27
 
30
28
  module Google
@@ -34,11 +32,6 @@ module Google
34
32
  ##
35
33
  # This service is used for managing plugins inside the API Hub.
36
34
  #
37
- # @example Load this service and instantiate a gRPC client
38
- #
39
- # require "google/cloud/api_hub/v1/api_hub_plugin"
40
- # client = ::Google::Cloud::ApiHub::V1::ApiHubPlugin::Client.new
41
- #
42
35
  # @example Load this service and instantiate a REST client
43
36
  #
44
37
  # require "google/cloud/api_hub/v1/api_hub_plugin/rest"
@@ -16,7 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/config"
21
20
  require "gapic/config/method"
22
21
 
@@ -24,7 +23,6 @@ require "google/cloud/api_hub/v1/version"
24
23
 
25
24
  require "google/cloud/api_hub/v1/host_project_registration_service/credentials"
26
25
  require "google/cloud/api_hub/v1/host_project_registration_service/paths"
27
- require "google/cloud/api_hub/v1/host_project_registration_service/client"
28
26
  require "google/cloud/api_hub/v1/host_project_registration_service/rest"
29
27
 
30
28
  module Google
@@ -34,11 +32,6 @@ module Google
34
32
  ##
35
33
  # This service is used for managing the host project registrations.
36
34
  #
37
- # @example Load this service and instantiate a gRPC client
38
- #
39
- # require "google/cloud/api_hub/v1/host_project_registration_service"
40
- # client = ::Google::Cloud::ApiHub::V1::HostProjectRegistrationService::Client.new
41
- #
42
35
  # @example Load this service and instantiate a REST client
43
36
  #
44
37
  # require "google/cloud/api_hub/v1/host_project_registration_service/rest"
@@ -16,7 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/config"
21
20
  require "gapic/config/method"
22
21
 
@@ -24,7 +23,6 @@ require "google/cloud/api_hub/v1/version"
24
23
 
25
24
  require "google/cloud/api_hub/v1/linting_service/credentials"
26
25
  require "google/cloud/api_hub/v1/linting_service/paths"
27
- require "google/cloud/api_hub/v1/linting_service/client"
28
26
  require "google/cloud/api_hub/v1/linting_service/rest"
29
27
 
30
28
  module Google
@@ -34,11 +32,6 @@ module Google
34
32
  ##
35
33
  # This service provides all methods related to the 1p Linter.
36
34
  #
37
- # @example Load this service and instantiate a gRPC client
38
- #
39
- # require "google/cloud/api_hub/v1/linting_service"
40
- # client = ::Google::Cloud::ApiHub::V1::LintingService::Client.new
41
- #
42
35
  # @example Load this service and instantiate a REST client
43
36
  #
44
37
  # require "google/cloud/api_hub/v1/linting_service/rest"
@@ -16,7 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/config"
21
20
  require "gapic/config/method"
22
21
 
@@ -24,8 +23,6 @@ require "google/cloud/api_hub/v1/version"
24
23
 
25
24
  require "google/cloud/api_hub/v1/provisioning/credentials"
26
25
  require "google/cloud/api_hub/v1/provisioning/paths"
27
- require "google/cloud/api_hub/v1/provisioning/operations"
28
- require "google/cloud/api_hub/v1/provisioning/client"
29
26
  require "google/cloud/api_hub/v1/provisioning/rest"
30
27
 
31
28
  module Google
@@ -35,11 +32,6 @@ module Google
35
32
  ##
36
33
  # This service is used for managing the data plane provisioning of the API hub.
37
34
  #
38
- # @example Load this service and instantiate a gRPC client
39
- #
40
- # require "google/cloud/api_hub/v1/provisioning"
41
- # client = ::Google::Cloud::ApiHub::V1::Provisioning::Client.new
42
- #
43
35
  # @example Load this service and instantiate a REST client
44
36
  #
45
37
  # require "google/cloud/api_hub/v1/provisioning/rest"
@@ -16,7 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/config"
21
20
  require "gapic/config/method"
22
21
 
@@ -24,7 +23,6 @@ require "google/cloud/api_hub/v1/version"
24
23
 
25
24
  require "google/cloud/api_hub/v1/runtime_project_attachment_service/credentials"
26
25
  require "google/cloud/api_hub/v1/runtime_project_attachment_service/paths"
27
- require "google/cloud/api_hub/v1/runtime_project_attachment_service/client"
28
26
  require "google/cloud/api_hub/v1/runtime_project_attachment_service/rest"
29
27
 
30
28
  module Google
@@ -34,11 +32,6 @@ module Google
34
32
  ##
35
33
  # This service is used for managing the runtime project attachments.
36
34
  #
37
- # @example Load this service and instantiate a gRPC client
38
- #
39
- # require "google/cloud/api_hub/v1/runtime_project_attachment_service"
40
- # client = ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client.new
41
- #
42
35
  # @example Load this service and instantiate a REST client
43
36
  #
44
37
  # require "google/cloud/api_hub/v1/runtime_project_attachment_service/rest"
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApiHub
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -31,11 +31,6 @@ module Google
31
31
  ##
32
32
  # API client module.
33
33
  #
34
- # @example Load this package, including all its services, and instantiate a gRPC client
35
- #
36
- # require "google/cloud/api_hub/v1"
37
- # client = ::Google::Cloud::ApiHub::V1::ApiHub::Client.new
38
- #
39
34
  # @example Load this package, including all its services, and instantiate a REST client
40
35
  #
41
36
  # require "google/cloud/api_hub/v1"
@@ -196,9 +196,26 @@ module Google
196
196
  # @!attribute [rw] common
197
197
  # @return [::Google::Api::CommonLanguageSettings]
198
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
199
202
  class PythonSettings
200
203
  include ::Google::Protobuf::MessageExts
201
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
202
219
  end
203
220
 
204
221
  # Settings for Node client libraries.