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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "ae88d634243e65ef5e2778e1cba2e7e1a10f3964",
"commit": "f62e24abdf1eda35411e63e20c919360c907c87a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/applicationinsights/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/applicationinsights/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def list_by_subscription(
can_fetch_content: Optional[bool] = None,
**kwargs: Any
) -> AsyncIterable["_models.WorkbooksListResult"]:
"""Get all private workbooks defined within a specified subscription and category.
"""Get all Workbooks defined within a specified subscription and category.

:param category: Category of workbook to return.
:type category: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.CategoryType
Expand Down Expand Up @@ -223,6 +223,7 @@ async def get(
self,
resource_group_name: str,
resource_name: str,
can_fetch_content: Optional[bool] = None,
**kwargs: Any
) -> "_models.Workbook":
"""Get a single workbook by its resourceName.
Expand All @@ -231,6 +232,9 @@ async def get(
:type resource_group_name: str
:param resource_name: The name of the Application Insights component resource.
:type resource_name: str
:param can_fetch_content: Flag indicating whether or not to return the full content for each
applicable workbook. If false, only return summary content for workbooks.
:type can_fetch_content: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Workbook, or the result of cls(response)
:rtype: ~azure.mgmt.applicationinsights.v2021_08_01.models.Workbook
Expand All @@ -247,6 +251,7 @@ async def get(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
resource_name=resource_name,
can_fetch_content=can_fetch_content,
template_url=self.get.metadata['url'],
)
request = _convert_request(request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CreatedByType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
KEY = "Key"

class Kind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The kind of workbook. Choices are user and shared.
"""The kind of workbook. Only valid value is shared.
"""

USER = "user"
Expand All @@ -45,7 +45,7 @@ class ManagedServiceIdentityType(with_metaclass(CaseInsensitiveEnumMeta, str, En
SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"

class SharedTypeKind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The kind of workbook. Choices are user and shared.
"""The kind of workbook. Only valid value is shared.
"""

USER = "user"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class WorkbookResource(TrackedResource):
:vartype location: str
:ivar identity: Identity used for BYOS.
:vartype identity: ~azure.mgmt.applicationinsights.v2021_08_01.models.WorkbookResourceIdentity
:ivar kind: The kind of workbook. Choices are user and shared. Possible values include: "user",
:ivar kind: The kind of workbook. Only valid value is shared. Possible values include: "user",
"shared".
:vartype kind: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.Kind
:ivar etag: Resource etag.
Expand Down Expand Up @@ -338,7 +338,7 @@ def __init__(
:keyword identity: Identity used for BYOS.
:paramtype identity:
~azure.mgmt.applicationinsights.v2021_08_01.models.WorkbookResourceIdentity
:keyword kind: The kind of workbook. Choices are user and shared. Possible values include:
:keyword kind: The kind of workbook. Only valid value is shared. Possible values include:
"user", "shared".
:paramtype kind: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.Kind
:keyword etag: Resource etag.
Expand Down Expand Up @@ -371,7 +371,7 @@ class Workbook(WorkbookResource):
:vartype location: str
:ivar identity: Identity used for BYOS.
:vartype identity: ~azure.mgmt.applicationinsights.v2021_08_01.models.WorkbookResourceIdentity
:ivar kind: The kind of workbook. Choices are user and shared. Possible values include: "user",
:ivar kind: The kind of workbook. Only valid value is shared. Possible values include: "user",
"shared".
:vartype kind: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.Kind
:ivar etag: Resource etag.
Expand Down Expand Up @@ -465,7 +465,7 @@ def __init__(
:keyword identity: Identity used for BYOS.
:paramtype identity:
~azure.mgmt.applicationinsights.v2021_08_01.models.WorkbookResourceIdentity
:keyword kind: The kind of workbook. Choices are user and shared. Possible values include:
:keyword kind: The kind of workbook. Only valid value is shared. Possible values include:
"user", "shared".
:paramtype kind: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.Kind
:keyword etag: Resource etag.
Expand Down Expand Up @@ -694,7 +694,7 @@ def __init__(
class WorkbookUpdateParameters(msrest.serialization.Model):
"""The parameters that can be provided when updating workbook properties properties.

:ivar kind: The kind of workbook. Choices are user and shared. Possible values include: "user",
:ivar kind: The kind of workbook. Only valid value is shared. Possible values include: "user",
"shared".
:vartype kind: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.SharedTypeKind
:ivar tags: A set of tags. Resource tags.
Expand Down Expand Up @@ -740,7 +740,7 @@ def __init__(
**kwargs
):
"""
:keyword kind: The kind of workbook. Choices are user and shared. Possible values include:
:keyword kind: The kind of workbook. Only valid value is shared. Possible values include:
"user", "shared".
:paramtype kind: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.SharedTypeKind
:keyword tags: A set of tags. Resource tags.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def build_get_request(
subscription_id: str,
resource_group_name: str,
resource_name: str,
*,
can_fetch_content: Optional[bool] = None,
**kwargs: Any
) -> HttpRequest:
api_version = "2021-08-01"
Expand All @@ -133,6 +135,8 @@ def build_get_request(
# Construct parameters
query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any]
query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str')
if can_fetch_content is not None:
query_parameters['canFetchContent'] = _SERIALIZER.query("can_fetch_content", can_fetch_content, 'bool')

# Construct headers
header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
Expand Down Expand Up @@ -377,7 +381,7 @@ def list_by_subscription(
can_fetch_content: Optional[bool] = None,
**kwargs: Any
) -> Iterable["_models.WorkbooksListResult"]:
"""Get all private workbooks defined within a specified subscription and category.
"""Get all Workbooks defined within a specified subscription and category.

:param category: Category of workbook to return.
:type category: str or ~azure.mgmt.applicationinsights.v2021_08_01.models.CategoryType
Expand Down Expand Up @@ -546,6 +550,7 @@ def get(
self,
resource_group_name: str,
resource_name: str,
can_fetch_content: Optional[bool] = None,
**kwargs: Any
) -> "_models.Workbook":
"""Get a single workbook by its resourceName.
Expand All @@ -554,6 +559,9 @@ def get(
:type resource_group_name: str
:param resource_name: The name of the Application Insights component resource.
:type resource_name: str
:param can_fetch_content: Flag indicating whether or not to return the full content for each
applicable workbook. If false, only return summary content for workbooks.
:type can_fetch_content: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Workbook, or the result of cls(response)
:rtype: ~azure.mgmt.applicationinsights.v2021_08_01.models.Workbook
Expand All @@ -570,6 +578,7 @@ def get(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
resource_name=resource_name,
can_fetch_content=can_fetch_content,
template_url=self.get.metadata['url'],
)
request = _convert_request(request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"