Interface Python2Packages
public interface Python2Packages
Resource collection API of Python2Packages.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Module resource.void
Delete the python 2 package by name.void
deleteById
(String id) Delete the python 2 package by name.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete the python 2 package by name.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String automationAccountName, String packageName, com.azure.core.util.Context context) Delete the python 2 package by name.Retrieve the python 2 package identified by package name.Retrieve the python 2 package identified by package name.com.azure.core.http.rest.Response<Module>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Retrieve the python 2 package identified by package name.com.azure.core.http.rest.Response<Module>
getWithResponse
(String resourceGroupName, String automationAccountName, String packageName, com.azure.core.util.Context context) Retrieve the python 2 package identified by package name.com.azure.core.http.rest.PagedIterable<Module>
listByAutomationAccount
(String resourceGroupName, String automationAccountName) Retrieve a list of python 2 packages.com.azure.core.http.rest.PagedIterable<Module>
listByAutomationAccount
(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context) Retrieve a list of python 2 packages.
-
Method Details
-
delete
Delete the python 2 package by name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.packageName
- The python package name.- 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 resourceGroupName, String automationAccountName, String packageName, com.azure.core.util.Context context) Delete the python 2 package by name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.packageName
- The python package name.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.
-
get
Retrieve the python 2 package identified by package name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.packageName
- The python package name.- Returns:
- definition of the module type.
- 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<Module> getWithResponse(String resourceGroupName, String automationAccountName, String packageName, com.azure.core.util.Context context) Retrieve the python 2 package identified by package name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.packageName
- The python package name.context
- The context to associate with this operation.- Returns:
- definition of the module type 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<Module> listByAutomationAccount(String resourceGroupName, String automationAccountName) Retrieve a list of python 2 packages.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.- Returns:
- the response model for the list module operation 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<Module> listByAutomationAccount(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context) Retrieve a list of python 2 packages.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.context
- The context to associate with this operation.- Returns:
- the response model for the list module operation 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.
-
getById
Retrieve the python 2 package identified by package name.- Parameters:
id
- the resource ID.- Returns:
- definition of the module type 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Module> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieve the python 2 package identified by package name.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- definition of the module type 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.
-
deleteById
Delete the python 2 package by name.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete the python 2 package by name.- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new Module resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Module definition.
-