Interface PrivateLinkScopesClient

    • Method Detail

      • list

        com.azure.core.http.rest.PagedIterable<AzureMonitorPrivateLinkScopeInner> list()
        Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.
        Specified by:
        list in interface InnerSupportsListing<AzureMonitorPrivateLinkScopeInner>
        Returns:
        a list of all Azure Monitor PrivateLinkScopes within a subscription.
        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<AzureMonitorPrivateLinkScopeInner> list​(com.azure.core.util.Context context)
        Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        a list of all Azure Monitor PrivateLinkScopes within a subscription.
        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<AzureMonitorPrivateLinkScopeInner> listByResourceGroup​(String resourceGroupName,
                                                                                                      com.azure.core.util.Context context)
        Gets a list of Azure Monitor PrivateLinkScopes within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        a list of Azure Monitor PrivateLinkScopes within a resource 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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String scopeName)
        Deletes a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        Returns:
        the completion.
        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 scopeName)
        Deletes a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        Returns:
        the completion.
        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 scopeName)
        Deletes a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        Returns:
        the completion.
        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 scopeName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        context - The context to associate with this operation.
        Returns:
        the completion.
        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 scopeName)
        Deletes a Azure Monitor PrivateLinkScope.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        Returns:
        the completion.
        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 scopeName)
        Deletes a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope 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.
      • delete

        void delete​(String resourceGroupName,
                    String scopeName,
                    com.azure.core.util.Context context)
        Deletes a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        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<AzureMonitorPrivateLinkScopeInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                                       String scopeName)
        Returns a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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<AzureMonitorPrivateLinkScopeInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                            String scopeName,
                                                                                                            com.azure.core.util.Context context)
        Returns a Azure Monitor PrivateLinkScope.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        context - The context to associate with this operation.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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<AzureMonitorPrivateLinkScopeInner>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                                   String scopeName,
                                                                                                                   AzureMonitorPrivateLinkScopeInner azureMonitorPrivateLinkScopePayload)
        Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        azureMonitorPrivateLinkScopePayload - Properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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<AzureMonitorPrivateLinkScopeInner> createOrUpdateAsync​(String resourceGroupName,
                                                                    String scopeName,
                                                                    AzureMonitorPrivateLinkScopeInner azureMonitorPrivateLinkScopePayload)
        Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        azureMonitorPrivateLinkScopePayload - Properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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

        AzureMonitorPrivateLinkScopeInner createOrUpdate​(String resourceGroupName,
                                                         String scopeName,
                                                         AzureMonitorPrivateLinkScopeInner azureMonitorPrivateLinkScopePayload)
        Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        azureMonitorPrivateLinkScopePayload - Properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<AzureMonitorPrivateLinkScopeInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                                        String scopeName,
                                                                                                        AzureMonitorPrivateLinkScopeInner azureMonitorPrivateLinkScopePayload,
                                                                                                        com.azure.core.util.Context context)
        Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        azureMonitorPrivateLinkScopePayload - Properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.
        context - The context to associate with this operation.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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<AzureMonitorPrivateLinkScopeInner>> updateTagsWithResponseAsync​(String resourceGroupName,
                                                                                                               String scopeName,
                                                                                                               Map<String,​String> tags)
        Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        tags - Resource tags.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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<AzureMonitorPrivateLinkScopeInner> updateTagsAsync​(String resourceGroupName,
                                                                String scopeName,
                                                                Map<String,​String> tags)
        Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        tags - Resource tags.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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<AzureMonitorPrivateLinkScopeInner> updateTagsAsync​(String resourceGroupName,
                                                                String scopeName)
        Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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

        AzureMonitorPrivateLinkScopeInner updateTags​(String resourceGroupName,
                                                     String scopeName)
        Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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<AzureMonitorPrivateLinkScopeInner> updateTagsWithResponse​(String resourceGroupName,
                                                                                                    String scopeName,
                                                                                                    Map<String,​String> tags,
                                                                                                    com.azure.core.util.Context context)
        Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
        Parameters:
        resourceGroupName - The name of the resource group.
        scopeName - The name of the Azure Monitor PrivateLinkScope resource.
        tags - Resource tags.
        context - The context to associate with this operation.
        Returns:
        an Azure Monitor PrivateLinkScope definition.
        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.