Class DraftsStub

  • All Implemented Interfaces:
    Drafts, DraftsTypes, com.vmware.vapi.bindings.Service

    public class DraftsStub
    extends com.vmware.vapi.internal.bindings.Stub
    implements Drafts
    Remote stub implementation of the Drafts API service.

    WARNING: Internal class, subject to change in future versions.

    • Field Summary

      • Fields inherited from class com.vmware.vapi.internal.bindings.Stub

        apiProvider, converter, ifaceId, retryPolicy, securityContext
    • Constructor Summary

      Constructors 
      Constructor Description
      DraftsStub​(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)  
      DraftsStub​(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String draftId)
      Delete a manual draft.
      void delete​(java.lang.String draftId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
      Delete a manual draft.
      void delete​(java.lang.String draftId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Delete a manual draft.
      void delete​(java.lang.String draftId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Delete a manual draft.
      PolicyDraft get​(java.lang.String draftId)
      Read a draft for a given draft identifier.
      void get​(java.lang.String draftId, com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback)
      Read a draft for a given draft identifier.
      void get​(java.lang.String draftId, com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Read a draft for a given draft identifier.
      PolicyDraft get​(java.lang.String draftId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Read a draft for a given draft identifier.
      PolicyDraftListResult list​(java.lang.Boolean autoDrafts, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy)
      List policy drafts.
      void list​(java.lang.Boolean autoDrafts, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraftListResult> asyncCallback)
      List policy drafts.
      void list​(java.lang.Boolean autoDrafts, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraftListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      List policy drafts.
      PolicyDraftListResult list​(java.lang.Boolean autoDrafts, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      List policy drafts.
      void patch​(java.lang.String draftId, PolicyDraft policyDraft)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      void patch​(java.lang.String draftId, PolicyDraft policyDraft, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      void patch​(java.lang.String draftId, PolicyDraft policyDraft, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      void patch​(java.lang.String draftId, PolicyDraft policyDraft, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      void publish​(java.lang.String draftId, Infra infra)
      Read a draft and publish it by applying changes onto current configuration.
      void publish​(java.lang.String draftId, Infra infra, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
      Read a draft and publish it by applying changes onto current configuration.
      void publish​(java.lang.String draftId, Infra infra, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Read a draft and publish it by applying changes onto current configuration.
      void publish​(java.lang.String draftId, Infra infra, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Read a draft and publish it by applying changes onto current configuration.
      PolicyDraft update​(java.lang.String draftId, PolicyDraft policyDraft)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      void update​(java.lang.String draftId, PolicyDraft policyDraft, com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      void update​(java.lang.String draftId, PolicyDraft policyDraft, com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      PolicyDraft update​(java.lang.String draftId, PolicyDraft policyDraft, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create a new manual draft if the specified draft id does not correspond to an existing draft.
      • Methods inherited from class com.vmware.vapi.internal.bindings.Stub

        invokeMethod, invokeMethodAsync, invokeStreamMethod, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DraftsStub

        public DraftsStub​(com.vmware.vapi.core.ApiProvider apiProvider,
                          com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
                          com.vmware.vapi.bindings.StubConfigurationBase config)
      • DraftsStub

        public DraftsStub​(com.vmware.vapi.core.ApiProvider apiProvider,
                          com.vmware.vapi.bindings.StubConfigurationBase config)
    • Method Detail

      • delete

        public void delete​(java.lang.String draftId)
        Description copied from interface: Drafts
        Delete a manual draft.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        delete in interface Drafts
        Parameters:
        draftId - (required)
      • delete

        public void delete​(java.lang.String draftId,
                           com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Delete a manual draft.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        delete in interface Drafts
        Parameters:
        draftId - (required)
        invocationConfig - Configuration for the method invocation.
      • delete

        public void delete​(java.lang.String draftId,
                           com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
        Description copied from interface: Drafts
        Delete a manual draft.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        delete in interface Drafts
        Parameters:
        draftId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • delete

        public void delete​(java.lang.String draftId,
                           com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
                           com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Delete a manual draft.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        delete in interface Drafts
        Parameters:
        draftId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • get

        public PolicyDraft get​(java.lang.String draftId)
        Description copied from interface: Drafts
        Read a draft for a given draft identifier.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        get in interface Drafts
        Parameters:
        draftId - (required)
        Returns:
        com.vmware.nsx_policy.model.PolicyDraft
      • get

        public PolicyDraft get​(java.lang.String draftId,
                               com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Read a draft for a given draft identifier.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        get in interface Drafts
        Parameters:
        draftId - (required)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.PolicyDraft
      • get

        public void get​(java.lang.String draftId,
                        com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback)
        Description copied from interface: Drafts
        Read a draft for a given draft identifier.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.PolicyDraft

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        get in interface Drafts
        Parameters:
        draftId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • get

        public void get​(java.lang.String draftId,
                        com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback,
                        com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Read a draft for a given draft identifier.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.PolicyDraft

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        get in interface Drafts
        Parameters:
        draftId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • list

        public PolicyDraftListResult list​(java.lang.Boolean autoDrafts,
                                          java.lang.String cursor,
                                          java.lang.Boolean includeMarkForDeleteObjects,
                                          java.lang.String includedFields,
                                          java.lang.Long pageSize,
                                          java.lang.Boolean sortAscending,
                                          java.lang.String sortBy)
        Description copied from interface: Drafts
        List policy drafts.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        list in interface Drafts
        Parameters:
        autoDrafts - Fetch list of draft based on is_auto_draft flag (optional)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        Returns:
        com.vmware.nsx_policy.model.PolicyDraftListResult
      • list

        public PolicyDraftListResult list​(java.lang.Boolean autoDrafts,
                                          java.lang.String cursor,
                                          java.lang.Boolean includeMarkForDeleteObjects,
                                          java.lang.String includedFields,
                                          java.lang.Long pageSize,
                                          java.lang.Boolean sortAscending,
                                          java.lang.String sortBy,
                                          com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        List policy drafts.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        list in interface Drafts
        Parameters:
        autoDrafts - Fetch list of draft based on is_auto_draft flag (optional)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.PolicyDraftListResult
      • list

        public void list​(java.lang.Boolean autoDrafts,
                         java.lang.String cursor,
                         java.lang.Boolean includeMarkForDeleteObjects,
                         java.lang.String includedFields,
                         java.lang.Long pageSize,
                         java.lang.Boolean sortAscending,
                         java.lang.String sortBy,
                         com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraftListResult> asyncCallback)
        Description copied from interface: Drafts
        List policy drafts.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.PolicyDraftListResult

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        list in interface Drafts
        Parameters:
        autoDrafts - Fetch list of draft based on is_auto_draft flag (optional)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • list

        public void list​(java.lang.Boolean autoDrafts,
                         java.lang.String cursor,
                         java.lang.Boolean includeMarkForDeleteObjects,
                         java.lang.String includedFields,
                         java.lang.Long pageSize,
                         java.lang.Boolean sortAscending,
                         java.lang.String sortBy,
                         com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraftListResult> asyncCallback,
                         com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        List policy drafts.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.PolicyDraftListResult

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        list in interface Drafts
        Parameters:
        autoDrafts - Fetch list of draft based on is_auto_draft flag (optional)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • patch

        public void patch​(java.lang.String draftId,
                          PolicyDraft policyDraft)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        patch in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
      • patch

        public void patch​(java.lang.String draftId,
                          PolicyDraft policyDraft,
                          com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        patch in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
        invocationConfig - Configuration for the method invocation.
      • patch

        public void patch​(java.lang.String draftId,
                          PolicyDraft policyDraft,
                          com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        patch in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • patch

        public void patch​(java.lang.String draftId,
                          PolicyDraft policyDraft,
                          com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
                          com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        patch in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • publish

        public void publish​(java.lang.String draftId,
                            Infra infra)
        Description copied from interface: Drafts
        Read a draft and publish it by applying changes onto current configuration. If there are additional changes on top of draft configuration, pass it as a request body, in form of Infra object. Otherwise, if there are no additional changes, then pass empty Infra object as a request body.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        publish in interface Drafts
        Parameters:
        draftId - (required)
        infra - (required)
      • publish

        public void publish​(java.lang.String draftId,
                            Infra infra,
                            com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Read a draft and publish it by applying changes onto current configuration. If there are additional changes on top of draft configuration, pass it as a request body, in form of Infra object. Otherwise, if there are no additional changes, then pass empty Infra object as a request body.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        publish in interface Drafts
        Parameters:
        draftId - (required)
        infra - (required)
        invocationConfig - Configuration for the method invocation.
      • publish

        public void publish​(java.lang.String draftId,
                            Infra infra,
                            com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
        Description copied from interface: Drafts
        Read a draft and publish it by applying changes onto current configuration. If there are additional changes on top of draft configuration, pass it as a request body, in form of Infra object. Otherwise, if there are no additional changes, then pass empty Infra object as a request body.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        publish in interface Drafts
        Parameters:
        draftId - (required)
        infra - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • publish

        public void publish​(java.lang.String draftId,
                            Infra infra,
                            com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
                            com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Read a draft and publish it by applying changes onto current configuration. If there are additional changes on top of draft configuration, pass it as a request body, in form of Infra object. Otherwise, if there are no additional changes, then pass empty Infra object as a request body.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        publish in interface Drafts
        Parameters:
        draftId - (required)
        infra - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • update

        public PolicyDraft update​(java.lang.String draftId,
                                  PolicyDraft policyDraft)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        update in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
        Returns:
        com.vmware.nsx_policy.model.PolicyDraft
      • update

        public PolicyDraft update​(java.lang.String draftId,
                                  PolicyDraft policyDraft,
                                  com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        update in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.PolicyDraft
      • update

        public void update​(java.lang.String draftId,
                           PolicyDraft policyDraft,
                           com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.PolicyDraft

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        update in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • update

        public void update​(java.lang.String draftId,
                           PolicyDraft policyDraft,
                           com.vmware.vapi.bindings.client.AsyncCallback<PolicyDraft> asyncCallback,
                           com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Drafts
        Create a new manual draft if the specified draft id does not correspond to an existing draft. Update the manual draft otherwise. Auto draft can not be updated.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.PolicyDraft

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        update in interface Drafts
        Parameters:
        draftId - (required)
        policyDraft - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.