google-cloud-workstations-v1beta 0.8.1 → 0.10.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.
@@ -381,7 +381,7 @@ module Google
381
381
  # @param options [::Gapic::CallOptions, ::Hash]
382
382
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
383
383
  #
384
- # @overload list_workstation_clusters(parent: nil, page_size: nil, page_token: nil)
384
+ # @overload list_workstation_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil)
385
385
  # Pass arguments to `list_workstation_clusters` via keyword arguments. Note that at
386
386
  # least one keyword argument is required. To specify no parameters, or to keep all
387
387
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -393,6 +393,9 @@ module Google
393
393
  # @param page_token [::String]
394
394
  # Optional. next_page_token value returned from a previous List request, if
395
395
  # any.
396
+ # @param filter [::String]
397
+ # Optional. Filter the WorkstationClusters to be listed. Possible filters are
398
+ # described in https://google.aip.dev/160.
396
399
  # @yield [result, operation] Access the result along with the TransportOperation object
397
400
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1beta::WorkstationCluster>]
398
401
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -482,7 +485,7 @@ module Google
482
485
  # @param workstation_cluster [::Google::Cloud::Workstations::V1beta::WorkstationCluster, ::Hash]
483
486
  # Required. Workstation cluster to create.
484
487
  # @param validate_only [::Boolean]
485
- # Optional. If set, validate the request and preview the review, but do not
488
+ # Optional. If set, validate the request and preview the result, but do not
486
489
  # actually apply it.
487
490
  # @yield [result, operation] Access the result along with the TransportOperation object
488
491
  # @yieldparam result [::Gapic::Operation]
@@ -575,7 +578,7 @@ module Google
575
578
  # Required. Mask that specifies which fields in the workstation cluster
576
579
  # should be updated.
577
580
  # @param validate_only [::Boolean]
578
- # Optional. If set, validate the request and preview the review, but do not
581
+ # Optional. If set, validate the request and preview the result, but do not
579
582
  # actually apply it.
580
583
  # @param allow_missing [::Boolean]
581
584
  # Optional. If set, and the workstation cluster is not found, a new
@@ -669,7 +672,7 @@ module Google
669
672
  # @param name [::String]
670
673
  # Required. Name of the workstation cluster to delete.
671
674
  # @param validate_only [::Boolean]
672
- # Optional. If set, validate the request and preview the review, but do not
675
+ # Optional. If set, validate the request and preview the result, but do not
673
676
  # apply it.
674
677
  # @param etag [::String]
675
678
  # Optional. If set, the request will be rejected if the latest version of the
@@ -836,7 +839,7 @@ module Google
836
839
  # @param options [::Gapic::CallOptions, ::Hash]
837
840
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
838
841
  #
839
- # @overload list_workstation_configs(parent: nil, page_size: nil, page_token: nil)
842
+ # @overload list_workstation_configs(parent: nil, page_size: nil, page_token: nil, filter: nil)
840
843
  # Pass arguments to `list_workstation_configs` via keyword arguments. Note that at
841
844
  # least one keyword argument is required. To specify no parameters, or to keep all
842
845
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -848,6 +851,9 @@ module Google
848
851
  # @param page_token [::String]
849
852
  # Optional. next_page_token value returned from a previous List request, if
850
853
  # any.
854
+ # @param filter [::String]
855
+ # Optional. Filter the WorkstationConfigs to be listed. Possible filters are
856
+ # described in https://google.aip.dev/160.
851
857
  # @yield [result, operation] Access the result along with the TransportOperation object
852
858
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1beta::WorkstationConfig>]
853
859
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1025,9 +1031,9 @@ module Google
1025
1031
  # @param workstation_config_id [::String]
1026
1032
  # Required. ID to use for the workstation configuration.
1027
1033
  # @param workstation_config [::Google::Cloud::Workstations::V1beta::WorkstationConfig, ::Hash]
1028
- # Required. Config to create.
1034
+ # Required. Workstation configuration to create.
1029
1035
  # @param validate_only [::Boolean]
1030
- # Optional. If set, validate the request and preview the review, but do not
1036
+ # Optional. If set, validate the request and preview the result, but do not
1031
1037
  # actually apply it.
1032
1038
  # @yield [result, operation] Access the result along with the TransportOperation object
1033
1039
  # @yieldparam result [::Gapic::Operation]
@@ -1115,12 +1121,12 @@ module Google
1115
1121
  # the default parameter values, pass an empty Hash as a request object (see above).
1116
1122
  #
1117
1123
  # @param workstation_config [::Google::Cloud::Workstations::V1beta::WorkstationConfig, ::Hash]
1118
- # Required. Config to update.
1124
+ # Required. Workstation configuration to update.
1119
1125
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1120
1126
  # Required. Mask specifying which fields in the workstation configuration
1121
1127
  # should be updated.
1122
1128
  # @param validate_only [::Boolean]
1123
- # Optional. If set, validate the request and preview the review, but do not
1129
+ # Optional. If set, validate the request and preview the result, but do not
1124
1130
  # actually apply it.
1125
1131
  # @param allow_missing [::Boolean]
1126
1132
  # Optional. If set and the workstation configuration is not found, a new
@@ -1214,7 +1220,7 @@ module Google
1214
1220
  # @param name [::String]
1215
1221
  # Required. Name of the workstation configuration to delete.
1216
1222
  # @param validate_only [::Boolean]
1217
- # Optional. If set, validate the request and preview the review, but do not
1223
+ # Optional. If set, validate the request and preview the result, but do not
1218
1224
  # actually apply it.
1219
1225
  # @param etag [::String]
1220
1226
  # Optional. If set, the request is rejected if the latest version of the
@@ -1381,7 +1387,7 @@ module Google
1381
1387
  # @param options [::Gapic::CallOptions, ::Hash]
1382
1388
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1383
1389
  #
1384
- # @overload list_workstations(parent: nil, page_size: nil, page_token: nil)
1390
+ # @overload list_workstations(parent: nil, page_size: nil, page_token: nil, filter: nil)
1385
1391
  # Pass arguments to `list_workstations` via keyword arguments. Note that at
1386
1392
  # least one keyword argument is required. To specify no parameters, or to keep all
1387
1393
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1393,6 +1399,9 @@ module Google
1393
1399
  # @param page_token [::String]
1394
1400
  # Optional. next_page_token value returned from a previous List request, if
1395
1401
  # any.
1402
+ # @param filter [::String]
1403
+ # Optional. Filter the Workstations to be listed. Possible filters are
1404
+ # described in https://google.aip.dev/160.
1396
1405
  # @yield [result, operation] Access the result along with the TransportOperation object
1397
1406
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workstations::V1beta::Workstation>]
1398
1407
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1570,9 +1579,13 @@ module Google
1570
1579
  # @param workstation_id [::String]
1571
1580
  # Required. ID to use for the workstation.
1572
1581
  # @param workstation [::Google::Cloud::Workstations::V1beta::Workstation, ::Hash]
1573
- # Required. Workstation to create.
1582
+ # Required. Workstation to create. If source_workstation is specified, the
1583
+ # user must have `workstations.workstations.use` permission on the source
1584
+ # workstation, and the Cloud Workstations Service Agent for the project where
1585
+ # you are creating the new workstation must have compute.disks.createSnapshot
1586
+ # and compute.snapshots.useReadOnly on the source project.
1574
1587
  # @param validate_only [::Boolean]
1575
- # Optional. If set, validate the request and preview the review, but do not
1588
+ # Optional. If set, validate the request and preview the result, but do not
1576
1589
  # actually apply it.
1577
1590
  # @yield [result, operation] Access the result along with the TransportOperation object
1578
1591
  # @yieldparam result [::Gapic::Operation]
@@ -1662,15 +1675,14 @@ module Google
1662
1675
  # @param workstation [::Google::Cloud::Workstations::V1beta::Workstation, ::Hash]
1663
1676
  # Required. Workstation to update.
1664
1677
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1665
- # Required. Mask specifying which fields in the workstation configuration
1666
- # should be updated.
1678
+ # Required. Mask specifying which fields in the workstation should be
1679
+ # updated.
1667
1680
  # @param validate_only [::Boolean]
1668
- # Optional. If set, validate the request and preview the review, but do not
1681
+ # Optional. If set, validate the request and preview the result, but do not
1669
1682
  # actually apply it.
1670
1683
  # @param allow_missing [::Boolean]
1671
- # Optional. If set and the workstation configuration is not found, a new
1672
- # workstation configuration is created. In this situation, update_mask
1673
- # is ignored.
1684
+ # Optional. If set and the workstation is not found, a new workstation is
1685
+ # created. In this situation, update_mask is ignored.
1674
1686
  # @yield [result, operation] Access the result along with the TransportOperation object
1675
1687
  # @yieldparam result [::Gapic::Operation]
1676
1688
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1759,7 +1771,7 @@ module Google
1759
1771
  # @param name [::String]
1760
1772
  # Required. Name of the workstation to delete.
1761
1773
  # @param validate_only [::Boolean]
1762
- # Optional. If set, validate the request and preview the review, but do not
1774
+ # Optional. If set, validate the request and preview the result, but do not
1763
1775
  # actually apply it.
1764
1776
  # @param etag [::String]
1765
1777
  # Optional. If set, the request will be rejected if the latest version of the
@@ -1844,7 +1856,7 @@ module Google
1844
1856
  # @param options [::Gapic::CallOptions, ::Hash]
1845
1857
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1846
1858
  #
1847
- # @overload start_workstation(name: nil, validate_only: nil, etag: nil)
1859
+ # @overload start_workstation(name: nil, validate_only: nil, etag: nil, boost_config: nil)
1848
1860
  # Pass arguments to `start_workstation` via keyword arguments. Note that at
1849
1861
  # least one keyword argument is required. To specify no parameters, or to keep all
1850
1862
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1852,11 +1864,14 @@ module Google
1852
1864
  # @param name [::String]
1853
1865
  # Required. Name of the workstation to start.
1854
1866
  # @param validate_only [::Boolean]
1855
- # Optional. If set, validate the request and preview the review, but do not
1867
+ # Optional. If set, validate the request and preview the result, but do not
1856
1868
  # actually apply it.
1857
1869
  # @param etag [::String]
1858
1870
  # Optional. If set, the request will be rejected if the latest version of the
1859
1871
  # workstation on the server does not have this ETag.
1872
+ # @param boost_config [::String]
1873
+ # Optional. If set, the workstation starts using the boost configuration with
1874
+ # the specified ID.
1860
1875
  # @yield [result, operation] Access the result along with the TransportOperation object
1861
1876
  # @yieldparam result [::Gapic::Operation]
1862
1877
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1945,7 +1960,7 @@ module Google
1945
1960
  # @param name [::String]
1946
1961
  # Required. Name of the workstation to stop.
1947
1962
  # @param validate_only [::Boolean]
1948
- # Optional. If set, validate the request and preview the review, but do not
1963
+ # Optional. If set, validate the request and preview the result, but do not
1949
1964
  # actually apply it.
1950
1965
  # @param etag [::String]
1951
1966
  # Optional. If set, the request will be rejected if the latest version of the
@@ -2020,6 +2035,8 @@ module Google
2020
2035
  ##
2021
2036
  # Returns a short-lived credential that can be used to send authenticated and
2022
2037
  # authorized traffic to a workstation.
2038
+ # Once generated this token cannot be revoked and is good for the lifetime
2039
+ # of the token.
2023
2040
  #
2024
2041
  # @overload generate_access_token(request, options = nil)
2025
2042
  # Pass arguments to `generate_access_token` via a request object, either of type
@@ -2031,7 +2048,7 @@ module Google
2031
2048
  # @param options [::Gapic::CallOptions, ::Hash]
2032
2049
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2033
2050
  #
2034
- # @overload generate_access_token(expire_time: nil, ttl: nil, workstation: nil)
2051
+ # @overload generate_access_token(expire_time: nil, ttl: nil, workstation: nil, port: nil)
2035
2052
  # Pass arguments to `generate_access_token` via keyword arguments. Note that at
2036
2053
  # least one keyword argument is required. To specify no parameters, or to keep all
2037
2054
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2052,6 +2069,12 @@ module Google
2052
2069
  # @param workstation [::String]
2053
2070
  # Required. Name of the workstation for which the access token should be
2054
2071
  # generated.
2072
+ # @param port [::Integer]
2073
+ # Optional. Port for which the access token should be generated. If
2074
+ # specified, the generated access token grants access only to the
2075
+ # specified port of the workstation. If specified, values must be within the
2076
+ # range [1 - 65535]. If not specified, the generated access token grants
2077
+ # access to all ports of the workstation.
2055
2078
  # @yield [result, operation] Access the result along with the TransportOperation object
2056
2079
  # @yieldparam result [::Google::Cloud::Workstations::V1beta::GenerateAccessTokenResponse]
2057
2080
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2110,6 +2133,100 @@ module Google
2110
2133
  raise ::Google::Cloud::Error.from_error(e)
2111
2134
  end
2112
2135
 
2136
+ ##
2137
+ # Pushes credentials to a running workstation on behalf of a user. Once
2138
+ # complete, supported credential types (application_default_credentials) are
2139
+ # made available to processes running in the user container.
2140
+ #
2141
+ # @overload push_credentials(request, options = nil)
2142
+ # Pass arguments to `push_credentials` via a request object, either of type
2143
+ # {::Google::Cloud::Workstations::V1beta::PushCredentialsRequest} or an equivalent Hash.
2144
+ #
2145
+ # @param request [::Google::Cloud::Workstations::V1beta::PushCredentialsRequest, ::Hash]
2146
+ # A request object representing the call parameters. Required. To specify no
2147
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2148
+ # @param options [::Gapic::CallOptions, ::Hash]
2149
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2150
+ #
2151
+ # @overload push_credentials(workstation: nil, application_default_credentials: nil)
2152
+ # Pass arguments to `push_credentials` via keyword arguments. Note that at
2153
+ # least one keyword argument is required. To specify no parameters, or to keep all
2154
+ # the default parameter values, pass an empty Hash as a request object (see above).
2155
+ #
2156
+ # @param workstation [::String]
2157
+ # Required. Name of the workstation for which the credentials should be
2158
+ # pushed.
2159
+ # @param application_default_credentials [::Google::Cloud::Workstations::V1beta::PushCredentialsRequest::OAuthToken, ::Hash]
2160
+ # Optional. Credentials used by Cloud Client Libraries, Google API Client
2161
+ # Libraries, and other tooling within the user conainer:
2162
+ # https://cloud.google.com/docs/authentication/application-default-credentials
2163
+ # @yield [result, operation] Access the result along with the TransportOperation object
2164
+ # @yieldparam result [::Gapic::Operation]
2165
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2166
+ #
2167
+ # @return [::Gapic::Operation]
2168
+ #
2169
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2170
+ #
2171
+ # @example Basic example
2172
+ # require "google/cloud/workstations/v1beta"
2173
+ #
2174
+ # # Create a client object. The client can be reused for multiple calls.
2175
+ # client = Google::Cloud::Workstations::V1beta::Workstations::Rest::Client.new
2176
+ #
2177
+ # # Create a request. To set request fields, pass in keyword arguments.
2178
+ # request = Google::Cloud::Workstations::V1beta::PushCredentialsRequest.new
2179
+ #
2180
+ # # Call the push_credentials method.
2181
+ # result = client.push_credentials request
2182
+ #
2183
+ # # The returned object is of type Gapic::Operation. You can use it to
2184
+ # # check the status of an operation, cancel it, or wait for results.
2185
+ # # Here is how to wait for a response.
2186
+ # result.wait_until_done! timeout: 60
2187
+ # if result.response?
2188
+ # p result.response
2189
+ # else
2190
+ # puts "No response received."
2191
+ # end
2192
+ #
2193
+ def push_credentials request, options = nil
2194
+ raise ::ArgumentError, "request must be provided" if request.nil?
2195
+
2196
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Workstations::V1beta::PushCredentialsRequest
2197
+
2198
+ # Converts hash and nil to an options object
2199
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2200
+
2201
+ # Customize the options with defaults
2202
+ call_metadata = @config.rpcs.push_credentials.metadata.to_h
2203
+
2204
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2205
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2206
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2207
+ gapic_version: ::Google::Cloud::Workstations::V1beta::VERSION,
2208
+ transports_version_send: [:rest]
2209
+
2210
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2211
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2212
+
2213
+ options.apply_defaults timeout: @config.rpcs.push_credentials.timeout,
2214
+ metadata: call_metadata,
2215
+ retry_policy: @config.rpcs.push_credentials.retry_policy
2216
+
2217
+ options.apply_defaults timeout: @config.timeout,
2218
+ metadata: @config.metadata,
2219
+ retry_policy: @config.retry_policy
2220
+
2221
+ @workstations_stub.push_credentials request, options do |result, operation|
2222
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2223
+ yield result, operation if block_given?
2224
+ throw :response, result
2225
+ end
2226
+ rescue ::Gapic::Rest::Error => e
2227
+ raise ::Google::Cloud::Error.from_error(e)
2228
+ end
2229
+
2113
2230
  ##
2114
2231
  # Configuration class for the Workstations REST API.
2115
2232
  #
@@ -2180,6 +2297,7 @@ module Google
2180
2297
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2181
2298
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2182
2299
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2300
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
2183
2301
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2184
2302
  # trigger a retry.
2185
2303
  # @return [::Hash]
@@ -2259,6 +2377,7 @@ module Google
2259
2377
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2260
2378
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2261
2379
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2380
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
2262
2381
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2263
2382
  # trigger a retry.
2264
2383
  #
@@ -2363,6 +2482,11 @@ module Google
2363
2482
  # @return [::Gapic::Config::Method]
2364
2483
  #
2365
2484
  attr_reader :generate_access_token
2485
+ ##
2486
+ # RPC-specific configuration for `push_credentials`
2487
+ # @return [::Gapic::Config::Method]
2488
+ #
2489
+ attr_reader :push_credentials
2366
2490
 
2367
2491
  # @private
2368
2492
  def initialize parent_rpcs = nil
@@ -2406,6 +2530,8 @@ module Google
2406
2530
  @stop_workstation = ::Gapic::Config::Method.new stop_workstation_config
2407
2531
  generate_access_token_config = parent_rpcs.generate_access_token if parent_rpcs.respond_to? :generate_access_token
2408
2532
  @generate_access_token = ::Gapic::Config::Method.new generate_access_token_config
2533
+ push_credentials_config = parent_rpcs.push_credentials if parent_rpcs.respond_to? :push_credentials
2534
+ @push_credentials = ::Gapic::Config::Method.new push_credentials_config
2409
2535
 
2410
2536
  yield self if block_given?
2411
2537
  end
@@ -541,6 +541,7 @@ module Google
541
541
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
542
542
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
543
543
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
544
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
544
545
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
545
546
  # trigger a retry.
546
547
  # @return [::Hash]
@@ -613,6 +614,7 @@ module Google
613
614
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
614
615
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
615
616
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
617
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
616
618
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
617
619
  # trigger a retry.
618
620
  #
@@ -873,6 +873,46 @@ module Google
873
873
  end
874
874
  end
875
875
 
876
+ ##
877
+ # Baseline implementation for the push_credentials REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::Workstations::V1beta::PushCredentialsRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Longrunning::Operation]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Longrunning::Operation]
889
+ # A result object deserialized from the server's reply
890
+ def push_credentials request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_push_credentials_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "push_credentials",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
876
916
  ##
877
917
  # @private
878
918
  #
@@ -1301,6 +1341,28 @@ module Google
1301
1341
  )
1302
1342
  transcoder.transcode request_pb
1303
1343
  end
1344
+
1345
+ ##
1346
+ # @private
1347
+ #
1348
+ # GRPC transcoding helper method for the push_credentials REST call
1349
+ #
1350
+ # @param request_pb [::Google::Cloud::Workstations::V1beta::PushCredentialsRequest]
1351
+ # A request object representing the call parameters. Required.
1352
+ # @return [Array(String, [String, nil], Hash{String => String})]
1353
+ # Uri, Body, Query string parameters
1354
+ def self.transcode_push_credentials_request request_pb
1355
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1356
+ .with_bindings(
1357
+ uri_method: :post,
1358
+ uri_template: "/v1beta/{workstation}:pushCredentials",
1359
+ body: "*",
1360
+ matches: [
1361
+ ["workstation", %r{^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+/?$}, false]
1362
+ ]
1363
+ )
1364
+ transcoder.transcode request_pb
1365
+ end
1304
1366
  end
1305
1367
  end
1306
1368
  end