Skip to content

Update 5.1.0.b4 #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 12, 2019
Merged
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -300,3 +300,6 @@ vsts/build/bdist.win32/
!azure-devops/azure/devops/released/release
!azure-devops/azure/devops/v5_0/release
!azure-devops/azure/devops/v5_1/release

# ignore private folder for testing reported issues
issues/
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def __init__(self, base_url=None, creds=None):

def list_logs(self, source, entry_id=None, start_time=None, end_time=None):
"""ListLogs.
List diagnostic logs this service.
:param str source:
:param str entry_id:
:param datetime start_time:
:param datetime end_time:
Get a list of diagnostic logs for this service.
:param str source: ID specifying which type of logs to check diagnostics for.
:param str entry_id: The ID of the specific log to query for.
:param datetime start_time: Start time for the time range to query in.
:param datetime end_time: End time for the time range to query in.
:rtype: [INotificationDiagnosticLog]
"""
route_values = {}
Expand All @@ -53,7 +53,8 @@ def list_logs(self, source, entry_id=None, start_time=None, end_time=None):

def get_subscription_diagnostics(self, subscription_id):
"""GetSubscriptionDiagnostics.
:param str subscription_id:
Get the diagnostics settings for a subscription.
:param str subscription_id: The id of the notifications subscription.
:rtype: :class:`<SubscriptionDiagnostics> <azure.devops.v5_1.notification.models.SubscriptionDiagnostics>`
"""
route_values = {}
Expand All @@ -67,8 +68,9 @@ def get_subscription_diagnostics(self, subscription_id):

def update_subscription_diagnostics(self, update_parameters, subscription_id):
"""UpdateSubscriptionDiagnostics.
Update the diagnostics settings for a subscription.
:param :class:`<UpdateSubscripitonDiagnosticsParameters> <azure.devops.v5_1.notification.models.UpdateSubscripitonDiagnosticsParameters>` update_parameters:
:param str subscription_id:
:param str subscription_id: The id of the notifications subscription.
:rtype: :class:`<SubscriptionDiagnostics> <azure.devops.v5_1.notification.models.SubscriptionDiagnostics>`
"""
route_values = {}
Expand All @@ -85,7 +87,7 @@ def update_subscription_diagnostics(self, update_parameters, subscription_id):
def get_event_type(self, event_type):
"""GetEventType.
Get a specific event type.
:param str event_type:
:param str event_type: The ID of the event type.
:rtype: :class:`<NotificationEventType> <azure.devops.v5_1.notification.models.NotificationEventType>`
"""
route_values = {}
Expand Down Expand Up @@ -135,7 +137,8 @@ def update_settings(self, update_parameters):

def get_subscriber(self, subscriber_id):
"""GetSubscriber.
:param str subscriber_id:
Get delivery preferences of a notifications subscriber.
:param str subscriber_id: ID of the user or group.
:rtype: :class:`<NotificationSubscriber> <azure.devops.v5_1.notification.models.NotificationSubscriber>`
"""
route_values = {}
Expand All @@ -149,8 +152,9 @@ def get_subscriber(self, subscriber_id):

def update_subscriber(self, update_parameters, subscriber_id):
"""UpdateSubscriber.
Update delivery preferences of a notifications subscriber.
:param :class:`<NotificationSubscriberUpdateParameters> <azure.devops.v5_1.notification.models.NotificationSubscriberUpdateParameters>` update_parameters:
:param str subscriber_id:
:param str subscriber_id: ID of the user or group.
:rtype: :class:`<NotificationSubscriber> <azure.devops.v5_1.notification.models.NotificationSubscriber>`
"""
route_values = {}
Expand Down
10 changes: 5 additions & 5 deletions azure-devops/azure/devops/v5_0/cloud_load_test/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,8 +1442,8 @@ class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput):
:type tenant_id: str
:param user_load_agent_resources_uri:
:type user_load_agent_resources_uri: str
:param vSTSAccount_uri:
:type vSTSAccount_uri: str
:param vsts_account_uri:
:type vsts_account_uri: str
"""

_attribute_map = {
Expand All @@ -1454,15 +1454,15 @@ class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput):
'agent_group_name': {'key': 'agentGroupName', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'},
'vSTSAccount_uri': {'key': 'vSTSAccountUri', 'type': 'str'}
'vsts_account_uri': {'key': 'vstsAccountUri', 'type': 'str'}
}

def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None, agent_group_name=None, tenant_id=None, user_load_agent_resources_uri=None, vSTSAccount_uri=None):
def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None, agent_group_name=None, tenant_id=None, user_load_agent_resources_uri=None, vsts_account_uri=None):
super(WebApiUserLoadTestMachineInput, self).__init__(machine_group_id=machine_group_id, machine_type=machine_type, setup_configuration=setup_configuration, supported_run_types=supported_run_types)
self.agent_group_name = agent_group_name
self.tenant_id = tenant_id
self.user_load_agent_resources_uri = user_load_agent_resources_uri
self.vSTSAccount_uri = vSTSAccount_uri
self.vsts_account_uri = vsts_account_uri


class WebInstanceSummaryData(Model):
Expand Down
18 changes: 9 additions & 9 deletions azure-devops/azure/devops/v5_0/gallery/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@ def __init__(self, default_operation=None, item_id=None, operations=None, target
class Answers(Model):
"""Answers.

:param vSMarketplace_extension_name: Gets or sets the vs marketplace extension name
:type vSMarketplace_extension_name: str
:param vSMarketplace_publisher_name: Gets or sets the vs marketplace publsiher name
:type vSMarketplace_publisher_name: str
:param vs_marketplace_extension_name: Gets or sets the vs marketplace extension name
:type vs_marketplace_extension_name: str
:param vs_marketplace_publisher_name: Gets or sets the vs marketplace publsiher name
:type vs_marketplace_publisher_name: str
"""

_attribute_map = {
'vSMarketplace_extension_name': {'key': 'vSMarketplaceExtensionName', 'type': 'str'},
'vSMarketplace_publisher_name': {'key': 'vSMarketplacePublisherName', 'type': 'str'}
'vs_marketplace_extension_name': {'key': 'vsMarketplaceExtensionName', 'type': 'str'},
'vs_marketplace_publisher_name': {'key': 'vsMarketplacePublisherName', 'type': 'str'}
}

def __init__(self, vSMarketplace_extension_name=None, vSMarketplace_publisher_name=None):
def __init__(self, vs_marketplace_extension_name=None, vs_marketplace_publisher_name=None):
super(Answers, self).__init__()
self.vSMarketplace_extension_name = vSMarketplace_extension_name
self.vSMarketplace_publisher_name = vSMarketplace_publisher_name
self.vs_marketplace_extension_name = vs_marketplace_extension_name
self.vs_marketplace_publisher_name = vs_marketplace_publisher_name


class AssetDetails(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ def get_subscription(self, subscription_id, query_flags=None):

def list_subscriptions(self, target_id=None, ids=None, query_flags=None):
"""ListSubscriptions.
[Preview API]
:param str target_id:
:param [str] ids:
[Preview API] Get a list of notification subscriptions, either by subscription IDs or by all subscriptions for a given user or group.
:param str target_id: User or Group ID
:param [str] ids: List of subscription IDs
:param str query_flags:
:rtype: [NotificationSubscription]
"""
Expand Down
10 changes: 5 additions & 5 deletions azure-devops/azure/devops/v5_0/profile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def __init__(self, is_auto_generated=None, size=None, time_stamp=None, value=Non
class CreateProfileContext(Model):
"""CreateProfileContext.

:param cIData:
:type cIData: dict
:param ci_data:
:type ci_data: dict
:param contact_with_offers:
:type contact_with_offers: bool
:param country_name:
Expand All @@ -105,7 +105,7 @@ class CreateProfileContext(Model):
"""

_attribute_map = {
'cIData': {'key': 'cIData', 'type': '{object}'},
'ci_data': {'key': 'ciData', 'type': '{object}'},
'contact_with_offers': {'key': 'contactWithOffers', 'type': 'bool'},
'country_name': {'key': 'countryName', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
Expand All @@ -116,9 +116,9 @@ class CreateProfileContext(Model):
'profile_state': {'key': 'profileState', 'type': 'object'}
}

def __init__(self, cIData=None, contact_with_offers=None, country_name=None, display_name=None, email_address=None, has_account=None, language=None, phone_number=None, profile_state=None):
def __init__(self, ci_data=None, contact_with_offers=None, country_name=None, display_name=None, email_address=None, has_account=None, language=None, phone_number=None, profile_state=None):
super(CreateProfileContext, self).__init__()
self.cIData = cIData
self.ci_data = ci_data
self.contact_with_offers = contact_with_offers
self.country_name = country_name
self.display_name = display_name
Expand Down
10 changes: 5 additions & 5 deletions azure-devops/azure/devops/v5_0/release/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,8 +1430,8 @@ class MailMessage(Model):

:param body:
:type body: str
:param cC:
:type cC: :class:`EmailRecipients <azure.devops.v5_0.release.models.EmailRecipients>`
:param cc:
:type cc: :class:`EmailRecipients <azure.devops.v5_0.release.models.EmailRecipients>`
:param in_reply_to:
:type in_reply_to: str
:param message_id:
Expand All @@ -1452,7 +1452,7 @@ class MailMessage(Model):

_attribute_map = {
'body': {'key': 'body', 'type': 'str'},
'cC': {'key': 'cC', 'type': 'EmailRecipients'},
'cc': {'key': 'cc', 'type': 'EmailRecipients'},
'in_reply_to': {'key': 'inReplyTo', 'type': 'str'},
'message_id': {'key': 'messageId', 'type': 'str'},
'reply_by': {'key': 'replyBy', 'type': 'iso-8601'},
Expand All @@ -1463,10 +1463,10 @@ class MailMessage(Model):
'to': {'key': 'to', 'type': 'EmailRecipients'}
}

def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None):
def __init__(self, body=None, cc=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None):
super(MailMessage, self).__init__()
self.body = body
self.cC = cC
self.cc = cc
self.in_reply_to = in_reply_to
self.message_id = message_id
self.reply_by = reply_by
Expand Down
30 changes: 15 additions & 15 deletions azure-devops/azure/devops/v5_0/task_agent/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2142,8 +2142,8 @@ class TaskAgentMessage(Model):

:param body: Gets or sets the body of the message. If the <c>IV</c> property is provided the body will need to be decrypted using the <c>TaskAgentSession.EncryptionKey</c> value in addition to the <c>IV</c>.
:type body: str
:param iV: Gets or sets the intialization vector used to encrypt this message.
:type iV: str
:param iv: Gets or sets the intialization vector used to encrypt this message.
:type iv: str
:param message_id: Gets or sets the message identifier.
:type message_id: long
:param message_type: Gets or sets the message type, describing the data contract found in <c>TaskAgentMessage.Body</c>.
Expand All @@ -2152,15 +2152,15 @@ class TaskAgentMessage(Model):

_attribute_map = {
'body': {'key': 'body', 'type': 'str'},
'iV': {'key': 'iV', 'type': 'str'},
'iv': {'key': 'iv', 'type': 'str'},
'message_id': {'key': 'messageId', 'type': 'long'},
'message_type': {'key': 'messageType', 'type': 'str'}
}

def __init__(self, body=None, iV=None, message_id=None, message_type=None):
def __init__(self, body=None, iv=None, message_id=None, message_type=None):
super(TaskAgentMessage, self).__init__()
self.body = body
self.iV = iV
self.iv = iv
self.message_id = message_id
self.message_type = message_type

Expand Down Expand Up @@ -2466,8 +2466,8 @@ class TaskAgentReference(Model):
:type id: int
:param name: Gets the name of the agent.
:type name: str
:param oSDescription: Gets the OS of the agent.
:type oSDescription: str
:param os_description: Gets the OS of the agent.
:type os_description: str
:param provisioning_state: Gets or sets the current provisioning state of this agent
:type provisioning_state: str
:param status: Gets the current connectivity status of the agent.
Expand All @@ -2482,20 +2482,20 @@ class TaskAgentReference(Model):
'enabled': {'key': 'enabled', 'type': 'bool'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'oSDescription': {'key': 'oSDescription', 'type': 'str'},
'os_description': {'key': 'osDescription', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'status': {'key': 'status', 'type': 'object'},
'version': {'key': 'version', 'type': 'str'}
}

def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, oSDescription=None, provisioning_state=None, status=None, version=None):
def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, os_description=None, provisioning_state=None, status=None, version=None):
super(TaskAgentReference, self).__init__()
self._links = _links
self.access_point = access_point
self.enabled = enabled
self.id = id
self.name = name
self.oSDescription = oSDescription
self.os_description = os_description
self.provisioning_state = provisioning_state
self.status = status
self.version = version
Expand Down Expand Up @@ -3897,8 +3897,8 @@ class TaskAgent(TaskAgentReference):
:type id: int
:param name: Gets the name of the agent.
:type name: str
:param oSDescription: Gets the OS of the agent.
:type oSDescription: str
:param os_description: Gets the OS of the agent.
:type os_description: str
:param provisioning_state: Gets or sets the current provisioning state of this agent
:type provisioning_state: str
:param status: Gets the current connectivity status of the agent.
Expand Down Expand Up @@ -3935,7 +3935,7 @@ class TaskAgent(TaskAgentReference):
'enabled': {'key': 'enabled', 'type': 'bool'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'oSDescription': {'key': 'oSDescription', 'type': 'str'},
'os_description': {'key': 'osDescription', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'status': {'key': 'status', 'type': 'object'},
'version': {'key': 'version', 'type': 'str'},
Expand All @@ -3952,8 +3952,8 @@ class TaskAgent(TaskAgentReference):
'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'}
}

def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, oSDescription=None, provisioning_state=None, status=None, version=None, assigned_agent_cloud_request=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None):
super(TaskAgent, self).__init__(_links=_links, access_point=access_point, enabled=enabled, id=id, name=name, oSDescription=oSDescription, provisioning_state=provisioning_state, status=status, version=version)
def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, os_description=None, provisioning_state=None, status=None, version=None, assigned_agent_cloud_request=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None):
super(TaskAgent, self).__init__(_links=_links, access_point=access_point, enabled=enabled, id=id, name=name, os_description=os_description, provisioning_state=provisioning_state, status=status, version=version)
self.assigned_agent_cloud_request = assigned_agent_cloud_request
self.assigned_request = assigned_request
self.authorization = authorization
Expand Down
Loading