Interface DiagnosticSettingsClient

    • Method Detail

      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<DiagnosticSettingsResourceInner>> getWithResponseAsync​(String resourceUri,
                                                                                                      String name)
        Gets the active diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        Returns:
        the active diagnostic settings for the specified 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.
      • getAsync

        Mono<DiagnosticSettingsResourceInner> getAsync​(String resourceUri,
                                                       String name)
        Gets the active diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        Returns:
        the active diagnostic settings for the specified 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.
      • get

        DiagnosticSettingsResourceInner get​(String resourceUri,
                                            String name)
        Gets the active diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        Returns:
        the active diagnostic settings for the specified 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.
      • getWithResponse

        com.azure.core.http.rest.Response<DiagnosticSettingsResourceInner> getWithResponse​(String resourceUri,
                                                                                           String name,
                                                                                           com.azure.core.util.Context context)
        Gets the active diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        context - The context to associate with this operation.
        Returns:
        the active diagnostic settings for the specified 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.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<DiagnosticSettingsResourceInner>> createOrUpdateWithResponseAsync​(String resourceUri,
                                                                                                                 String name,
                                                                                                                 DiagnosticSettingsResourceInner parameters)
        Creates or updates diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        parameters - Parameters supplied to the operation.
        Returns:
        the diagnostic setting 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<DiagnosticSettingsResourceInner> createOrUpdateAsync​(String resourceUri,
                                                                  String name,
                                                                  DiagnosticSettingsResourceInner parameters)
        Creates or updates diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        parameters - Parameters supplied to the operation.
        Returns:
        the diagnostic setting 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

        DiagnosticSettingsResourceInner createOrUpdate​(String resourceUri,
                                                       String name,
                                                       DiagnosticSettingsResourceInner parameters)
        Creates or updates diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        parameters - Parameters supplied to the operation.
        Returns:
        the diagnostic setting 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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<DiagnosticSettingsResourceInner> createOrUpdateWithResponse​(String resourceUri,
                                                                                                      String name,
                                                                                                      DiagnosticSettingsResourceInner parameters,
                                                                                                      com.azure.core.util.Context context)
        Creates or updates diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        parameters - Parameters supplied to the operation.
        context - The context to associate with this operation.
        Returns:
        the diagnostic setting 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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync​(String resourceUri,
                                                                              String name)
        Deletes existing diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        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 resourceUri,
                               String name)
        Deletes existing diagnostic settings for the specified resource.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        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 resourceUri,
                    String name)
        Deletes existing diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        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.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Void> deleteWithResponse​(String resourceUri,
                                                                   String name,
                                                                   com.azure.core.util.Context context)
        Deletes existing diagnostic settings for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        name - The name of the diagnostic setting.
        context - The context to associate with this operation.
        Returns:
        the 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.
      • listWithResponseAsync

        Mono<com.azure.core.http.rest.Response<DiagnosticSettingsResourceCollectionInner>> listWithResponseAsync​(String resourceUri)
        Gets the active diagnostic settings list for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        Returns:
        the active diagnostic settings list for the specified 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.
      • listAsync

        Mono<DiagnosticSettingsResourceCollectionInner> listAsync​(String resourceUri)
        Gets the active diagnostic settings list for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        Returns:
        the active diagnostic settings list for the specified 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.
      • list

        DiagnosticSettingsResourceCollectionInner list​(String resourceUri)
        Gets the active diagnostic settings list for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        Returns:
        the active diagnostic settings list for the specified 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.
      • listWithResponse

        com.azure.core.http.rest.Response<DiagnosticSettingsResourceCollectionInner> listWithResponse​(String resourceUri,
                                                                                                      com.azure.core.util.Context context)
        Gets the active diagnostic settings list for the specified resource.
        Parameters:
        resourceUri - The identifier of the resource.
        context - The context to associate with this operation.
        Returns:
        the active diagnostic settings list for the specified 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.