diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/_meta.json b/sdk/containerregistry/azure-mgmt-containerregistry/_meta.json index 510e4a0c44f5..7df755da8b8c 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/_meta.json +++ b/sdk/containerregistry/azure-mgmt-containerregistry/_meta.json @@ -1,12 +1,12 @@ { - "commit": "4fc983fb08e5fd8a7a821eb6491f5338ce52a9cf", + "commit": "14ee195eaa170407e60cf9e1084fba6a05ba55d2", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ "@autorest/python@6.34.1", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/containerregistry/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "autorest_command": "autorest specification/containerregistry/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/containerregistry/resource-manager/readme.md", "package-2023-08-preview-only": "2023-08-29 18:41:57 -0700 3e3098d6b9302e166b611ce72b3392786d3ea0f7 Microsoft.ContainerRegistry/preview/2023-08-01-preview/containerregistry.json", "package-2023-07-only": "2023-08-16 14:55:49 -0700 d5631d7fbffb672434457b5f2f16cdc6691356f9 Microsoft.ContainerRegistry/stable/2023-07-01/containerregistry.json", diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/__init__.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/__init__.py index a538dccf6df1..029379e5fe3f 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/__init__.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/__init__.py @@ -25,12 +25,7 @@ CallbackConfig, ConnectedRegistry, ConnectedRegistryListResult, - ConnectedRegistryProperties, - ConnectedRegistryPropertiesActivation, - ConnectedRegistryPropertiesAutoGenerated, ConnectedRegistryUpdateParameters, - ConnectedRegistryUpdateParametersProperties, - ConnectedRegistryUpdateProperties, CredentialHealth, CredentialSet, CredentialSetListResult, @@ -172,12 +167,7 @@ "CallbackConfig", "ConnectedRegistry", "ConnectedRegistryListResult", - "ConnectedRegistryProperties", - "ConnectedRegistryPropertiesActivation", - "ConnectedRegistryPropertiesAutoGenerated", "ConnectedRegistryUpdateParameters", - "ConnectedRegistryUpdateParametersProperties", - "ConnectedRegistryUpdateProperties", "CredentialHealth", "CredentialSet", "CredentialSetListResult", diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/_models_py3.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/_models_py3.py index aca234283150..1642db3b6027 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/_models_py3.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2025_04_01/models/_models_py3.py @@ -395,10 +395,9 @@ class ConnectedRegistry(ProxyResource): ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectionState :ivar last_activity_time: The last activity time of the connected registry. :vartype last_activity_time: ~datetime.datetime - :ivar activation: - :vartype activation: - ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectedRegistryPropertiesActivation - :ivar parent: The properties of the connected registry parent. + :ivar activation: The activation properties of the connected registry. + :vartype activation: ~azure.mgmt.containerregistry.v2025_04_01.models.ActivationProperties + :ivar parent: The parent of the connected registry. :vartype parent: ~azure.mgmt.containerregistry.v2025_04_01.models.ParentProperties :ivar client_token_ids: The list of the ACR token resource IDs used to authenticate clients to the connected registry. @@ -441,7 +440,7 @@ class ConnectedRegistry(ProxyResource): "version": {"key": "properties.version", "type": "str"}, "connection_state": {"key": "properties.connectionState", "type": "str"}, "last_activity_time": {"key": "properties.lastActivityTime", "type": "iso-8601"}, - "activation": {"key": "properties.activation", "type": "ConnectedRegistryPropertiesActivation"}, + "activation": {"key": "properties.activation", "type": "ActivationProperties"}, "parent": {"key": "properties.parent", "type": "ParentProperties"}, "client_token_ids": {"key": "properties.clientTokenIds", "type": "[str]"}, "login_server": {"key": "properties.loginServer", "type": "LoginServerProperties"}, @@ -467,7 +466,7 @@ def __init__( :keyword mode: The mode of the connected registry resource that indicates the permissions of the registry. Known values are: "ReadWrite", "ReadOnly", "Registry", and "Mirror". :paramtype mode: str or ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectedRegistryMode - :keyword parent: The properties of the connected registry parent. + :keyword parent: The parent of the connected registry. :paramtype parent: ~azure.mgmt.containerregistry.v2025_04_01.models.ParentProperties :keyword client_token_ids: The list of the ACR token resource IDs used to authenticate clients to the connected registry. @@ -489,7 +488,7 @@ def __init__( self.version: Optional[str] = None self.connection_state: Optional[Union[str, "_models.ConnectionState"]] = None self.last_activity_time: Optional[datetime.datetime] = None - self.activation: Optional["_models.ConnectedRegistryPropertiesActivation"] = None + self.activation: Optional["_models.ActivationProperties"] = None self.parent = parent self.client_token_ids = client_token_ids self.login_server = login_server @@ -533,188 +532,10 @@ def __init__( self.next_link = next_link -class ConnectedRegistryPropertiesAutoGenerated(_serialization.Model): - """The properties of a connected registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: Provisioning state of the resource. Known values are: "Creating", - "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.containerregistry.v2025_04_01.models.ProvisioningState - :ivar mode: The mode of the connected registry resource that indicates the permissions of the - registry. Required. Known values are: "ReadWrite", "ReadOnly", "Registry", and "Mirror". - :vartype mode: str or ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectedRegistryMode - :ivar version: The current version of ACR runtime on the connected registry. - :vartype version: str - :ivar connection_state: The current connection state of the connected registry. Known values - are: "Online", "Offline", "Syncing", and "Unhealthy". - :vartype connection_state: str or - ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectionState - :ivar last_activity_time: The last activity time of the connected registry. - :vartype last_activity_time: ~datetime.datetime - :ivar activation: - :vartype activation: - ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectedRegistryPropertiesActivation - :ivar parent: The properties of the connected registry parent. Required. - :vartype parent: ~azure.mgmt.containerregistry.v2025_04_01.models.ParentProperties - :ivar client_token_ids: The list of the ACR token resource IDs used to authenticate clients to - the connected registry. - :vartype client_token_ids: list[str] - :ivar login_server: The login server properties of the connected registry. - :vartype login_server: ~azure.mgmt.containerregistry.v2025_04_01.models.LoginServerProperties - :ivar logging: The logging properties of the connected registry. - :vartype logging: ~azure.mgmt.containerregistry.v2025_04_01.models.LoggingProperties - :ivar status_details: The list of current statuses of the connected registry. - :vartype status_details: - list[~azure.mgmt.containerregistry.v2025_04_01.models.StatusDetailProperties] - :ivar notifications_list: The list of notifications subscription information for the connected - registry. - :vartype notifications_list: list[str] - :ivar garbage_collection: The garbage collection properties of the connected registry. - :vartype garbage_collection: - ~azure.mgmt.containerregistry.v2025_04_01.models.GarbageCollectionProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "mode": {"required": True}, - "version": {"readonly": True}, - "connection_state": {"readonly": True}, - "last_activity_time": {"readonly": True}, - "activation": {"readonly": True}, - "parent": {"required": True}, - "status_details": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "mode": {"key": "mode", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "connection_state": {"key": "connectionState", "type": "str"}, - "last_activity_time": {"key": "lastActivityTime", "type": "iso-8601"}, - "activation": {"key": "activation", "type": "ConnectedRegistryPropertiesActivation"}, - "parent": {"key": "parent", "type": "ParentProperties"}, - "client_token_ids": {"key": "clientTokenIds", "type": "[str]"}, - "login_server": {"key": "loginServer", "type": "LoginServerProperties"}, - "logging": {"key": "logging", "type": "LoggingProperties"}, - "status_details": {"key": "statusDetails", "type": "[StatusDetailProperties]"}, - "notifications_list": {"key": "notificationsList", "type": "[str]"}, - "garbage_collection": {"key": "garbageCollection", "type": "GarbageCollectionProperties"}, - } - - def __init__( - self, - *, - mode: Union[str, "_models.ConnectedRegistryMode"], - parent: "_models.ParentProperties", - client_token_ids: Optional[List[str]] = None, - login_server: Optional["_models.LoginServerProperties"] = None, - logging: Optional["_models.LoggingProperties"] = None, - notifications_list: Optional[List[str]] = None, - garbage_collection: Optional["_models.GarbageCollectionProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword mode: The mode of the connected registry resource that indicates the permissions of - the registry. Required. Known values are: "ReadWrite", "ReadOnly", "Registry", and "Mirror". - :paramtype mode: str or ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectedRegistryMode - :keyword parent: The properties of the connected registry parent. Required. - :paramtype parent: ~azure.mgmt.containerregistry.v2025_04_01.models.ParentProperties - :keyword client_token_ids: The list of the ACR token resource IDs used to authenticate clients - to the connected registry. - :paramtype client_token_ids: list[str] - :keyword login_server: The login server properties of the connected registry. - :paramtype login_server: ~azure.mgmt.containerregistry.v2025_04_01.models.LoginServerProperties - :keyword logging: The logging properties of the connected registry. - :paramtype logging: ~azure.mgmt.containerregistry.v2025_04_01.models.LoggingProperties - :keyword notifications_list: The list of notifications subscription information for the - connected registry. - :paramtype notifications_list: list[str] - :keyword garbage_collection: The garbage collection properties of the connected registry. - :paramtype garbage_collection: - ~azure.mgmt.containerregistry.v2025_04_01.models.GarbageCollectionProperties - """ - super().__init__(**kwargs) - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.mode = mode - self.version: Optional[str] = None - self.connection_state: Optional[Union[str, "_models.ConnectionState"]] = None - self.last_activity_time: Optional[datetime.datetime] = None - self.activation: Optional["_models.ConnectedRegistryPropertiesActivation"] = None - self.parent = parent - self.client_token_ids = client_token_ids - self.login_server = login_server - self.logging = logging - self.status_details: Optional[List["_models.StatusDetailProperties"]] = None - self.notifications_list = notifications_list - self.garbage_collection = garbage_collection - - -class ConnectedRegistryProperties(ConnectedRegistryPropertiesAutoGenerated): - """ConnectedRegistryProperties. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: Provisioning state of the resource. Known values are: "Creating", - "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.containerregistry.v2025_04_01.models.ProvisioningState - :ivar mode: The mode of the connected registry resource that indicates the permissions of the - registry. Required. Known values are: "ReadWrite", "ReadOnly", "Registry", and "Mirror". - :vartype mode: str or ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectedRegistryMode - :ivar version: The current version of ACR runtime on the connected registry. - :vartype version: str - :ivar connection_state: The current connection state of the connected registry. Known values - are: "Online", "Offline", "Syncing", and "Unhealthy". - :vartype connection_state: str or - ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectionState - :ivar last_activity_time: The last activity time of the connected registry. - :vartype last_activity_time: ~datetime.datetime - :ivar activation: - :vartype activation: - ~azure.mgmt.containerregistry.v2025_04_01.models.ConnectedRegistryPropertiesActivation - :ivar parent: The properties of the connected registry parent. Required. - :vartype parent: ~azure.mgmt.containerregistry.v2025_04_01.models.ParentProperties - :ivar client_token_ids: The list of the ACR token resource IDs used to authenticate clients to - the connected registry. - :vartype client_token_ids: list[str] - :ivar login_server: The login server properties of the connected registry. - :vartype login_server: ~azure.mgmt.containerregistry.v2025_04_01.models.LoginServerProperties - :ivar logging: The logging properties of the connected registry. - :vartype logging: ~azure.mgmt.containerregistry.v2025_04_01.models.LoggingProperties - :ivar status_details: The list of current statuses of the connected registry. - :vartype status_details: - list[~azure.mgmt.containerregistry.v2025_04_01.models.StatusDetailProperties] - :ivar notifications_list: The list of notifications subscription information for the connected - registry. - :vartype notifications_list: list[str] - :ivar garbage_collection: The garbage collection properties of the connected registry. - :vartype garbage_collection: - ~azure.mgmt.containerregistry.v2025_04_01.models.GarbageCollectionProperties - """ - - -class ConnectedRegistryPropertiesActivation(ActivationProperties): - """ConnectedRegistryPropertiesActivation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar status: The activation status of the connected registry. Known values are: "Active" and - "Inactive". - :vartype status: str or ~azure.mgmt.containerregistry.v2025_04_01.models.ActivationStatus - """ - - class ConnectedRegistryUpdateParameters(_serialization.Model): """The parameters for updating a connected registry. - :ivar sync_properties: The parameters for updating the sync properties of the connected - registry with its parent. + :ivar sync_properties: The sync properties of the connected registry with its parent. :vartype sync_properties: ~azure.mgmt.containerregistry.v2025_04_01.models.SyncUpdateProperties :ivar logging: The logging properties of the connected registry. :vartype logging: ~azure.mgmt.containerregistry.v2025_04_01.models.LoggingProperties @@ -748,70 +569,7 @@ def __init__( **kwargs: Any ) -> None: """ - :keyword sync_properties: The parameters for updating the sync properties of the connected - registry with its parent. - :paramtype sync_properties: - ~azure.mgmt.containerregistry.v2025_04_01.models.SyncUpdateProperties - :keyword logging: The logging properties of the connected registry. - :paramtype logging: ~azure.mgmt.containerregistry.v2025_04_01.models.LoggingProperties - :keyword client_token_ids: The list of the ACR token resource IDs used to authenticate clients - to the connected registry. - :paramtype client_token_ids: list[str] - :keyword notifications_list: The list of notifications subscription information for the - connected registry. - :paramtype notifications_list: list[str] - :keyword garbage_collection: The garbage collection properties of the connected registry. - :paramtype garbage_collection: - ~azure.mgmt.containerregistry.v2025_04_01.models.GarbageCollectionProperties - """ - super().__init__(**kwargs) - self.sync_properties = sync_properties - self.logging = logging - self.client_token_ids = client_token_ids - self.notifications_list = notifications_list - self.garbage_collection = garbage_collection - - -class ConnectedRegistryUpdateProperties(_serialization.Model): - """The parameters for updating token properties. - - :ivar sync_properties: The parameters for updating the sync properties of the connected - registry with its parent. - :vartype sync_properties: ~azure.mgmt.containerregistry.v2025_04_01.models.SyncUpdateProperties - :ivar logging: The logging properties of the connected registry. - :vartype logging: ~azure.mgmt.containerregistry.v2025_04_01.models.LoggingProperties - :ivar client_token_ids: The list of the ACR token resource IDs used to authenticate clients to - the connected registry. - :vartype client_token_ids: list[str] - :ivar notifications_list: The list of notifications subscription information for the connected - registry. - :vartype notifications_list: list[str] - :ivar garbage_collection: The garbage collection properties of the connected registry. - :vartype garbage_collection: - ~azure.mgmt.containerregistry.v2025_04_01.models.GarbageCollectionProperties - """ - - _attribute_map = { - "sync_properties": {"key": "syncProperties", "type": "SyncUpdateProperties"}, - "logging": {"key": "logging", "type": "LoggingProperties"}, - "client_token_ids": {"key": "clientTokenIds", "type": "[str]"}, - "notifications_list": {"key": "notificationsList", "type": "[str]"}, - "garbage_collection": {"key": "garbageCollection", "type": "GarbageCollectionProperties"}, - } - - def __init__( - self, - *, - sync_properties: Optional["_models.SyncUpdateProperties"] = None, - logging: Optional["_models.LoggingProperties"] = None, - client_token_ids: Optional[List[str]] = None, - notifications_list: Optional[List[str]] = None, - garbage_collection: Optional["_models.GarbageCollectionProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword sync_properties: The parameters for updating the sync properties of the connected - registry with its parent. + :keyword sync_properties: The sync properties of the connected registry with its parent. :paramtype sync_properties: ~azure.mgmt.containerregistry.v2025_04_01.models.SyncUpdateProperties :keyword logging: The logging properties of the connected registry. @@ -834,26 +592,6 @@ def __init__( self.garbage_collection = garbage_collection -class ConnectedRegistryUpdateParametersProperties(ConnectedRegistryUpdateProperties): # pylint: disable=name-too-long - """ConnectedRegistryUpdateParametersProperties. - - :ivar sync_properties: The parameters for updating the sync properties of the connected - registry with its parent. - :vartype sync_properties: ~azure.mgmt.containerregistry.v2025_04_01.models.SyncUpdateProperties - :ivar logging: The logging properties of the connected registry. - :vartype logging: ~azure.mgmt.containerregistry.v2025_04_01.models.LoggingProperties - :ivar client_token_ids: The list of the ACR token resource IDs used to authenticate clients to - the connected registry. - :vartype client_token_ids: list[str] - :ivar notifications_list: The list of notifications subscription information for the connected - registry. - :vartype notifications_list: list[str] - :ivar garbage_collection: The garbage collection properties of the connected registry. - :vartype garbage_collection: - ~azure.mgmt.containerregistry.v2025_04_01.models.GarbageCollectionProperties - """ - - class CredentialHealth(_serialization.Model): """The health of the auth credential.