From 83f43efa13ac7269ed4ce0f89dde44ffb4fafb7f Mon Sep 17 00:00:00 2001 From: cadenmarchese Date: Mon, 29 Jul 2024 15:38:58 -0400 Subject: [PATCH] make client --- .sha256sum | 2 +- .../2024-08-12-preview/redhatopenshift/models.go | 8 ++++---- .../v2024_08_12_preview/models/_models.py | 14 ++++++++------ .../v2024_08_12_preview/models/_models_py3.py | 16 +++++++++------- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.sha256sum b/.sha256sum index 7020f805cba..a1664cfe840 100644 --- a/.sha256sum +++ b/.sha256sum @@ -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 -7eca34ebaf0422d0ef5dbb90640cf7b1b24cdd10e16d63f71ef69f7fa460a806 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json +018f1a62138bcbfddd626a0cd7f98606e7891510ac426f0cc5f98f3744175930 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json diff --git a/pkg/client/services/redhatopenshift/mgmt/2024-08-12-preview/redhatopenshift/models.go b/pkg/client/services/redhatopenshift/mgmt/2024-08-12-preview/redhatopenshift/models.go index de954824239..db81e0d98ea 100644 --- a/pkg/client/services/redhatopenshift/mgmt/2024-08-12-preview/redhatopenshift/models.go +++ b/pkg/client/services/redhatopenshift/mgmt/2024-08-12-preview/redhatopenshift/models.go @@ -145,8 +145,8 @@ type EffectiveOutboundIP struct { // Identity identity stores information about the cluster MSI(s) in a workload identity cluster. type Identity struct { - // Type - Possible values include: 'SystemAssigned', 'UserAssigned' - Type ResourceIdentityType `json:"type,omitempty"` + // ResourceIdentityType - Possible values include: 'SystemAssigned', 'UserAssigned' + ResourceIdentityType ResourceIdentityType `json:"resourceIdentityType,omitempty"` // PrincipalID - READ-ONLY PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY @@ -157,8 +157,8 @@ type Identity struct { // MarshalJSON is the custom marshaler for Identity. func (i Identity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if i.Type != "" { - objectMap["type"] = i.Type + if i.ResourceIdentityType != "" { + objectMap["resourceIdentityType"] = i.ResourceIdentityType } if i.UserAssignedIdentities != nil { objectMap["userAssignedIdentities"] = i.UserAssignedIdentities diff --git a/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models.py b/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models.py index 696b94fb790..2513e7a48a0 100644 --- a/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models.py +++ b/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models.py @@ -284,8 +284,9 @@ class Identity(msrest.serialization.Model): 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 + :ivar resource_identity_type: The identity type. Possible values include: "SystemAssigned", + "UserAssigned". + :vartype resource_identity_type: str or ~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType :ivar principal_id: :vartype principal_id: str @@ -302,7 +303,7 @@ class Identity(msrest.serialization.Model): } _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, + 'resource_identity_type': {'key': 'resourceIdentityType', 'type': 'str'}, 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterUserAssignedIdentity}'}, @@ -313,15 +314,16 @@ def __init__( **kwargs ): """ - :keyword type: The identity type. Possible values include: "SystemAssigned", "UserAssigned". - :paramtype type: str or + :keyword resource_identity_type: The identity type. Possible values include: "SystemAssigned", + "UserAssigned". + :paramtype resource_identity_type: str or ~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType :keyword user_assigned_identities: Dictionary of :code:``. :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.resource_identity_type = kwargs.get('resource_identity_type', None) self.principal_id = None self.tenant_id = None self.user_assigned_identities = kwargs.get('user_assigned_identities', None) diff --git a/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models_py3.py b/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models_py3.py index fd80f68c8ad..be4fa83a7a0 100644 --- a/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models_py3.py +++ b/python/client/azure/mgmt/redhatopenshift/v2024_08_12_preview/models/_models_py3.py @@ -313,8 +313,9 @@ class Identity(msrest.serialization.Model): 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 + :ivar resource_identity_type: The identity type. Possible values include: "SystemAssigned", + "UserAssigned". + :vartype resource_identity_type: str or ~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType :ivar principal_id: :vartype principal_id: str @@ -331,7 +332,7 @@ class Identity(msrest.serialization.Model): } _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, + 'resource_identity_type': {'key': 'resourceIdentityType', 'type': 'str'}, 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterUserAssignedIdentity}'}, @@ -340,20 +341,21 @@ class Identity(msrest.serialization.Model): def __init__( self, *, - type: Optional[Union[str, "ResourceIdentityType"]] = None, + resource_identity_type: Optional[Union[str, "ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "ClusterUserAssignedIdentity"]] = None, **kwargs ): """ - :keyword type: The identity type. Possible values include: "SystemAssigned", "UserAssigned". - :paramtype type: str or + :keyword resource_identity_type: The identity type. Possible values include: "SystemAssigned", + "UserAssigned". + :paramtype resource_identity_type: str or ~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ResourceIdentityType :keyword user_assigned_identities: Dictionary of :code:``. :paramtype user_assigned_identities: dict[str, ~azure.mgmt.redhatopenshift.v2024_08_12_preview.models.ClusterUserAssignedIdentity] """ super(Identity, self).__init__(**kwargs) - self.type = type + self.resource_identity_type = resource_identity_type self.principal_id = None self.tenant_id = None self.user_assigned_identities = user_assigned_identities