google-cloud-tpu-v1 0.4.0 → 0.5.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: e14303d3eb033d52ff2b194cba6687932d362037f763eb32b190155f127d8d03
4
- data.tar.gz: 2f1fa6e57f8b7f3677866d8e71584b68ba4e7ce17d1dda5a41819677fc0fd5d1
3
+ metadata.gz: ae4dc2d303621731703ba02d13225479951390ce55526dc164d7d0240a44d31f
4
+ data.tar.gz: 5dc9227d91b0307cd1add88c99c6b9effb045694fc026403f046932cd793d245
5
5
  SHA512:
6
- metadata.gz: de6b41c152b031af7335c78b1dd7a9082410749dd49303307b857e0f558106c0f911cac44c1b16e59e1aa75549fcea165f6f32829831e027b9819787eacfea6e
7
- data.tar.gz: b4dbcb43d5eef0141c44f29f5b7a9929d463a23c951ce17fa2ea8270612c961c07ee01318a9658cdd25d23c0af224cb8246d61586f006bb95b1e6b71163e9c37
6
+ metadata.gz: 850c0946118b2d20c45c6b47619eeee85d23be1a94016d583c22996b19bb86af649bc1f5fd589b6e506c9a78064c35621c05567977ece6e65bb5d86f236552ff
7
+ data.tar.gz: b0a77d7e2e1e5ab7e0cf7fc647f02818d91638bd533972b39984407ea97a8361984e50fb32d94d73ad165de93a4acb649f0e73b7635c0471f920383c19ce0e28
@@ -128,7 +128,7 @@ module Google
128
128
  credentials = @config.credentials
129
129
  # Use self-signed JWT if the endpoint is unchanged from default,
130
130
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
132
132
  !@config.endpoint.split(".").first.include?("-")
133
133
  credentials ||= Credentials.default scope: @config.scope,
134
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -155,7 +155,8 @@ module Google
155
155
  credentials: credentials,
156
156
  endpoint: @config.endpoint,
157
157
  channel_args: @config.channel_args,
158
- interceptors: @config.interceptors
158
+ interceptors: @config.interceptors,
159
+ channel_pool_config: @config.channel_pool
159
160
  )
160
161
  end
161
162
 
@@ -1273,7 +1274,9 @@ module Google
1273
1274
  class Configuration
1274
1275
  extend ::Gapic::Config
1275
1276
 
1276
- config_attr :endpoint, "tpu.googleapis.com", ::String
1277
+ DEFAULT_ENDPOINT = "tpu.googleapis.com"
1278
+
1279
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1277
1280
  config_attr :credentials, nil do |value|
1278
1281
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1279
1282
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1308,6 +1311,14 @@ module Google
1308
1311
  end
1309
1312
  end
1310
1313
 
1314
+ ##
1315
+ # Configuration for the channel pool
1316
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1317
+ #
1318
+ def channel_pool
1319
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1320
+ end
1321
+
1311
1322
  ##
1312
1323
  # Configuration RPC class for the Tpu API.
1313
1324
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "tpu.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "tpu.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tpu
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tpu-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  requirements: []
235
- rubygems_version: 3.4.2
235
+ rubygems_version: 3.4.19
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: TPU API provides customers with access to Google TPU technology.