google-cloud-netapp-v1 2.8.0 → 2.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/netapp/v1/active_directory_pb.rb +2 -25
  3. data/lib/google/cloud/netapp/v1/backup_pb.rb +2 -25
  4. data/lib/google/cloud/netapp/v1/backup_policy_pb.rb +2 -25
  5. data/lib/google/cloud/netapp/v1/backup_vault_pb.rb +2 -25
  6. data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +4 -25
  7. data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +15 -0
  8. data/lib/google/cloud/netapp/v1/common_pb.rb +3 -24
  9. data/lib/google/cloud/netapp/v1/host_group_pb.rb +2 -25
  10. data/lib/google/cloud/netapp/v1/kms_pb.rb +2 -25
  11. data/lib/google/cloud/netapp/v1/netapp/client.rb +526 -0
  12. data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +491 -0
  13. data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +308 -0
  14. data/lib/google/cloud/netapp/v1/ontap_pb.rb +31 -0
  15. data/lib/google/cloud/netapp/v1/quota_rule_pb.rb +2 -25
  16. data/lib/google/cloud/netapp/v1/replication_pb.rb +2 -28
  17. data/lib/google/cloud/netapp/v1/snapshot_pb.rb +2 -25
  18. data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +4 -26
  19. data/lib/google/cloud/netapp/v1/version.rb +1 -1
  20. data/lib/google/cloud/netapp/v1/volume_pb.rb +5 -26
  21. data/proto_docs/google/api/client.rb +145 -29
  22. data/proto_docs/google/cloud/netapp/v1/backup.rb +1 -0
  23. data/proto_docs/google/cloud/netapp/v1/common.rb +0 -3
  24. data/proto_docs/google/cloud/netapp/v1/ontap.rb +140 -0
  25. data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +20 -3
  26. data/proto_docs/google/cloud/netapp/v1/volume.rb +53 -1
  27. data/proto_docs/google/protobuf/struct.rb +108 -0
  28. metadata +5 -2
@@ -1627,6 +1627,113 @@ module Google
1627
1627
  raise ::Google::Cloud::Error.from_error(e)
1628
1628
  end
1629
1629
 
1630
+ ##
1631
+ # Establish volume peering. This is used to establish cluster and svm
1632
+ # peerings between the GCNV and OnPrem clusters.
1633
+ #
1634
+ # @overload establish_volume_peering(request, options = nil)
1635
+ # Pass arguments to `establish_volume_peering` via a request object, either of type
1636
+ # {::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest} or an equivalent Hash.
1637
+ #
1638
+ # @param request [::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest, ::Hash]
1639
+ # A request object representing the call parameters. Required. To specify no
1640
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1641
+ # @param options [::Gapic::CallOptions, ::Hash]
1642
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1643
+ #
1644
+ # @overload establish_volume_peering(name: nil, peer_cluster_name: nil, peer_svm_name: nil, peer_ip_addresses: nil, peer_volume_name: nil)
1645
+ # Pass arguments to `establish_volume_peering` via keyword arguments. Note that at
1646
+ # least one keyword argument is required. To specify no parameters, or to keep all
1647
+ # the default parameter values, pass an empty Hash as a request object (see above).
1648
+ #
1649
+ # @param name [::String]
1650
+ # Required. The volume resource name, in the format
1651
+ # `projects/{project_id}/locations/{location}/volumes/{volume_id}`
1652
+ # @param peer_cluster_name [::String]
1653
+ # Required. Name of the user's local source cluster to be peered with the
1654
+ # destination cluster.
1655
+ # @param peer_svm_name [::String]
1656
+ # Required. Name of the user's local source vserver svm to be peered with the
1657
+ # destination vserver svm.
1658
+ # @param peer_ip_addresses [::Array<::String>]
1659
+ # Optional. List of IPv4 ip addresses to be used for peering.
1660
+ # @param peer_volume_name [::String]
1661
+ # Required. Name of the user's local source volume to be peered with the
1662
+ # destination volume.
1663
+ #
1664
+ # @yield [response, operation] Access the result along with the RPC operation
1665
+ # @yieldparam response [::Gapic::Operation]
1666
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1667
+ #
1668
+ # @return [::Gapic::Operation]
1669
+ #
1670
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1671
+ #
1672
+ # @example Basic example
1673
+ # require "google/cloud/netapp/v1"
1674
+ #
1675
+ # # Create a client object. The client can be reused for multiple calls.
1676
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
1677
+ #
1678
+ # # Create a request. To set request fields, pass in keyword arguments.
1679
+ # request = Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new
1680
+ #
1681
+ # # Call the establish_volume_peering method.
1682
+ # result = client.establish_volume_peering request
1683
+ #
1684
+ # # The returned object is of type Gapic::Operation. You can use it to
1685
+ # # check the status of an operation, cancel it, or wait for results.
1686
+ # # Here is how to wait for a response.
1687
+ # result.wait_until_done! timeout: 60
1688
+ # if result.response?
1689
+ # p result.response
1690
+ # else
1691
+ # puts "No response received."
1692
+ # end
1693
+ #
1694
+ def establish_volume_peering request, options = nil
1695
+ raise ::ArgumentError, "request must be provided" if request.nil?
1696
+
1697
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest
1698
+
1699
+ # Converts hash and nil to an options object
1700
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1701
+
1702
+ # Customize the options with defaults
1703
+ metadata = @config.rpcs.establish_volume_peering.metadata.to_h
1704
+
1705
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1706
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1707
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1708
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1709
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1710
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1711
+
1712
+ header_params = {}
1713
+ if request.name
1714
+ header_params["name"] = request.name
1715
+ end
1716
+
1717
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1718
+ metadata[:"x-goog-request-params"] ||= request_params_header
1719
+
1720
+ options.apply_defaults timeout: @config.rpcs.establish_volume_peering.timeout,
1721
+ metadata: metadata,
1722
+ retry_policy: @config.rpcs.establish_volume_peering.retry_policy
1723
+
1724
+ options.apply_defaults timeout: @config.timeout,
1725
+ metadata: @config.metadata,
1726
+ retry_policy: @config.retry_policy
1727
+
1728
+ @net_app_stub.call_rpc :establish_volume_peering, request, options: options do |response, operation|
1729
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1730
+ yield response, operation if block_given?
1731
+ throw :response, response
1732
+ end
1733
+ rescue ::GRPC::BadStatus => e
1734
+ raise ::Google::Cloud::Error.from_error(e)
1735
+ end
1736
+
1630
1737
  ##
1631
1738
  # Returns descriptions of all snapshots for a volume.
1632
1739
  #
@@ -6765,6 +6872,390 @@ module Google
6765
6872
  raise ::Google::Cloud::Error.from_error(e)
6766
6873
  end
6767
6874
 
6875
+ ##
6876
+ # `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
6877
+ # `StoragePool` cluster.
6878
+ #
6879
+ # @overload execute_ontap_post(request, options = nil)
6880
+ # Pass arguments to `execute_ontap_post` via a request object, either of type
6881
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest} or an equivalent Hash.
6882
+ #
6883
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest, ::Hash]
6884
+ # A request object representing the call parameters. Required. To specify no
6885
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6886
+ # @param options [::Gapic::CallOptions, ::Hash]
6887
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6888
+ #
6889
+ # @overload execute_ontap_post(body: nil, ontap_path: nil)
6890
+ # Pass arguments to `execute_ontap_post` via keyword arguments. Note that at
6891
+ # least one keyword argument is required. To specify no parameters, or to keep all
6892
+ # the default parameter values, pass an empty Hash as a request object (see above).
6893
+ #
6894
+ # @param body [::Google::Protobuf::Struct, ::Hash]
6895
+ # Required. The raw `JSON` body of the request.
6896
+ # The body should be in the format of the ONTAP resource.
6897
+ # For example:
6898
+ # ```
6899
+ # {
6900
+ # "body": {
6901
+ # "field1": "value1",
6902
+ # "field2": "value2",
6903
+ # }
6904
+ # }
6905
+ # ```
6906
+ # @param ontap_path [::String]
6907
+ # Required. The resource path of the ONTAP resource.
6908
+ # Format:
6909
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
6910
+ # For example:
6911
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
6912
+ #
6913
+ # @yield [response, operation] Access the result along with the RPC operation
6914
+ # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse]
6915
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6916
+ #
6917
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse]
6918
+ #
6919
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6920
+ #
6921
+ # @example Basic example
6922
+ # require "google/cloud/netapp/v1"
6923
+ #
6924
+ # # Create a client object. The client can be reused for multiple calls.
6925
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
6926
+ #
6927
+ # # Create a request. To set request fields, pass in keyword arguments.
6928
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new
6929
+ #
6930
+ # # Call the execute_ontap_post method.
6931
+ # result = client.execute_ontap_post request
6932
+ #
6933
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPostResponse.
6934
+ # p result
6935
+ #
6936
+ def execute_ontap_post request, options = nil
6937
+ raise ::ArgumentError, "request must be provided" if request.nil?
6938
+
6939
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest
6940
+
6941
+ # Converts hash and nil to an options object
6942
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6943
+
6944
+ # Customize the options with defaults
6945
+ metadata = @config.rpcs.execute_ontap_post.metadata.to_h
6946
+
6947
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6948
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6949
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6950
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
6951
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6952
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6953
+
6954
+ header_params = {}
6955
+ if request.ontap_path
6956
+ header_params["ontap_path"] = request.ontap_path
6957
+ end
6958
+
6959
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6960
+ metadata[:"x-goog-request-params"] ||= request_params_header
6961
+
6962
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_post.timeout,
6963
+ metadata: metadata,
6964
+ retry_policy: @config.rpcs.execute_ontap_post.retry_policy
6965
+
6966
+ options.apply_defaults timeout: @config.timeout,
6967
+ metadata: @config.metadata,
6968
+ retry_policy: @config.retry_policy
6969
+
6970
+ @net_app_stub.call_rpc :execute_ontap_post, request, options: options do |response, operation|
6971
+ yield response, operation if block_given?
6972
+ end
6973
+ rescue ::GRPC::BadStatus => e
6974
+ raise ::Google::Cloud::Error.from_error(e)
6975
+ end
6976
+
6977
+ ##
6978
+ # `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
6979
+ # `StoragePool` cluster.
6980
+ #
6981
+ # @overload execute_ontap_get(request, options = nil)
6982
+ # Pass arguments to `execute_ontap_get` via a request object, either of type
6983
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest} or an equivalent Hash.
6984
+ #
6985
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest, ::Hash]
6986
+ # A request object representing the call parameters. Required. To specify no
6987
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6988
+ # @param options [::Gapic::CallOptions, ::Hash]
6989
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6990
+ #
6991
+ # @overload execute_ontap_get(ontap_path: nil)
6992
+ # Pass arguments to `execute_ontap_get` via keyword arguments. Note that at
6993
+ # least one keyword argument is required. To specify no parameters, or to keep all
6994
+ # the default parameter values, pass an empty Hash as a request object (see above).
6995
+ #
6996
+ # @param ontap_path [::String]
6997
+ # Required. The resource path of the ONTAP resource.
6998
+ # Format:
6999
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
7000
+ # For example:
7001
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
7002
+ #
7003
+ # @yield [response, operation] Access the result along with the RPC operation
7004
+ # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse]
7005
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7006
+ #
7007
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse]
7008
+ #
7009
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7010
+ #
7011
+ # @example Basic example
7012
+ # require "google/cloud/netapp/v1"
7013
+ #
7014
+ # # Create a client object. The client can be reused for multiple calls.
7015
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
7016
+ #
7017
+ # # Create a request. To set request fields, pass in keyword arguments.
7018
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new
7019
+ #
7020
+ # # Call the execute_ontap_get method.
7021
+ # result = client.execute_ontap_get request
7022
+ #
7023
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapGetResponse.
7024
+ # p result
7025
+ #
7026
+ def execute_ontap_get request, options = nil
7027
+ raise ::ArgumentError, "request must be provided" if request.nil?
7028
+
7029
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest
7030
+
7031
+ # Converts hash and nil to an options object
7032
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7033
+
7034
+ # Customize the options with defaults
7035
+ metadata = @config.rpcs.execute_ontap_get.metadata.to_h
7036
+
7037
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7038
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7039
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7040
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
7041
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7042
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7043
+
7044
+ header_params = {}
7045
+ if request.ontap_path
7046
+ header_params["ontap_path"] = request.ontap_path
7047
+ end
7048
+
7049
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7050
+ metadata[:"x-goog-request-params"] ||= request_params_header
7051
+
7052
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_get.timeout,
7053
+ metadata: metadata,
7054
+ retry_policy: @config.rpcs.execute_ontap_get.retry_policy
7055
+
7056
+ options.apply_defaults timeout: @config.timeout,
7057
+ metadata: @config.metadata,
7058
+ retry_policy: @config.retry_policy
7059
+
7060
+ @net_app_stub.call_rpc :execute_ontap_get, request, options: options do |response, operation|
7061
+ yield response, operation if block_given?
7062
+ end
7063
+ rescue ::GRPC::BadStatus => e
7064
+ raise ::Google::Cloud::Error.from_error(e)
7065
+ end
7066
+
7067
+ ##
7068
+ # `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
7069
+ # `StoragePool` cluster.
7070
+ #
7071
+ # @overload execute_ontap_delete(request, options = nil)
7072
+ # Pass arguments to `execute_ontap_delete` via a request object, either of type
7073
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest} or an equivalent Hash.
7074
+ #
7075
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest, ::Hash]
7076
+ # A request object representing the call parameters. Required. To specify no
7077
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7078
+ # @param options [::Gapic::CallOptions, ::Hash]
7079
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7080
+ #
7081
+ # @overload execute_ontap_delete(ontap_path: nil)
7082
+ # Pass arguments to `execute_ontap_delete` via keyword arguments. Note that at
7083
+ # least one keyword argument is required. To specify no parameters, or to keep all
7084
+ # the default parameter values, pass an empty Hash as a request object (see above).
7085
+ #
7086
+ # @param ontap_path [::String]
7087
+ # Required. The resource path of the ONTAP resource.
7088
+ # Format:
7089
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
7090
+ # For example:
7091
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
7092
+ #
7093
+ # @yield [response, operation] Access the result along with the RPC operation
7094
+ # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse]
7095
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7096
+ #
7097
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse]
7098
+ #
7099
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7100
+ #
7101
+ # @example Basic example
7102
+ # require "google/cloud/netapp/v1"
7103
+ #
7104
+ # # Create a client object. The client can be reused for multiple calls.
7105
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
7106
+ #
7107
+ # # Create a request. To set request fields, pass in keyword arguments.
7108
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new
7109
+ #
7110
+ # # Call the execute_ontap_delete method.
7111
+ # result = client.execute_ontap_delete request
7112
+ #
7113
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse.
7114
+ # p result
7115
+ #
7116
+ def execute_ontap_delete request, options = nil
7117
+ raise ::ArgumentError, "request must be provided" if request.nil?
7118
+
7119
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest
7120
+
7121
+ # Converts hash and nil to an options object
7122
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7123
+
7124
+ # Customize the options with defaults
7125
+ metadata = @config.rpcs.execute_ontap_delete.metadata.to_h
7126
+
7127
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7128
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7129
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7130
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
7131
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7132
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7133
+
7134
+ header_params = {}
7135
+ if request.ontap_path
7136
+ header_params["ontap_path"] = request.ontap_path
7137
+ end
7138
+
7139
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7140
+ metadata[:"x-goog-request-params"] ||= request_params_header
7141
+
7142
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_delete.timeout,
7143
+ metadata: metadata,
7144
+ retry_policy: @config.rpcs.execute_ontap_delete.retry_policy
7145
+
7146
+ options.apply_defaults timeout: @config.timeout,
7147
+ metadata: @config.metadata,
7148
+ retry_policy: @config.retry_policy
7149
+
7150
+ @net_app_stub.call_rpc :execute_ontap_delete, request, options: options do |response, operation|
7151
+ yield response, operation if block_given?
7152
+ end
7153
+ rescue ::GRPC::BadStatus => e
7154
+ raise ::Google::Cloud::Error.from_error(e)
7155
+ end
7156
+
7157
+ ##
7158
+ # `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
7159
+ # `StoragePool` cluster.
7160
+ #
7161
+ # @overload execute_ontap_patch(request, options = nil)
7162
+ # Pass arguments to `execute_ontap_patch` via a request object, either of type
7163
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest} or an equivalent Hash.
7164
+ #
7165
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest, ::Hash]
7166
+ # A request object representing the call parameters. Required. To specify no
7167
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7168
+ # @param options [::Gapic::CallOptions, ::Hash]
7169
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7170
+ #
7171
+ # @overload execute_ontap_patch(body: nil, ontap_path: nil)
7172
+ # Pass arguments to `execute_ontap_patch` via keyword arguments. Note that at
7173
+ # least one keyword argument is required. To specify no parameters, or to keep all
7174
+ # the default parameter values, pass an empty Hash as a request object (see above).
7175
+ #
7176
+ # @param body [::Google::Protobuf::Struct, ::Hash]
7177
+ # Required. The raw `JSON` body of the request.
7178
+ # The body should be in the format of the ONTAP resource.
7179
+ # For example:
7180
+ # ```
7181
+ # {
7182
+ # "body": {
7183
+ # "field1": "value1",
7184
+ # "field2": "value2",
7185
+ # }
7186
+ # }
7187
+ # ```
7188
+ # @param ontap_path [::String]
7189
+ # Required. The resource path of the ONTAP resource.
7190
+ # Format:
7191
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
7192
+ # For example:
7193
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
7194
+ #
7195
+ # @yield [response, operation] Access the result along with the RPC operation
7196
+ # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse]
7197
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7198
+ #
7199
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse]
7200
+ #
7201
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7202
+ #
7203
+ # @example Basic example
7204
+ # require "google/cloud/netapp/v1"
7205
+ #
7206
+ # # Create a client object. The client can be reused for multiple calls.
7207
+ # client = Google::Cloud::NetApp::V1::NetApp::Client.new
7208
+ #
7209
+ # # Create a request. To set request fields, pass in keyword arguments.
7210
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new
7211
+ #
7212
+ # # Call the execute_ontap_patch method.
7213
+ # result = client.execute_ontap_patch request
7214
+ #
7215
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse.
7216
+ # p result
7217
+ #
7218
+ def execute_ontap_patch request, options = nil
7219
+ raise ::ArgumentError, "request must be provided" if request.nil?
7220
+
7221
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest
7222
+
7223
+ # Converts hash and nil to an options object
7224
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7225
+
7226
+ # Customize the options with defaults
7227
+ metadata = @config.rpcs.execute_ontap_patch.metadata.to_h
7228
+
7229
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7230
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7231
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7232
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION
7233
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7234
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7235
+
7236
+ header_params = {}
7237
+ if request.ontap_path
7238
+ header_params["ontap_path"] = request.ontap_path
7239
+ end
7240
+
7241
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7242
+ metadata[:"x-goog-request-params"] ||= request_params_header
7243
+
7244
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_patch.timeout,
7245
+ metadata: metadata,
7246
+ retry_policy: @config.rpcs.execute_ontap_patch.retry_policy
7247
+
7248
+ options.apply_defaults timeout: @config.timeout,
7249
+ metadata: @config.metadata,
7250
+ retry_policy: @config.retry_policy
7251
+
7252
+ @net_app_stub.call_rpc :execute_ontap_patch, request, options: options do |response, operation|
7253
+ yield response, operation if block_given?
7254
+ end
7255
+ rescue ::GRPC::BadStatus => e
7256
+ raise ::Google::Cloud::Error.from_error(e)
7257
+ end
7258
+
6768
7259
  ##
6769
7260
  # Configuration class for the NetApp API.
6770
7261
  #
@@ -7014,6 +7505,11 @@ module Google
7014
7505
  #
7015
7506
  attr_reader :revert_volume
7016
7507
  ##
7508
+ # RPC-specific configuration for `establish_volume_peering`
7509
+ # @return [::Gapic::Config::Method]
7510
+ #
7511
+ attr_reader :establish_volume_peering
7512
+ ##
7017
7513
  # RPC-specific configuration for `list_snapshots`
7018
7514
  # @return [::Gapic::Config::Method]
7019
7515
  #
@@ -7278,6 +7774,26 @@ module Google
7278
7774
  # @return [::Gapic::Config::Method]
7279
7775
  #
7280
7776
  attr_reader :delete_host_group
7777
+ ##
7778
+ # RPC-specific configuration for `execute_ontap_post`
7779
+ # @return [::Gapic::Config::Method]
7780
+ #
7781
+ attr_reader :execute_ontap_post
7782
+ ##
7783
+ # RPC-specific configuration for `execute_ontap_get`
7784
+ # @return [::Gapic::Config::Method]
7785
+ #
7786
+ attr_reader :execute_ontap_get
7787
+ ##
7788
+ # RPC-specific configuration for `execute_ontap_delete`
7789
+ # @return [::Gapic::Config::Method]
7790
+ #
7791
+ attr_reader :execute_ontap_delete
7792
+ ##
7793
+ # RPC-specific configuration for `execute_ontap_patch`
7794
+ # @return [::Gapic::Config::Method]
7795
+ #
7796
+ attr_reader :execute_ontap_patch
7281
7797
 
7282
7798
  # @private
7283
7799
  def initialize parent_rpcs = nil
@@ -7307,6 +7823,8 @@ module Google
7307
7823
  @delete_volume = ::Gapic::Config::Method.new delete_volume_config
7308
7824
  revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
7309
7825
  @revert_volume = ::Gapic::Config::Method.new revert_volume_config
7826
+ establish_volume_peering_config = parent_rpcs.establish_volume_peering if parent_rpcs.respond_to? :establish_volume_peering
7827
+ @establish_volume_peering = ::Gapic::Config::Method.new establish_volume_peering_config
7310
7828
  list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
7311
7829
  @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
7312
7830
  get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
@@ -7413,6 +7931,14 @@ module Google
7413
7931
  @update_host_group = ::Gapic::Config::Method.new update_host_group_config
7414
7932
  delete_host_group_config = parent_rpcs.delete_host_group if parent_rpcs.respond_to? :delete_host_group
7415
7933
  @delete_host_group = ::Gapic::Config::Method.new delete_host_group_config
7934
+ execute_ontap_post_config = parent_rpcs.execute_ontap_post if parent_rpcs.respond_to? :execute_ontap_post
7935
+ @execute_ontap_post = ::Gapic::Config::Method.new execute_ontap_post_config
7936
+ execute_ontap_get_config = parent_rpcs.execute_ontap_get if parent_rpcs.respond_to? :execute_ontap_get
7937
+ @execute_ontap_get = ::Gapic::Config::Method.new execute_ontap_get_config
7938
+ execute_ontap_delete_config = parent_rpcs.execute_ontap_delete if parent_rpcs.respond_to? :execute_ontap_delete
7939
+ @execute_ontap_delete = ::Gapic::Config::Method.new execute_ontap_delete_config
7940
+ execute_ontap_patch_config = parent_rpcs.execute_ontap_patch if parent_rpcs.respond_to? :execute_ontap_patch
7941
+ @execute_ontap_patch = ::Gapic::Config::Method.new execute_ontap_patch_config
7416
7942
 
7417
7943
  yield self if block_given?
7418
7944
  end