google-cloud-workstations-v1beta 0.8.0 → 0.9.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 +4 -4
- data/lib/google/cloud/workstations/v1beta/version.rb +1 -1
- data/lib/google/cloud/workstations/v1beta/workstations/client.rb +155 -24
- data/lib/google/cloud/workstations/v1beta/workstations/rest/client.rb +148 -24
- data/lib/google/cloud/workstations/v1beta/workstations/rest/service_stub.rb +62 -0
- data/lib/google/cloud/workstations/v1beta/workstations_pb.rb +18 -1
- data/lib/google/cloud/workstations/v1beta/workstations_services_pb.rb +6 -0
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/workstations/v1beta/workstations.rb +667 -58
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe473026943deeb9df39758de973cfea4cf2f04e75671000d397fa819421b323
|
|
4
|
+
data.tar.gz: f01120ec7af8ca1f48400fb2acd082d56007431069aba1ba0851964543d02243
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fabfce073f076c81ced3eaeee7c58cf409b64b6d9199f6862aab9de72861d31bbba481c81bf5cd21cb6587fe2210c22d86f198731c7f883d1796853a34e38543
|
|
7
|
+
data.tar.gz: 76c4b645e9faccdbc72460f99ce2de5ef1603f8ae83fbf649d3acace048231ec19794dfe13527b6699a0b47baea9c4e356c8e9a9c4603fd2a00006896292198b
|
|
@@ -394,7 +394,7 @@ module Google
|
|
|
394
394
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
395
395
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
396
396
|
#
|
|
397
|
-
# @overload list_workstation_clusters(parent: nil, page_size: nil, page_token: nil)
|
|
397
|
+
# @overload list_workstation_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
|
398
398
|
# Pass arguments to `list_workstation_clusters` via keyword arguments. Note that at
|
|
399
399
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
400
400
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -406,6 +406,9 @@ module Google
|
|
|
406
406
|
# @param page_token [::String]
|
|
407
407
|
# Optional. next_page_token value returned from a previous List request, if
|
|
408
408
|
# any.
|
|
409
|
+
# @param filter [::String]
|
|
410
|
+
# Optional. Filter the WorkstationClusters to be listed. Possible filters are
|
|
411
|
+
# described in https://google.aip.dev/160.
|
|
409
412
|
#
|
|
410
413
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
411
414
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Workstations::V1beta::WorkstationCluster>]
|
|
@@ -502,7 +505,7 @@ module Google
|
|
|
502
505
|
# @param workstation_cluster [::Google::Cloud::Workstations::V1beta::WorkstationCluster, ::Hash]
|
|
503
506
|
# Required. Workstation cluster to create.
|
|
504
507
|
# @param validate_only [::Boolean]
|
|
505
|
-
# Optional. If set, validate the request and preview the
|
|
508
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
506
509
|
# actually apply it.
|
|
507
510
|
#
|
|
508
511
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
@@ -602,7 +605,7 @@ module Google
|
|
|
602
605
|
# Required. Mask that specifies which fields in the workstation cluster
|
|
603
606
|
# should be updated.
|
|
604
607
|
# @param validate_only [::Boolean]
|
|
605
|
-
# Optional. If set, validate the request and preview the
|
|
608
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
606
609
|
# actually apply it.
|
|
607
610
|
# @param allow_missing [::Boolean]
|
|
608
611
|
# Optional. If set, and the workstation cluster is not found, a new
|
|
@@ -703,7 +706,7 @@ module Google
|
|
|
703
706
|
# @param name [::String]
|
|
704
707
|
# Required. Name of the workstation cluster to delete.
|
|
705
708
|
# @param validate_only [::Boolean]
|
|
706
|
-
# Optional. If set, validate the request and preview the
|
|
709
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
707
710
|
# apply it.
|
|
708
711
|
# @param etag [::String]
|
|
709
712
|
# Optional. If set, the request will be rejected if the latest version of the
|
|
@@ -884,7 +887,7 @@ module Google
|
|
|
884
887
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
885
888
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
886
889
|
#
|
|
887
|
-
# @overload list_workstation_configs(parent: nil, page_size: nil, page_token: nil)
|
|
890
|
+
# @overload list_workstation_configs(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
|
888
891
|
# Pass arguments to `list_workstation_configs` via keyword arguments. Note that at
|
|
889
892
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
890
893
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -896,6 +899,9 @@ module Google
|
|
|
896
899
|
# @param page_token [::String]
|
|
897
900
|
# Optional. next_page_token value returned from a previous List request, if
|
|
898
901
|
# any.
|
|
902
|
+
# @param filter [::String]
|
|
903
|
+
# Optional. Filter the WorkstationConfigs to be listed. Possible filters are
|
|
904
|
+
# described in https://google.aip.dev/160.
|
|
899
905
|
#
|
|
900
906
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
901
907
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Workstations::V1beta::WorkstationConfig>]
|
|
@@ -1087,9 +1093,9 @@ module Google
|
|
|
1087
1093
|
# @param workstation_config_id [::String]
|
|
1088
1094
|
# Required. ID to use for the workstation configuration.
|
|
1089
1095
|
# @param workstation_config [::Google::Cloud::Workstations::V1beta::WorkstationConfig, ::Hash]
|
|
1090
|
-
# Required.
|
|
1096
|
+
# Required. Workstation configuration to create.
|
|
1091
1097
|
# @param validate_only [::Boolean]
|
|
1092
|
-
# Optional. If set, validate the request and preview the
|
|
1098
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
1093
1099
|
# actually apply it.
|
|
1094
1100
|
#
|
|
1095
1101
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
@@ -1184,12 +1190,12 @@ module Google
|
|
|
1184
1190
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1185
1191
|
#
|
|
1186
1192
|
# @param workstation_config [::Google::Cloud::Workstations::V1beta::WorkstationConfig, ::Hash]
|
|
1187
|
-
# Required.
|
|
1193
|
+
# Required. Workstation configuration to update.
|
|
1188
1194
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1189
1195
|
# Required. Mask specifying which fields in the workstation configuration
|
|
1190
1196
|
# should be updated.
|
|
1191
1197
|
# @param validate_only [::Boolean]
|
|
1192
|
-
# Optional. If set, validate the request and preview the
|
|
1198
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
1193
1199
|
# actually apply it.
|
|
1194
1200
|
# @param allow_missing [::Boolean]
|
|
1195
1201
|
# Optional. If set and the workstation configuration is not found, a new
|
|
@@ -1290,7 +1296,7 @@ module Google
|
|
|
1290
1296
|
# @param name [::String]
|
|
1291
1297
|
# Required. Name of the workstation configuration to delete.
|
|
1292
1298
|
# @param validate_only [::Boolean]
|
|
1293
|
-
# Optional. If set, validate the request and preview the
|
|
1299
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
1294
1300
|
# actually apply it.
|
|
1295
1301
|
# @param etag [::String]
|
|
1296
1302
|
# Optional. If set, the request is rejected if the latest version of the
|
|
@@ -1471,7 +1477,7 @@ module Google
|
|
|
1471
1477
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1472
1478
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1473
1479
|
#
|
|
1474
|
-
# @overload list_workstations(parent: nil, page_size: nil, page_token: nil)
|
|
1480
|
+
# @overload list_workstations(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
|
1475
1481
|
# Pass arguments to `list_workstations` via keyword arguments. Note that at
|
|
1476
1482
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1477
1483
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -1483,6 +1489,9 @@ module Google
|
|
|
1483
1489
|
# @param page_token [::String]
|
|
1484
1490
|
# Optional. next_page_token value returned from a previous List request, if
|
|
1485
1491
|
# any.
|
|
1492
|
+
# @param filter [::String]
|
|
1493
|
+
# Optional. Filter the Workstations to be listed. Possible filters are
|
|
1494
|
+
# described in https://google.aip.dev/160.
|
|
1486
1495
|
#
|
|
1487
1496
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1488
1497
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Workstations::V1beta::Workstation>]
|
|
@@ -1674,9 +1683,13 @@ module Google
|
|
|
1674
1683
|
# @param workstation_id [::String]
|
|
1675
1684
|
# Required. ID to use for the workstation.
|
|
1676
1685
|
# @param workstation [::Google::Cloud::Workstations::V1beta::Workstation, ::Hash]
|
|
1677
|
-
# Required. Workstation to create.
|
|
1686
|
+
# Required. Workstation to create. If source_workstation is specified, the
|
|
1687
|
+
# user must have `workstations.workstations.use` permission on the source
|
|
1688
|
+
# workstation, and the Cloud Workstations Service Agent for the project where
|
|
1689
|
+
# you are creating the new workstation must have compute.disks.createSnapshot
|
|
1690
|
+
# and compute.snapshots.useReadOnly on the source project.
|
|
1678
1691
|
# @param validate_only [::Boolean]
|
|
1679
|
-
# Optional. If set, validate the request and preview the
|
|
1692
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
1680
1693
|
# actually apply it.
|
|
1681
1694
|
#
|
|
1682
1695
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
@@ -1773,15 +1786,14 @@ module Google
|
|
|
1773
1786
|
# @param workstation [::Google::Cloud::Workstations::V1beta::Workstation, ::Hash]
|
|
1774
1787
|
# Required. Workstation to update.
|
|
1775
1788
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1776
|
-
# Required. Mask specifying which fields in the workstation
|
|
1777
|
-
#
|
|
1789
|
+
# Required. Mask specifying which fields in the workstation should be
|
|
1790
|
+
# updated.
|
|
1778
1791
|
# @param validate_only [::Boolean]
|
|
1779
|
-
# Optional. If set, validate the request and preview the
|
|
1792
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
1780
1793
|
# actually apply it.
|
|
1781
1794
|
# @param allow_missing [::Boolean]
|
|
1782
|
-
# Optional. If set and the workstation
|
|
1783
|
-
#
|
|
1784
|
-
# is ignored.
|
|
1795
|
+
# Optional. If set and the workstation is not found, a new workstation is
|
|
1796
|
+
# created. In this situation, update_mask is ignored.
|
|
1785
1797
|
#
|
|
1786
1798
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1787
1799
|
# @yieldparam response [::Gapic::Operation]
|
|
@@ -1877,7 +1889,7 @@ module Google
|
|
|
1877
1889
|
# @param name [::String]
|
|
1878
1890
|
# Required. Name of the workstation to delete.
|
|
1879
1891
|
# @param validate_only [::Boolean]
|
|
1880
|
-
# Optional. If set, validate the request and preview the
|
|
1892
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
1881
1893
|
# actually apply it.
|
|
1882
1894
|
# @param etag [::String]
|
|
1883
1895
|
# Optional. If set, the request will be rejected if the latest version of the
|
|
@@ -1969,7 +1981,7 @@ module Google
|
|
|
1969
1981
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1970
1982
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1971
1983
|
#
|
|
1972
|
-
# @overload start_workstation(name: nil, validate_only: nil, etag: nil)
|
|
1984
|
+
# @overload start_workstation(name: nil, validate_only: nil, etag: nil, boost_config: nil)
|
|
1973
1985
|
# Pass arguments to `start_workstation` via keyword arguments. Note that at
|
|
1974
1986
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1975
1987
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -1977,11 +1989,14 @@ module Google
|
|
|
1977
1989
|
# @param name [::String]
|
|
1978
1990
|
# Required. Name of the workstation to start.
|
|
1979
1991
|
# @param validate_only [::Boolean]
|
|
1980
|
-
# Optional. If set, validate the request and preview the
|
|
1992
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
1981
1993
|
# actually apply it.
|
|
1982
1994
|
# @param etag [::String]
|
|
1983
1995
|
# Optional. If set, the request will be rejected if the latest version of the
|
|
1984
1996
|
# workstation on the server does not have this ETag.
|
|
1997
|
+
# @param boost_config [::String]
|
|
1998
|
+
# Optional. If set, the workstation starts using the boost configuration with
|
|
1999
|
+
# the specified ID.
|
|
1985
2000
|
#
|
|
1986
2001
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1987
2002
|
# @yieldparam response [::Gapic::Operation]
|
|
@@ -2077,7 +2092,7 @@ module Google
|
|
|
2077
2092
|
# @param name [::String]
|
|
2078
2093
|
# Required. Name of the workstation to stop.
|
|
2079
2094
|
# @param validate_only [::Boolean]
|
|
2080
|
-
# Optional. If set, validate the request and preview the
|
|
2095
|
+
# Optional. If set, validate the request and preview the result, but do not
|
|
2081
2096
|
# actually apply it.
|
|
2082
2097
|
# @param etag [::String]
|
|
2083
2098
|
# Optional. If set, the request will be rejected if the latest version of the
|
|
@@ -2159,6 +2174,8 @@ module Google
|
|
|
2159
2174
|
##
|
|
2160
2175
|
# Returns a short-lived credential that can be used to send authenticated and
|
|
2161
2176
|
# authorized traffic to a workstation.
|
|
2177
|
+
# Once generated this token cannot be revoked and is good for the lifetime
|
|
2178
|
+
# of the token.
|
|
2162
2179
|
#
|
|
2163
2180
|
# @overload generate_access_token(request, options = nil)
|
|
2164
2181
|
# Pass arguments to `generate_access_token` via a request object, either of type
|
|
@@ -2170,7 +2187,7 @@ module Google
|
|
|
2170
2187
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2171
2188
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2172
2189
|
#
|
|
2173
|
-
# @overload generate_access_token(expire_time: nil, ttl: nil, workstation: nil)
|
|
2190
|
+
# @overload generate_access_token(expire_time: nil, ttl: nil, workstation: nil, port: nil)
|
|
2174
2191
|
# Pass arguments to `generate_access_token` via keyword arguments. Note that at
|
|
2175
2192
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2176
2193
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -2191,6 +2208,12 @@ module Google
|
|
|
2191
2208
|
# @param workstation [::String]
|
|
2192
2209
|
# Required. Name of the workstation for which the access token should be
|
|
2193
2210
|
# generated.
|
|
2211
|
+
# @param port [::Integer]
|
|
2212
|
+
# Optional. Port for which the access token should be generated. If
|
|
2213
|
+
# specified, the generated access token grants access only to the
|
|
2214
|
+
# specified port of the workstation. If specified, values must be within the
|
|
2215
|
+
# range [1 - 65535]. If not specified, the generated access token grants
|
|
2216
|
+
# access to all ports of the workstation.
|
|
2194
2217
|
#
|
|
2195
2218
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
2196
2219
|
# @yieldparam response [::Google::Cloud::Workstations::V1beta::GenerateAccessTokenResponse]
|
|
@@ -2256,6 +2279,107 @@ module Google
|
|
|
2256
2279
|
raise ::Google::Cloud::Error.from_error(e)
|
|
2257
2280
|
end
|
|
2258
2281
|
|
|
2282
|
+
##
|
|
2283
|
+
# Pushes credentials to a running workstation on behalf of a user. Once
|
|
2284
|
+
# complete, supported credential types (application_default_credentials) are
|
|
2285
|
+
# made available to processes running in the user container.
|
|
2286
|
+
#
|
|
2287
|
+
# @overload push_credentials(request, options = nil)
|
|
2288
|
+
# Pass arguments to `push_credentials` via a request object, either of type
|
|
2289
|
+
# {::Google::Cloud::Workstations::V1beta::PushCredentialsRequest} or an equivalent Hash.
|
|
2290
|
+
#
|
|
2291
|
+
# @param request [::Google::Cloud::Workstations::V1beta::PushCredentialsRequest, ::Hash]
|
|
2292
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2293
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2294
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2295
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2296
|
+
#
|
|
2297
|
+
# @overload push_credentials(workstation: nil, application_default_credentials: nil)
|
|
2298
|
+
# Pass arguments to `push_credentials` via keyword arguments. Note that at
|
|
2299
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2300
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2301
|
+
#
|
|
2302
|
+
# @param workstation [::String]
|
|
2303
|
+
# Required. Name of the workstation for which the credentials should be
|
|
2304
|
+
# pushed.
|
|
2305
|
+
# @param application_default_credentials [::Google::Cloud::Workstations::V1beta::PushCredentialsRequest::OAuthToken, ::Hash]
|
|
2306
|
+
# Optional. Credentials used by Cloud Client Libraries, Google API Client
|
|
2307
|
+
# Libraries, and other tooling within the user conainer:
|
|
2308
|
+
# https://cloud.google.com/docs/authentication/application-default-credentials
|
|
2309
|
+
#
|
|
2310
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
2311
|
+
# @yieldparam response [::Gapic::Operation]
|
|
2312
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
2313
|
+
#
|
|
2314
|
+
# @return [::Gapic::Operation]
|
|
2315
|
+
#
|
|
2316
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
2317
|
+
#
|
|
2318
|
+
# @example Basic example
|
|
2319
|
+
# require "google/cloud/workstations/v1beta"
|
|
2320
|
+
#
|
|
2321
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2322
|
+
# client = Google::Cloud::Workstations::V1beta::Workstations::Client.new
|
|
2323
|
+
#
|
|
2324
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2325
|
+
# request = Google::Cloud::Workstations::V1beta::PushCredentialsRequest.new
|
|
2326
|
+
#
|
|
2327
|
+
# # Call the push_credentials method.
|
|
2328
|
+
# result = client.push_credentials request
|
|
2329
|
+
#
|
|
2330
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2331
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2332
|
+
# # Here is how to wait for a response.
|
|
2333
|
+
# result.wait_until_done! timeout: 60
|
|
2334
|
+
# if result.response?
|
|
2335
|
+
# p result.response
|
|
2336
|
+
# else
|
|
2337
|
+
# puts "No response received."
|
|
2338
|
+
# end
|
|
2339
|
+
#
|
|
2340
|
+
def push_credentials request, options = nil
|
|
2341
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2342
|
+
|
|
2343
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Workstations::V1beta::PushCredentialsRequest
|
|
2344
|
+
|
|
2345
|
+
# Converts hash and nil to an options object
|
|
2346
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2347
|
+
|
|
2348
|
+
# Customize the options with defaults
|
|
2349
|
+
metadata = @config.rpcs.push_credentials.metadata.to_h
|
|
2350
|
+
|
|
2351
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2352
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2353
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2354
|
+
gapic_version: ::Google::Cloud::Workstations::V1beta::VERSION
|
|
2355
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2356
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2357
|
+
|
|
2358
|
+
header_params = {}
|
|
2359
|
+
if request.workstation
|
|
2360
|
+
header_params["workstation"] = request.workstation
|
|
2361
|
+
end
|
|
2362
|
+
|
|
2363
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
2364
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
2365
|
+
|
|
2366
|
+
options.apply_defaults timeout: @config.rpcs.push_credentials.timeout,
|
|
2367
|
+
metadata: metadata,
|
|
2368
|
+
retry_policy: @config.rpcs.push_credentials.retry_policy
|
|
2369
|
+
|
|
2370
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2371
|
+
metadata: @config.metadata,
|
|
2372
|
+
retry_policy: @config.retry_policy
|
|
2373
|
+
|
|
2374
|
+
@workstations_stub.call_rpc :push_credentials, request, options: options do |response, operation|
|
|
2375
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
2376
|
+
yield response, operation if block_given?
|
|
2377
|
+
throw :response, response
|
|
2378
|
+
end
|
|
2379
|
+
rescue ::GRPC::BadStatus => e
|
|
2380
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2381
|
+
end
|
|
2382
|
+
|
|
2259
2383
|
##
|
|
2260
2384
|
# Configuration class for the Workstations API.
|
|
2261
2385
|
#
|
|
@@ -2539,6 +2663,11 @@ module Google
|
|
|
2539
2663
|
# @return [::Gapic::Config::Method]
|
|
2540
2664
|
#
|
|
2541
2665
|
attr_reader :generate_access_token
|
|
2666
|
+
##
|
|
2667
|
+
# RPC-specific configuration for `push_credentials`
|
|
2668
|
+
# @return [::Gapic::Config::Method]
|
|
2669
|
+
#
|
|
2670
|
+
attr_reader :push_credentials
|
|
2542
2671
|
|
|
2543
2672
|
# @private
|
|
2544
2673
|
def initialize parent_rpcs = nil
|
|
@@ -2582,6 +2711,8 @@ module Google
|
|
|
2582
2711
|
@stop_workstation = ::Gapic::Config::Method.new stop_workstation_config
|
|
2583
2712
|
generate_access_token_config = parent_rpcs.generate_access_token if parent_rpcs.respond_to? :generate_access_token
|
|
2584
2713
|
@generate_access_token = ::Gapic::Config::Method.new generate_access_token_config
|
|
2714
|
+
push_credentials_config = parent_rpcs.push_credentials if parent_rpcs.respond_to? :push_credentials
|
|
2715
|
+
@push_credentials = ::Gapic::Config::Method.new push_credentials_config
|
|
2585
2716
|
|
|
2586
2717
|
yield self if block_given?
|
|
2587
2718
|
end
|