# NetApp V1 API - Class Google::Cloud::NetApp::V1::ExecuteOntapPostRequest (v2.11.0)

2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.2 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.

Request message for `ExecuteOntapPost` API.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #body

    def body() -> ::Google::Protobuf::Struct

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Struct)) --- Required. The raw `JSON` body of the request. The body should be in the format of the ONTAP resource. For example: `
  {
  "body": {
  "field1": "value1",
  "field2": "value2",
  }
  }
  `

### #body=

    def body=(value) -> ::Google::Protobuf::Struct

**Parameter**

- **value** ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Struct)) --- Required. The raw `JSON` body of the request. The body should be in the format of the ONTAP resource. For example: `
  {
  "body": {
  "field1": "value1",
  "field2": "value2",
  }
  }
  `
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Struct)) --- Required. The raw `JSON` body of the request. The body should be in the format of the ONTAP resource. For example: `
  {
  "body": {
  "field1": "value1",
  "field2": "value2",
  }
  }
  `

### #ontap_path

    def ontap_path() -> ::String

**Returns**

- (::String) --- Required. The resource path of the ONTAP resource. Format: `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. For example: `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.

### #ontap_path=

    def ontap_path=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource path of the ONTAP resource. Format: `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. For example: `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
**Returns**

- (::String) --- Required. The resource path of the ONTAP resource. Format: `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. For example: `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.