google-cloud-workstations-v1 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/workstations/v1/version.rb +1 -1
- data/lib/google/cloud/workstations/v1/workstations/client.rb +11 -0
- data/lib/google/cloud/workstations/v1/workstations/operations.rb +7 -0
- data/lib/google/cloud/workstations/v1/workstations/rest/client.rb +31 -10
- data/lib/google/cloud/workstations/v1/workstations/rest/operations.rb +7 -0
- data/proto_docs/google/api/client.rb +8 -0
- data/proto_docs/google/cloud/workstations/v1/workstations.rb +4 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e30e9ad3ce296afeeb7f08b44210ad20497260b78c7e6927b5706bc2cb5bfb9d
|
4
|
+
data.tar.gz: a4d8318c87a306b462959e42bce1162cd6f08b588e7b1d4e8b20e0d82c458b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0d686cc68dfef7a29bb8f3b17ebd1bbe329064c8cc818d145dc9fbf471aad3975dc81c3d286e4ad559019597c20735dfe4298b6de4541e0750a91707792ab8
|
7
|
+
data.tar.gz: dba695d6b02ee2bcd2e840afac4f5f7e316240e55fc88d467d830b2f0290145b02a017b2306314f560b16202eab15f131f1e26389f28ee0fe058c238fb0faa80
|
data/README.md
CHANGED
@@ -85,7 +85,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
85
85
|
|
86
86
|
## Supported Ruby Versions
|
87
87
|
|
88
|
-
This library is supported on Ruby
|
88
|
+
This library is supported on Ruby 3.0+.
|
89
89
|
|
90
90
|
Google provides official support for Ruby versions that are actively supported
|
91
91
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -2180,10 +2180,14 @@ module Google
|
|
2180
2180
|
# be at most 24 hours in the future. If a value is not specified, the
|
2181
2181
|
# token's expiration time will be set to a default value of 1 hour in the
|
2182
2182
|
# future.
|
2183
|
+
#
|
2184
|
+
# Note: The following fields are mutually exclusive: `expire_time`, `ttl`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
2183
2185
|
# @param ttl [::Google::Protobuf::Duration, ::Hash]
|
2184
2186
|
# Desired lifetime duration of the access token. This value must
|
2185
2187
|
# be at most 24 hours. If a value is not specified, the token's lifetime
|
2186
2188
|
# will be set to a default value of 1 hour.
|
2189
|
+
#
|
2190
|
+
# Note: The following fields are mutually exclusive: `ttl`, `expire_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
2187
2191
|
# @param workstation [::String]
|
2188
2192
|
# Required. Name of the workstation for which the access token should be
|
2189
2193
|
# generated.
|
@@ -2296,6 +2300,13 @@ module Google
|
|
2296
2300
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2297
2301
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2298
2302
|
# * (`nil`) indicating no credentials
|
2303
|
+
#
|
2304
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
2305
|
+
# external source for authentication to Google Cloud, you must validate it before
|
2306
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
2307
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
2308
|
+
# For more information, refer to [Validate credential configurations from external
|
2309
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
2299
2310
|
# @return [::Object]
|
2300
2311
|
# @!attribute [rw] scope
|
2301
2312
|
# The OAuth scopes
|
@@ -640,6 +640,13 @@ module Google
|
|
640
640
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
641
641
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
642
642
|
# * (`nil`) indicating no credentials
|
643
|
+
#
|
644
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
645
|
+
# external source for authentication to Google Cloud, you must validate it before
|
646
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
647
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
648
|
+
# For more information, refer to [Validate credential configurations from external
|
649
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
643
650
|
# @return [::Object]
|
644
651
|
# @!attribute [rw] scope
|
645
652
|
# The OAuth scopes
|
@@ -394,10 +394,10 @@ module Google
|
|
394
394
|
# Optional. next_page_token value returned from a previous List request, if
|
395
395
|
# any.
|
396
396
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
397
|
-
# @yieldparam result [::Google::Cloud::Workstations::V1::
|
397
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::WorkstationCluster>]
|
398
398
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
399
399
|
#
|
400
|
-
# @return [::Google::Cloud::Workstations::V1::
|
400
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::WorkstationCluster>]
|
401
401
|
#
|
402
402
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
403
403
|
#
|
@@ -449,7 +449,9 @@ module Google
|
|
449
449
|
retry_policy: @config.retry_policy
|
450
450
|
|
451
451
|
@workstations_stub.list_workstation_clusters request, options do |result, operation|
|
452
|
+
result = ::Gapic::Rest::PagedEnumerable.new @workstations_stub, :list_workstation_clusters, "workstation_clusters", request, result, options
|
452
453
|
yield result, operation if block_given?
|
454
|
+
throw :response, result
|
453
455
|
end
|
454
456
|
rescue ::Gapic::Rest::Error => e
|
455
457
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -847,10 +849,10 @@ module Google
|
|
847
849
|
# Optional. next_page_token value returned from a previous List request, if
|
848
850
|
# any.
|
849
851
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
850
|
-
# @yieldparam result [::Google::Cloud::Workstations::V1::
|
852
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::WorkstationConfig>]
|
851
853
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
852
854
|
#
|
853
|
-
# @return [::Google::Cloud::Workstations::V1::
|
855
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::WorkstationConfig>]
|
854
856
|
#
|
855
857
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
856
858
|
#
|
@@ -902,7 +904,9 @@ module Google
|
|
902
904
|
retry_policy: @config.retry_policy
|
903
905
|
|
904
906
|
@workstations_stub.list_workstation_configs request, options do |result, operation|
|
907
|
+
result = ::Gapic::Rest::PagedEnumerable.new @workstations_stub, :list_workstation_configs, "workstation_configs", request, result, options
|
905
908
|
yield result, operation if block_given?
|
909
|
+
throw :response, result
|
906
910
|
end
|
907
911
|
rescue ::Gapic::Rest::Error => e
|
908
912
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -935,10 +939,10 @@ module Google
|
|
935
939
|
# Optional. next_page_token value returned from a previous List request, if
|
936
940
|
# any.
|
937
941
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
938
|
-
# @yieldparam result [::Google::Cloud::Workstations::V1::
|
942
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::WorkstationConfig>]
|
939
943
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
940
944
|
#
|
941
|
-
# @return [::Google::Cloud::Workstations::V1::
|
945
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::WorkstationConfig>]
|
942
946
|
#
|
943
947
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
944
948
|
#
|
@@ -990,7 +994,9 @@ module Google
|
|
990
994
|
retry_policy: @config.retry_policy
|
991
995
|
|
992
996
|
@workstations_stub.list_usable_workstation_configs request, options do |result, operation|
|
997
|
+
result = ::Gapic::Rest::PagedEnumerable.new @workstations_stub, :list_usable_workstation_configs, "workstation_configs", request, result, options
|
993
998
|
yield result, operation if block_given?
|
999
|
+
throw :response, result
|
994
1000
|
end
|
995
1001
|
rescue ::Gapic::Rest::Error => e
|
996
1002
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1388,10 +1394,10 @@ module Google
|
|
1388
1394
|
# Optional. next_page_token value returned from a previous List request, if
|
1389
1395
|
# any.
|
1390
1396
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1391
|
-
# @yieldparam result [::Google::Cloud::Workstations::V1::
|
1397
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::Workstation>]
|
1392
1398
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1393
1399
|
#
|
1394
|
-
# @return [::Google::Cloud::Workstations::V1::
|
1400
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::Workstation>]
|
1395
1401
|
#
|
1396
1402
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1397
1403
|
#
|
@@ -1443,7 +1449,9 @@ module Google
|
|
1443
1449
|
retry_policy: @config.retry_policy
|
1444
1450
|
|
1445
1451
|
@workstations_stub.list_workstations request, options do |result, operation|
|
1452
|
+
result = ::Gapic::Rest::PagedEnumerable.new @workstations_stub, :list_workstations, "workstations", request, result, options
|
1446
1453
|
yield result, operation if block_given?
|
1454
|
+
throw :response, result
|
1447
1455
|
end
|
1448
1456
|
rescue ::Gapic::Rest::Error => e
|
1449
1457
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1476,10 +1484,10 @@ module Google
|
|
1476
1484
|
# Optional. next_page_token value returned from a previous List request, if
|
1477
1485
|
# any.
|
1478
1486
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1479
|
-
# @yieldparam result [::Google::Cloud::Workstations::V1::
|
1487
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::Workstation>]
|
1480
1488
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1481
1489
|
#
|
1482
|
-
# @return [::Google::Cloud::Workstations::V1::
|
1490
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1::Workstation>]
|
1483
1491
|
#
|
1484
1492
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1485
1493
|
#
|
@@ -1531,7 +1539,9 @@ module Google
|
|
1531
1539
|
retry_policy: @config.retry_policy
|
1532
1540
|
|
1533
1541
|
@workstations_stub.list_usable_workstations request, options do |result, operation|
|
1542
|
+
result = ::Gapic::Rest::PagedEnumerable.new @workstations_stub, :list_usable_workstations, "workstations", request, result, options
|
1534
1543
|
yield result, operation if block_given?
|
1544
|
+
throw :response, result
|
1535
1545
|
end
|
1536
1546
|
rescue ::Gapic::Rest::Error => e
|
1537
1547
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2031,10 +2041,14 @@ module Google
|
|
2031
2041
|
# be at most 24 hours in the future. If a value is not specified, the
|
2032
2042
|
# token's expiration time will be set to a default value of 1 hour in the
|
2033
2043
|
# future.
|
2044
|
+
#
|
2045
|
+
# Note: The following fields are mutually exclusive: `expire_time`, `ttl`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
2034
2046
|
# @param ttl [::Google::Protobuf::Duration, ::Hash]
|
2035
2047
|
# Desired lifetime duration of the access token. This value must
|
2036
2048
|
# be at most 24 hours. If a value is not specified, the token's lifetime
|
2037
2049
|
# will be set to a default value of 1 hour.
|
2050
|
+
#
|
2051
|
+
# Note: The following fields are mutually exclusive: `ttl`, `expire_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
2038
2052
|
# @param workstation [::String]
|
2039
2053
|
# Required. Name of the workstation for which the access token should be
|
2040
2054
|
# generated.
|
@@ -2138,6 +2152,13 @@ module Google
|
|
2138
2152
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2139
2153
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2140
2154
|
# * (`nil`) indicating no credentials
|
2155
|
+
#
|
2156
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
2157
|
+
# external source for authentication to Google Cloud, you must validate it before
|
2158
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
2159
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
2160
|
+
# For more information, refer to [Validate credential configurations from external
|
2161
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
2141
2162
|
# @return [::Object]
|
2142
2163
|
# @!attribute [rw] scope
|
2143
2164
|
# The OAuth scopes
|
@@ -502,6 +502,13 @@ module Google
|
|
502
502
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
503
503
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
504
504
|
# * (`nil`) indicating no credentials
|
505
|
+
#
|
506
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
507
|
+
# external source for authentication to Google Cloud, you must validate it before
|
508
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
509
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
510
|
+
# For more information, refer to [Validate credential configurations from external
|
511
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
505
512
|
# @return [::Object]
|
506
513
|
# @!attribute [rw] scope
|
507
514
|
# The OAuth scopes
|
@@ -409,6 +409,14 @@ module Google
|
|
409
409
|
# @return [::Array<::String>]
|
410
410
|
# An allowlist of the fully qualified names of RPCs that should be included
|
411
411
|
# on public client surfaces.
|
412
|
+
# @!attribute [rw] generate_omitted_as_internal
|
413
|
+
# @return [::Boolean]
|
414
|
+
# Setting this to true indicates to the client generators that methods
|
415
|
+
# that would be excluded from the generation should instead be generated
|
416
|
+
# in a way that indicates these methods should not be consumed by
|
417
|
+
# end users. How this is expressed is up to individual language
|
418
|
+
# implementations to decide. Some examples may be: added annotations,
|
419
|
+
# obfuscated identifiers, or other language idiomatic patterns.
|
412
420
|
class SelectiveGapicGeneration
|
413
421
|
include ::Google::Protobuf::MessageExts
|
414
422
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1111,11 +1111,15 @@ module Google
|
|
1111
1111
|
# be at most 24 hours in the future. If a value is not specified, the
|
1112
1112
|
# token's expiration time will be set to a default value of 1 hour in the
|
1113
1113
|
# future.
|
1114
|
+
#
|
1115
|
+
# Note: The following fields are mutually exclusive: `expire_time`, `ttl`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1114
1116
|
# @!attribute [rw] ttl
|
1115
1117
|
# @return [::Google::Protobuf::Duration]
|
1116
1118
|
# Desired lifetime duration of the access token. This value must
|
1117
1119
|
# be at most 24 hours. If a value is not specified, the token's lifetime
|
1118
1120
|
# will be set to a default value of 1 hour.
|
1121
|
+
#
|
1122
|
+
# Note: The following fields are mutually exclusive: `ttl`, `expire_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1119
1123
|
# @!attribute [rw] workstation
|
1120
1124
|
# @return [::String]
|
1121
1125
|
# Required. Name of the workstation for which the access token should be
|
@@ -40,6 +40,8 @@ module Google
|
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
45
|
# @!attribute [rw] response
|
44
46
|
# @return [::Google::Protobuf::Any]
|
45
47
|
# The normal, successful response of the operation. If the original
|
@@ -50,6 +52,8 @@ module Google
|
|
50
52
|
# is the original method name. For example, if the original method name
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
52
54
|
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
57
|
class Operation
|
54
58
|
include ::Google::Protobuf::MessageExts
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-workstations-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-07 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -131,7 +130,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
131
130
|
licenses:
|
132
131
|
- Apache-2.0
|
133
132
|
metadata: {}
|
134
|
-
post_install_message:
|
135
133
|
rdoc_options: []
|
136
134
|
require_paths:
|
137
135
|
- lib
|
@@ -139,15 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
137
|
requirements:
|
140
138
|
- - ">="
|
141
139
|
- !ruby/object:Gem::Version
|
142
|
-
version: '
|
140
|
+
version: '3.0'
|
143
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
142
|
requirements:
|
145
143
|
- - ">="
|
146
144
|
- !ruby/object:Gem::Version
|
147
145
|
version: '0'
|
148
146
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
-
signing_key:
|
147
|
+
rubygems_version: 3.6.3
|
151
148
|
specification_version: 4
|
152
149
|
summary: Allows administrators to create managed developer environments in the cloud.
|
153
150
|
test_files: []
|