Skip to content

Commit

Permalink
make client
Browse files Browse the repository at this point in the history
  • Loading branch information
cadenmarchese committed Jul 26, 2024
1 parent 3124291 commit 936d50d
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .sha256sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ b1f1de0fe40d05de90742b17928968923b936adc294000f58974f50a297581dd swagger/redhat
c023515341196746454c0ae7af077d40d3ec13f6b88b33cb558f0a7ab17a5a24 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2023-07-01-preview/redhatopenshift.json
440748951dd1c3b34b5ccbdcb7cd966e3b89490887a1f1d64429561fad789515 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-09-04/redhatopenshift.json
74a46fdde6ceb0121fe1515c7e11e902dd921b54cffe693307fb02b3dc88f26e swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-11-22/redhatopenshift.json
b0c6ed4e05ede038c10e31ac94e493c74cad84a487ecacd7276c880c3fe753ad swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json
7eca34ebaf0422d0ef5dbb90640cf7b1b24cdd10e16d63f71ef69f7fa460a806 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
OutboundType,
PreconfiguredNSG,
ProvisioningState,
ResourceIdentityType,
Visibility,
)

Expand Down Expand Up @@ -160,5 +161,6 @@
'OutboundType',
'PreconfiguredNSG',
'ProvisioningState',
'ResourceIdentityType',
'Visibility',
]
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
SUCCEEDED = "Succeeded"
UPDATING = "Updating"

class ResourceIdentityType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The identity type.
"""

SYSTEM_ASSIGNED = "SystemAssigned"
USER_ASSIGNED = "UserAssigned"

class Visibility(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Visibility represents visibility.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,18 +282,25 @@ def __init__(
class Identity(msrest.serialization.Model):
"""Identity stores information about the cluster MSI(s) in a workload identity cluster.
:ivar type:
:vartype type: str
Variables are only populated by the server, and will be ignored when sending a request.
:ivar type: The identity type. Possible values include: "SystemAssigned", "UserAssigned".
:vartype type: str or
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType
:ivar principal_id:
:vartype principal_id: str
:ivar tenant_id:
:vartype tenant_id: str
:ivar user_assigned_identities: UserAssignedIdentities stores a mapping from resource IDs of
managed identities to their client/principal IDs.
:ivar user_assigned_identities: Dictionary of :code:`<ClusterUserAssignedIdentity>`.
:vartype user_assigned_identities: dict[str,
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ClusterUserAssignedIdentity]
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
Expand All @@ -306,21 +313,17 @@ def __init__(
**kwargs
):
"""
:keyword type:
:paramtype type: str
:keyword principal_id:
:paramtype principal_id: str
:keyword tenant_id:
:paramtype tenant_id: str
:keyword user_assigned_identities: UserAssignedIdentities stores a mapping from resource IDs of
managed identities to their client/principal IDs.
:keyword type: The identity type. Possible values include: "SystemAssigned", "UserAssigned".
:paramtype type: str or
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType
:keyword user_assigned_identities: Dictionary of :code:`<ClusterUserAssignedIdentity>`.
:paramtype user_assigned_identities: dict[str,
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ClusterUserAssignedIdentity]
"""
super(Identity, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.principal_id = kwargs.get('principal_id', None)
self.tenant_id = kwargs.get('tenant_id', None)
self.principal_id = None
self.tenant_id = None
self.user_assigned_identities = kwargs.get('user_assigned_identities', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,18 +311,25 @@ def __init__(
class Identity(msrest.serialization.Model):
"""Identity stores information about the cluster MSI(s) in a workload identity cluster.
:ivar type:
:vartype type: str
Variables are only populated by the server, and will be ignored when sending a request.
:ivar type: The identity type. Possible values include: "SystemAssigned", "UserAssigned".
:vartype type: str or
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType
:ivar principal_id:
:vartype principal_id: str
:ivar tenant_id:
:vartype tenant_id: str
:ivar user_assigned_identities: UserAssignedIdentities stores a mapping from resource IDs of
managed identities to their client/principal IDs.
:ivar user_assigned_identities: Dictionary of :code:`<ClusterUserAssignedIdentity>`.
:vartype user_assigned_identities: dict[str,
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ClusterUserAssignedIdentity]
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
Expand All @@ -333,28 +340,22 @@ class Identity(msrest.serialization.Model):
def __init__(
self,
*,
type: Optional[str] = None,
principal_id: Optional[str] = None,
tenant_id: Optional[str] = None,
type: Optional[Union[str, "ResourceIdentityType"]] = None,
user_assigned_identities: Optional[Dict[str, "ClusterUserAssignedIdentity"]] = None,
**kwargs
):
"""
:keyword type:
:paramtype type: str
:keyword principal_id:
:paramtype principal_id: str
:keyword tenant_id:
:paramtype tenant_id: str
:keyword user_assigned_identities: UserAssignedIdentities stores a mapping from resource IDs of
managed identities to their client/principal IDs.
:keyword type: The identity type. Possible values include: "SystemAssigned", "UserAssigned".
:paramtype type: str or
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType
:keyword user_assigned_identities: Dictionary of :code:`<ClusterUserAssignedIdentity>`.
:paramtype user_assigned_identities: dict[str,
~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ClusterUserAssignedIdentity]
"""
super(Identity, self).__init__(**kwargs)
self.type = type
self.principal_id = principal_id
self.tenant_id = tenant_id
self.principal_id = None
self.tenant_id = None
self.user_assigned_identities = user_assigned_identities


Expand Down

0 comments on commit 936d50d

Please sign in to comment.