google-cloud-netapp-v1 2.9.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.
@@ -1530,6 +1530,106 @@ module Google
1530
1530
  raise ::Google::Cloud::Error.from_error(e)
1531
1531
  end
1532
1532
 
1533
+ ##
1534
+ # Establish volume peering. This is used to establish cluster and svm
1535
+ # peerings between the GCNV and OnPrem clusters.
1536
+ #
1537
+ # @overload establish_volume_peering(request, options = nil)
1538
+ # Pass arguments to `establish_volume_peering` via a request object, either of type
1539
+ # {::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest} or an equivalent Hash.
1540
+ #
1541
+ # @param request [::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest, ::Hash]
1542
+ # A request object representing the call parameters. Required. To specify no
1543
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1544
+ # @param options [::Gapic::CallOptions, ::Hash]
1545
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1546
+ #
1547
+ # @overload establish_volume_peering(name: nil, peer_cluster_name: nil, peer_svm_name: nil, peer_ip_addresses: nil, peer_volume_name: nil)
1548
+ # Pass arguments to `establish_volume_peering` via keyword arguments. Note that at
1549
+ # least one keyword argument is required. To specify no parameters, or to keep all
1550
+ # the default parameter values, pass an empty Hash as a request object (see above).
1551
+ #
1552
+ # @param name [::String]
1553
+ # Required. The volume resource name, in the format
1554
+ # `projects/{project_id}/locations/{location}/volumes/{volume_id}`
1555
+ # @param peer_cluster_name [::String]
1556
+ # Required. Name of the user's local source cluster to be peered with the
1557
+ # destination cluster.
1558
+ # @param peer_svm_name [::String]
1559
+ # Required. Name of the user's local source vserver svm to be peered with the
1560
+ # destination vserver svm.
1561
+ # @param peer_ip_addresses [::Array<::String>]
1562
+ # Optional. List of IPv4 ip addresses to be used for peering.
1563
+ # @param peer_volume_name [::String]
1564
+ # Required. Name of the user's local source volume to be peered with the
1565
+ # destination volume.
1566
+ # @yield [result, operation] Access the result along with the TransportOperation object
1567
+ # @yieldparam result [::Gapic::Operation]
1568
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1569
+ #
1570
+ # @return [::Gapic::Operation]
1571
+ #
1572
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1573
+ #
1574
+ # @example Basic example
1575
+ # require "google/cloud/netapp/v1"
1576
+ #
1577
+ # # Create a client object. The client can be reused for multiple calls.
1578
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
1579
+ #
1580
+ # # Create a request. To set request fields, pass in keyword arguments.
1581
+ # request = Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new
1582
+ #
1583
+ # # Call the establish_volume_peering method.
1584
+ # result = client.establish_volume_peering request
1585
+ #
1586
+ # # The returned object is of type Gapic::Operation. You can use it to
1587
+ # # check the status of an operation, cancel it, or wait for results.
1588
+ # # Here is how to wait for a response.
1589
+ # result.wait_until_done! timeout: 60
1590
+ # if result.response?
1591
+ # p result.response
1592
+ # else
1593
+ # puts "No response received."
1594
+ # end
1595
+ #
1596
+ def establish_volume_peering request, options = nil
1597
+ raise ::ArgumentError, "request must be provided" if request.nil?
1598
+
1599
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest
1600
+
1601
+ # Converts hash and nil to an options object
1602
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1603
+
1604
+ # Customize the options with defaults
1605
+ call_metadata = @config.rpcs.establish_volume_peering.metadata.to_h
1606
+
1607
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1608
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1609
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1610
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
1611
+ transports_version_send: [:rest]
1612
+
1613
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1614
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1615
+
1616
+ options.apply_defaults timeout: @config.rpcs.establish_volume_peering.timeout,
1617
+ metadata: call_metadata,
1618
+ retry_policy: @config.rpcs.establish_volume_peering.retry_policy
1619
+
1620
+ options.apply_defaults timeout: @config.timeout,
1621
+ metadata: @config.metadata,
1622
+ retry_policy: @config.retry_policy
1623
+
1624
+ @net_app_stub.establish_volume_peering request, options do |result, operation|
1625
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1626
+ yield result, operation if block_given?
1627
+ throw :response, result
1628
+ end
1629
+ rescue ::Gapic::Rest::Error => e
1630
+ raise ::Google::Cloud::Error.from_error(e)
1631
+ end
1632
+
1533
1633
  ##
1534
1634
  # Returns descriptions of all snapshots for a volume.
1535
1635
  #
@@ -6297,6 +6397,362 @@ module Google
6297
6397
  raise ::Google::Cloud::Error.from_error(e)
6298
6398
  end
6299
6399
 
6400
+ ##
6401
+ # `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
6402
+ # `StoragePool` cluster.
6403
+ #
6404
+ # @overload execute_ontap_post(request, options = nil)
6405
+ # Pass arguments to `execute_ontap_post` via a request object, either of type
6406
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest} or an equivalent Hash.
6407
+ #
6408
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest, ::Hash]
6409
+ # A request object representing the call parameters. Required. To specify no
6410
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6411
+ # @param options [::Gapic::CallOptions, ::Hash]
6412
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6413
+ #
6414
+ # @overload execute_ontap_post(body: nil, ontap_path: nil)
6415
+ # Pass arguments to `execute_ontap_post` via keyword arguments. Note that at
6416
+ # least one keyword argument is required. To specify no parameters, or to keep all
6417
+ # the default parameter values, pass an empty Hash as a request object (see above).
6418
+ #
6419
+ # @param body [::Google::Protobuf::Struct, ::Hash]
6420
+ # Required. The raw `JSON` body of the request.
6421
+ # The body should be in the format of the ONTAP resource.
6422
+ # For example:
6423
+ # ```
6424
+ # {
6425
+ # "body": {
6426
+ # "field1": "value1",
6427
+ # "field2": "value2",
6428
+ # }
6429
+ # }
6430
+ # ```
6431
+ # @param ontap_path [::String]
6432
+ # Required. The resource path of the ONTAP resource.
6433
+ # Format:
6434
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
6435
+ # For example:
6436
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
6437
+ # @yield [result, operation] Access the result along with the TransportOperation object
6438
+ # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse]
6439
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6440
+ #
6441
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse]
6442
+ #
6443
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6444
+ #
6445
+ # @example Basic example
6446
+ # require "google/cloud/netapp/v1"
6447
+ #
6448
+ # # Create a client object. The client can be reused for multiple calls.
6449
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
6450
+ #
6451
+ # # Create a request. To set request fields, pass in keyword arguments.
6452
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new
6453
+ #
6454
+ # # Call the execute_ontap_post method.
6455
+ # result = client.execute_ontap_post request
6456
+ #
6457
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPostResponse.
6458
+ # p result
6459
+ #
6460
+ def execute_ontap_post request, options = nil
6461
+ raise ::ArgumentError, "request must be provided" if request.nil?
6462
+
6463
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest
6464
+
6465
+ # Converts hash and nil to an options object
6466
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6467
+
6468
+ # Customize the options with defaults
6469
+ call_metadata = @config.rpcs.execute_ontap_post.metadata.to_h
6470
+
6471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6472
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6473
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6474
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
6475
+ transports_version_send: [:rest]
6476
+
6477
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6478
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6479
+
6480
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_post.timeout,
6481
+ metadata: call_metadata,
6482
+ retry_policy: @config.rpcs.execute_ontap_post.retry_policy
6483
+
6484
+ options.apply_defaults timeout: @config.timeout,
6485
+ metadata: @config.metadata,
6486
+ retry_policy: @config.retry_policy
6487
+
6488
+ @net_app_stub.execute_ontap_post request, options do |result, operation|
6489
+ yield result, operation if block_given?
6490
+ end
6491
+ rescue ::Gapic::Rest::Error => e
6492
+ raise ::Google::Cloud::Error.from_error(e)
6493
+ end
6494
+
6495
+ ##
6496
+ # `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
6497
+ # `StoragePool` cluster.
6498
+ #
6499
+ # @overload execute_ontap_get(request, options = nil)
6500
+ # Pass arguments to `execute_ontap_get` via a request object, either of type
6501
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest} or an equivalent Hash.
6502
+ #
6503
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest, ::Hash]
6504
+ # A request object representing the call parameters. Required. To specify no
6505
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6506
+ # @param options [::Gapic::CallOptions, ::Hash]
6507
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6508
+ #
6509
+ # @overload execute_ontap_get(ontap_path: nil)
6510
+ # Pass arguments to `execute_ontap_get` via keyword arguments. Note that at
6511
+ # least one keyword argument is required. To specify no parameters, or to keep all
6512
+ # the default parameter values, pass an empty Hash as a request object (see above).
6513
+ #
6514
+ # @param ontap_path [::String]
6515
+ # Required. The resource path of the ONTAP resource.
6516
+ # Format:
6517
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
6518
+ # For example:
6519
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
6520
+ # @yield [result, operation] Access the result along with the TransportOperation object
6521
+ # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse]
6522
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6523
+ #
6524
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse]
6525
+ #
6526
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6527
+ #
6528
+ # @example Basic example
6529
+ # require "google/cloud/netapp/v1"
6530
+ #
6531
+ # # Create a client object. The client can be reused for multiple calls.
6532
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
6533
+ #
6534
+ # # Create a request. To set request fields, pass in keyword arguments.
6535
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new
6536
+ #
6537
+ # # Call the execute_ontap_get method.
6538
+ # result = client.execute_ontap_get request
6539
+ #
6540
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapGetResponse.
6541
+ # p result
6542
+ #
6543
+ def execute_ontap_get request, options = nil
6544
+ raise ::ArgumentError, "request must be provided" if request.nil?
6545
+
6546
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest
6547
+
6548
+ # Converts hash and nil to an options object
6549
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6550
+
6551
+ # Customize the options with defaults
6552
+ call_metadata = @config.rpcs.execute_ontap_get.metadata.to_h
6553
+
6554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6555
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6556
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6557
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
6558
+ transports_version_send: [:rest]
6559
+
6560
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6561
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6562
+
6563
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_get.timeout,
6564
+ metadata: call_metadata,
6565
+ retry_policy: @config.rpcs.execute_ontap_get.retry_policy
6566
+
6567
+ options.apply_defaults timeout: @config.timeout,
6568
+ metadata: @config.metadata,
6569
+ retry_policy: @config.retry_policy
6570
+
6571
+ @net_app_stub.execute_ontap_get request, options do |result, operation|
6572
+ yield result, operation if block_given?
6573
+ end
6574
+ rescue ::Gapic::Rest::Error => e
6575
+ raise ::Google::Cloud::Error.from_error(e)
6576
+ end
6577
+
6578
+ ##
6579
+ # `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
6580
+ # `StoragePool` cluster.
6581
+ #
6582
+ # @overload execute_ontap_delete(request, options = nil)
6583
+ # Pass arguments to `execute_ontap_delete` via a request object, either of type
6584
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest} or an equivalent Hash.
6585
+ #
6586
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest, ::Hash]
6587
+ # A request object representing the call parameters. Required. To specify no
6588
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6589
+ # @param options [::Gapic::CallOptions, ::Hash]
6590
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6591
+ #
6592
+ # @overload execute_ontap_delete(ontap_path: nil)
6593
+ # Pass arguments to `execute_ontap_delete` via keyword arguments. Note that at
6594
+ # least one keyword argument is required. To specify no parameters, or to keep all
6595
+ # the default parameter values, pass an empty Hash as a request object (see above).
6596
+ #
6597
+ # @param ontap_path [::String]
6598
+ # Required. The resource path of the ONTAP resource.
6599
+ # Format:
6600
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
6601
+ # For example:
6602
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
6603
+ # @yield [result, operation] Access the result along with the TransportOperation object
6604
+ # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse]
6605
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6606
+ #
6607
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse]
6608
+ #
6609
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6610
+ #
6611
+ # @example Basic example
6612
+ # require "google/cloud/netapp/v1"
6613
+ #
6614
+ # # Create a client object. The client can be reused for multiple calls.
6615
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
6616
+ #
6617
+ # # Create a request. To set request fields, pass in keyword arguments.
6618
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new
6619
+ #
6620
+ # # Call the execute_ontap_delete method.
6621
+ # result = client.execute_ontap_delete request
6622
+ #
6623
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse.
6624
+ # p result
6625
+ #
6626
+ def execute_ontap_delete request, options = nil
6627
+ raise ::ArgumentError, "request must be provided" if request.nil?
6628
+
6629
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest
6630
+
6631
+ # Converts hash and nil to an options object
6632
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6633
+
6634
+ # Customize the options with defaults
6635
+ call_metadata = @config.rpcs.execute_ontap_delete.metadata.to_h
6636
+
6637
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6638
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6639
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6640
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
6641
+ transports_version_send: [:rest]
6642
+
6643
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6644
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6645
+
6646
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_delete.timeout,
6647
+ metadata: call_metadata,
6648
+ retry_policy: @config.rpcs.execute_ontap_delete.retry_policy
6649
+
6650
+ options.apply_defaults timeout: @config.timeout,
6651
+ metadata: @config.metadata,
6652
+ retry_policy: @config.retry_policy
6653
+
6654
+ @net_app_stub.execute_ontap_delete request, options do |result, operation|
6655
+ yield result, operation if block_given?
6656
+ end
6657
+ rescue ::Gapic::Rest::Error => e
6658
+ raise ::Google::Cloud::Error.from_error(e)
6659
+ end
6660
+
6661
+ ##
6662
+ # `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
6663
+ # `StoragePool` cluster.
6664
+ #
6665
+ # @overload execute_ontap_patch(request, options = nil)
6666
+ # Pass arguments to `execute_ontap_patch` via a request object, either of type
6667
+ # {::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest} or an equivalent Hash.
6668
+ #
6669
+ # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest, ::Hash]
6670
+ # A request object representing the call parameters. Required. To specify no
6671
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6672
+ # @param options [::Gapic::CallOptions, ::Hash]
6673
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6674
+ #
6675
+ # @overload execute_ontap_patch(body: nil, ontap_path: nil)
6676
+ # Pass arguments to `execute_ontap_patch` via keyword arguments. Note that at
6677
+ # least one keyword argument is required. To specify no parameters, or to keep all
6678
+ # the default parameter values, pass an empty Hash as a request object (see above).
6679
+ #
6680
+ # @param body [::Google::Protobuf::Struct, ::Hash]
6681
+ # Required. The raw `JSON` body of the request.
6682
+ # The body should be in the format of the ONTAP resource.
6683
+ # For example:
6684
+ # ```
6685
+ # {
6686
+ # "body": {
6687
+ # "field1": "value1",
6688
+ # "field2": "value2",
6689
+ # }
6690
+ # }
6691
+ # ```
6692
+ # @param ontap_path [::String]
6693
+ # Required. The resource path of the ONTAP resource.
6694
+ # Format:
6695
+ # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
6696
+ # For example:
6697
+ # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
6698
+ # @yield [result, operation] Access the result along with the TransportOperation object
6699
+ # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse]
6700
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6701
+ #
6702
+ # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse]
6703
+ #
6704
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6705
+ #
6706
+ # @example Basic example
6707
+ # require "google/cloud/netapp/v1"
6708
+ #
6709
+ # # Create a client object. The client can be reused for multiple calls.
6710
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
6711
+ #
6712
+ # # Create a request. To set request fields, pass in keyword arguments.
6713
+ # request = Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new
6714
+ #
6715
+ # # Call the execute_ontap_patch method.
6716
+ # result = client.execute_ontap_patch request
6717
+ #
6718
+ # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse.
6719
+ # p result
6720
+ #
6721
+ def execute_ontap_patch request, options = nil
6722
+ raise ::ArgumentError, "request must be provided" if request.nil?
6723
+
6724
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest
6725
+
6726
+ # Converts hash and nil to an options object
6727
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6728
+
6729
+ # Customize the options with defaults
6730
+ call_metadata = @config.rpcs.execute_ontap_patch.metadata.to_h
6731
+
6732
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6733
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6734
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6735
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
6736
+ transports_version_send: [:rest]
6737
+
6738
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6739
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6740
+
6741
+ options.apply_defaults timeout: @config.rpcs.execute_ontap_patch.timeout,
6742
+ metadata: call_metadata,
6743
+ retry_policy: @config.rpcs.execute_ontap_patch.retry_policy
6744
+
6745
+ options.apply_defaults timeout: @config.timeout,
6746
+ metadata: @config.metadata,
6747
+ retry_policy: @config.retry_policy
6748
+
6749
+ @net_app_stub.execute_ontap_patch request, options do |result, operation|
6750
+ yield result, operation if block_given?
6751
+ end
6752
+ rescue ::Gapic::Rest::Error => e
6753
+ raise ::Google::Cloud::Error.from_error(e)
6754
+ end
6755
+
6300
6756
  ##
6301
6757
  # Configuration class for the NetApp REST API.
6302
6758
  #
@@ -6516,6 +6972,11 @@ module Google
6516
6972
  #
6517
6973
  attr_reader :revert_volume
6518
6974
  ##
6975
+ # RPC-specific configuration for `establish_volume_peering`
6976
+ # @return [::Gapic::Config::Method]
6977
+ #
6978
+ attr_reader :establish_volume_peering
6979
+ ##
6519
6980
  # RPC-specific configuration for `list_snapshots`
6520
6981
  # @return [::Gapic::Config::Method]
6521
6982
  #
@@ -6780,6 +7241,26 @@ module Google
6780
7241
  # @return [::Gapic::Config::Method]
6781
7242
  #
6782
7243
  attr_reader :delete_host_group
7244
+ ##
7245
+ # RPC-specific configuration for `execute_ontap_post`
7246
+ # @return [::Gapic::Config::Method]
7247
+ #
7248
+ attr_reader :execute_ontap_post
7249
+ ##
7250
+ # RPC-specific configuration for `execute_ontap_get`
7251
+ # @return [::Gapic::Config::Method]
7252
+ #
7253
+ attr_reader :execute_ontap_get
7254
+ ##
7255
+ # RPC-specific configuration for `execute_ontap_delete`
7256
+ # @return [::Gapic::Config::Method]
7257
+ #
7258
+ attr_reader :execute_ontap_delete
7259
+ ##
7260
+ # RPC-specific configuration for `execute_ontap_patch`
7261
+ # @return [::Gapic::Config::Method]
7262
+ #
7263
+ attr_reader :execute_ontap_patch
6783
7264
 
6784
7265
  # @private
6785
7266
  def initialize parent_rpcs = nil
@@ -6809,6 +7290,8 @@ module Google
6809
7290
  @delete_volume = ::Gapic::Config::Method.new delete_volume_config
6810
7291
  revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
6811
7292
  @revert_volume = ::Gapic::Config::Method.new revert_volume_config
7293
+ establish_volume_peering_config = parent_rpcs.establish_volume_peering if parent_rpcs.respond_to? :establish_volume_peering
7294
+ @establish_volume_peering = ::Gapic::Config::Method.new establish_volume_peering_config
6812
7295
  list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
6813
7296
  @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
6814
7297
  get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
@@ -6915,6 +7398,14 @@ module Google
6915
7398
  @update_host_group = ::Gapic::Config::Method.new update_host_group_config
6916
7399
  delete_host_group_config = parent_rpcs.delete_host_group if parent_rpcs.respond_to? :delete_host_group
6917
7400
  @delete_host_group = ::Gapic::Config::Method.new delete_host_group_config
7401
+ execute_ontap_post_config = parent_rpcs.execute_ontap_post if parent_rpcs.respond_to? :execute_ontap_post
7402
+ @execute_ontap_post = ::Gapic::Config::Method.new execute_ontap_post_config
7403
+ execute_ontap_get_config = parent_rpcs.execute_ontap_get if parent_rpcs.respond_to? :execute_ontap_get
7404
+ @execute_ontap_get = ::Gapic::Config::Method.new execute_ontap_get_config
7405
+ execute_ontap_delete_config = parent_rpcs.execute_ontap_delete if parent_rpcs.respond_to? :execute_ontap_delete
7406
+ @execute_ontap_delete = ::Gapic::Config::Method.new execute_ontap_delete_config
7407
+ execute_ontap_patch_config = parent_rpcs.execute_ontap_patch if parent_rpcs.respond_to? :execute_ontap_patch
7408
+ @execute_ontap_patch = ::Gapic::Config::Method.new execute_ontap_patch_config
6918
7409
 
6919
7410
  yield self if block_given?
6920
7411
  end