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 azure-mgmt-authorization] Fix Authorization C# readme file typo #3265

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 @@ -10,6 +10,8 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import Error
from ._models_py3 import ErrorError
from ._models_py3 import Permission
from ._models_py3 import ProviderOperation
from ._models_py3 import ProviderOperationsMetadata
Expand All @@ -20,6 +22,8 @@
from ._models_py3 import RoleDefinition
from ._models_py3 import RoleDefinitionFilter
except (SyntaxError, ImportError):
from ._models import Error
from ._models import ErrorError
from ._models import Permission
from ._models import ProviderOperation
from ._models import ProviderOperationsMetadata
Expand All @@ -35,6 +39,8 @@
from ._paged_models import RoleDefinitionPaged

__all__ = [
'Error',
'ErrorError',
'Permission',
'ProviderOperation',
'ProviderOperationsMetadata',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,43 @@ class CloudError(Model):
}


class Error(Model):
"""Object to be thrown in case of an unsuccessful response.

:param error:
:type error:
~azure.mgmt.authorization.v2018_01_01_preview.models.ErrorError
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorError'},
}

def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ErrorError(Model):
"""ErrorError.

:param code: Brief error code
:type code: str
:param message: Longer message explaining the details of the error
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ErrorError, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)


class Permission(Model):
"""Role definition permissions.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,43 @@ class CloudError(Model):
}


class Error(Model):
"""Object to be thrown in case of an unsuccessful response.

:param error:
:type error:
~azure.mgmt.authorization.v2018_01_01_preview.models.ErrorError
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorError'},
}

def __init__(self, *, error=None, **kwargs) -> None:
super(Error, self).__init__(**kwargs)
self.error = error


class ErrorError(Model):
"""ErrorError.

:param code: Brief error code
:type code: str
:param message: Longer message explaining the details of the error
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None:
super(ErrorError, self).__init__(**kwargs)
self.code = code
self.message = message


class Permission(Model):
"""Role definition permissions.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,24 @@
from ._models_py3 import DenyAssignment
from ._models_py3 import DenyAssignmentFilter
from ._models_py3 import DenyAssignmentPermission
from ._models_py3 import Error
from ._models_py3 import ErrorError
from ._models_py3 import Principal
except (SyntaxError, ImportError):
from ._models import DenyAssignment
from ._models import DenyAssignmentFilter
from ._models import DenyAssignmentPermission
from ._models import Error
from ._models import ErrorError
from ._models import Principal
from ._paged_models import DenyAssignmentPaged

__all__ = [
'DenyAssignment',
'DenyAssignmentFilter',
'DenyAssignmentPermission',
'Error',
'ErrorError',
'Principal',
'DenyAssignmentPaged',
]
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,43 @@ def __init__(self, **kwargs):
self.not_data_actions = kwargs.get('not_data_actions', None)


class Error(Model):
"""Object to be thrown in case of an unsuccessful response.

:param error: Object to be thrown in case of an unsuccessful response
:type error:
~azure.mgmt.authorization.v2018_07_01_preview.models.ErrorError
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorError'},
}

def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ErrorError(Model):
"""Object to be thrown in case of an unsuccessful response.

:param code: Brief error code
:type code: str
:param message: Longer message explaining the details of the error
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ErrorError, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)


class Principal(Model):
"""Deny assignment principal.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,43 @@ def __init__(self, *, actions=None, not_actions=None, data_actions=None, not_dat
self.not_data_actions = not_data_actions


class Error(Model):
"""Object to be thrown in case of an unsuccessful response.

:param error: Object to be thrown in case of an unsuccessful response
:type error:
~azure.mgmt.authorization.v2018_07_01_preview.models.ErrorError
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorError'},
}

def __init__(self, *, error=None, **kwargs) -> None:
super(Error, self).__init__(**kwargs)
self.error = error


class ErrorError(Model):
"""Object to be thrown in case of an unsuccessful response.

:param code: Brief error code
:type code: str
:param message: Longer message explaining the details of the error
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None:
super(ErrorError, self).__init__(**kwargs)
self.code = code
self.message = message


class Principal(Model):
"""Deny assignment principal.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import Error
from ._models_py3 import ErrorError
from ._models_py3 import RoleAssignment
from ._models_py3 import RoleAssignmentCreateParameters
from ._models_py3 import RoleAssignmentFilter
except (SyntaxError, ImportError):
from ._models import Error
from ._models import ErrorError
from ._models import RoleAssignment
from ._models import RoleAssignmentCreateParameters
from ._models import RoleAssignmentFilter
Expand All @@ -23,6 +27,8 @@
)

__all__ = [
'Error',
'ErrorError',
'RoleAssignment',
'RoleAssignmentCreateParameters',
'RoleAssignmentFilter',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,43 @@ class CloudError(Model):
}


class Error(Model):
"""Object to be thrown in case of an unsuccessful response.

:param error: Object to be thrown in case of an unsuccessful response
:type error:
~azure.mgmt.authorization.v2020_04_01_preview.models.ErrorError
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorError'},
}

def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ErrorError(Model):
"""Object to be thrown in case of an unsuccessful response.

:param code: Brief error code
:type code: str
:param message: Longer message explaining the details of the error
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ErrorError, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)


class RoleAssignment(Model):
"""Role Assignments.

Expand Down Expand Up @@ -54,8 +91,19 @@ class RoleAssignment(Model):
StringEqualsIgnoreCase 'foo_storage_container'
:type condition: str
:param condition_version: Version of the condition. Currently accepted
values are '1.0' or '2.0'
value is '2.0'
:type condition_version: str
:param created_on: Time it was created
:type created_on: datetime
:param updated_on: Time it was updated
:type updated_on: datetime
:param created_by: Id of the user who created the assignment
:type created_by: str
:param updated_by: Id of the user who updated the assignment
:type updated_by: str
:param delegated_managed_identity_resource_id: Id of the delegated managed
identity resource
:type delegated_managed_identity_resource_id: str
"""

_validation = {
Expand All @@ -76,6 +124,11 @@ class RoleAssignment(Model):
'description': {'key': 'properties.description', 'type': 'str'},
'condition': {'key': 'properties.condition', 'type': 'str'},
'condition_version': {'key': 'properties.conditionVersion', 'type': 'str'},
'created_on': {'key': 'properties.createdOn', 'type': 'iso-8601'},
'updated_on': {'key': 'properties.updatedOn', 'type': 'iso-8601'},
'created_by': {'key': 'properties.createdBy', 'type': 'str'},
'updated_by': {'key': 'properties.updatedBy', 'type': 'str'},
'delegated_managed_identity_resource_id': {'key': 'properties.delegatedManagedIdentityResourceId', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -91,6 +144,11 @@ def __init__(self, **kwargs):
self.description = kwargs.get('description', None)
self.condition = kwargs.get('condition', None)
self.condition_version = kwargs.get('condition_version', None)
self.created_on = kwargs.get('created_on', None)
self.updated_on = kwargs.get('updated_on', None)
self.created_by = kwargs.get('created_by', None)
self.updated_by = kwargs.get('updated_by', None)
self.delegated_managed_identity_resource_id = kwargs.get('delegated_managed_identity_resource_id', None)


class RoleAssignmentCreateParameters(Model):
Expand All @@ -116,9 +174,13 @@ class RoleAssignmentCreateParameters(Model):
:type can_delegate: bool
:param description: Description of role assignment
:type description: str
:param condition: The conditions on the role assignment
:param condition: The conditions on the role assignment. This limits the
resources it can be assigned to. e.g.:
@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName]
StringEqualsIgnoreCase 'foo_storage_container'
:type condition: str
:param condition_version: Version of the condition
:param condition_version: Version of the condition. Currently accepted
value is '2.0'
:type condition_version: str
"""

Expand Down
Loading