Interface NetworkSecurityGroupsClient

    • Method Detail

      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String networkSecurityGroupName)
        Deletes the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String resourceGroupName,
                                                                                                                               String networkSecurityGroupName)
        Deletes the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String networkSecurityGroupName)
        Deletes the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String networkSecurityGroupName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String networkSecurityGroupName)
        Deletes the specified network security group.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String networkSecurityGroupName)
        Deletes the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String networkSecurityGroupName,
                    com.azure.core.util.Context context)
        Deletes the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<NetworkSecurityGroupInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                               String networkSecurityGroupName,
                                                                                                               String expand)
        Gets the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        expand - Expands referenced resources.
        Returns:
        the specified network security group along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<NetworkSecurityGroupInner> getByResourceGroupAsync​(String resourceGroupName,
                                                                String networkSecurityGroupName,
                                                                String expand)
        Gets the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        expand - Expands referenced resources.
        Returns:
        the specified network security group on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<NetworkSecurityGroupInner> getByResourceGroupAsync​(String resourceGroupName,
                                                                String networkSecurityGroupName)
        Gets the specified network security group.
        Specified by:
        getByResourceGroupAsync in interface InnerSupportsGet<NetworkSecurityGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        Returns:
        the specified network security group on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroup

        NetworkSecurityGroupInner getByResourceGroup​(String resourceGroupName,
                                                     String networkSecurityGroupName)
        Gets the specified network security group.
        Specified by:
        getByResourceGroup in interface InnerSupportsGet<NetworkSecurityGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        Returns:
        the specified network security group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<NetworkSecurityGroupInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                    String networkSecurityGroupName,
                                                                                                    String expand,
                                                                                                    com.azure.core.util.Context context)
        Gets the specified network security group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        expand - Expands referenced resources.
        context - The context to associate with this operation.
        Returns:
        the specified network security group along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String networkSecurityGroupName,
                                                                                                  NetworkSecurityGroupInner parameters)
        Creates or updates a network security group in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to the create or update network security group operation.
        Returns:
        networkSecurityGroup resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<NetworkSecurityGroupInner>,​NetworkSecurityGroupInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                                 String networkSecurityGroupName,
                                                                                                                                                                                 NetworkSecurityGroupInner parameters)
        Creates or updates a network security group in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to the create or update network security group operation.
        Returns:
        the PollerFlux for polling of networkSecurityGroup resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkSecurityGroupInner>,​NetworkSecurityGroupInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                            String networkSecurityGroupName,
                                                                                                                                                                            NetworkSecurityGroupInner parameters)
        Creates or updates a network security group in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to the create or update network security group operation.
        Returns:
        the SyncPoller for polling of networkSecurityGroup resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkSecurityGroupInner>,​NetworkSecurityGroupInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                            String networkSecurityGroupName,
                                                                                                                                                                            NetworkSecurityGroupInner parameters,
                                                                                                                                                                            com.azure.core.util.Context context)
        Creates or updates a network security group in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to the create or update network security group operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of networkSecurityGroup resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<NetworkSecurityGroupInner> createOrUpdateAsync​(String resourceGroupName,
                                                            String networkSecurityGroupName,
                                                            NetworkSecurityGroupInner parameters)
        Creates or updates a network security group in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to the create or update network security group operation.
        Returns:
        networkSecurityGroup resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        NetworkSecurityGroupInner createOrUpdate​(String resourceGroupName,
                                                 String networkSecurityGroupName,
                                                 NetworkSecurityGroupInner parameters)
        Creates or updates a network security group in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to the create or update network security group operation.
        Returns:
        networkSecurityGroup resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        NetworkSecurityGroupInner createOrUpdate​(String resourceGroupName,
                                                 String networkSecurityGroupName,
                                                 NetworkSecurityGroupInner parameters,
                                                 com.azure.core.util.Context context)
        Creates or updates a network security group in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to the create or update network security group operation.
        context - The context to associate with this operation.
        Returns:
        networkSecurityGroup resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTagsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<NetworkSecurityGroupInner>> updateTagsWithResponseAsync​(String resourceGroupName,
                                                                                                       String networkSecurityGroupName,
                                                                                                       TagsObject parameters)
        Updates a network security group tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to update network security group tags.
        Returns:
        networkSecurityGroup resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTagsAsync

        Mono<NetworkSecurityGroupInner> updateTagsAsync​(String resourceGroupName,
                                                        String networkSecurityGroupName,
                                                        TagsObject parameters)
        Updates a network security group tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to update network security group tags.
        Returns:
        networkSecurityGroup resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTags

        NetworkSecurityGroupInner updateTags​(String resourceGroupName,
                                             String networkSecurityGroupName,
                                             TagsObject parameters)
        Updates a network security group tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to update network security group tags.
        Returns:
        networkSecurityGroup resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateTagsWithResponse

        com.azure.core.http.rest.Response<NetworkSecurityGroupInner> updateTagsWithResponse​(String resourceGroupName,
                                                                                            String networkSecurityGroupName,
                                                                                            TagsObject parameters,
                                                                                            com.azure.core.util.Context context)
        Updates a network security group tags.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkSecurityGroupName - The name of the network security group.
        parameters - Parameters supplied to update network security group tags.
        context - The context to associate with this operation.
        Returns:
        networkSecurityGroup resource along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAsync

        com.azure.core.http.rest.PagedFlux<NetworkSecurityGroupInner> listAsync()
        Gets all network security groups in a subscription.
        Specified by:
        listAsync in interface InnerSupportsListing<NetworkSecurityGroupInner>
        Returns:
        all network security groups in a subscription as paginated response with PagedFlux.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> list()
        Gets all network security groups in a subscription.
        Specified by:
        list in interface InnerSupportsListing<NetworkSecurityGroupInner>
        Returns:
        all network security groups in a subscription as paginated response with PagedIterable.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> list​(com.azure.core.util.Context context)
        Gets all network security groups in a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        all network security groups in a subscription as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<NetworkSecurityGroupInner> listByResourceGroupAsync​(String resourceGroupName)
        Gets all network security groups in a resource group.
        Specified by:
        listByResourceGroupAsync in interface InnerSupportsListing<NetworkSecurityGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        all network security groups in a resource group as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> listByResourceGroup​(String resourceGroupName)
        Gets all network security groups in a resource group.
        Specified by:
        listByResourceGroup in interface InnerSupportsListing<NetworkSecurityGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        all network security groups in a resource group as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> listByResourceGroup​(String resourceGroupName,
                                                                                              com.azure.core.util.Context context)
        Gets all network security groups in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        all network security groups in a resource group as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.