Skip to content

Commit

Permalink
Merge pull request #864 from AutorestCI/RestAPI-PR688
Browse files Browse the repository at this point in the history
Automatic PR from RestAPI-PR688
  • Loading branch information
lmazuel committed Nov 10, 2016
2 parents 056f86b + c6cdacf commit 96725c8
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CheckNameResponse(Model):
Possible values include: 'Unavailable', 'Invalid'
:type reason: str or :class:`CheckNameReason
<azure.mgmt.powerbiembedded.models.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
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -51,6 +51,8 @@ def get_by_name(
<azure.mgmt.powerbiembedded.models.WorkspaceCollection>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}'
Expand Down Expand Up @@ -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
Expand All @@ -118,6 +120,8 @@ def create(
<azure.mgmt.powerbiembedded.models.WorkspaceCollection>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
body = models.CreateWorkspaceCollectionRequest(location=location, tags=tags)

Expand Down Expand Up @@ -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
Expand All @@ -187,6 +191,8 @@ def update(
<azure.mgmt.powerbiembedded.models.WorkspaceCollection>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
body = models.UpdateWorkspaceCollectionRequest(tags=tags)

Expand Down Expand Up @@ -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
Expand All @@ -252,6 +258,8 @@ def delete(
instance that returns None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}'
Expand Down Expand Up @@ -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
Expand All @@ -330,6 +338,8 @@ def check_name_availability(
<azure.mgmt.powerbiembedded.models.CheckNameResponse>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
body = models.CheckNameRequest(name=name, type=type)

Expand Down Expand Up @@ -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
Expand All @@ -391,6 +401,8 @@ def list_by_resource_group(
overrides<msrest:optionsforoperations>`.
:rtype: :class:`WorkspaceCollectionPaged
<azure.mgmt.powerbiembedded.models.WorkspaceCollectionPaged>`
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down Expand Up @@ -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
Expand All @@ -453,6 +465,8 @@ def list_by_subscription(
overrides<msrest:optionsforoperations>`.
:rtype: :class:`WorkspaceCollectionPaged
<azure.mgmt.powerbiembedded.models.WorkspaceCollectionPaged>`
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down Expand Up @@ -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
Expand All @@ -521,6 +535,8 @@ def get_access_keys(
<azure.mgmt.powerbiembedded.models.WorkspaceCollectionAccessKeys>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/listKeys'
Expand Down Expand Up @@ -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
Expand All @@ -585,6 +601,8 @@ def regenerate_key(
<azure.mgmt.powerbiembedded.models.WorkspaceCollectionAccessKeys>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
body = models.WorkspaceCollectionAccessKey(key_name=key_name)

Expand Down Expand Up @@ -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
Expand All @@ -653,6 +671,8 @@ def migrate(
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
body = models.MigrateWorkspaceCollectionRequest(target_resource_group=target_resource_group, resources=resources)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -49,6 +49,8 @@ def list(
overrides<msrest:optionsforoperations>`.
:rtype: :class:`WorkspacePaged
<azure.mgmt.powerbiembedded.models.WorkspacePaged>`
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,8 +30,8 @@ class PowerBIEmbeddedManagementClientConfiguration(AzureConfiguration):
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
: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
Expand Down Expand Up @@ -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
Expand All @@ -92,8 +93,8 @@ class PowerBIEmbeddedManagementClient(object):
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
: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
Expand Down Expand Up @@ -140,6 +141,8 @@ def get_available_operations(
<azure.mgmt.powerbiembedded.models.OperationList>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`ErrorException<azure.mgmt.powerbiembedded.models.ErrorException>`
"""
# Construct URL
url = '/providers/Microsoft.PowerBI/operations'
Expand Down

0 comments on commit 96725c8

Please sign in to comment.