Skip to content
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

[AutoPR apimanagement/resource-manager] Added example for template params #3911

Merged
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 @@ -82,7 +82,7 @@ class ApiManagementServiceBaseProperties(Model):
is 10.
:type certificates:
list[~azure.mgmt.apimanagement.models.CertificateConfiguration]
:param virtual_network_type: The type of VPN in which API Managemet
:param virtual_network_type: The type of VPN in which API Management
service needs to be configured in. None (Default Value) means the API
Management service is not part of any Virtual Network, External means the
API Management deployment is set up inside a Virtual Network having an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ApiManagementServiceBaseProperties(Model):
is 10.
:type certificates:
list[~azure.mgmt.apimanagement.models.CertificateConfiguration]
:param virtual_network_type: The type of VPN in which API Managemet
:param virtual_network_type: The type of VPN in which API Management
service needs to be configured in. None (Default Value) means the API
Management service is not part of any Virtual Network, External means the
API Management deployment is set up inside a Virtual Network having an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ApiManagementServiceResource(ApimResource):
is 10.
:type certificates:
list[~azure.mgmt.apimanagement.models.CertificateConfiguration]
:param virtual_network_type: The type of VPN in which API Managemet
:param virtual_network_type: The type of VPN in which API Management
service needs to be configured in. None (Default Value) means the API
Management service is not part of any Virtual Network, External means the
API Management deployment is set up inside a Virtual Network having an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ApiManagementServiceResource(ApimResource):
is 10.
:type certificates:
list[~azure.mgmt.apimanagement.models.CertificateConfiguration]
:param virtual_network_type: The type of VPN in which API Managemet
:param virtual_network_type: The type of VPN in which API Management
service needs to be configured in. None (Default Value) means the API
Management service is not part of any Virtual Network, External means the
API Management deployment is set up inside a Virtual Network having an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ApiManagementServiceUpdateParameters(ApimResource):
is 10.
:type certificates:
list[~azure.mgmt.apimanagement.models.CertificateConfiguration]
:param virtual_network_type: The type of VPN in which API Managemet
:param virtual_network_type: The type of VPN in which API Management
service needs to be configured in. None (Default Value) means the API
Management service is not part of any Virtual Network, External means the
API Management deployment is set up inside a Virtual Network having an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ApiManagementServiceUpdateParameters(ApimResource):
is 10.
:type certificates:
list[~azure.mgmt.apimanagement.models.CertificateConfiguration]
:param virtual_network_type: The type of VPN in which API Managemet
:param virtual_network_type: The type of VPN in which API Management
service needs to be configured in. None (Default Value) means the API
Management service is not part of any Virtual Network, External means the
API Management deployment is set up inside a Virtual Network having an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackendReconnectContract(Resource):
:ivar type: Resource type for API Management resource.
:vartype type: str
:param after: Duration in ISO8601 format after which reconnect will be
initiated. Minimum duration of the Reconect is PT2M.
initiated. Minimum duration of the Reconnect is PT2M.
:type after: timedelta
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackendReconnectContract(Resource):
:ivar type: Resource type for API Management resource.
:vartype type: str
:param after: Duration in ISO8601 format after which reconnect will be
initiated. Minimum duration of the Reconect is PT2M.
initiated. Minimum duration of the Reconnect is PT2M.
:type after: timedelta
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CertificateConfiguration(Model):
:param certificate_password: Certificate Password.
:type certificate_password: str
:param store_name: Required. The
System.Security.Cryptography.x509certificates.Storename certificate store
System.Security.Cryptography.x509certificates.StoreName certificate store
location. Only Root and CertificateAuthority are valid locations. Possible
values include: 'CertificateAuthority', 'Root'
:type store_name: str or ~azure.mgmt.apimanagement.models.enum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CertificateConfiguration(Model):
:param certificate_password: Certificate Password.
:type certificate_password: str
:param store_name: Required. The
System.Security.Cryptography.x509certificates.Storename certificate store
System.Security.Cryptography.x509certificates.StoreName certificate store
location. Only Root and CertificateAuthority are valid locations. Possible
values include: 'CertificateAuthority', 'Root'
:type store_name: str or ~azure.mgmt.apimanagement.models.enum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ReportRecordContract(Model):
following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601
standard.
:type timestamp: datetime
:param interval: Length of agregation period. Interval must be multiple
:param interval: Length of aggregation period. Interval must be multiple
of 15 minutes and may not be zero. The value should be in ISO 8601 format
(http://en.wikipedia.org/wiki/ISO_8601#Durations).
:type interval: str
Expand All @@ -49,12 +49,12 @@ class ReportRecordContract(Model):
:param subscription_id: Subscription identifier path.
/subscriptions/{subscriptionId}
:type subscription_id: str
:param call_count_success: Number of succesful calls. This includes calls
:param call_count_success: Number of successful calls. This includes calls
returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and
HttpStatusCode.TemporaryRedirect
:type call_count_success: int
:param call_count_blocked: Number of calls blocked due to invalid
credentials. This includes calls returning HttpStatusCode.Unauthorize and
credentials. This includes calls returning HttpStatusCode.Unauthorized and
HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests
:type call_count_blocked: int
:param call_count_failed: Number of calls failed due to proxy or backend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ReportRecordContract(Model):
following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601
standard.
:type timestamp: datetime
:param interval: Length of agregation period. Interval must be multiple
:param interval: Length of aggregation period. Interval must be multiple
of 15 minutes and may not be zero. The value should be in ISO 8601 format
(http://en.wikipedia.org/wiki/ISO_8601#Durations).
:type interval: str
Expand All @@ -49,12 +49,12 @@ class ReportRecordContract(Model):
:param subscription_id: Subscription identifier path.
/subscriptions/{subscriptionId}
:type subscription_id: str
:param call_count_success: Number of succesful calls. This includes calls
:param call_count_success: Number of successful calls. This includes calls
returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and
HttpStatusCode.TemporaryRedirect
:type call_count_success: int
:param call_count_blocked: Number of calls blocked due to invalid
credentials. This includes calls returning HttpStatusCode.Unauthorize and
credentials. This includes calls returning HttpStatusCode.Unauthorized and
HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests
:type call_count_blocked: int
:param call_count_failed: Number of calls failed due to proxy or backend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class RequestReportRecordContract(Model):
:param cache: Specifies if response cache was involved in generating the
response. If the value is none, the cache was not used. If the value is
hit, cached response was returned. If the value is miss, the cache was
used but lookup resulted in a miss and request was fullfilled by the
used but lookup resulted in a miss and request was fulfilled by the
backend.
:type cache: str
:param api_time: The total time it took to process this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class RequestReportRecordContract(Model):
:param cache: Specifies if response cache was involved in generating the
response. If the value is none, the cache was not used. If the value is
hit, cached response was returned. If the value is miss, the cache was
used but lookup resulted in a miss and request was fullfilled by the
used but lookup resulted in a miss and request was fulfilled by the
backend.
:type cache: str
:param api_time: The total time it took to process this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SubscriptionCreateParameters(Model):
being created in form /users/{uid}
:type user_id: str
:param product_id: Required. Product (product id path) for which
subscription is being created in form /products/{productid}
subscription is being created in form /products/{productId}
:type product_id: str
:param display_name: Required. Subscription name.
:type display_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SubscriptionCreateParameters(Model):
being created in form /users/{uid}
:type user_id: str
:param product_id: Required. Product (product id path) for which
subscription is being created in form /products/{productid}
subscription is being created in form /products/{productId}
:type product_id: str
:param display_name: Required. Subscription name.
:type display_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, client, config, serializer, deserializer):

def list_by_service(
self, resource_group_name, service_name, api_id, diagnostic_id, filter=None, top=None, skip=None, custom_headers=None, raw=False, **operation_config):
"""Lists all loggers assosiated with the specified Diagnostic of an API.
"""Lists all loggers associated with the specified Diagnostic of an API.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down Expand Up @@ -200,7 +200,7 @@ def check_entity_exists(

def create_or_update(
self, resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers=None, raw=False, **operation_config):
"""Attaches a logger to a dignostic for an API.
"""Attaches a logger to a diagnostic for an API.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, client, config, serializer, deserializer):

def list_by_service(
self, resource_group_name, service_name, api_id, issue_id, filter=None, top=None, skip=None, custom_headers=None, raw=False, **operation_config):
"""Lists all comments for the Issue assosiated with the specified API.
"""Lists all comments for the Issue associated with the specified API.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, client, config, serializer, deserializer):

def list_by_service(
self, resource_group_name, service_name, api_id, issue_id, filter=None, top=None, skip=None, custom_headers=None, raw=False, **operation_config):
"""Lists all comments for the Issue assosiated with the specified API.
"""Lists all comments for the Issue associated with the specified API.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, client, config, serializer, deserializer):

def list_by_service(
self, resource_group_name, service_name, api_id, filter=None, top=None, skip=None, custom_headers=None, raw=False, **operation_config):
"""Lists all issues assosiated with the specified API.
"""Lists all issues associated with the specified API.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def reconnect(
the current API Management service instance.
:type backendid: str
:param after: Duration in ISO8601 format after which reconnect will be
initiated. Minimum duration of the Reconect is PT2M.
initiated. Minimum duration of the Reconnect is PT2M.
:type after: timedelta
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, client, config, serializer, deserializer):

def list_by_service(
self, resource_group_name, service_name, diagnostic_id, filter=None, top=None, skip=None, custom_headers=None, raw=False, **operation_config):
"""Lists all loggers assosiated with the specified Diagnostic of the API
"""Lists all loggers associated with the specified Diagnostic of the API
Management service instance.

:param resource_group_name: The name of the resource group.
Expand Down Expand Up @@ -193,7 +193,7 @@ def check_entity_exists(

def create_or_update(
self, resource_group_name, service_name, diagnostic_id, loggerid, custom_headers=None, raw=False, **operation_config):
"""Attaches a logger to a dignostic.
"""Attaches a logger to a diagnostic.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def update(

def delete(
self, resource_group_name, service_name, prop_id, if_match, custom_headers=None, raw=False, **operation_config):
"""Deletes specific property from the the API Management service instance.
"""Deletes specific property from the API Management service instance.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def internal_paging(next_link=None, raw=False):

def list_by_geo(
self, resource_group_name, service_name, filter=None, top=None, skip=None, custom_headers=None, raw=False, **operation_config):
"""Lists report records by GeoGraphy.
"""Lists report records by geography.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down Expand Up @@ -537,7 +537,7 @@ def list_by_time(
minutes and may not be zero. The value should be in ISO 8601 format
(http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be
used to convert TimeSpan to a valid interval string:
XmlConvert.ToString(new TimeSpan(hours, minutes, secconds))
XmlConvert.ToString(new TimeSpan(hours, minutes, seconds))
:type interval: timedelta
:param filter: The filter to apply on the operation.
:type filter: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def create_or_update(

def update(
self, resource_group_name, service_name, sid, parameters, if_match, notify=None, custom_headers=None, raw=False, **operation_config):
"""Updates the details of a subscription specificied by its identifier.
"""Updates the details of a subscription specified by its identifier.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get(

def create_or_update(
self, resource_group_name, service_name, api_id, tag_id, parameters, if_match=None, custom_headers=None, raw=False, **operation_config):
"""Create/Update tag fescription in scope of the Api.
"""Create/Update tag description in scope of the Api.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down