google-cloud-netapp-v1 1.6.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5697,6 +5697,486 @@ module Google
5697
5697
  raise ::Google::Cloud::Error.from_error(e)
5698
5698
  end
5699
5699
 
5700
+ ##
5701
+ # Returns list of all quota rules in a location.
5702
+ #
5703
+ # @overload list_quota_rules(request, options = nil)
5704
+ # Pass arguments to `list_quota_rules` via a request object, either of type
5705
+ # {::Google::Cloud::NetApp::V1::ListQuotaRulesRequest} or an equivalent Hash.
5706
+ #
5707
+ # @param request [::Google::Cloud::NetApp::V1::ListQuotaRulesRequest, ::Hash]
5708
+ # A request object representing the call parameters. Required. To specify no
5709
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5710
+ # @param options [::Gapic::CallOptions, ::Hash]
5711
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5712
+ #
5713
+ # @overload list_quota_rules(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
5714
+ # Pass arguments to `list_quota_rules` via keyword arguments. Note that at
5715
+ # least one keyword argument is required. To specify no parameters, or to keep all
5716
+ # the default parameter values, pass an empty Hash as a request object (see above).
5717
+ #
5718
+ # @param parent [::String]
5719
+ # Required. Parent value for ListQuotaRulesRequest
5720
+ # @param page_size [::Integer]
5721
+ # Optional. Requested page size. Server may return fewer items than
5722
+ # requested. If unspecified, the server will pick an appropriate default.
5723
+ # @param page_token [::String]
5724
+ # Optional. A token identifying a page of results the server should return.
5725
+ # @param filter [::String]
5726
+ # Optional. Filtering results
5727
+ # @param order_by [::String]
5728
+ # Optional. Hint for how to order the results
5729
+ #
5730
+ # @yield [response, operation] Access the result along with the RPC operation
5731
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>]
5732
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5733
+ #
5734
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>]
5735
+ #
5736
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5737
+ #
5738
+ # @example Basic example
5739
+ # require "google/cloud/netapp/v1"
5740
+ #
5741
+ # # Create a client object. The client can be reused for multiple calls.
5742
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
5743
+ #
5744
+ # # Create a request. To set request fields, pass in keyword arguments.
5745
+ # request = Google::Cloud::NetApp::V1::ListQuotaRulesRequest.new
5746
+ #
5747
+ # # Call the list_quota_rules method.
5748
+ # result = client.list_quota_rules request
5749
+ #
5750
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5751
+ # # over elements, and API calls will be issued to fetch pages as needed.
5752
+ # result.each do |item|
5753
+ # # Each element is of type ::Google::Cloud::NetApp::V1::QuotaRule.
5754
+ # p item
5755
+ # end
5756
+ #
5757
+ def list_quota_rules request, options = nil
5758
+ raise ::ArgumentError, "request must be provided" if request.nil?
5759
+
5760
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ListQuotaRulesRequest
5761
+
5762
+ # Converts hash and nil to an options object
5763
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5764
+
5765
+ # Customize the options with defaults
5766
+ metadata = @config.rpcs.list_quota_rules.metadata.to_h
5767
+
5768
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5769
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5770
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5771
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
5772
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5773
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5774
+
5775
+ header_params = {}
5776
+ if request.parent
5777
+ header_params["parent"] = request.parent
5778
+ end
5779
+
5780
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5781
+ metadata[:"x-goog-request-params"] ||= request_params_header
5782
+
5783
+ options.apply_defaults timeout: @config.rpcs.list_quota_rules.timeout,
5784
+ metadata: metadata,
5785
+ retry_policy: @config.rpcs.list_quota_rules.retry_policy
5786
+
5787
+ options.apply_defaults timeout: @config.timeout,
5788
+ metadata: @config.metadata,
5789
+ retry_policy: @config.retry_policy
5790
+
5791
+ @net_app_stub.call_rpc :list_quota_rules, request, options: options do |response, operation|
5792
+ response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_quota_rules, request, response, operation, options
5793
+ yield response, operation if block_given?
5794
+ throw :response, response
5795
+ end
5796
+ rescue ::GRPC::BadStatus => e
5797
+ raise ::Google::Cloud::Error.from_error(e)
5798
+ end
5799
+
5800
+ ##
5801
+ # Returns details of the specified quota rule.
5802
+ #
5803
+ # @overload get_quota_rule(request, options = nil)
5804
+ # Pass arguments to `get_quota_rule` via a request object, either of type
5805
+ # {::Google::Cloud::NetApp::V1::GetQuotaRuleRequest} or an equivalent Hash.
5806
+ #
5807
+ # @param request [::Google::Cloud::NetApp::V1::GetQuotaRuleRequest, ::Hash]
5808
+ # A request object representing the call parameters. Required. To specify no
5809
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5810
+ # @param options [::Gapic::CallOptions, ::Hash]
5811
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5812
+ #
5813
+ # @overload get_quota_rule(name: nil)
5814
+ # Pass arguments to `get_quota_rule` via keyword arguments. Note that at
5815
+ # least one keyword argument is required. To specify no parameters, or to keep all
5816
+ # the default parameter values, pass an empty Hash as a request object (see above).
5817
+ #
5818
+ # @param name [::String]
5819
+ # Required. Name of the quota rule
5820
+ #
5821
+ # @yield [response, operation] Access the result along with the RPC operation
5822
+ # @yieldparam response [::Google::Cloud::NetApp::V1::QuotaRule]
5823
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5824
+ #
5825
+ # @return [::Google::Cloud::NetApp::V1::QuotaRule]
5826
+ #
5827
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5828
+ #
5829
+ # @example Basic example
5830
+ # require "google/cloud/netapp/v1"
5831
+ #
5832
+ # # Create a client object. The client can be reused for multiple calls.
5833
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
5834
+ #
5835
+ # # Create a request. To set request fields, pass in keyword arguments.
5836
+ # request = Google::Cloud::NetApp::V1::GetQuotaRuleRequest.new
5837
+ #
5838
+ # # Call the get_quota_rule method.
5839
+ # result = client.get_quota_rule request
5840
+ #
5841
+ # # The returned object is of type Google::Cloud::NetApp::V1::QuotaRule.
5842
+ # p result
5843
+ #
5844
+ def get_quota_rule request, options = nil
5845
+ raise ::ArgumentError, "request must be provided" if request.nil?
5846
+
5847
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::GetQuotaRuleRequest
5848
+
5849
+ # Converts hash and nil to an options object
5850
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5851
+
5852
+ # Customize the options with defaults
5853
+ metadata = @config.rpcs.get_quota_rule.metadata.to_h
5854
+
5855
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5856
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5857
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5858
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
5859
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5860
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5861
+
5862
+ header_params = {}
5863
+ if request.name
5864
+ header_params["name"] = request.name
5865
+ end
5866
+
5867
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5868
+ metadata[:"x-goog-request-params"] ||= request_params_header
5869
+
5870
+ options.apply_defaults timeout: @config.rpcs.get_quota_rule.timeout,
5871
+ metadata: metadata,
5872
+ retry_policy: @config.rpcs.get_quota_rule.retry_policy
5873
+
5874
+ options.apply_defaults timeout: @config.timeout,
5875
+ metadata: @config.metadata,
5876
+ retry_policy: @config.retry_policy
5877
+
5878
+ @net_app_stub.call_rpc :get_quota_rule, request, options: options do |response, operation|
5879
+ yield response, operation if block_given?
5880
+ end
5881
+ rescue ::GRPC::BadStatus => e
5882
+ raise ::Google::Cloud::Error.from_error(e)
5883
+ end
5884
+
5885
+ ##
5886
+ # Creates a new quota rule.
5887
+ #
5888
+ # @overload create_quota_rule(request, options = nil)
5889
+ # Pass arguments to `create_quota_rule` via a request object, either of type
5890
+ # {::Google::Cloud::NetApp::V1::CreateQuotaRuleRequest} or an equivalent Hash.
5891
+ #
5892
+ # @param request [::Google::Cloud::NetApp::V1::CreateQuotaRuleRequest, ::Hash]
5893
+ # A request object representing the call parameters. Required. To specify no
5894
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5895
+ # @param options [::Gapic::CallOptions, ::Hash]
5896
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5897
+ #
5898
+ # @overload create_quota_rule(parent: nil, quota_rule: nil, quota_rule_id: nil)
5899
+ # Pass arguments to `create_quota_rule` via keyword arguments. Note that at
5900
+ # least one keyword argument is required. To specify no parameters, or to keep all
5901
+ # the default parameter values, pass an empty Hash as a request object (see above).
5902
+ #
5903
+ # @param parent [::String]
5904
+ # Required. Parent value for CreateQuotaRuleRequest
5905
+ # @param quota_rule [::Google::Cloud::NetApp::V1::QuotaRule, ::Hash]
5906
+ # Required. Fields of the to be created quota rule.
5907
+ # @param quota_rule_id [::String]
5908
+ # Required. ID of the quota rule to create. Must be unique within the parent
5909
+ # resource. Must contain only letters, numbers, underscore and hyphen, with
5910
+ # the first character a letter or underscore, the last a letter or underscore
5911
+ # or a number, and a 63 character maximum.
5912
+ #
5913
+ # @yield [response, operation] Access the result along with the RPC operation
5914
+ # @yieldparam response [::Gapic::Operation]
5915
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5916
+ #
5917
+ # @return [::Gapic::Operation]
5918
+ #
5919
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5920
+ #
5921
+ # @example Basic example
5922
+ # require "google/cloud/netapp/v1"
5923
+ #
5924
+ # # Create a client object. The client can be reused for multiple calls.
5925
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
5926
+ #
5927
+ # # Create a request. To set request fields, pass in keyword arguments.
5928
+ # request = Google::Cloud::NetApp::V1::CreateQuotaRuleRequest.new
5929
+ #
5930
+ # # Call the create_quota_rule method.
5931
+ # result = client.create_quota_rule request
5932
+ #
5933
+ # # The returned object is of type Gapic::Operation. You can use it to
5934
+ # # check the status of an operation, cancel it, or wait for results.
5935
+ # # Here is how to wait for a response.
5936
+ # result.wait_until_done! timeout: 60
5937
+ # if result.response?
5938
+ # p result.response
5939
+ # else
5940
+ # puts "No response received."
5941
+ # end
5942
+ #
5943
+ def create_quota_rule request, options = nil
5944
+ raise ::ArgumentError, "request must be provided" if request.nil?
5945
+
5946
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::CreateQuotaRuleRequest
5947
+
5948
+ # Converts hash and nil to an options object
5949
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5950
+
5951
+ # Customize the options with defaults
5952
+ metadata = @config.rpcs.create_quota_rule.metadata.to_h
5953
+
5954
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5955
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5956
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5957
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
5958
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5959
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5960
+
5961
+ header_params = {}
5962
+ if request.parent
5963
+ header_params["parent"] = request.parent
5964
+ end
5965
+
5966
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5967
+ metadata[:"x-goog-request-params"] ||= request_params_header
5968
+
5969
+ options.apply_defaults timeout: @config.rpcs.create_quota_rule.timeout,
5970
+ metadata: metadata,
5971
+ retry_policy: @config.rpcs.create_quota_rule.retry_policy
5972
+
5973
+ options.apply_defaults timeout: @config.timeout,
5974
+ metadata: @config.metadata,
5975
+ retry_policy: @config.retry_policy
5976
+
5977
+ @net_app_stub.call_rpc :create_quota_rule, request, options: options do |response, operation|
5978
+ response = ::Gapic::Operation.new response, @operations_client, options: options
5979
+ yield response, operation if block_given?
5980
+ throw :response, response
5981
+ end
5982
+ rescue ::GRPC::BadStatus => e
5983
+ raise ::Google::Cloud::Error.from_error(e)
5984
+ end
5985
+
5986
+ ##
5987
+ # Updates a quota rule.
5988
+ #
5989
+ # @overload update_quota_rule(request, options = nil)
5990
+ # Pass arguments to `update_quota_rule` via a request object, either of type
5991
+ # {::Google::Cloud::NetApp::V1::UpdateQuotaRuleRequest} or an equivalent Hash.
5992
+ #
5993
+ # @param request [::Google::Cloud::NetApp::V1::UpdateQuotaRuleRequest, ::Hash]
5994
+ # A request object representing the call parameters. Required. To specify no
5995
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5996
+ # @param options [::Gapic::CallOptions, ::Hash]
5997
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5998
+ #
5999
+ # @overload update_quota_rule(update_mask: nil, quota_rule: nil)
6000
+ # Pass arguments to `update_quota_rule` via keyword arguments. Note that at
6001
+ # least one keyword argument is required. To specify no parameters, or to keep all
6002
+ # the default parameter values, pass an empty Hash as a request object (see above).
6003
+ #
6004
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
6005
+ # Optional. Field mask is used to specify the fields to be overwritten in the
6006
+ # Quota Rule resource by the update.
6007
+ # The fields specified in the update_mask are relative to the resource, not
6008
+ # the full request. A field will be overwritten if it is in the mask. If the
6009
+ # user does not provide a mask then all fields will be overwritten.
6010
+ # @param quota_rule [::Google::Cloud::NetApp::V1::QuotaRule, ::Hash]
6011
+ # Required. The quota rule being updated
6012
+ #
6013
+ # @yield [response, operation] Access the result along with the RPC operation
6014
+ # @yieldparam response [::Gapic::Operation]
6015
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6016
+ #
6017
+ # @return [::Gapic::Operation]
6018
+ #
6019
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6020
+ #
6021
+ # @example Basic example
6022
+ # require "google/cloud/netapp/v1"
6023
+ #
6024
+ # # Create a client object. The client can be reused for multiple calls.
6025
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
6026
+ #
6027
+ # # Create a request. To set request fields, pass in keyword arguments.
6028
+ # request = Google::Cloud::NetApp::V1::UpdateQuotaRuleRequest.new
6029
+ #
6030
+ # # Call the update_quota_rule method.
6031
+ # result = client.update_quota_rule request
6032
+ #
6033
+ # # The returned object is of type Gapic::Operation. You can use it to
6034
+ # # check the status of an operation, cancel it, or wait for results.
6035
+ # # Here is how to wait for a response.
6036
+ # result.wait_until_done! timeout: 60
6037
+ # if result.response?
6038
+ # p result.response
6039
+ # else
6040
+ # puts "No response received."
6041
+ # end
6042
+ #
6043
+ def update_quota_rule request, options = nil
6044
+ raise ::ArgumentError, "request must be provided" if request.nil?
6045
+
6046
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::UpdateQuotaRuleRequest
6047
+
6048
+ # Converts hash and nil to an options object
6049
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6050
+
6051
+ # Customize the options with defaults
6052
+ metadata = @config.rpcs.update_quota_rule.metadata.to_h
6053
+
6054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6055
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6056
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6057
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
6058
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6059
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6060
+
6061
+ header_params = {}
6062
+ if request.quota_rule&.name
6063
+ header_params["quota_rule.name"] = request.quota_rule.name
6064
+ end
6065
+
6066
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6067
+ metadata[:"x-goog-request-params"] ||= request_params_header
6068
+
6069
+ options.apply_defaults timeout: @config.rpcs.update_quota_rule.timeout,
6070
+ metadata: metadata,
6071
+ retry_policy: @config.rpcs.update_quota_rule.retry_policy
6072
+
6073
+ options.apply_defaults timeout: @config.timeout,
6074
+ metadata: @config.metadata,
6075
+ retry_policy: @config.retry_policy
6076
+
6077
+ @net_app_stub.call_rpc :update_quota_rule, request, options: options do |response, operation|
6078
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6079
+ yield response, operation if block_given?
6080
+ throw :response, response
6081
+ end
6082
+ rescue ::GRPC::BadStatus => e
6083
+ raise ::Google::Cloud::Error.from_error(e)
6084
+ end
6085
+
6086
+ ##
6087
+ # Deletes a quota rule.
6088
+ #
6089
+ # @overload delete_quota_rule(request, options = nil)
6090
+ # Pass arguments to `delete_quota_rule` via a request object, either of type
6091
+ # {::Google::Cloud::NetApp::V1::DeleteQuotaRuleRequest} or an equivalent Hash.
6092
+ #
6093
+ # @param request [::Google::Cloud::NetApp::V1::DeleteQuotaRuleRequest, ::Hash]
6094
+ # A request object representing the call parameters. Required. To specify no
6095
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6096
+ # @param options [::Gapic::CallOptions, ::Hash]
6097
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6098
+ #
6099
+ # @overload delete_quota_rule(name: nil)
6100
+ # Pass arguments to `delete_quota_rule` via keyword arguments. Note that at
6101
+ # least one keyword argument is required. To specify no parameters, or to keep all
6102
+ # the default parameter values, pass an empty Hash as a request object (see above).
6103
+ #
6104
+ # @param name [::String]
6105
+ # Required. Name of the quota rule.
6106
+ #
6107
+ # @yield [response, operation] Access the result along with the RPC operation
6108
+ # @yieldparam response [::Gapic::Operation]
6109
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6110
+ #
6111
+ # @return [::Gapic::Operation]
6112
+ #
6113
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6114
+ #
6115
+ # @example Basic example
6116
+ # require "google/cloud/netapp/v1"
6117
+ #
6118
+ # # Create a client object. The client can be reused for multiple calls.
6119
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
6120
+ #
6121
+ # # Create a request. To set request fields, pass in keyword arguments.
6122
+ # request = Google::Cloud::NetApp::V1::DeleteQuotaRuleRequest.new
6123
+ #
6124
+ # # Call the delete_quota_rule method.
6125
+ # result = client.delete_quota_rule request
6126
+ #
6127
+ # # The returned object is of type Gapic::Operation. You can use it to
6128
+ # # check the status of an operation, cancel it, or wait for results.
6129
+ # # Here is how to wait for a response.
6130
+ # result.wait_until_done! timeout: 60
6131
+ # if result.response?
6132
+ # p result.response
6133
+ # else
6134
+ # puts "No response received."
6135
+ # end
6136
+ #
6137
+ def delete_quota_rule request, options = nil
6138
+ raise ::ArgumentError, "request must be provided" if request.nil?
6139
+
6140
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::DeleteQuotaRuleRequest
6141
+
6142
+ # Converts hash and nil to an options object
6143
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6144
+
6145
+ # Customize the options with defaults
6146
+ metadata = @config.rpcs.delete_quota_rule.metadata.to_h
6147
+
6148
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6149
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6150
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6151
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
6152
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6153
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6154
+
6155
+ header_params = {}
6156
+ if request.name
6157
+ header_params["name"] = request.name
6158
+ end
6159
+
6160
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6161
+ metadata[:"x-goog-request-params"] ||= request_params_header
6162
+
6163
+ options.apply_defaults timeout: @config.rpcs.delete_quota_rule.timeout,
6164
+ metadata: metadata,
6165
+ retry_policy: @config.rpcs.delete_quota_rule.retry_policy
6166
+
6167
+ options.apply_defaults timeout: @config.timeout,
6168
+ metadata: @config.metadata,
6169
+ retry_policy: @config.retry_policy
6170
+
6171
+ @net_app_stub.call_rpc :delete_quota_rule, request, options: options do |response, operation|
6172
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6173
+ yield response, operation if block_given?
6174
+ throw :response, response
6175
+ end
6176
+ rescue ::GRPC::BadStatus => e
6177
+ raise ::Google::Cloud::Error.from_error(e)
6178
+ end
6179
+
5700
6180
  ##
5701
6181
  # Configuration class for the NetApp API.
5702
6182
  #
@@ -6138,6 +6618,31 @@ module Google
6138
6618
  # @return [::Gapic::Config::Method]
6139
6619
  #
6140
6620
  attr_reader :delete_backup_policy
6621
+ ##
6622
+ # RPC-specific configuration for `list_quota_rules`
6623
+ # @return [::Gapic::Config::Method]
6624
+ #
6625
+ attr_reader :list_quota_rules
6626
+ ##
6627
+ # RPC-specific configuration for `get_quota_rule`
6628
+ # @return [::Gapic::Config::Method]
6629
+ #
6630
+ attr_reader :get_quota_rule
6631
+ ##
6632
+ # RPC-specific configuration for `create_quota_rule`
6633
+ # @return [::Gapic::Config::Method]
6634
+ #
6635
+ attr_reader :create_quota_rule
6636
+ ##
6637
+ # RPC-specific configuration for `update_quota_rule`
6638
+ # @return [::Gapic::Config::Method]
6639
+ #
6640
+ attr_reader :update_quota_rule
6641
+ ##
6642
+ # RPC-specific configuration for `delete_quota_rule`
6643
+ # @return [::Gapic::Config::Method]
6644
+ #
6645
+ attr_reader :delete_quota_rule
6141
6646
 
6142
6647
  # @private
6143
6648
  def initialize parent_rpcs = nil
@@ -6251,6 +6756,16 @@ module Google
6251
6756
  @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
6252
6757
  delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
6253
6758
  @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config
6759
+ list_quota_rules_config = parent_rpcs.list_quota_rules if parent_rpcs.respond_to? :list_quota_rules
6760
+ @list_quota_rules = ::Gapic::Config::Method.new list_quota_rules_config
6761
+ get_quota_rule_config = parent_rpcs.get_quota_rule if parent_rpcs.respond_to? :get_quota_rule
6762
+ @get_quota_rule = ::Gapic::Config::Method.new get_quota_rule_config
6763
+ create_quota_rule_config = parent_rpcs.create_quota_rule if parent_rpcs.respond_to? :create_quota_rule
6764
+ @create_quota_rule = ::Gapic::Config::Method.new create_quota_rule_config
6765
+ update_quota_rule_config = parent_rpcs.update_quota_rule if parent_rpcs.respond_to? :update_quota_rule
6766
+ @update_quota_rule = ::Gapic::Config::Method.new update_quota_rule_config
6767
+ delete_quota_rule_config = parent_rpcs.delete_quota_rule if parent_rpcs.respond_to? :delete_quota_rule
6768
+ @delete_quota_rule = ::Gapic::Config::Method.new delete_quota_rule_config
6254
6769
 
6255
6770
  yield self if block_given?
6256
6771
  end
@@ -155,6 +155,27 @@ module Google
155
155
  "projects/#{project}/global/networks/#{network}"
156
156
  end
157
157
 
158
+ ##
159
+ # Create a fully-qualified QuotaRule resource string.
160
+ #
161
+ # The resource will be in the following format:
162
+ #
163
+ # `projects/{project}/locations/{location}/volumes/{volume}/quotaRules/{quota_rule}`
164
+ #
165
+ # @param project [String]
166
+ # @param location [String]
167
+ # @param volume [String]
168
+ # @param quota_rule [String]
169
+ #
170
+ # @return [::String]
171
+ def quota_rule_path project:, location:, volume:, quota_rule:
172
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
173
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
174
+ raise ::ArgumentError, "volume cannot contain /" if volume.to_s.include? "/"
175
+
176
+ "projects/#{project}/locations/#{location}/volumes/#{volume}/quotaRules/#{quota_rule}"
177
+ end
178
+
158
179
  ##
159
180
  # Create a fully-qualified Replication resource string.
160
181
  #