diff --git a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/check_name_response.py b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/check_name_response.py index 53b87881dce2..8bdefa6a9481 100644 --- a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/check_name_response.py +++ b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/check_name_response.py @@ -22,7 +22,7 @@ class CheckNameResponse(Model): Possible values include: 'Unavailable', 'Invalid' :type reason: str or :class:`CheckNameReason ` - :param message: Message indicating an unavailable name due to a conflict + :param message: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. :type message: str """ diff --git a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/display.py b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/display.py index c5e7e5f0a49b..b7e9a40f1f06 100644 --- a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/display.py +++ b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/display.py @@ -16,23 +16,23 @@ class Display(Model): """Display. :param provider: The localized friendly form of the resource provider - name – it is expected to also include the publisher/company responsible. - It should use Title Casing and begin with “Microsoft” for 1st party + name. This form is also expected to include the publisher/company + responsible. Use Title Casing. Begin with “Microsoft” for 1st party services. :type provider: str :param resource: The localized friendly form of the resource type related - to this action/operation – it should match the public documentation for - the resource provider. It should use Title Casing – for examples, please + to this action/operation. This form should match the public + documentation for the resource provider. Use Title Casing. For examples, refer to the “name” section. :type resource: str - :param operation: The localized friendly name for the operation, as it - should be shown to the user. It should be concise (to fit in drop downs) - but clear (i.e. self-documenting). It should use Title Casing and - include the entity/resource to which it applies. + :param operation: The localized friendly name for the operation as shown + to the user. This name should be concise (to fit in drop downs), but + clear (self-documenting). Use Title Casing and include the + entity/resource to which it applies. :type operation: str - :param description: The localized friendly description for the operation, - as it should be shown to the user. It should be thorough, yet concise – - it will be used in tool tips and detailed views. + :param description: The localized friendly description for the operation + as shown to the user. This description should be thorough, yet concise. + It will be used in tool-tips and detailed views. :type description: str :param origin: The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default diff --git a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/migrate_workspace_collection_request.py b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/migrate_workspace_collection_request.py index f41e122f498d..27a312454527 100644 --- a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/migrate_workspace_collection_request.py +++ b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/migrate_workspace_collection_request.py @@ -15,8 +15,8 @@ class MigrateWorkspaceCollectionRequest(Model): """MigrateWorkspaceCollectionRequest. - :param target_resource_group: Name of the resource group that the Power - BI Workspace Collections will be migrated to. + :param target_resource_group: Name of the resource group the Power BI + workspace collections will be migrated to. :type target_resource_group: str :param resources: :type resources: list of str diff --git a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/operation.py b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/operation.py index 565ae127124d..4cf9f71112ee 100644 --- a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/operation.py +++ b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/operation.py @@ -16,8 +16,8 @@ class Operation(Model): """Operation. :param name: The name of the operation being performed on this particular - object. It should match the action name that appears in RBAC / the event - service. + object. This name should match the action name that appears in RBAC / + the event service. :type name: str :param display: :type display: :class:`Display diff --git a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspace_collections_operations.py b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspace_collections_operations.py index 331884e96db0..4c0f1dfbf633 100644 --- a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspace_collections_operations.py +++ b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspace_collections_operations.py @@ -39,8 +39,8 @@ def get_by_name( :param resource_group_name: Azure resource group :type resource_group_name: str - :param workspace_collection_name: Power BI Embedded workspace - collection name + :param workspace_collection_name: Power BI Embedded Workspace + Collection name :type workspace_collection_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -51,6 +51,8 @@ def get_by_name( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}' @@ -97,13 +99,13 @@ def create( self, resource_group_name, workspace_collection_name, location=None, tags=None, custom_headers=None, raw=False, **operation_config): """Creates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace Collection contains one or more - Power BI Workspaces and can be used to provision keys that provide - API access to those Power BI Workspaces. + workspaces, and can be used to provision keys that provide API access + to those workspaces. :param resource_group_name: Azure resource group :type resource_group_name: str - :param workspace_collection_name: Power BI Embedded workspace - collection name + :param workspace_collection_name: Power BI Embedded Workspace + Collection name :type workspace_collection_name: str :param location: Azure location :type location: str @@ -118,6 +120,8 @@ def create( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ body = models.CreateWorkspaceCollectionRequest(location=location, tags=tags) @@ -173,8 +177,8 @@ def update( :param resource_group_name: Azure resource group :type resource_group_name: str - :param workspace_collection_name: Power BI Embedded workspace - collection name + :param workspace_collection_name: Power BI Embedded Workspace + Collection name :type workspace_collection_name: str :param tags: :type tags: dict @@ -187,6 +191,8 @@ def update( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ body = models.UpdateWorkspaceCollectionRequest(tags=tags) @@ -241,8 +247,8 @@ def delete( :param resource_group_name: Azure resource group :type resource_group_name: str - :param workspace_collection_name: Power BI Embedded workspace - collection name + :param workspace_collection_name: Power BI Embedded Workspace + Collection name :type workspace_collection_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -252,6 +258,8 @@ def delete( instance that returns None :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}' @@ -312,8 +320,8 @@ def get_long_running_output(response): def check_name_availability( self, location, name=None, type="Microsoft.PowerBI/workspaceCollections", custom_headers=None, raw=False, **operation_config): - """Check that the specified Power BI Workspace Collection name is valid - and not in use. + """Verify the specified Power BI Workspace Collection name is valid and + not already in use. :param location: Azure location :type location: str @@ -330,6 +338,8 @@ def check_name_availability( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ body = models.CheckNameRequest(name=name, type=type) @@ -379,7 +389,7 @@ def check_name_availability( def list_by_resource_group( self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Retrieves all existing Power BI Workspace Collections in the specified + """Retrieves all existing Power BI workspace collections in the specified resource group. :param resource_group_name: Azure resource group @@ -391,6 +401,8 @@ def list_by_resource_group( overrides`. :rtype: :class:`WorkspaceCollectionPaged ` + :raises: + :class:`ErrorException` """ def internal_paging(next_link=None, raw=False): @@ -443,7 +455,7 @@ def internal_paging(next_link=None, raw=False): def list_by_subscription( self, custom_headers=None, raw=False, **operation_config): - """Retrieves all existing Power BI Workspace Collections in the specified + """Retrieves all existing Power BI workspace collections in the specified subscription. :param dict custom_headers: headers that will be added to the request @@ -453,6 +465,8 @@ def list_by_subscription( overrides`. :rtype: :class:`WorkspaceCollectionPaged ` + :raises: + :class:`ErrorException` """ def internal_paging(next_link=None, raw=False): @@ -509,8 +523,8 @@ def get_access_keys( :param resource_group_name: Azure resource group :type resource_group_name: str - :param workspace_collection_name: Power BI Embedded workspace - collection name + :param workspace_collection_name: Power BI Embedded Workspace + Collection name :type workspace_collection_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -521,6 +535,8 @@ def get_access_keys( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/listKeys' @@ -570,8 +586,8 @@ def regenerate_key( :param resource_group_name: Azure resource group :type resource_group_name: str - :param workspace_collection_name: Power BI Embedded workspace - collection name + :param workspace_collection_name: Power BI Embedded Workspace + Collection name :type workspace_collection_name: str :param key_name: Key name. Possible values include: 'key1', 'key2' :type key_name: str or :class:`AccessKeyName @@ -585,6 +601,8 @@ def regenerate_key( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ body = models.WorkspaceCollectionAccessKey(key_name=key_name) @@ -640,8 +658,8 @@ def migrate( :param resource_group_name: Azure resource group :type resource_group_name: str - :param target_resource_group: Name of the resource group that the - Power BI Workspace Collections will be migrated to. + :param target_resource_group: Name of the resource group the Power BI + workspace collections will be migrated to. :type target_resource_group: str :param resources: :type resources: list of str @@ -653,6 +671,8 @@ def migrate( :rtype: None :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ body = models.MigrateWorkspaceCollectionRequest(target_resource_group=target_resource_group, resources=resources) diff --git a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspaces_operations.py b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspaces_operations.py index 54993678c4b6..09c19e85173a 100644 --- a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspaces_operations.py +++ b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/operations/workspaces_operations.py @@ -34,13 +34,13 @@ def __init__(self, client, config, serializer, deserializer): def list( self, resource_group_name, workspace_collection_name, custom_headers=None, raw=False, **operation_config): - """Retrieves all existing Power BI Workspaces in the specified Workspace - Collection. + """Retrieves all existing Power BI workspaces in the specified workspace + collection. :param resource_group_name: Azure resource group :type resource_group_name: str - :param workspace_collection_name: Power BI Embedded workspace - collection name + :param workspace_collection_name: Power BI Embedded Workspace + Collection name :type workspace_collection_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -49,6 +49,8 @@ def list( overrides`. :rtype: :class:`WorkspacePaged ` + :raises: + :class:`ErrorException` """ def internal_paging(next_link=None, raw=False): diff --git a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/power_bi_embedded_management_client.py b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/power_bi_embedded_management_client.py index 30b4df84fbf4..f506db5eff55 100644 --- a/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/power_bi_embedded_management_client.py +++ b/azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/power_bi_embedded_management_client.py @@ -14,6 +14,7 @@ from msrestazure import AzureConfiguration from .version import VERSION from msrest.pipeline import ClientRawResponse +from msrestazure.azure_operation import AzureOperationPoller import uuid from .operations.workspace_collections_operations import WorkspaceCollectionsOperations from .operations.workspaces_operations import WorkspacesOperations @@ -29,8 +30,8 @@ class PowerBIEmbeddedManagementClientConfiguration(AzureConfiguration): :type credentials: :mod:`A msrestazure Credentials object` :param subscription_id: Gets subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. + identify a Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. :type subscription_id: str :param api_version: Client Api Version. :type api_version: str @@ -78,7 +79,7 @@ def __init__( class PowerBIEmbeddedManagementClient(object): - """Client to manage your Power BI embedded workspace collections and retrieve workspaces. + """Client to manage your Power BI Embedded workspace collections and retrieve workspaces. :ivar config: Configuration for client. :vartype config: PowerBIEmbeddedManagementClientConfiguration @@ -92,8 +93,8 @@ class PowerBIEmbeddedManagementClient(object): :type credentials: :mod:`A msrestazure Credentials object` :param subscription_id: Gets subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. + identify a Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. :type subscription_id: str :param api_version: Client Api Version. :type api_version: str @@ -140,6 +141,8 @@ def get_available_operations( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: + :class:`ErrorException` """ # Construct URL url = '/providers/Microsoft.PowerBI/operations'