Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
from .operations.api_schema_operations import ApiSchemaOperations
from .operations.api_diagnostic_operations import ApiDiagnosticOperations
from .operations.api_diagnostic_logger_operations import ApiDiagnosticLoggerOperations
from .operations.api_issues_operations import ApiIssuesOperations
from .operations.api_issue_operations import ApiIssueOperations
from .operations.api_issue_comments_operations import ApiIssueCommentsOperations
from .operations.api_issu_comment_operations import ApiIssuCommentOperations
from .operations.api_issue_comment_operations import ApiIssueCommentOperations
from .operations.api_issue_attachments_operations import ApiIssueAttachmentsOperations
from .operations.api_issu_attachment_operations import ApiIssuAttachmentOperations
from .operations.api_issue_attachment_operations import ApiIssueAttachmentOperations
from .operations.authorization_server_operations import AuthorizationServerOperations
from .operations.backend_operations import BackendOperations
from .operations.certificate_operations import CertificateOperations
Expand Down Expand Up @@ -138,6 +146,22 @@ class ApiManagementClient(object):
:vartype api_diagnostic: azure.mgmt.apimanagement.operations.ApiDiagnosticOperations
:ivar api_diagnostic_logger: ApiDiagnosticLogger operations
:vartype api_diagnostic_logger: azure.mgmt.apimanagement.operations.ApiDiagnosticLoggerOperations
:ivar api_issues: ApiIssues operations
:vartype api_issues: azure.mgmt.apimanagement.operations.ApiIssuesOperations
:ivar api_issue: ApiIssue operations
:vartype api_issue: azure.mgmt.apimanagement.operations.ApiIssueOperations
:ivar api_issue_comments: ApiIssueComments operations
:vartype api_issue_comments: azure.mgmt.apimanagement.operations.ApiIssueCommentsOperations
:ivar api_issu_comment: ApiIssuComment operations
:vartype api_issu_comment: azure.mgmt.apimanagement.operations.ApiIssuCommentOperations
:ivar api_issue_comment: ApiIssueComment operations
:vartype api_issue_comment: azure.mgmt.apimanagement.operations.ApiIssueCommentOperations
:ivar api_issue_attachments: ApiIssueAttachments operations
:vartype api_issue_attachments: azure.mgmt.apimanagement.operations.ApiIssueAttachmentsOperations
:ivar api_issu_attachment: ApiIssuAttachment operations
:vartype api_issu_attachment: azure.mgmt.apimanagement.operations.ApiIssuAttachmentOperations
:ivar api_issue_attachment: ApiIssueAttachment operations
:vartype api_issue_attachment: azure.mgmt.apimanagement.operations.ApiIssueAttachmentOperations
:ivar authorization_server: AuthorizationServer operations
:vartype authorization_server: azure.mgmt.apimanagement.operations.AuthorizationServerOperations
:ivar backend: Backend operations
Expand Down Expand Up @@ -272,6 +296,22 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.api_diagnostic_logger = ApiDiagnosticLoggerOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issues = ApiIssuesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issue = ApiIssueOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issue_comments = ApiIssueCommentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issu_comment = ApiIssuCommentOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issue_comment = ApiIssueCommentOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issue_attachments = ApiIssueAttachmentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issu_attachment = ApiIssuAttachmentOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_issue_attachment = ApiIssueAttachmentOperations(
self._client, self.config, self._serialize, self._deserialize)
self.authorization_server = AuthorizationServerOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backend = BackendOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
from .operation_entity_base_contract_py3 import OperationEntityBaseContract
from .operation_update_contract_py3 import OperationUpdateContract
from .schema_contract_py3 import SchemaContract
from .issue_contract_py3 import IssueContract
from .issue_comment_contract_py3 import IssueCommentContract
from .issue_attachment_contract_py3 import IssueAttachmentContract
from .logger_contract_py3 import LoggerContract
from .diagnostic_contract_py3 import DiagnosticContract
from .product_entity_base_parameters_py3 import ProductEntityBaseParameters
Expand Down Expand Up @@ -181,6 +184,9 @@
from .operation_entity_base_contract import OperationEntityBaseContract
from .operation_update_contract import OperationUpdateContract
from .schema_contract import SchemaContract
from .issue_contract import IssueContract
from .issue_comment_contract import IssueCommentContract
from .issue_attachment_contract import IssueAttachmentContract
from .logger_contract import LoggerContract
from .diagnostic_contract import DiagnosticContract
from .product_entity_base_parameters import ProductEntityBaseParameters
Expand Down Expand Up @@ -301,6 +307,9 @@
from .schema_contract_paged import SchemaContractPaged
from .diagnostic_contract_paged import DiagnosticContractPaged
from .logger_contract_paged import LoggerContractPaged
from .issue_contract_paged import IssueContractPaged
from .issue_comment_contract_paged import IssueCommentContractPaged
from .issue_attachment_contract_paged import IssueAttachmentContractPaged
from .authorization_server_contract_paged import AuthorizationServerContractPaged
from .backend_contract_paged import BackendContractPaged
from .certificate_contract_paged import CertificateContractPaged
Expand All @@ -326,6 +335,7 @@
ContentFormat,
SoapApiType,
ApiType,
State,
LoggerType,
ProductState,
GrantType,
Expand Down Expand Up @@ -383,6 +393,9 @@
'OperationEntityBaseContract',
'OperationUpdateContract',
'SchemaContract',
'IssueContract',
'IssueCommentContract',
'IssueAttachmentContract',
'LoggerContract',
'DiagnosticContract',
'ProductEntityBaseParameters',
Expand Down Expand Up @@ -503,6 +516,9 @@
'SchemaContractPaged',
'DiagnosticContractPaged',
'LoggerContractPaged',
'IssueContractPaged',
'IssueCommentContractPaged',
'IssueAttachmentContractPaged',
'AuthorizationServerContractPaged',
'BackendContractPaged',
'CertificateContractPaged',
Expand All @@ -527,6 +543,7 @@
'ContentFormat',
'SoapApiType',
'ApiType',
'State',
'LoggerType',
'ProductState',
'GrantType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@

class PolicyContentFormat(str, Enum):

xml = "xml"
xml_link = "xml-link"
xml = "xml" #: The contents are inline and Content type is an XML document.
xml_link = "xml-link" #: The policy XML document is hosted on a http endpoint accessible from the API Management service.
rawxml = "rawxml" #: The contents are inline and Content type is a non XML encoded policy document.
rawxml_link = "rawxml-link" #: The policy document is not Xml encoded and is hosted on a http endpoint accessible from the API Management service.


class Protocol(str, Enum):
Expand All @@ -26,18 +28,18 @@ class Protocol(str, Enum):

class ContentFormat(str, Enum):

wadl_xml = "wadl-xml"
wadl_link_json = "wadl-link-json"
swagger_json = "swagger-json"
swagger_link_json = "swagger-link-json"
wsdl = "wsdl"
wsdl_link = "wsdl-link"
wadl_xml = "wadl-xml" #: The contents are inline and Content type is a WADL document.
wadl_link_json = "wadl-link-json" #: The WADL document is hosted on a publicly accessible internet address.
swagger_json = "swagger-json" #: The contents are inline and Content Type is a OpenApi 2.0 Document.
swagger_link_json = "swagger-link-json" #: The Open Api 2.0 document is hosted on a publicly accessible internet address.
wsdl = "wsdl" #: The contents are inline and the document is a WSDL/Soap document.
wsdl_link = "wsdl-link" #: The WSDL document is hosted on a publicly accessible internet address.


class SoapApiType(str, Enum):

soap_to_rest = "http"
soap_pass_through = "soap"
soap_to_rest = "http" #: Imports a SOAP API having a RESTful front end.
soap_pass_through = "soap" #: Imports the Soap API having a SOAP front end.


class ApiType(str, Enum):
Expand All @@ -46,10 +48,19 @@ class ApiType(str, Enum):
soap = "soap"


class State(str, Enum):

proposed = "proposed" #: The issue is proposed.
open = "open" #: The issue is opened.
removed = "removed" #: The issue was removed.
resolved = "resolved" #: The issue is now resolved.
closed = "closed" #: The issue was closed.


class LoggerType(str, Enum):

azure_event_hub = "azureEventHub"
application_insights = "applicationInsights"
azure_event_hub = "azureEventHub" #: Azure Event Hub as log destination.
application_insights = "applicationInsights" #: Azure Application Insights as log destination.


class ProductState(str, Enum):
Expand All @@ -60,10 +71,10 @@ class ProductState(str, Enum):

class GrantType(str, Enum):

authorization_code = "authorizationCode"
implicit = "implicit"
resource_owner_password = "resourceOwnerPassword"
client_credentials = "clientCredentials"
authorization_code = "authorizationCode" #: Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1.
implicit = "implicit" #: Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2.
resource_owner_password = "resourceOwnerPassword" #: Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3.
client_credentials = "clientCredentials" #: Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4.


class AuthorizationMethod(str, Enum):
Expand All @@ -80,8 +91,8 @@ class AuthorizationMethod(str, Enum):

class ClientAuthenticationMethod(str, Enum):

basic = "Basic"
body = "Body"
basic = "Basic" #: Basic Client Authentication method.
body = "Body" #: Body based Authentication method.


class BearerTokenSendingMethod(str, Enum):
Expand All @@ -92,8 +103,8 @@ class BearerTokenSendingMethod(str, Enum):

class BackendProtocol(str, Enum):

http = "http"
soap = "soap"
http = "http" #: The Backend is a RESTful service.
soap = "soap" #: The Backend is a SOAP service.


class HostnameType(str, Enum):
Expand All @@ -106,17 +117,17 @@ class HostnameType(str, Enum):

class SkuType(str, Enum):

developer = "Developer"
standard = "Standard"
premium = "Premium"
basic = "Basic"
developer = "Developer" #: Developer SKU of Api Management.
standard = "Standard" #: Standard SKU of Api Management.
premium = "Premium" #: Premium SKU of Api Management.
basic = "Basic" #: Basic SKU of Api Management.


class VirtualNetworkType(str, Enum):

none = "None"
external = "External"
internal = "Internal"
none = "None" #: The service is not part of any Virtual Network.
external = "External" #: The service is part of Virtual Network and it is accessible from Internet.
internal = "Internal" #: The service is part of Virtual Network and it is only accessible from within the virtual network.


class NameAvailabilityReason(str, Enum):
Expand All @@ -135,26 +146,26 @@ class GroupType(str, Enum):

class Confirmation(str, Enum):

signup = "signup"
invite = "invite"
signup = "signup" #: Send an e-mail to the user confirming they have successfully signed up.
invite = "invite" #: Send an e-mail inviting the user to sign-up and complete registration.


class UserState(str, Enum):

active = "active"
blocked = "blocked"
pending = "pending"
deleted = "deleted"
active = "active" #: User state is active.
blocked = "blocked" #: User is blocked. Blocked users cannot authenticate at developer portal or call API.
pending = "pending" #: User account is pending. Requires identity confirmation before it can be made active.
deleted = "deleted" #: User account is closed. All identities and related entities are removed.


class IdentityProviderType(str, Enum):

facebook = "facebook"
google = "google"
microsoft = "microsoft"
twitter = "twitter"
aad = "aad"
aad_b2_c = "aadB2C"
facebook = "facebook" #: Facebook as Identity provider.
google = "google" #: Google as Identity provider.
microsoft = "microsoft" #: Microsoft Live as Identity provider.
twitter = "twitter" #: Twitter as Identity provider.
aad = "aad" #: Azure Active Directory as Identity provider.
aad_b2_c = "aadB2C" #: Azure Active Directory B2C as Identity provider.


class ConnectivityStatusType(str, Enum):
Expand Down Expand Up @@ -190,9 +201,9 @@ class KeyType(str, Enum):

class VersioningScheme(str, Enum):

segment = "Segment"
query = "Query"
header = "Header"
segment = "Segment" #: The API Version is passed in a path segment.
query = "Query" #: The API Version is passed in a query parameter.
header = "Header" #: The API Version is passed in a HTTP header.


class TemplateName(str, Enum):
Expand All @@ -215,13 +226,13 @@ class TemplateName(str, Enum):

class NotificationName(str, Enum):

request_publisher_notification_message = "RequestPublisherNotificationMessage"
purchase_publisher_notification_message = "PurchasePublisherNotificationMessage"
new_application_notification_message = "NewApplicationNotificationMessage"
bcc = "BCC"
new_issue_publisher_notification_message = "NewIssuePublisherNotificationMessage"
account_closed_publisher = "AccountClosedPublisher"
quota_limit_approaching_publisher_notification_message = "QuotaLimitApproachingPublisherNotificationMessage"
request_publisher_notification_message = "RequestPublisherNotificationMessage" #: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval.
purchase_publisher_notification_message = "PurchasePublisherNotificationMessage" #: The following email recipients and users will receive email notifications about new API product subscriptions.
new_application_notification_message = "NewApplicationNotificationMessage" #: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery.
bcc = "BCC" #: The following recipients will receive blind carbon copies of all emails sent to developers.
new_issue_publisher_notification_message = "NewIssuePublisherNotificationMessage" #: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal.
account_closed_publisher = "AccountClosedPublisher" #: The following email recipients and users will receive email notifications when developer closes his account.
quota_limit_approaching_publisher_notification_message = "QuotaLimitApproachingPublisherNotificationMessage" #: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota.


class PolicyScopeContract(str, Enum):
Expand All @@ -235,6 +246,6 @@ class PolicyScopeContract(str, Enum):

class ExportFormat(str, Enum):

swagger = "swagger-link"
wsdl = "wsdl-link"
wadl = "wadl-link"
swagger = "swagger-link" #: Export the Api Definition in OpenApi Specification 2.0 format to the Storage Blob.
wsdl = "wsdl-link" #: Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap`
wadl = "wadl-link" #: Export the Api Definition in WADL Schema to Storage Blob.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource


class IssueAttachmentContract(Resource):
"""Issue Attachment Contract details.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type for API Management resource.
:vartype type: str
:param title: Required. Filename by which the binary data will be saved.
:type title: str
:param content_format: Required. Either 'link' if content is provided via
an HTTP link or the MIME type of the Base64-encoded binary data provided
in the 'content' property.
:type content_format: str
:param content: Required. An HTTP link or Base64-encoded binary data.
:type content: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'title': {'required': True},
'content_format': {'required': True},
'content': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'content_format': {'key': 'properties.contentFormat', 'type': 'str'},
'content': {'key': 'properties.content', 'type': 'str'},
}

def __init__(self, **kwargs):
super(IssueAttachmentContract, self).__init__(**kwargs)
self.title = kwargs.get('title', None)
self.content_format = kwargs.get('content_format', None)
self.content = kwargs.get('content', None)
Loading