Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions azure-mgmt-scheduler/azure/mgmt/scheduler/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
JobCollectionState,
RecurrenceFrequency,
JobActionType,
HttpAuthenticationType,
RetryType,
DayOfWeek,
JobScheduleDay,
Expand Down Expand Up @@ -94,7 +93,6 @@
'JobCollectionState',
'RecurrenceFrequency',
'JobActionType',
'HttpAuthenticationType',
'RetryType',
'DayOfWeek',
'JobScheduleDay',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,27 @@
class BasicAuthentication(HttpAuthentication):
"""BasicAuthentication.

:param type: Gets or sets the HTTP authentication type. Possible values
include: 'NotSpecified', 'ClientCertificate', 'ActiveDirectoryOAuth',
'Basic'
:type type: str or :class:`HttpAuthenticationType
<azure.mgmt.scheduler.models.HttpAuthenticationType>`
:param type: Constant filled by server.
:type type: str
:param username: Gets or sets the username.
:type username: str
:param password: Gets or sets the password, return value will always be
empty.
:type password: str
"""

_validation = {
'type': {'required': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'HttpAuthenticationType'},
'type': {'key': 'type', 'type': 'str'},
'username': {'key': 'username', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
}

def __init__(self, type=None, username=None, password=None):
super(BasicAuthentication, self).__init__(type=type)
def __init__(self, username=None, password=None):
super(BasicAuthentication, self).__init__()
self.username = username
self.password = password
self.type = 'Basic'
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
class ClientCertAuthentication(HttpAuthentication):
"""ClientCertAuthentication.

:param type: Gets or sets the HTTP authentication type. Possible values
include: 'NotSpecified', 'ClientCertificate', 'ActiveDirectoryOAuth',
'Basic'
:type type: str or :class:`HttpAuthenticationType
<azure.mgmt.scheduler.models.HttpAuthenticationType>`
:param type: Constant filled by server.
:type type: str
:param password: Gets or sets the certificate password, return value will
always be empty.
:type password: str
Expand All @@ -36,19 +33,24 @@ class ClientCertAuthentication(HttpAuthentication):
:type certificate_subject_name: str
"""

_validation = {
'type': {'required': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'HttpAuthenticationType'},
'type': {'key': 'type', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'pfx': {'key': 'pfx', 'type': 'str'},
'certificate_thumbprint': {'key': 'certificateThumbprint', 'type': 'str'},
'certificate_expiration_date': {'key': 'certificateExpirationDate', 'type': 'iso-8601'},
'certificate_subject_name': {'key': 'certificateSubjectName', 'type': 'str'},
}

def __init__(self, type=None, password=None, pfx=None, certificate_thumbprint=None, certificate_expiration_date=None, certificate_subject_name=None):
super(ClientCertAuthentication, self).__init__(type=type)
def __init__(self, password=None, pfx=None, certificate_thumbprint=None, certificate_expiration_date=None, certificate_subject_name=None):
super(ClientCertAuthentication, self).__init__()
self.password = password
self.pfx = pfx
self.certificate_thumbprint = certificate_thumbprint
self.certificate_expiration_date = certificate_expiration_date
self.certificate_subject_name = certificate_subject_name
self.type = 'ClientCertificate'
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,25 @@
class HttpAuthentication(Model):
"""HttpAuthentication.

:param type: Gets or sets the HTTP authentication type. Possible values
include: 'NotSpecified', 'ClientCertificate', 'ActiveDirectoryOAuth',
'Basic'
:type type: str or :class:`HttpAuthenticationType
<azure.mgmt.scheduler.models.HttpAuthenticationType>`
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ClientCertAuthentication, BasicAuthentication,
OAuthAuthentication

:param type: Constant filled by server.
:type type: str
"""

_validation = {
'type': {'required': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'HttpAuthenticationType'},
'type': {'key': 'type', 'type': 'str'},
}

_subtype_map = {
'type': {'ClientCertificate': 'ClientCertAuthentication', 'Basic': 'BasicAuthentication', 'ActiveDirectoryOAuth': 'OAuthAuthentication'}
}

def __init__(self, type=None):
self.type = type
def __init__(self):
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ class HttpRequest(Model):

:param authentication: Gets or sets the authentication method of the
request.
:type authentication: :class:`HttpAuthentication
<azure.mgmt.scheduler.models.HttpAuthentication>`
:type authentication: ~azure.mgmt.scheduler.models.HttpAuthentication
:param uri: Gets or sets the URI of the request.
:type uri: str
:param method: Gets or sets the method of the request.
:type method: str
:param body: Gets or sets the request body.
:type body: str
:param headers: Gets or sets the headers.
:type headers: dict
:type headers: dict[str, str]
"""

_attribute_map = {
Expand Down
23 changes: 9 additions & 14 deletions azure-mgmt-scheduler/azure/mgmt/scheduler/models/job_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,23 @@ class JobAction(Model):

:param type: Gets or sets the job action type. Possible values include:
'Http', 'Https', 'StorageQueue', 'ServiceBusQueue', 'ServiceBusTopic'
:type type: str or :class:`JobActionType
<azure.mgmt.scheduler.models.JobActionType>`
:type type: str or ~azure.mgmt.scheduler.models.JobActionType
:param request: Gets or sets the http requests.
:type request: :class:`HttpRequest
<azure.mgmt.scheduler.models.HttpRequest>`
:type request: ~azure.mgmt.scheduler.models.HttpRequest
:param queue_message: Gets or sets the storage queue message.
:type queue_message: :class:`StorageQueueMessage
<azure.mgmt.scheduler.models.StorageQueueMessage>`
:type queue_message: ~azure.mgmt.scheduler.models.StorageQueueMessage
:param service_bus_queue_message: Gets or sets the service bus queue
message.
:type service_bus_queue_message: :class:`ServiceBusQueueMessage
<azure.mgmt.scheduler.models.ServiceBusQueueMessage>`
:type service_bus_queue_message:
~azure.mgmt.scheduler.models.ServiceBusQueueMessage
:param service_bus_topic_message: Gets or sets the service bus topic
message.
:type service_bus_topic_message: :class:`ServiceBusTopicMessage
<azure.mgmt.scheduler.models.ServiceBusTopicMessage>`
:type service_bus_topic_message:
~azure.mgmt.scheduler.models.ServiceBusTopicMessage
:param retry_policy: Gets or sets the retry policy.
:type retry_policy: :class:`RetryPolicy
<azure.mgmt.scheduler.models.RetryPolicy>`
:type retry_policy: ~azure.mgmt.scheduler.models.RetryPolicy
:param error_action: Gets or sets the error action.
:type error_action: :class:`JobErrorAction
<azure.mgmt.scheduler.models.JobErrorAction>`
:type error_action: ~azure.mgmt.scheduler.models.JobErrorAction
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ class JobCollectionDefinition(Model):
:param location: Gets or sets the storage account location.
:type location: str
:param tags: Gets or sets the tags.
:type tags: dict
:type tags: dict[str, str]
:param properties: Gets or sets the job collection properties.
:type properties: :class:`JobCollectionProperties
<azure.mgmt.scheduler.models.JobCollectionProperties>`
:type properties: ~azure.mgmt.scheduler.models.JobCollectionProperties
"""

_validation = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class JobCollectionDefinitionPaged(Paged):
"""
A paging container for iterating over a list of JobCollectionDefinition object
A paging container for iterating over a list of :class:`JobCollectionDefinition <azure.mgmt.scheduler.models.JobCollectionDefinition>` object
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ class JobCollectionProperties(Model):
"""JobCollectionProperties.

:param sku: Gets or sets the SKU.
:type sku: :class:`Sku <azure.mgmt.scheduler.models.Sku>`
:type sku: ~azure.mgmt.scheduler.models.Sku
:param state: Gets or sets the state. Possible values include: 'Enabled',
'Disabled', 'Suspended', 'Deleted'
:type state: str or :class:`JobCollectionState
<azure.mgmt.scheduler.models.JobCollectionState>`
:type state: str or ~azure.mgmt.scheduler.models.JobCollectionState
:param quota: Gets or sets the job collection quota.
:type quota: :class:`JobCollectionQuota
<azure.mgmt.scheduler.models.JobCollectionQuota>`
:type quota: ~azure.mgmt.scheduler.models.JobCollectionQuota
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class JobCollectionQuota(Model):
:param max_job_occurrence: Gets or sets the maximum job occurrence.
:type max_job_occurrence: int
:param max_recurrence: Gets or set the maximum recurrence.
:type max_recurrence: :class:`JobMaxRecurrence
<azure.mgmt.scheduler.models.JobMaxRecurrence>`
:type max_recurrence: ~azure.mgmt.scheduler.models.JobMaxRecurrence
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class JobDefinition(Model):
:ivar name: Gets the job resource name.
:vartype name: str
:param properties: Gets or sets the job properties.
:type properties: :class:`JobProperties
<azure.mgmt.scheduler.models.JobProperties>`
:type properties: ~azure.mgmt.scheduler.models.JobProperties
"""

_validation = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class JobDefinitionPaged(Paged):
"""
A paging container for iterating over a list of JobDefinition object
A paging container for iterating over a list of :class:`JobDefinition <azure.mgmt.scheduler.models.JobDefinition>` object
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,21 @@ class JobErrorAction(Model):
:param type: Gets or sets the job error action type. Possible values
include: 'Http', 'Https', 'StorageQueue', 'ServiceBusQueue',
'ServiceBusTopic'
:type type: str or :class:`JobActionType
<azure.mgmt.scheduler.models.JobActionType>`
:type type: str or ~azure.mgmt.scheduler.models.JobActionType
:param request: Gets or sets the http requests.
:type request: :class:`HttpRequest
<azure.mgmt.scheduler.models.HttpRequest>`
:type request: ~azure.mgmt.scheduler.models.HttpRequest
:param queue_message: Gets or sets the storage queue message.
:type queue_message: :class:`StorageQueueMessage
<azure.mgmt.scheduler.models.StorageQueueMessage>`
:type queue_message: ~azure.mgmt.scheduler.models.StorageQueueMessage
:param service_bus_queue_message: Gets or sets the service bus queue
message.
:type service_bus_queue_message: :class:`ServiceBusQueueMessage
<azure.mgmt.scheduler.models.ServiceBusQueueMessage>`
:type service_bus_queue_message:
~azure.mgmt.scheduler.models.ServiceBusQueueMessage
:param service_bus_topic_message: Gets or sets the service bus topic
message.
:type service_bus_topic_message: :class:`ServiceBusTopicMessage
<azure.mgmt.scheduler.models.ServiceBusTopicMessage>`
:type service_bus_topic_message:
~azure.mgmt.scheduler.models.ServiceBusTopicMessage
:param retry_policy: Gets or sets the retry policy.
:type retry_policy: :class:`RetryPolicy
<azure.mgmt.scheduler.models.RetryPolicy>`
:type retry_policy: ~azure.mgmt.scheduler.models.RetryPolicy
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class JobHistoryDefinition(Model):
:ivar name: Gets the job history name.
:vartype name: str
:ivar properties: Gets or sets the job history properties.
:vartype properties: :class:`JobHistoryDefinitionProperties
<azure.mgmt.scheduler.models.JobHistoryDefinitionProperties>`
:vartype properties:
~azure.mgmt.scheduler.models.JobHistoryDefinitionProperties
"""

_validation = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class JobHistoryDefinitionPaged(Paged):
"""
A paging container for iterating over a list of JobHistoryDefinition object
A paging container for iterating over a list of :class:`JobHistoryDefinition <azure.mgmt.scheduler.models.JobHistoryDefinition>` object
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ class JobHistoryDefinitionProperties(Model):
:vartype expected_execution_time: datetime
:ivar action_name: Gets the job history action name. Possible values
include: 'MainAction', 'ErrorAction'
:vartype action_name: str or :class:`JobHistoryActionName
<azure.mgmt.scheduler.models.JobHistoryActionName>`
:vartype action_name: str or
~azure.mgmt.scheduler.models.JobHistoryActionName
:ivar status: Gets the job history status. Possible values include:
'Completed', 'Failed', 'Postponed'
:vartype status: str or :class:`JobExecutionStatus
<azure.mgmt.scheduler.models.JobExecutionStatus>`
:vartype status: str or ~azure.mgmt.scheduler.models.JobExecutionStatus
:ivar message: Gets the message for the job history.
:vartype message: str
:ivar retry_count: Gets the retry count for job.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class JobHistoryFilter(Model):

:param status: Gets or sets the job execution status. Possible values
include: 'Completed', 'Failed', 'Postponed'
:type status: str or :class:`JobExecutionStatus
<azure.mgmt.scheduler.models.JobExecutionStatus>`
:type status: str or ~azure.mgmt.scheduler.models.JobExecutionStatus
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class JobMaxRecurrence(Model):
:param frequency: Gets or sets the frequency of recurrence (second,
minute, hour, day, week, month). Possible values include: 'Minute',
'Hour', 'Day', 'Week', 'Month'
:type frequency: str or :class:`RecurrenceFrequency
<azure.mgmt.scheduler.models.RecurrenceFrequency>`
:type frequency: str or ~azure.mgmt.scheduler.models.RecurrenceFrequency
:param interval: Gets or sets the interval between retries.
:type interval: int
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ class JobProperties(Model):
:param start_time: Gets or sets the job start time.
:type start_time: datetime
:param action: Gets or sets the job action.
:type action: :class:`JobAction <azure.mgmt.scheduler.models.JobAction>`
:type action: ~azure.mgmt.scheduler.models.JobAction
:param recurrence: Gets or sets the job recurrence.
:type recurrence: :class:`JobRecurrence
<azure.mgmt.scheduler.models.JobRecurrence>`
:type recurrence: ~azure.mgmt.scheduler.models.JobRecurrence
:param state: Gets or set the job state. Possible values include:
'Enabled', 'Disabled', 'Faulted', 'Completed'
:type state: str or :class:`JobState
<azure.mgmt.scheduler.models.JobState>`
:type state: str or ~azure.mgmt.scheduler.models.JobState
:ivar status: Gets the job status.
:vartype status: :class:`JobStatus
<azure.mgmt.scheduler.models.JobStatus>`
:vartype status: ~azure.mgmt.scheduler.models.JobStatus
"""

_validation = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class JobRecurrence(Model):
:param frequency: Gets or sets the frequency of recurrence (second,
minute, hour, day, week, month). Possible values include: 'Minute',
'Hour', 'Day', 'Week', 'Month'
:type frequency: str or :class:`RecurrenceFrequency
<azure.mgmt.scheduler.models.RecurrenceFrequency>`
:type frequency: str or ~azure.mgmt.scheduler.models.RecurrenceFrequency
:param interval: Gets or sets the interval between retries.
:type interval: int
:param count: Gets or sets the maximum number of times that the job should
Expand All @@ -28,8 +27,7 @@ class JobRecurrence(Model):
:param end_time: Gets or sets the time at which the job will complete.
:type end_time: datetime
:param schedule:
:type schedule: :class:`JobRecurrenceSchedule
<azure.mgmt.scheduler.models.JobRecurrenceSchedule>`
:type schedule: ~azure.mgmt.scheduler.models.JobRecurrenceSchedule
"""

_attribute_map = {
Expand Down
Loading