Python2Package class
Class representing a Python2Package.
Constructors
| Python2Package(Automation | 
	Create a Python2Package.  | 
Methods
Constructor Details
		Python2Package(AutomationClientContext)
	  
	Create a Python2Package.
new Python2Package(client: AutomationClientContext)
				Parameters
- client
 - AutomationClientContext
 
Reference to the service client.
Method Details
		createOrUpdate(string, string, string, PythonPackageCreateParameters, RequestOptionsBase)
	      
	Create or Update the python 2 package identified by package name.
function createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageCreateParameters, options?: RequestOptionsBase): Promise<Python2PackageCreateOrUpdateResponse>
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The name of python package.
- parameters
 - PythonPackageCreateParameters
 
The create or update parameters for python package.
- options
 - RequestOptionsBase
 
The optional parameters
Returns
Promise<Python2PackageCreateOrUpdateResponse>
Promise<Models.Python2PackageCreateOrUpdateResponse>
		createOrUpdate(string, string, string, PythonPackageCreateParameters, RequestOptionsBase, ServiceCallback<Module>)
	       
	function createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageCreateParameters, options: RequestOptionsBase, callback: ServiceCallback<Module>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The name of python package.
- parameters
 - PythonPackageCreateParameters
 
The create or update parameters for python package.
- options
 - RequestOptionsBase
 
The optional parameters
- callback
 
The callback
		createOrUpdate(string, string, string, PythonPackageCreateParameters, ServiceCallback<Module>)
	     
	function createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageCreateParameters, callback: ServiceCallback<Module>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The name of python package.
- parameters
 - PythonPackageCreateParameters
 
The create or update parameters for python package.
- callback
 
The callback
		deleteMethod(string, string, string, RequestOptionsBase)
	   
	Delete the python 2 package by name.
function deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, options?: RequestOptionsBase): Promise<RestResponse>
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The python package name.
- options
 - RequestOptionsBase
 
The optional parameters
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
		deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
	    
	function deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The python package name.
- options
 - RequestOptionsBase
 
The optional parameters
- callback
 - 
				
ServiceCallback<void>
 
The callback
		deleteMethod(string, string, string, ServiceCallback<void>)
	  
	function deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, callback: ServiceCallback<void>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The python package name.
- callback
 - 
				
ServiceCallback<void>
 
The callback
		get(string, string, string, RequestOptionsBase)
	  
	Retrieve the python 2 package identified by package name.
function get(resourceGroupName: string, automationAccountName: string, packageName: string, options?: RequestOptionsBase): Promise<Python2PackageGetResponse>
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The python package name.
- options
 - RequestOptionsBase
 
The optional parameters
Returns
Promise<Python2PackageGetResponse>
Promise<Models.Python2PackageGetResponse>
		get(string, string, string, RequestOptionsBase, ServiceCallback<Module>)
	   
	function get(resourceGroupName: string, automationAccountName: string, packageName: string, options: RequestOptionsBase, callback: ServiceCallback<Module>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The python package name.
- options
 - RequestOptionsBase
 
The optional parameters
- callback
 
The callback
		get(string, string, string, ServiceCallback<Module>)
	 
	function get(resourceGroupName: string, automationAccountName: string, packageName: string, callback: ServiceCallback<Module>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The python package name.
- callback
 
The callback
		listByAutomationAccount(string, string, RequestOptionsBase)
	    
	Retrieve a list of python 2 packages.
function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: RequestOptionsBase): Promise<Python2PackageListByAutomationAccountResponse>
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- options
 - RequestOptionsBase
 
The optional parameters
Returns
Promise<Models.Python2PackageListByAutomationAccountResponse>
		listByAutomationAccount(string, string, RequestOptionsBase, ServiceCallback<ModuleListResult>)
	       
	function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: RequestOptionsBase, callback: ServiceCallback<ModuleListResult>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- options
 - RequestOptionsBase
 
The optional parameters
- callback
 
The callback
		listByAutomationAccount(string, string, ServiceCallback<ModuleListResult>)
	     
	function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback<ModuleListResult>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- callback
 
The callback
		listByAutomationAccountNext(string, RequestOptionsBase)
	     
	Retrieve a list of python 2 packages.
function listByAutomationAccountNext(nextPageLink: string, options?: RequestOptionsBase): Promise<Python2PackageListByAutomationAccountNextResponse>
				Parameters
- nextPageLink
 - 
				
string
 
The NextLink from the previous successful call to List operation.
- options
 - RequestOptionsBase
 
The optional parameters
Returns
Promise<Models.Python2PackageListByAutomationAccountNextResponse>
		listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<ModuleListResult>)
	        
	function listByAutomationAccountNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ModuleListResult>)
				Parameters
- nextPageLink
 - 
				
string
 
The NextLink from the previous successful call to List operation.
- options
 - RequestOptionsBase
 
The optional parameters
- callback
 
The callback
		listByAutomationAccountNext(string, ServiceCallback<ModuleListResult>)
	      
	function listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback<ModuleListResult>)
				Parameters
- nextPageLink
 - 
				
string
 
The NextLink from the previous successful call to List operation.
- callback
 
The callback
		update(string, string, string, PythonPackageUpdateParameters, RequestOptionsBase)
	     
	Update the python 2 package identified by package name.
function update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageUpdateParameters, options?: RequestOptionsBase): Promise<Python2PackageUpdateResponse>
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The name of python package.
- parameters
 - PythonPackageUpdateParameters
 
The update parameters for python package.
- options
 - RequestOptionsBase
 
The optional parameters
Returns
Promise<Python2PackageUpdateResponse>
Promise<Models.Python2PackageUpdateResponse>
		update(string, string, string, PythonPackageUpdateParameters, RequestOptionsBase, ServiceCallback<Module>)
	      
	function update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<Module>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The name of python package.
- parameters
 - PythonPackageUpdateParameters
 
The update parameters for python package.
- options
 - RequestOptionsBase
 
The optional parameters
- callback
 
The callback
		update(string, string, string, PythonPackageUpdateParameters, ServiceCallback<Module>)
	    
	function update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageUpdateParameters, callback: ServiceCallback<Module>)
				Parameters
- resourceGroupName
 - 
				
string
 
Name of an Azure Resource group.
- automationAccountName
 - 
				
string
 
The name of the automation account.
- packageName
 - 
				
string
 
The name of python package.
- parameters
 - PythonPackageUpdateParameters
 
The update parameters for python package.
- callback
 
The callback