google-cloud-gdc_hardware_management-v1alpha 0.1.1 → 0.3.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: 61248d62ccb2e081abcdbfe2af3297909e7af3c7e6f32708950e3d3b93fe0e2c
4
- data.tar.gz: 0e331b3b823dece6a0f31e5f8d1f3de00c30d7198abb4037aca6f355b340ee90
3
+ metadata.gz: 9faa6bd69f70da0650d8719c57436d87a800c65c860e224feb968a3d056e12d1
4
+ data.tar.gz: c0f6a0b3e5e8d6d591a21939dd7d8d2f3fa46a02d13560ba3b8fbbb59b7c0c23
5
5
  SHA512:
6
- metadata.gz: 9eac2a45404620abc40e853faa95bbf4f346ffbc7762563a6299a522a1f040b38c5d891d3f448cd95481a7c9c754157fa67686502c858cba7d22e2691975f779
7
- data.tar.gz: e56c12e142f424684251d596625aa5d73ba5821780a41a74111ccc530a25195822909f4831a93d20ac7c927fd43056cfecfae4795eb50c89d1529d983a55c1d0
6
+ metadata.gz: 16ae377f80ab43be5f3eb2ae4b76bc63b693cc2b3c65a1712fa65415ca5f66fb42bad265f583d9b62c5c649512b1e1454316df10664a05c77c8dcde9f51d24ea
7
+ data.tar.gz: dae792afe66e0e46a32b08688114b01343d6fc9e17cd90f3a355a919121e2ae17ba9c7c63726e5b3b6fff0cbede7c02b718e002c97930036869be15e66cba273
@@ -115,6 +115,11 @@ module Google
115
115
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
116
116
  }
117
117
 
118
+ default_config.rpcs.delete_site.timeout = 60.0
119
+ default_config.rpcs.delete_site.retry_policy = {
120
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
121
+ }
122
+
118
123
  default_config.rpcs.list_hardware_groups.timeout = 60.0
119
124
  default_config.rpcs.list_hardware_groups.retry_policy = {
120
125
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
@@ -355,6 +360,10 @@ module Google
355
360
  # @param parent [::String]
356
361
  # Required. The project and location to list orders in.
357
362
  # Format: `projects/{project}/locations/{location}`
363
+ #
364
+ # To list orders across all locations, substitute `-` (the hyphen or
365
+ # dash character) for the location and check the unreachable field in
366
+ # the response message.
358
367
  # @param page_size [::Integer]
359
368
  # Optional. Requested page size. Server may return fewer items than
360
369
  # requested. If unspecified, server will pick an appropriate default.
@@ -848,7 +857,7 @@ module Google
848
857
  # @param options [::Gapic::CallOptions, ::Hash]
849
858
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
850
859
  #
851
- # @overload submit_order(name: nil, request_id: nil)
860
+ # @overload submit_order(name: nil, request_id: nil, type: nil)
852
861
  # Pass arguments to `submit_order` via keyword arguments. Note that at
853
862
  # least one keyword argument is required. To specify no parameters, or to keep all
854
863
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -859,6 +868,9 @@ module Google
859
868
  # @param request_id [::String]
860
869
  # Optional. An optional unique identifier for this request. See
861
870
  # [AIP-155](https://google.aip.dev/155).
871
+ # @param type [::Google::Cloud::GDCHardwareManagement::V1alpha::SubmitOrderRequest::Type]
872
+ # Optional. Type of this request. If unset, the request type is assumed to be
873
+ # `INFO_PENDING`.
862
874
  #
863
875
  # @yield [response, operation] Access the result along with the RPC operation
864
876
  # @yieldparam response [::Gapic::Operation]
@@ -954,6 +966,10 @@ module Google
954
966
  # @param parent [::String]
955
967
  # Required. The project and location to list sites in.
956
968
  # Format: `projects/{project}/locations/{location}`
969
+ #
970
+ # To list sites across all locations, substitute `-` (the hyphen or
971
+ # dash character) for the location and check the unreachable field in
972
+ # the response message.
957
973
  # @param page_size [::Integer]
958
974
  # Optional. Requested page size. Server may return fewer items than
959
975
  # requested. If unspecified, server will pick an appropriate default.
@@ -1332,6 +1348,104 @@ module Google
1332
1348
  raise ::Google::Cloud::Error.from_error(e)
1333
1349
  end
1334
1350
 
1351
+ ##
1352
+ # Deletes a site.
1353
+ #
1354
+ # @overload delete_site(request, options = nil)
1355
+ # Pass arguments to `delete_site` via a request object, either of type
1356
+ # {::Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest} or an equivalent Hash.
1357
+ #
1358
+ # @param request [::Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest, ::Hash]
1359
+ # A request object representing the call parameters. Required. To specify no
1360
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1361
+ # @param options [::Gapic::CallOptions, ::Hash]
1362
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1363
+ #
1364
+ # @overload delete_site(name: nil, request_id: nil)
1365
+ # Pass arguments to `delete_site` via keyword arguments. Note that at
1366
+ # least one keyword argument is required. To specify no parameters, or to keep all
1367
+ # the default parameter values, pass an empty Hash as a request object (see above).
1368
+ #
1369
+ # @param name [::String]
1370
+ # Required. The name of the site.
1371
+ # Format: `projects/{project}/locations/{location}/sites/{site}`
1372
+ # @param request_id [::String]
1373
+ # Optional. An optional unique identifier for this request. See
1374
+ # [AIP-155](https://google.aip.dev/155).
1375
+ #
1376
+ # @yield [response, operation] Access the result along with the RPC operation
1377
+ # @yieldparam response [::Gapic::Operation]
1378
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1379
+ #
1380
+ # @return [::Gapic::Operation]
1381
+ #
1382
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1383
+ #
1384
+ # @example Basic example
1385
+ # require "google/cloud/gdc_hardware_management/v1alpha"
1386
+ #
1387
+ # # Create a client object. The client can be reused for multiple calls.
1388
+ # client = Google::Cloud::GDCHardwareManagement::V1alpha::GDCHardwareManagement::Client.new
1389
+ #
1390
+ # # Create a request. To set request fields, pass in keyword arguments.
1391
+ # request = Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest.new
1392
+ #
1393
+ # # Call the delete_site method.
1394
+ # result = client.delete_site request
1395
+ #
1396
+ # # The returned object is of type Gapic::Operation. You can use it to
1397
+ # # check the status of an operation, cancel it, or wait for results.
1398
+ # # Here is how to wait for a response.
1399
+ # result.wait_until_done! timeout: 60
1400
+ # if result.response?
1401
+ # p result.response
1402
+ # else
1403
+ # puts "No response received."
1404
+ # end
1405
+ #
1406
+ def delete_site request, options = nil
1407
+ raise ::ArgumentError, "request must be provided" if request.nil?
1408
+
1409
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest
1410
+
1411
+ # Converts hash and nil to an options object
1412
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1413
+
1414
+ # Customize the options with defaults
1415
+ metadata = @config.rpcs.delete_site.metadata.to_h
1416
+
1417
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1418
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1419
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1420
+ gapic_version: ::Google::Cloud::GDCHardwareManagement::V1alpha::VERSION
1421
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1422
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1423
+
1424
+ header_params = {}
1425
+ if request.name
1426
+ header_params["name"] = request.name
1427
+ end
1428
+
1429
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1430
+ metadata[:"x-goog-request-params"] ||= request_params_header
1431
+
1432
+ options.apply_defaults timeout: @config.rpcs.delete_site.timeout,
1433
+ metadata: metadata,
1434
+ retry_policy: @config.rpcs.delete_site.retry_policy
1435
+
1436
+ options.apply_defaults timeout: @config.timeout,
1437
+ metadata: @config.metadata,
1438
+ retry_policy: @config.retry_policy
1439
+
1440
+ @gdc_hardware_management_stub.call_rpc :delete_site, request, options: options do |response, operation|
1441
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1442
+ yield response, operation if block_given?
1443
+ return response
1444
+ end
1445
+ rescue ::GRPC::BadStatus => e
1446
+ raise ::Google::Cloud::Error.from_error(e)
1447
+ end
1448
+
1335
1449
  ##
1336
1450
  # Lists hardware groups in a given order.
1337
1451
  #
@@ -1853,6 +1967,10 @@ module Google
1853
1967
  # @param parent [::String]
1854
1968
  # Required. The project and location to list hardware in.
1855
1969
  # Format: `projects/{project}/locations/{location}`
1970
+ #
1971
+ # To list hardware across all locations, substitute `-` (the hyphen or
1972
+ # dash character) for the location and check the unreachable field in
1973
+ # the response message.
1856
1974
  # @param page_size [::Integer]
1857
1975
  # Optional. Requested page size. Server may return fewer items than
1858
1976
  # requested. If unspecified, server will pick an appropriate default.
@@ -2624,6 +2742,99 @@ module Google
2624
2742
  raise ::Google::Cloud::Error.from_error(e)
2625
2743
  end
2626
2744
 
2745
+ ##
2746
+ # Record Action on a Comment. If the Action specified in the request is READ,
2747
+ # the viewed time in the comment is set to the time the request was received.
2748
+ # If the comment is already marked as read, subsequent calls will be ignored.
2749
+ # If the Action is UNREAD, the viewed time is cleared from the comment.
2750
+ #
2751
+ # @overload record_action_on_comment(request, options = nil)
2752
+ # Pass arguments to `record_action_on_comment` via a request object, either of type
2753
+ # {::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest} or an equivalent Hash.
2754
+ #
2755
+ # @param request [::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest, ::Hash]
2756
+ # A request object representing the call parameters. Required. To specify no
2757
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2758
+ # @param options [::Gapic::CallOptions, ::Hash]
2759
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2760
+ #
2761
+ # @overload record_action_on_comment(name: nil, action_type: nil)
2762
+ # Pass arguments to `record_action_on_comment` via keyword arguments. Note that at
2763
+ # least one keyword argument is required. To specify no parameters, or to keep all
2764
+ # the default parameter values, pass an empty Hash as a request object (see above).
2765
+ #
2766
+ # @param name [::String]
2767
+ # Required. The name of the comment.
2768
+ # Format:
2769
+ # `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
2770
+ # @param action_type [::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest::ActionType]
2771
+ # Required. The action type of the recorded action.
2772
+ #
2773
+ # @yield [response, operation] Access the result along with the RPC operation
2774
+ # @yieldparam response [::Google::Cloud::GDCHardwareManagement::V1alpha::Comment]
2775
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2776
+ #
2777
+ # @return [::Google::Cloud::GDCHardwareManagement::V1alpha::Comment]
2778
+ #
2779
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2780
+ #
2781
+ # @example Basic example
2782
+ # require "google/cloud/gdc_hardware_management/v1alpha"
2783
+ #
2784
+ # # Create a client object. The client can be reused for multiple calls.
2785
+ # client = Google::Cloud::GDCHardwareManagement::V1alpha::GDCHardwareManagement::Client.new
2786
+ #
2787
+ # # Create a request. To set request fields, pass in keyword arguments.
2788
+ # request = Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest.new
2789
+ #
2790
+ # # Call the record_action_on_comment method.
2791
+ # result = client.record_action_on_comment request
2792
+ #
2793
+ # # The returned object is of type Google::Cloud::GDCHardwareManagement::V1alpha::Comment.
2794
+ # p result
2795
+ #
2796
+ def record_action_on_comment request, options = nil
2797
+ raise ::ArgumentError, "request must be provided" if request.nil?
2798
+
2799
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest
2800
+
2801
+ # Converts hash and nil to an options object
2802
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2803
+
2804
+ # Customize the options with defaults
2805
+ metadata = @config.rpcs.record_action_on_comment.metadata.to_h
2806
+
2807
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2808
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2809
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2810
+ gapic_version: ::Google::Cloud::GDCHardwareManagement::V1alpha::VERSION
2811
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2812
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2813
+
2814
+ header_params = {}
2815
+ if request.name
2816
+ header_params["name"] = request.name
2817
+ end
2818
+
2819
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2820
+ metadata[:"x-goog-request-params"] ||= request_params_header
2821
+
2822
+ options.apply_defaults timeout: @config.rpcs.record_action_on_comment.timeout,
2823
+ metadata: metadata,
2824
+ retry_policy: @config.rpcs.record_action_on_comment.retry_policy
2825
+
2826
+ options.apply_defaults timeout: @config.timeout,
2827
+ metadata: @config.metadata,
2828
+ retry_policy: @config.retry_policy
2829
+
2830
+ @gdc_hardware_management_stub.call_rpc :record_action_on_comment, request, options: options do |response, operation|
2831
+ yield response, operation if block_given?
2832
+ return response
2833
+ end
2834
+ rescue ::GRPC::BadStatus => e
2835
+ raise ::Google::Cloud::Error.from_error(e)
2836
+ end
2837
+
2627
2838
  ##
2628
2839
  # Lists the changes made to an order.
2629
2840
  #
@@ -2834,6 +3045,10 @@ module Google
2834
3045
  # @param parent [::String]
2835
3046
  # Required. The project and location to list SKUs in.
2836
3047
  # Format: `projects/{project}/locations/{location}`
3048
+ #
3049
+ # To list SKUs across all locations, substitute `-` (the hyphen or
3050
+ # dash character) for the location and check the unreachable field in
3051
+ # the response message.
2837
3052
  # @param page_size [::Integer]
2838
3053
  # Optional. Requested page size. Server may return fewer items than
2839
3054
  # requested. If unspecified, server will pick an appropriate default.
@@ -3022,6 +3237,10 @@ module Google
3022
3237
  # @param parent [::String]
3023
3238
  # Required. The project and location to list zones in.
3024
3239
  # Format: `projects/{project}/locations/{location}`
3240
+ #
3241
+ # To list zones across all locations, substitute `-` (the hyphen or
3242
+ # dash character) for the location and check the unreachable field in
3243
+ # the response message.
3025
3244
  # @param page_size [::Integer]
3026
3245
  # Optional. Requested page size. Server may return fewer items than
3027
3246
  # requested. If unspecified, server will pick an appropriate default.
@@ -3802,6 +4021,11 @@ module Google
3802
4021
  #
3803
4022
  attr_reader :update_site
3804
4023
  ##
4024
+ # RPC-specific configuration for `delete_site`
4025
+ # @return [::Gapic::Config::Method]
4026
+ #
4027
+ attr_reader :delete_site
4028
+ ##
3805
4029
  # RPC-specific configuration for `list_hardware_groups`
3806
4030
  # @return [::Gapic::Config::Method]
3807
4031
  #
@@ -3867,6 +4091,11 @@ module Google
3867
4091
  #
3868
4092
  attr_reader :create_comment
3869
4093
  ##
4094
+ # RPC-specific configuration for `record_action_on_comment`
4095
+ # @return [::Gapic::Config::Method]
4096
+ #
4097
+ attr_reader :record_action_on_comment
4098
+ ##
3870
4099
  # RPC-specific configuration for `list_change_log_entries`
3871
4100
  # @return [::Gapic::Config::Method]
3872
4101
  #
@@ -3939,6 +4168,8 @@ module Google
3939
4168
  @create_site = ::Gapic::Config::Method.new create_site_config
3940
4169
  update_site_config = parent_rpcs.update_site if parent_rpcs.respond_to? :update_site
3941
4170
  @update_site = ::Gapic::Config::Method.new update_site_config
4171
+ delete_site_config = parent_rpcs.delete_site if parent_rpcs.respond_to? :delete_site
4172
+ @delete_site = ::Gapic::Config::Method.new delete_site_config
3942
4173
  list_hardware_groups_config = parent_rpcs.list_hardware_groups if parent_rpcs.respond_to? :list_hardware_groups
3943
4174
  @list_hardware_groups = ::Gapic::Config::Method.new list_hardware_groups_config
3944
4175
  get_hardware_group_config = parent_rpcs.get_hardware_group if parent_rpcs.respond_to? :get_hardware_group
@@ -3965,6 +4196,8 @@ module Google
3965
4196
  @get_comment = ::Gapic::Config::Method.new get_comment_config
3966
4197
  create_comment_config = parent_rpcs.create_comment if parent_rpcs.respond_to? :create_comment
3967
4198
  @create_comment = ::Gapic::Config::Method.new create_comment_config
4199
+ record_action_on_comment_config = parent_rpcs.record_action_on_comment if parent_rpcs.respond_to? :record_action_on_comment
4200
+ @record_action_on_comment = ::Gapic::Config::Method.new record_action_on_comment_config
3968
4201
  list_change_log_entries_config = parent_rpcs.list_change_log_entries if parent_rpcs.respond_to? :list_change_log_entries
3969
4202
  @list_change_log_entries = ::Gapic::Config::Method.new list_change_log_entries_config
3970
4203
  get_change_log_entry_config = parent_rpcs.get_change_log_entry if parent_rpcs.respond_to? :get_change_log_entry
@@ -117,6 +117,11 @@ module Google
117
117
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
118
118
  }
119
119
 
120
+ default_config.rpcs.delete_site.timeout = 60.0
121
+ default_config.rpcs.delete_site.retry_policy = {
122
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
123
+ }
124
+
120
125
  default_config.rpcs.list_hardware_groups.timeout = 60.0
121
126
  default_config.rpcs.list_hardware_groups.retry_policy = {
122
127
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
@@ -349,6 +354,10 @@ module Google
349
354
  # @param parent [::String]
350
355
  # Required. The project and location to list orders in.
351
356
  # Format: `projects/{project}/locations/{location}`
357
+ #
358
+ # To list orders across all locations, substitute `-` (the hyphen or
359
+ # dash character) for the location and check the unreachable field in
360
+ # the response message.
352
361
  # @param page_size [::Integer]
353
362
  # Optional. Requested page size. Server may return fewer items than
354
363
  # requested. If unspecified, server will pick an appropriate default.
@@ -806,7 +815,7 @@ module Google
806
815
  # @param options [::Gapic::CallOptions, ::Hash]
807
816
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
808
817
  #
809
- # @overload submit_order(name: nil, request_id: nil)
818
+ # @overload submit_order(name: nil, request_id: nil, type: nil)
810
819
  # Pass arguments to `submit_order` via keyword arguments. Note that at
811
820
  # least one keyword argument is required. To specify no parameters, or to keep all
812
821
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -817,6 +826,9 @@ module Google
817
826
  # @param request_id [::String]
818
827
  # Optional. An optional unique identifier for this request. See
819
828
  # [AIP-155](https://google.aip.dev/155).
829
+ # @param type [::Google::Cloud::GDCHardwareManagement::V1alpha::SubmitOrderRequest::Type]
830
+ # Optional. Type of this request. If unset, the request type is assumed to be
831
+ # `INFO_PENDING`.
820
832
  # @yield [result, operation] Access the result along with the TransportOperation object
821
833
  # @yieldparam result [::Gapic::Operation]
822
834
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -905,6 +917,10 @@ module Google
905
917
  # @param parent [::String]
906
918
  # Required. The project and location to list sites in.
907
919
  # Format: `projects/{project}/locations/{location}`
920
+ #
921
+ # To list sites across all locations, substitute `-` (the hyphen or
922
+ # dash character) for the location and check the unreachable field in
923
+ # the response message.
908
924
  # @param page_size [::Integer]
909
925
  # Optional. Requested page size. Server may return fewer items than
910
926
  # requested. If unspecified, server will pick an appropriate default.
@@ -1254,6 +1270,97 @@ module Google
1254
1270
  raise ::Google::Cloud::Error.from_error(e)
1255
1271
  end
1256
1272
 
1273
+ ##
1274
+ # Deletes a site.
1275
+ #
1276
+ # @overload delete_site(request, options = nil)
1277
+ # Pass arguments to `delete_site` via a request object, either of type
1278
+ # {::Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest} or an equivalent Hash.
1279
+ #
1280
+ # @param request [::Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest, ::Hash]
1281
+ # A request object representing the call parameters. Required. To specify no
1282
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1283
+ # @param options [::Gapic::CallOptions, ::Hash]
1284
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1285
+ #
1286
+ # @overload delete_site(name: nil, request_id: nil)
1287
+ # Pass arguments to `delete_site` via keyword arguments. Note that at
1288
+ # least one keyword argument is required. To specify no parameters, or to keep all
1289
+ # the default parameter values, pass an empty Hash as a request object (see above).
1290
+ #
1291
+ # @param name [::String]
1292
+ # Required. The name of the site.
1293
+ # Format: `projects/{project}/locations/{location}/sites/{site}`
1294
+ # @param request_id [::String]
1295
+ # Optional. An optional unique identifier for this request. See
1296
+ # [AIP-155](https://google.aip.dev/155).
1297
+ # @yield [result, operation] Access the result along with the TransportOperation object
1298
+ # @yieldparam result [::Gapic::Operation]
1299
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1300
+ #
1301
+ # @return [::Gapic::Operation]
1302
+ #
1303
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1304
+ #
1305
+ # @example Basic example
1306
+ # require "google/cloud/gdc_hardware_management/v1alpha"
1307
+ #
1308
+ # # Create a client object. The client can be reused for multiple calls.
1309
+ # client = Google::Cloud::GDCHardwareManagement::V1alpha::GDCHardwareManagement::Rest::Client.new
1310
+ #
1311
+ # # Create a request. To set request fields, pass in keyword arguments.
1312
+ # request = Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest.new
1313
+ #
1314
+ # # Call the delete_site method.
1315
+ # result = client.delete_site request
1316
+ #
1317
+ # # The returned object is of type Gapic::Operation. You can use it to
1318
+ # # check the status of an operation, cancel it, or wait for results.
1319
+ # # Here is how to wait for a response.
1320
+ # result.wait_until_done! timeout: 60
1321
+ # if result.response?
1322
+ # p result.response
1323
+ # else
1324
+ # puts "No response received."
1325
+ # end
1326
+ #
1327
+ def delete_site request, options = nil
1328
+ raise ::ArgumentError, "request must be provided" if request.nil?
1329
+
1330
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GDCHardwareManagement::V1alpha::DeleteSiteRequest
1331
+
1332
+ # Converts hash and nil to an options object
1333
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1334
+
1335
+ # Customize the options with defaults
1336
+ call_metadata = @config.rpcs.delete_site.metadata.to_h
1337
+
1338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1339
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1340
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1341
+ gapic_version: ::Google::Cloud::GDCHardwareManagement::V1alpha::VERSION,
1342
+ transports_version_send: [:rest]
1343
+
1344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1345
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1346
+
1347
+ options.apply_defaults timeout: @config.rpcs.delete_site.timeout,
1348
+ metadata: call_metadata,
1349
+ retry_policy: @config.rpcs.delete_site.retry_policy
1350
+
1351
+ options.apply_defaults timeout: @config.timeout,
1352
+ metadata: @config.metadata,
1353
+ retry_policy: @config.retry_policy
1354
+
1355
+ @gdc_hardware_management_stub.delete_site request, options do |result, operation|
1356
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1357
+ yield result, operation if block_given?
1358
+ return result
1359
+ end
1360
+ rescue ::Gapic::Rest::Error => e
1361
+ raise ::Google::Cloud::Error.from_error(e)
1362
+ end
1363
+
1257
1364
  ##
1258
1365
  # Lists hardware groups in a given order.
1259
1366
  #
@@ -1739,6 +1846,10 @@ module Google
1739
1846
  # @param parent [::String]
1740
1847
  # Required. The project and location to list hardware in.
1741
1848
  # Format: `projects/{project}/locations/{location}`
1849
+ #
1850
+ # To list hardware across all locations, substitute `-` (the hyphen or
1851
+ # dash character) for the location and check the unreachable field in
1852
+ # the response message.
1742
1853
  # @param page_size [::Integer]
1743
1854
  # Optional. Requested page size. Server may return fewer items than
1744
1855
  # requested. If unspecified, server will pick an appropriate default.
@@ -2452,6 +2563,92 @@ module Google
2452
2563
  raise ::Google::Cloud::Error.from_error(e)
2453
2564
  end
2454
2565
 
2566
+ ##
2567
+ # Record Action on a Comment. If the Action specified in the request is READ,
2568
+ # the viewed time in the comment is set to the time the request was received.
2569
+ # If the comment is already marked as read, subsequent calls will be ignored.
2570
+ # If the Action is UNREAD, the viewed time is cleared from the comment.
2571
+ #
2572
+ # @overload record_action_on_comment(request, options = nil)
2573
+ # Pass arguments to `record_action_on_comment` via a request object, either of type
2574
+ # {::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest} or an equivalent Hash.
2575
+ #
2576
+ # @param request [::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest, ::Hash]
2577
+ # A request object representing the call parameters. Required. To specify no
2578
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2579
+ # @param options [::Gapic::CallOptions, ::Hash]
2580
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2581
+ #
2582
+ # @overload record_action_on_comment(name: nil, action_type: nil)
2583
+ # Pass arguments to `record_action_on_comment` via keyword arguments. Note that at
2584
+ # least one keyword argument is required. To specify no parameters, or to keep all
2585
+ # the default parameter values, pass an empty Hash as a request object (see above).
2586
+ #
2587
+ # @param name [::String]
2588
+ # Required. The name of the comment.
2589
+ # Format:
2590
+ # `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
2591
+ # @param action_type [::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest::ActionType]
2592
+ # Required. The action type of the recorded action.
2593
+ # @yield [result, operation] Access the result along with the TransportOperation object
2594
+ # @yieldparam result [::Google::Cloud::GDCHardwareManagement::V1alpha::Comment]
2595
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2596
+ #
2597
+ # @return [::Google::Cloud::GDCHardwareManagement::V1alpha::Comment]
2598
+ #
2599
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2600
+ #
2601
+ # @example Basic example
2602
+ # require "google/cloud/gdc_hardware_management/v1alpha"
2603
+ #
2604
+ # # Create a client object. The client can be reused for multiple calls.
2605
+ # client = Google::Cloud::GDCHardwareManagement::V1alpha::GDCHardwareManagement::Rest::Client.new
2606
+ #
2607
+ # # Create a request. To set request fields, pass in keyword arguments.
2608
+ # request = Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest.new
2609
+ #
2610
+ # # Call the record_action_on_comment method.
2611
+ # result = client.record_action_on_comment request
2612
+ #
2613
+ # # The returned object is of type Google::Cloud::GDCHardwareManagement::V1alpha::Comment.
2614
+ # p result
2615
+ #
2616
+ def record_action_on_comment request, options = nil
2617
+ raise ::ArgumentError, "request must be provided" if request.nil?
2618
+
2619
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GDCHardwareManagement::V1alpha::RecordActionOnCommentRequest
2620
+
2621
+ # Converts hash and nil to an options object
2622
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2623
+
2624
+ # Customize the options with defaults
2625
+ call_metadata = @config.rpcs.record_action_on_comment.metadata.to_h
2626
+
2627
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2628
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2629
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2630
+ gapic_version: ::Google::Cloud::GDCHardwareManagement::V1alpha::VERSION,
2631
+ transports_version_send: [:rest]
2632
+
2633
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2634
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2635
+
2636
+ options.apply_defaults timeout: @config.rpcs.record_action_on_comment.timeout,
2637
+ metadata: call_metadata,
2638
+ retry_policy: @config.rpcs.record_action_on_comment.retry_policy
2639
+
2640
+ options.apply_defaults timeout: @config.timeout,
2641
+ metadata: @config.metadata,
2642
+ retry_policy: @config.retry_policy
2643
+
2644
+ @gdc_hardware_management_stub.record_action_on_comment request, options do |result, operation|
2645
+ yield result, operation if block_given?
2646
+ return result
2647
+ end
2648
+ rescue ::Gapic::Rest::Error => e
2649
+ raise ::Google::Cloud::Error.from_error(e)
2650
+ end
2651
+
2455
2652
  ##
2456
2653
  # Lists the changes made to an order.
2457
2654
  #
@@ -2647,6 +2844,10 @@ module Google
2647
2844
  # @param parent [::String]
2648
2845
  # Required. The project and location to list SKUs in.
2649
2846
  # Format: `projects/{project}/locations/{location}`
2847
+ #
2848
+ # To list SKUs across all locations, substitute `-` (the hyphen or
2849
+ # dash character) for the location and check the unreachable field in
2850
+ # the response message.
2650
2851
  # @param page_size [::Integer]
2651
2852
  # Optional. Requested page size. Server may return fewer items than
2652
2853
  # requested. If unspecified, server will pick an appropriate default.
@@ -2820,6 +3021,10 @@ module Google
2820
3021
  # @param parent [::String]
2821
3022
  # Required. The project and location to list zones in.
2822
3023
  # Format: `projects/{project}/locations/{location}`
3024
+ #
3025
+ # To list zones across all locations, substitute `-` (the hyphen or
3026
+ # dash character) for the location and check the unreachable field in
3027
+ # the response message.
2823
3028
  # @param page_size [::Integer]
2824
3029
  # Optional. Requested page size. Server may return fewer items than
2825
3030
  # requested. If unspecified, server will pick an appropriate default.
@@ -3544,6 +3749,11 @@ module Google
3544
3749
  #
3545
3750
  attr_reader :update_site
3546
3751
  ##
3752
+ # RPC-specific configuration for `delete_site`
3753
+ # @return [::Gapic::Config::Method]
3754
+ #
3755
+ attr_reader :delete_site
3756
+ ##
3547
3757
  # RPC-specific configuration for `list_hardware_groups`
3548
3758
  # @return [::Gapic::Config::Method]
3549
3759
  #
@@ -3609,6 +3819,11 @@ module Google
3609
3819
  #
3610
3820
  attr_reader :create_comment
3611
3821
  ##
3822
+ # RPC-specific configuration for `record_action_on_comment`
3823
+ # @return [::Gapic::Config::Method]
3824
+ #
3825
+ attr_reader :record_action_on_comment
3826
+ ##
3612
3827
  # RPC-specific configuration for `list_change_log_entries`
3613
3828
  # @return [::Gapic::Config::Method]
3614
3829
  #
@@ -3681,6 +3896,8 @@ module Google
3681
3896
  @create_site = ::Gapic::Config::Method.new create_site_config
3682
3897
  update_site_config = parent_rpcs.update_site if parent_rpcs.respond_to? :update_site
3683
3898
  @update_site = ::Gapic::Config::Method.new update_site_config
3899
+ delete_site_config = parent_rpcs.delete_site if parent_rpcs.respond_to? :delete_site
3900
+ @delete_site = ::Gapic::Config::Method.new delete_site_config
3684
3901
  list_hardware_groups_config = parent_rpcs.list_hardware_groups if parent_rpcs.respond_to? :list_hardware_groups
3685
3902
  @list_hardware_groups = ::Gapic::Config::Method.new list_hardware_groups_config
3686
3903
  get_hardware_group_config = parent_rpcs.get_hardware_group if parent_rpcs.respond_to? :get_hardware_group
@@ -3707,6 +3924,8 @@ module Google
3707
3924
  @get_comment = ::Gapic::Config::Method.new get_comment_config
3708
3925
  create_comment_config = parent_rpcs.create_comment if parent_rpcs.respond_to? :create_comment
3709
3926
  @create_comment = ::Gapic::Config::Method.new create_comment_config
3927
+ record_action_on_comment_config = parent_rpcs.record_action_on_comment if parent_rpcs.respond_to? :record_action_on_comment
3928
+ @record_action_on_comment = ::Gapic::Config::Method.new record_action_on_comment_config
3710
3929
  list_change_log_entries_config = parent_rpcs.list_change_log_entries if parent_rpcs.respond_to? :list_change_log_entries
3711
3930
  @list_change_log_entries = ::Gapic::Config::Method.new list_change_log_entries_config
3712
3931
  get_change_log_entry_config = parent_rpcs.get_change_log_entry if parent_rpcs.respond_to? :get_change_log_entry