google-apis-cloudkms_v1 0.65.0 → 0.67.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.
@@ -52,10 +52,10 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
- # Returns the AutokeyConfig for a folder.
55
+ # Returns the AutokeyConfig for a folder or project.
56
56
  # @param [String] name
57
57
  # Required. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
58
- # autokeyConfig`.
58
+ # autokeyConfig` or `projects/`PROJECT_NUMBER`/autokeyConfig`.
59
59
  # @param [String] fields
60
60
  # Selector specifying which fields to include in a partial response.
61
61
  # @param [String] quota_user
@@ -114,8 +114,8 @@ module Google
114
114
  execute_or_queue_command(command, &block)
115
115
  end
116
116
 
117
- # Updates the AutokeyConfig for a folder. The caller must have both `cloudkms.
118
- # autokeyConfigs.update` permission on the parent folder and `cloudkms.
117
+ # Updates the AutokeyConfig for a folder or a project. The caller must have both
118
+ # `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.
119
119
  # cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle
120
120
  # creation in the folder's descendant projects will use this configuration to
121
121
  # determine where to create the resulting CryptoKey.
@@ -262,6 +262,37 @@ module Google
262
262
  execute_or_queue_command(command, &block)
263
263
  end
264
264
 
265
+ # Returns the AutokeyConfig for a folder or project.
266
+ # @param [String] name
267
+ # Required. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
268
+ # autokeyConfig` or `projects/`PROJECT_NUMBER`/autokeyConfig`.
269
+ # @param [String] fields
270
+ # Selector specifying which fields to include in a partial response.
271
+ # @param [String] quota_user
272
+ # Available to use for quota purposes for server-side applications. Can be any
273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
274
+ # @param [Google::Apis::RequestOptions] options
275
+ # Request-specific options
276
+ #
277
+ # @yield [result, err] Result & error if block supplied
278
+ # @yieldparam result [Google::Apis::CloudkmsV1::AutokeyConfig] parsed result object
279
+ # @yieldparam err [StandardError] error object if request failed
280
+ #
281
+ # @return [Google::Apis::CloudkmsV1::AutokeyConfig]
282
+ #
283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
286
+ def get_project_autokey_config(name, fields: nil, quota_user: nil, options: nil, &block)
287
+ command = make_simple_command(:get, 'v1/{+name}', options)
288
+ command.response_representation = Google::Apis::CloudkmsV1::AutokeyConfig::Representation
289
+ command.response_class = Google::Apis::CloudkmsV1::AutokeyConfig
290
+ command.params['name'] = name unless name.nil?
291
+ command.query['fields'] = fields unless fields.nil?
292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
293
+ execute_or_queue_command(command, &block)
294
+ end
295
+
265
296
  # Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder,
266
297
  # or project.
267
298
  # @param [String] name
@@ -389,6 +420,47 @@ module Google
389
420
  execute_or_queue_command(command, &block)
390
421
  end
391
422
 
423
+ # Updates the AutokeyConfig for a folder or a project. The caller must have both
424
+ # `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.
425
+ # cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle
426
+ # creation in the folder's descendant projects will use this configuration to
427
+ # determine where to create the resulting CryptoKey.
428
+ # @param [String] name
429
+ # Identifier. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
430
+ # autokeyConfig`
431
+ # @param [Google::Apis::CloudkmsV1::AutokeyConfig] autokey_config_object
432
+ # @param [String] update_mask
433
+ # Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`.
434
+ # @param [String] fields
435
+ # Selector specifying which fields to include in a partial response.
436
+ # @param [String] quota_user
437
+ # Available to use for quota purposes for server-side applications. Can be any
438
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
439
+ # @param [Google::Apis::RequestOptions] options
440
+ # Request-specific options
441
+ #
442
+ # @yield [result, err] Result & error if block supplied
443
+ # @yieldparam result [Google::Apis::CloudkmsV1::AutokeyConfig] parsed result object
444
+ # @yieldparam err [StandardError] error object if request failed
445
+ #
446
+ # @return [Google::Apis::CloudkmsV1::AutokeyConfig]
447
+ #
448
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
451
+ def update_project_autokey_config(name, autokey_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
452
+ command = make_simple_command(:patch, 'v1/{+name}', options)
453
+ command.request_representation = Google::Apis::CloudkmsV1::AutokeyConfig::Representation
454
+ command.request_object = autokey_config_object
455
+ command.response_representation = Google::Apis::CloudkmsV1::AutokeyConfig::Representation
456
+ command.response_class = Google::Apis::CloudkmsV1::AutokeyConfig
457
+ command.params['name'] = name unless name.nil?
458
+ command.query['updateMask'] = update_mask unless update_mask.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
392
464
  # Updates the KeyAccessJustificationsPolicyConfig for a given organization,
393
465
  # folder, or project.
394
466
  # @param [String] name
@@ -2609,6 +2681,358 @@ module Google
2609
2681
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2610
2682
  execute_or_queue_command(command, &block)
2611
2683
  end
2684
+
2685
+ # Creates a new SingleTenantHsmInstance in a given Project and Location. User
2686
+ # must create a RegisterTwoFactorAuthKeys proposal with this single-tenant HSM
2687
+ # instance to finish setup of the instance.
2688
+ # @param [String] parent
2689
+ # Required. The resource name of the location associated with the
2690
+ # SingleTenantHsmInstance, in the format `projects/*/locations/*`.
2691
+ # @param [Google::Apis::CloudkmsV1::SingleTenantHsmInstance] single_tenant_hsm_instance_object
2692
+ # @param [String] single_tenant_hsm_instance_id
2693
+ # Optional. It must be unique within a location and match the regular expression
2694
+ # `[a-zA-Z0-9_-]`1,63``.
2695
+ # @param [String] fields
2696
+ # Selector specifying which fields to include in a partial response.
2697
+ # @param [String] quota_user
2698
+ # Available to use for quota purposes for server-side applications. Can be any
2699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2700
+ # @param [Google::Apis::RequestOptions] options
2701
+ # Request-specific options
2702
+ #
2703
+ # @yield [result, err] Result & error if block supplied
2704
+ # @yieldparam result [Google::Apis::CloudkmsV1::Operation] parsed result object
2705
+ # @yieldparam err [StandardError] error object if request failed
2706
+ #
2707
+ # @return [Google::Apis::CloudkmsV1::Operation]
2708
+ #
2709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2712
+ def create_project_location_single_tenant_hsm_instance(parent, single_tenant_hsm_instance_object = nil, single_tenant_hsm_instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2713
+ command = make_simple_command(:post, 'v1/{+parent}/singleTenantHsmInstances', options)
2714
+ command.request_representation = Google::Apis::CloudkmsV1::SingleTenantHsmInstance::Representation
2715
+ command.request_object = single_tenant_hsm_instance_object
2716
+ command.response_representation = Google::Apis::CloudkmsV1::Operation::Representation
2717
+ command.response_class = Google::Apis::CloudkmsV1::Operation
2718
+ command.params['parent'] = parent unless parent.nil?
2719
+ command.query['singleTenantHsmInstanceId'] = single_tenant_hsm_instance_id unless single_tenant_hsm_instance_id.nil?
2720
+ command.query['fields'] = fields unless fields.nil?
2721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2722
+ execute_or_queue_command(command, &block)
2723
+ end
2724
+
2725
+ # Returns metadata for a given SingleTenantHsmInstance.
2726
+ # @param [String] name
2727
+ # Required. The name of the SingleTenantHsmInstance to get.
2728
+ # @param [String] fields
2729
+ # Selector specifying which fields to include in a partial response.
2730
+ # @param [String] quota_user
2731
+ # Available to use for quota purposes for server-side applications. Can be any
2732
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2733
+ # @param [Google::Apis::RequestOptions] options
2734
+ # Request-specific options
2735
+ #
2736
+ # @yield [result, err] Result & error if block supplied
2737
+ # @yieldparam result [Google::Apis::CloudkmsV1::SingleTenantHsmInstance] parsed result object
2738
+ # @yieldparam err [StandardError] error object if request failed
2739
+ #
2740
+ # @return [Google::Apis::CloudkmsV1::SingleTenantHsmInstance]
2741
+ #
2742
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2743
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2744
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2745
+ def get_project_location_single_tenant_hsm_instance(name, fields: nil, quota_user: nil, options: nil, &block)
2746
+ command = make_simple_command(:get, 'v1/{+name}', options)
2747
+ command.response_representation = Google::Apis::CloudkmsV1::SingleTenantHsmInstance::Representation
2748
+ command.response_class = Google::Apis::CloudkmsV1::SingleTenantHsmInstance
2749
+ command.params['name'] = name unless name.nil?
2750
+ command.query['fields'] = fields unless fields.nil?
2751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2752
+ execute_or_queue_command(command, &block)
2753
+ end
2754
+
2755
+ # Lists SingleTenantHsmInstances.
2756
+ # @param [String] parent
2757
+ # Required. The resource name of the location associated with the
2758
+ # SingleTenantHsmInstances to list, in the format `projects/*/locations/*`.
2759
+ # @param [String] filter
2760
+ # Optional. Only include resources that match the filter in the response. For
2761
+ # more information, see [Sorting and filtering list results](https://cloud.
2762
+ # google.com/kms/docs/sorting-and-filtering).
2763
+ # @param [String] order_by
2764
+ # Optional. Specify how the results should be sorted. If not specified, the
2765
+ # results will be sorted in the default order. For more information, see [
2766
+ # Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-
2767
+ # and-filtering).
2768
+ # @param [Fixnum] page_size
2769
+ # Optional. Optional limit on the number of SingleTenantHsmInstances to include
2770
+ # in the response. Further SingleTenantHsmInstances can subsequently be obtained
2771
+ # by including the ListSingleTenantHsmInstancesResponse.next_page_token in a
2772
+ # subsequent request. If unspecified, the server will pick an appropriate
2773
+ # default.
2774
+ # @param [String] page_token
2775
+ # Optional. Optional pagination token, returned earlier via
2776
+ # ListSingleTenantHsmInstancesResponse.next_page_token.
2777
+ # @param [Boolean] show_deleted
2778
+ # Optional. If set to true, HsmManagement.ListSingleTenantHsmInstances will also
2779
+ # return SingleTenantHsmInstances in DELETED state.
2780
+ # @param [String] fields
2781
+ # Selector specifying which fields to include in a partial response.
2782
+ # @param [String] quota_user
2783
+ # Available to use for quota purposes for server-side applications. Can be any
2784
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2785
+ # @param [Google::Apis::RequestOptions] options
2786
+ # Request-specific options
2787
+ #
2788
+ # @yield [result, err] Result & error if block supplied
2789
+ # @yieldparam result [Google::Apis::CloudkmsV1::ListSingleTenantHsmInstancesResponse] parsed result object
2790
+ # @yieldparam err [StandardError] error object if request failed
2791
+ #
2792
+ # @return [Google::Apis::CloudkmsV1::ListSingleTenantHsmInstancesResponse]
2793
+ #
2794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2797
+ def list_project_location_single_tenant_hsm_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
2798
+ command = make_simple_command(:get, 'v1/{+parent}/singleTenantHsmInstances', options)
2799
+ command.response_representation = Google::Apis::CloudkmsV1::ListSingleTenantHsmInstancesResponse::Representation
2800
+ command.response_class = Google::Apis::CloudkmsV1::ListSingleTenantHsmInstancesResponse
2801
+ command.params['parent'] = parent unless parent.nil?
2802
+ command.query['filter'] = filter unless filter.nil?
2803
+ command.query['orderBy'] = order_by unless order_by.nil?
2804
+ command.query['pageSize'] = page_size unless page_size.nil?
2805
+ command.query['pageToken'] = page_token unless page_token.nil?
2806
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
2807
+ command.query['fields'] = fields unless fields.nil?
2808
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2809
+ execute_or_queue_command(command, &block)
2810
+ end
2811
+
2812
+ # Approves a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance.
2813
+ # The proposal must be in the PENDING state.
2814
+ # @param [String] name
2815
+ # Required. The name of the SingleTenantHsmInstanceProposal to approve.
2816
+ # @param [Google::Apis::CloudkmsV1::ApproveSingleTenantHsmInstanceProposalRequest] approve_single_tenant_hsm_instance_proposal_request_object
2817
+ # @param [String] fields
2818
+ # Selector specifying which fields to include in a partial response.
2819
+ # @param [String] quota_user
2820
+ # Available to use for quota purposes for server-side applications. Can be any
2821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2822
+ # @param [Google::Apis::RequestOptions] options
2823
+ # Request-specific options
2824
+ #
2825
+ # @yield [result, err] Result & error if block supplied
2826
+ # @yieldparam result [Google::Apis::CloudkmsV1::ApproveSingleTenantHsmInstanceProposalResponse] parsed result object
2827
+ # @yieldparam err [StandardError] error object if request failed
2828
+ #
2829
+ # @return [Google::Apis::CloudkmsV1::ApproveSingleTenantHsmInstanceProposalResponse]
2830
+ #
2831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2834
+ def approve_single_tenant_hsm_instance_proposal(name, approve_single_tenant_hsm_instance_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2835
+ command = make_simple_command(:post, 'v1/{+name}:approve', options)
2836
+ command.request_representation = Google::Apis::CloudkmsV1::ApproveSingleTenantHsmInstanceProposalRequest::Representation
2837
+ command.request_object = approve_single_tenant_hsm_instance_proposal_request_object
2838
+ command.response_representation = Google::Apis::CloudkmsV1::ApproveSingleTenantHsmInstanceProposalResponse::Representation
2839
+ command.response_class = Google::Apis::CloudkmsV1::ApproveSingleTenantHsmInstanceProposalResponse
2840
+ command.params['name'] = name unless name.nil?
2841
+ command.query['fields'] = fields unless fields.nil?
2842
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2843
+ execute_or_queue_command(command, &block)
2844
+ end
2845
+
2846
+ # Creates a new SingleTenantHsmInstanceProposal for a given
2847
+ # SingleTenantHsmInstance.
2848
+ # @param [String] parent
2849
+ # Required. The name of the SingleTenantHsmInstance associated with the
2850
+ # SingleTenantHsmInstanceProposals.
2851
+ # @param [Google::Apis::CloudkmsV1::SingleTenantHsmInstanceProposal] single_tenant_hsm_instance_proposal_object
2852
+ # @param [String] single_tenant_hsm_instance_proposal_id
2853
+ # Optional. It must be unique within a location and match the regular expression
2854
+ # `[a-zA-Z0-9_-]`1,63``.
2855
+ # @param [String] fields
2856
+ # Selector specifying which fields to include in a partial response.
2857
+ # @param [String] quota_user
2858
+ # Available to use for quota purposes for server-side applications. Can be any
2859
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2860
+ # @param [Google::Apis::RequestOptions] options
2861
+ # Request-specific options
2862
+ #
2863
+ # @yield [result, err] Result & error if block supplied
2864
+ # @yieldparam result [Google::Apis::CloudkmsV1::Operation] parsed result object
2865
+ # @yieldparam err [StandardError] error object if request failed
2866
+ #
2867
+ # @return [Google::Apis::CloudkmsV1::Operation]
2868
+ #
2869
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2870
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2871
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2872
+ def create_project_location_single_tenant_hsm_instance_proposal(parent, single_tenant_hsm_instance_proposal_object = nil, single_tenant_hsm_instance_proposal_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2873
+ command = make_simple_command(:post, 'v1/{+parent}/proposals', options)
2874
+ command.request_representation = Google::Apis::CloudkmsV1::SingleTenantHsmInstanceProposal::Representation
2875
+ command.request_object = single_tenant_hsm_instance_proposal_object
2876
+ command.response_representation = Google::Apis::CloudkmsV1::Operation::Representation
2877
+ command.response_class = Google::Apis::CloudkmsV1::Operation
2878
+ command.params['parent'] = parent unless parent.nil?
2879
+ command.query['singleTenantHsmInstanceProposalId'] = single_tenant_hsm_instance_proposal_id unless single_tenant_hsm_instance_proposal_id.nil?
2880
+ command.query['fields'] = fields unless fields.nil?
2881
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2882
+ execute_or_queue_command(command, &block)
2883
+ end
2884
+
2885
+ # Deletes a SingleTenantHsmInstanceProposal.
2886
+ # @param [String] name
2887
+ # Required. The name of the SingleTenantHsmInstanceProposal to delete.
2888
+ # @param [String] fields
2889
+ # Selector specifying which fields to include in a partial response.
2890
+ # @param [String] quota_user
2891
+ # Available to use for quota purposes for server-side applications. Can be any
2892
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2893
+ # @param [Google::Apis::RequestOptions] options
2894
+ # Request-specific options
2895
+ #
2896
+ # @yield [result, err] Result & error if block supplied
2897
+ # @yieldparam result [Google::Apis::CloudkmsV1::Empty] parsed result object
2898
+ # @yieldparam err [StandardError] error object if request failed
2899
+ #
2900
+ # @return [Google::Apis::CloudkmsV1::Empty]
2901
+ #
2902
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2903
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2904
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2905
+ def delete_project_location_single_tenant_hsm_instance_proposal(name, fields: nil, quota_user: nil, options: nil, &block)
2906
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2907
+ command.response_representation = Google::Apis::CloudkmsV1::Empty::Representation
2908
+ command.response_class = Google::Apis::CloudkmsV1::Empty
2909
+ command.params['name'] = name unless name.nil?
2910
+ command.query['fields'] = fields unless fields.nil?
2911
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2912
+ execute_or_queue_command(command, &block)
2913
+ end
2914
+
2915
+ # Executes a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance.
2916
+ # The proposal must be in the APPROVED state.
2917
+ # @param [String] name
2918
+ # Required. The name of the SingleTenantHsmInstanceProposal to execute.
2919
+ # @param [Google::Apis::CloudkmsV1::ExecuteSingleTenantHsmInstanceProposalRequest] execute_single_tenant_hsm_instance_proposal_request_object
2920
+ # @param [String] fields
2921
+ # Selector specifying which fields to include in a partial response.
2922
+ # @param [String] quota_user
2923
+ # Available to use for quota purposes for server-side applications. Can be any
2924
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2925
+ # @param [Google::Apis::RequestOptions] options
2926
+ # Request-specific options
2927
+ #
2928
+ # @yield [result, err] Result & error if block supplied
2929
+ # @yieldparam result [Google::Apis::CloudkmsV1::Operation] parsed result object
2930
+ # @yieldparam err [StandardError] error object if request failed
2931
+ #
2932
+ # @return [Google::Apis::CloudkmsV1::Operation]
2933
+ #
2934
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2935
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2936
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2937
+ def execute_single_tenant_hsm_instance_proposal(name, execute_single_tenant_hsm_instance_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2938
+ command = make_simple_command(:post, 'v1/{+name}:execute', options)
2939
+ command.request_representation = Google::Apis::CloudkmsV1::ExecuteSingleTenantHsmInstanceProposalRequest::Representation
2940
+ command.request_object = execute_single_tenant_hsm_instance_proposal_request_object
2941
+ command.response_representation = Google::Apis::CloudkmsV1::Operation::Representation
2942
+ command.response_class = Google::Apis::CloudkmsV1::Operation
2943
+ command.params['name'] = name unless name.nil?
2944
+ command.query['fields'] = fields unless fields.nil?
2945
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2946
+ execute_or_queue_command(command, &block)
2947
+ end
2948
+
2949
+ # Returns metadata for a given SingleTenantHsmInstanceProposal.
2950
+ # @param [String] name
2951
+ # Required. The name of the SingleTenantHsmInstanceProposal to get.
2952
+ # @param [String] fields
2953
+ # Selector specifying which fields to include in a partial response.
2954
+ # @param [String] quota_user
2955
+ # Available to use for quota purposes for server-side applications. Can be any
2956
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2957
+ # @param [Google::Apis::RequestOptions] options
2958
+ # Request-specific options
2959
+ #
2960
+ # @yield [result, err] Result & error if block supplied
2961
+ # @yieldparam result [Google::Apis::CloudkmsV1::SingleTenantHsmInstanceProposal] parsed result object
2962
+ # @yieldparam err [StandardError] error object if request failed
2963
+ #
2964
+ # @return [Google::Apis::CloudkmsV1::SingleTenantHsmInstanceProposal]
2965
+ #
2966
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2967
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2968
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2969
+ def get_project_location_single_tenant_hsm_instance_proposal(name, fields: nil, quota_user: nil, options: nil, &block)
2970
+ command = make_simple_command(:get, 'v1/{+name}', options)
2971
+ command.response_representation = Google::Apis::CloudkmsV1::SingleTenantHsmInstanceProposal::Representation
2972
+ command.response_class = Google::Apis::CloudkmsV1::SingleTenantHsmInstanceProposal
2973
+ command.params['name'] = name unless name.nil?
2974
+ command.query['fields'] = fields unless fields.nil?
2975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2976
+ execute_or_queue_command(command, &block)
2977
+ end
2978
+
2979
+ # Lists SingleTenantHsmInstanceProposals.
2980
+ # @param [String] parent
2981
+ # Required. The resource name of the location associated with the
2982
+ # SingleTenantHsmInstanceProposals to list, in the format `projects/*/locations/*
2983
+ # /singleTenantHsmInstances/*`.
2984
+ # @param [String] filter
2985
+ # Optional. Only include resources that match the filter in the response. For
2986
+ # more information, see [Sorting and filtering list results](https://cloud.
2987
+ # google.com/kms/docs/sorting-and-filtering).
2988
+ # @param [String] order_by
2989
+ # Optional. Specify how the results should be sorted. If not specified, the
2990
+ # results will be sorted in the default order. For more information, see [
2991
+ # Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-
2992
+ # and-filtering).
2993
+ # @param [Fixnum] page_size
2994
+ # Optional. Optional limit on the number of SingleTenantHsmInstanceProposals to
2995
+ # include in the response. Further SingleTenantHsmInstanceProposals can
2996
+ # subsequently be obtained by including the
2997
+ # ListSingleTenantHsmInstanceProposalsResponse.next_page_token in a subsequent
2998
+ # request. If unspecified, the server will pick an appropriate default.
2999
+ # @param [String] page_token
3000
+ # Optional. Optional pagination token, returned earlier via
3001
+ # ListSingleTenantHsmInstanceProposalsResponse.next_page_token.
3002
+ # @param [Boolean] show_deleted
3003
+ # Optional. If set to true, HsmManagement.ListSingleTenantHsmInstanceProposals
3004
+ # will also return SingleTenantHsmInstanceProposals in DELETED state.
3005
+ # @param [String] fields
3006
+ # Selector specifying which fields to include in a partial response.
3007
+ # @param [String] quota_user
3008
+ # Available to use for quota purposes for server-side applications. Can be any
3009
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3010
+ # @param [Google::Apis::RequestOptions] options
3011
+ # Request-specific options
3012
+ #
3013
+ # @yield [result, err] Result & error if block supplied
3014
+ # @yieldparam result [Google::Apis::CloudkmsV1::ListSingleTenantHsmInstanceProposalsResponse] parsed result object
3015
+ # @yieldparam err [StandardError] error object if request failed
3016
+ #
3017
+ # @return [Google::Apis::CloudkmsV1::ListSingleTenantHsmInstanceProposalsResponse]
3018
+ #
3019
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3020
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3021
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3022
+ def list_project_location_single_tenant_hsm_instance_proposals(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
3023
+ command = make_simple_command(:get, 'v1/{+parent}/proposals', options)
3024
+ command.response_representation = Google::Apis::CloudkmsV1::ListSingleTenantHsmInstanceProposalsResponse::Representation
3025
+ command.response_class = Google::Apis::CloudkmsV1::ListSingleTenantHsmInstanceProposalsResponse
3026
+ command.params['parent'] = parent unless parent.nil?
3027
+ command.query['filter'] = filter unless filter.nil?
3028
+ command.query['orderBy'] = order_by unless order_by.nil?
3029
+ command.query['pageSize'] = page_size unless page_size.nil?
3030
+ command.query['pageToken'] = page_token unless page_token.nil?
3031
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
3032
+ command.query['fields'] = fields unless fields.nil?
3033
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3034
+ execute_or_queue_command(command, &block)
3035
+ end
2612
3036
 
2613
3037
  protected
2614
3038
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudkms_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.67.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.65.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.67.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1
62
62
  rdoc_options: []
63
63
  require_paths: