google-cloud-api_hub 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a8f651e00491a91b51395796ad84c1fbd4336077c9ea53723fabbaee3a731be
4
- data.tar.gz: 64426e3e9c50e7a67e67c213e90bb4485f0b89d7479c97388fff95f61cab1723
3
+ metadata.gz: d64675d9314785d703abf7d8de1a5c756163a376caaea5d0e15501d7ce7b074a
4
+ data.tar.gz: 1d7c4114d45f4974adf85f9b48a5e58d56ff99d84fdc112ebd234a08fd509902
5
5
  SHA512:
6
- metadata.gz: a7e6f5781ca4993547d6709bde20561ca9bc4991350ecd18410cb529fc06dc25be43748c2a66a078d67ad14223cfbe5e7769e954b5adff2aca856aba551f36cc
7
- data.tar.gz: ac30e127b2db5ae7a69244353c128e8b05ae77bc6d3484594ac91c520bc0d3737b64df3a154158ac95a09083e89b5300b2065b85ab555c1a657a904d5399b69d
6
+ metadata.gz: 876247a174447416f390c13e25cf1030405c8accd25e8dc4410a350cb20556caa19da5856670740c8854c844bcd199d288ac7a8d654ddf30b91c2b3539ee3128
7
+ data.tar.gz: a88571a8d4f01f450394a22076310567f2bd5ea7f1c523496a542468e8ad5df14c05cb0d4cafa80fc0166589821f52de7cec3ff03870f1f4dcbb47ee23aff021
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module ApiHub
23
- VERSION = "0.1.0"
23
+ VERSION = "0.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -34,7 +34,6 @@ require "google/cloud/config"
34
34
  config.add_field! :scope, nil, match: [::Array, ::String]
35
35
  config.add_field! :lib_name, nil, match: ::String
36
36
  config.add_field! :lib_version, nil, match: ::String
37
- config.add_field! :interceptors, nil, match: ::Array
38
37
  config.add_field! :timeout, nil, match: ::Numeric
39
38
  config.add_field! :metadata, nil, match: ::Hash
40
39
  config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
@@ -49,14 +48,12 @@ module Google
49
48
  # Create a new client object for ApiHub.
50
49
  #
51
50
  # By default, this returns an instance of
52
- # [Google::Cloud::ApiHub::V1::ApiHub::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiHub-Client)
53
- # for a gRPC client for version V1 of the API.
51
+ # [Google::Cloud::ApiHub::V1::ApiHub::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiHub-Rest-Client)
52
+ # for a REST client for version V1 of the API.
54
53
  # However, you can specify a different API version by passing it in the
55
54
  # `version` parameter. If the ApiHub service is
56
55
  # supported by that API version, and the corresponding gem is available, the
57
56
  # appropriate versioned client will be returned.
58
- # You can also specify a different transport by passing `:rest` or `:grpc` in
59
- # the `transport` parameter.
60
57
  #
61
58
  # ## About ApiHub
62
59
  #
@@ -64,10 +61,9 @@ module Google
64
61
  #
65
62
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
66
63
  # Defaults to `:v1`.
67
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
68
64
  # @return [::Object] A client object for the specified version.
69
65
  #
70
- def self.api_hub version: :v1, transport: :grpc, &block
66
+ def self.api_hub version: :v1, &block
71
67
  require "google/cloud/api_hub/#{version.to_s.downcase}"
72
68
 
73
69
  package_name = Google::Cloud::ApiHub
@@ -75,22 +71,19 @@ module Google
75
71
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
76
72
  .first
77
73
  service_module = Google::Cloud::ApiHub.const_get(package_name).const_get(:ApiHub)
78
- service_module = service_module.const_get(:Rest) if transport == :rest
79
- service_module.const_get(:Client).new(&block)
74
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
80
75
  end
81
76
 
82
77
  ##
83
78
  # Create a new client object for ApiHubDependencies.
84
79
  #
85
80
  # By default, this returns an instance of
86
- # [Google::Cloud::ApiHub::V1::ApiHubDependencies::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiHubDependencies-Client)
87
- # for a gRPC client for version V1 of the API.
81
+ # [Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiHubDependencies-Rest-Client)
82
+ # for a REST client for version V1 of the API.
88
83
  # However, you can specify a different API version by passing it in the
89
84
  # `version` parameter. If the ApiHubDependencies service is
90
85
  # supported by that API version, and the corresponding gem is available, the
91
86
  # appropriate versioned client will be returned.
92
- # You can also specify a different transport by passing `:rest` or `:grpc` in
93
- # the `transport` parameter.
94
87
  #
95
88
  # ## About ApiHubDependencies
96
89
  #
@@ -99,10 +92,9 @@ module Google
99
92
  #
100
93
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
101
94
  # Defaults to `:v1`.
102
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
103
95
  # @return [::Object] A client object for the specified version.
104
96
  #
105
- def self.api_hub_dependencies version: :v1, transport: :grpc, &block
97
+ def self.api_hub_dependencies version: :v1, &block
106
98
  require "google/cloud/api_hub/#{version.to_s.downcase}"
107
99
 
108
100
  package_name = Google::Cloud::ApiHub
@@ -110,22 +102,19 @@ module Google
110
102
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
111
103
  .first
112
104
  service_module = Google::Cloud::ApiHub.const_get(package_name).const_get(:ApiHubDependencies)
113
- service_module = service_module.const_get(:Rest) if transport == :rest
114
- service_module.const_get(:Client).new(&block)
105
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
115
106
  end
116
107
 
117
108
  ##
118
109
  # Create a new client object for HostProjectRegistrationService.
119
110
  #
120
111
  # By default, this returns an instance of
121
- # [Google::Cloud::ApiHub::V1::HostProjectRegistrationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-HostProjectRegistrationService-Client)
122
- # for a gRPC client for version V1 of the API.
112
+ # [Google::Cloud::ApiHub::V1::HostProjectRegistrationService::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-HostProjectRegistrationService-Rest-Client)
113
+ # for a REST client for version V1 of the API.
123
114
  # However, you can specify a different API version by passing it in the
124
115
  # `version` parameter. If the HostProjectRegistrationService service is
125
116
  # supported by that API version, and the corresponding gem is available, the
126
117
  # appropriate versioned client will be returned.
127
- # You can also specify a different transport by passing `:rest` or `:grpc` in
128
- # the `transport` parameter.
129
118
  #
130
119
  # ## About HostProjectRegistrationService
131
120
  #
@@ -133,10 +122,9 @@ module Google
133
122
  #
134
123
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
135
124
  # Defaults to `:v1`.
136
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
137
125
  # @return [::Object] A client object for the specified version.
138
126
  #
139
- def self.host_project_registration_service version: :v1, transport: :grpc, &block
127
+ def self.host_project_registration_service version: :v1, &block
140
128
  require "google/cloud/api_hub/#{version.to_s.downcase}"
141
129
 
142
130
  package_name = Google::Cloud::ApiHub
@@ -144,22 +132,19 @@ module Google
144
132
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
145
133
  .first
146
134
  service_module = Google::Cloud::ApiHub.const_get(package_name).const_get(:HostProjectRegistrationService)
147
- service_module = service_module.const_get(:Rest) if transport == :rest
148
- service_module.const_get(:Client).new(&block)
135
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
149
136
  end
150
137
 
151
138
  ##
152
139
  # Create a new client object for LintingService.
153
140
  #
154
141
  # By default, this returns an instance of
155
- # [Google::Cloud::ApiHub::V1::LintingService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-LintingService-Client)
156
- # for a gRPC client for version V1 of the API.
142
+ # [Google::Cloud::ApiHub::V1::LintingService::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-LintingService-Rest-Client)
143
+ # for a REST client for version V1 of the API.
157
144
  # However, you can specify a different API version by passing it in the
158
145
  # `version` parameter. If the LintingService service is
159
146
  # supported by that API version, and the corresponding gem is available, the
160
147
  # appropriate versioned client will be returned.
161
- # You can also specify a different transport by passing `:rest` or `:grpc` in
162
- # the `transport` parameter.
163
148
  #
164
149
  # ## About LintingService
165
150
  #
@@ -167,10 +152,9 @@ module Google
167
152
  #
168
153
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
169
154
  # Defaults to `:v1`.
170
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
171
155
  # @return [::Object] A client object for the specified version.
172
156
  #
173
- def self.linting_service version: :v1, transport: :grpc, &block
157
+ def self.linting_service version: :v1, &block
174
158
  require "google/cloud/api_hub/#{version.to_s.downcase}"
175
159
 
176
160
  package_name = Google::Cloud::ApiHub
@@ -178,22 +162,19 @@ module Google
178
162
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
179
163
  .first
180
164
  service_module = Google::Cloud::ApiHub.const_get(package_name).const_get(:LintingService)
181
- service_module = service_module.const_get(:Rest) if transport == :rest
182
- service_module.const_get(:Client).new(&block)
165
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
183
166
  end
184
167
 
185
168
  ##
186
169
  # Create a new client object for ApiHubPlugin.
187
170
  #
188
171
  # By default, this returns an instance of
189
- # [Google::Cloud::ApiHub::V1::ApiHubPlugin::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiHubPlugin-Client)
190
- # for a gRPC client for version V1 of the API.
172
+ # [Google::Cloud::ApiHub::V1::ApiHubPlugin::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiHubPlugin-Rest-Client)
173
+ # for a REST client for version V1 of the API.
191
174
  # However, you can specify a different API version by passing it in the
192
175
  # `version` parameter. If the ApiHubPlugin service is
193
176
  # supported by that API version, and the corresponding gem is available, the
194
177
  # appropriate versioned client will be returned.
195
- # You can also specify a different transport by passing `:rest` or `:grpc` in
196
- # the `transport` parameter.
197
178
  #
198
179
  # ## About ApiHubPlugin
199
180
  #
@@ -201,10 +182,9 @@ module Google
201
182
  #
202
183
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
203
184
  # Defaults to `:v1`.
204
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
205
185
  # @return [::Object] A client object for the specified version.
206
186
  #
207
- def self.api_hub_plugin version: :v1, transport: :grpc, &block
187
+ def self.api_hub_plugin version: :v1, &block
208
188
  require "google/cloud/api_hub/#{version.to_s.downcase}"
209
189
 
210
190
  package_name = Google::Cloud::ApiHub
@@ -212,22 +192,19 @@ module Google
212
192
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
213
193
  .first
214
194
  service_module = Google::Cloud::ApiHub.const_get(package_name).const_get(:ApiHubPlugin)
215
- service_module = service_module.const_get(:Rest) if transport == :rest
216
- service_module.const_get(:Client).new(&block)
195
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
217
196
  end
218
197
 
219
198
  ##
220
199
  # Create a new client object for Provisioning.
221
200
  #
222
201
  # By default, this returns an instance of
223
- # [Google::Cloud::ApiHub::V1::Provisioning::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Provisioning-Client)
224
- # for a gRPC client for version V1 of the API.
202
+ # [Google::Cloud::ApiHub::V1::Provisioning::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Provisioning-Rest-Client)
203
+ # for a REST client for version V1 of the API.
225
204
  # However, you can specify a different API version by passing it in the
226
205
  # `version` parameter. If the Provisioning service is
227
206
  # supported by that API version, and the corresponding gem is available, the
228
207
  # appropriate versioned client will be returned.
229
- # You can also specify a different transport by passing `:rest` or `:grpc` in
230
- # the `transport` parameter.
231
208
  #
232
209
  # ## About Provisioning
233
210
  #
@@ -235,10 +212,9 @@ module Google
235
212
  #
236
213
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
237
214
  # Defaults to `:v1`.
238
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
239
215
  # @return [::Object] A client object for the specified version.
240
216
  #
241
- def self.provisioning version: :v1, transport: :grpc, &block
217
+ def self.provisioning version: :v1, &block
242
218
  require "google/cloud/api_hub/#{version.to_s.downcase}"
243
219
 
244
220
  package_name = Google::Cloud::ApiHub
@@ -246,22 +222,19 @@ module Google
246
222
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
247
223
  .first
248
224
  service_module = Google::Cloud::ApiHub.const_get(package_name).const_get(:Provisioning)
249
- service_module = service_module.const_get(:Rest) if transport == :rest
250
- service_module.const_get(:Client).new(&block)
225
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
251
226
  end
252
227
 
253
228
  ##
254
229
  # Create a new client object for RuntimeProjectAttachmentService.
255
230
  #
256
231
  # By default, this returns an instance of
257
- # [Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-RuntimeProjectAttachmentService-Client)
258
- # for a gRPC client for version V1 of the API.
232
+ # [Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-RuntimeProjectAttachmentService-Rest-Client)
233
+ # for a REST client for version V1 of the API.
259
234
  # However, you can specify a different API version by passing it in the
260
235
  # `version` parameter. If the RuntimeProjectAttachmentService service is
261
236
  # supported by that API version, and the corresponding gem is available, the
262
237
  # appropriate versioned client will be returned.
263
- # You can also specify a different transport by passing `:rest` or `:grpc` in
264
- # the `transport` parameter.
265
238
  #
266
239
  # ## About RuntimeProjectAttachmentService
267
240
  #
@@ -269,10 +242,9 @@ module Google
269
242
  #
270
243
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
271
244
  # Defaults to `:v1`.
272
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
273
245
  # @return [::Object] A client object for the specified version.
274
246
  #
275
- def self.runtime_project_attachment_service version: :v1, transport: :grpc, &block
247
+ def self.runtime_project_attachment_service version: :v1, &block
276
248
  require "google/cloud/api_hub/#{version.to_s.downcase}"
277
249
 
278
250
  package_name = Google::Cloud::ApiHub
@@ -280,8 +252,7 @@ module Google
280
252
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
281
253
  .first
282
254
  service_module = Google::Cloud::ApiHub.const_get(package_name).const_get(:RuntimeProjectAttachmentService)
283
- service_module = service_module.const_get(:Rest) if transport == :rest
284
- service_module.const_get(:Client).new(&block)
255
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
285
256
  end
286
257
 
287
258
  ##
@@ -296,8 +267,6 @@ module Google
296
267
  # The library name as recorded in instrumentation and logging.
297
268
  # * `lib_version` (*type:* `String`) -
298
269
  # The library version as recorded in instrumentation and logging.
299
- # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
300
- # An array of interceptors that are run before calls are executed.
301
270
  # * `timeout` (*type:* `Numeric`) -
302
271
  # Default timeout in seconds.
303
272
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-api_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-12 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-api_hub-v1