diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json b/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
index 1a977c991c47..5cd8ab1c6eab 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
@@ -1,11 +1,11 @@
{
- "commit": "f38115ac455af89493b0a0719d9a987404560dda",
+ "commit": "4c826baa8f319b1b2a79d87c77c1679fb749dc7a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
- "@autorest/python@6.2.7",
+ "@autorest/python@6.2.16",
"@autorest/modelerfour@4.24.3"
],
- "autorest_command": "autorest specification/app/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
+ "autorest_command": "autorest specification/app/resource-manager/readme.md --generate-sample=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.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/app/resource-manager/readme.md"
}
\ No newline at end of file
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_serialization.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_serialization.py
index 2c170e28dbca..f17c068e833e 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_serialization.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_serialization.py
@@ -38,7 +38,22 @@
import re
import sys
import codecs
-from typing import Optional, Union, AnyStr, IO, Mapping
+from typing import (
+ Dict,
+ Any,
+ cast,
+ Optional,
+ Union,
+ AnyStr,
+ IO,
+ Mapping,
+ Callable,
+ TypeVar,
+ MutableMapping,
+ Type,
+ List,
+ Mapping,
+)
try:
from urllib import quote # type: ignore
@@ -48,12 +63,14 @@
import isodate # type: ignore
-from typing import Dict, Any, cast
-
from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback
+from azure.core.serialization import NULL as AzureCoreNull
_BOM = codecs.BOM_UTF8.decode(encoding="utf-8")
+ModelType = TypeVar("ModelType", bound="Model")
+JSON = MutableMapping[str, Any]
+
class RawDeserializer:
@@ -277,8 +294,8 @@ class Model(object):
_attribute_map: Dict[str, Dict[str, Any]] = {}
_validation: Dict[str, Dict[str, Any]] = {}
- def __init__(self, **kwargs):
- self.additional_properties = {}
+ def __init__(self, **kwargs: Any) -> None:
+ self.additional_properties: Dict[str, Any] = {}
for k in kwargs:
if k not in self._attribute_map:
_LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__)
@@ -287,25 +304,25 @@ def __init__(self, **kwargs):
else:
setattr(self, k, kwargs[k])
- def __eq__(self, other):
+ def __eq__(self, other: Any) -> bool:
"""Compare objects by comparing all attributes."""
if isinstance(other, self.__class__):
return self.__dict__ == other.__dict__
return False
- def __ne__(self, other):
+ def __ne__(self, other: Any) -> bool:
"""Compare objects by comparing all attributes."""
return not self.__eq__(other)
- def __str__(self):
+ def __str__(self) -> str:
return str(self.__dict__)
@classmethod
- def enable_additional_properties_sending(cls):
+ def enable_additional_properties_sending(cls) -> None:
cls._attribute_map["additional_properties"] = {"key": "", "type": "{object}"}
@classmethod
- def is_xml_model(cls):
+ def is_xml_model(cls) -> bool:
try:
cls._xml_map # type: ignore
except AttributeError:
@@ -322,7 +339,7 @@ def _create_xml_node(cls):
return _create_xml_node(xml_map.get("name", cls.__name__), xml_map.get("prefix", None), xml_map.get("ns", None))
- def serialize(self, keep_readonly=False, **kwargs):
+ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON:
"""Return the JSON that would be sent to azure from this model.
This is an alias to `as_dict(full_restapi_key_transformer, keep_readonly=False)`.
@@ -336,8 +353,13 @@ def serialize(self, keep_readonly=False, **kwargs):
serializer = Serializer(self._infer_class_models())
return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs)
- def as_dict(self, keep_readonly=True, key_transformer=attribute_transformer, **kwargs):
- """Return a dict that can be JSONify using json.dump.
+ def as_dict(
+ self,
+ keep_readonly: bool = True,
+ key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer,
+ **kwargs: Any
+ ) -> JSON:
+ """Return a dict that can be serialized using json.dump.
Advanced usage might optionally use a callback as parameter:
@@ -384,7 +406,7 @@ def _infer_class_models(cls):
return client_models
@classmethod
- def deserialize(cls, data, content_type=None):
+ def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = None) -> ModelType:
"""Parse a str using the RestAPI syntax and return a model.
:param str data: A str using RestAPI structure. JSON by default.
@@ -396,7 +418,12 @@ def deserialize(cls, data, content_type=None):
return deserializer(cls.__name__, data, content_type=content_type)
@classmethod
- def from_dict(cls, data, key_extractors=None, content_type=None):
+ def from_dict(
+ cls: Type[ModelType],
+ data: Any,
+ key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None,
+ content_type: Optional[str] = None,
+ ) -> ModelType:
"""Parse a dict using given key extractor return a model.
By default consider key
@@ -409,8 +436,8 @@ def from_dict(cls, data, key_extractors=None, content_type=None):
:raises: DeserializationError if something went wrong
"""
deserializer = Deserializer(cls._infer_class_models())
- deserializer.key_extractors = (
- [
+ deserializer.key_extractors = ( # type: ignore
+ [ # type: ignore
attribute_key_case_insensitive_extractor,
rest_key_case_insensitive_extractor,
last_rest_key_case_insensitive_extractor,
@@ -518,7 +545,7 @@ class Serializer(object):
"multiple": lambda x, y: x % y != 0,
}
- def __init__(self, classes=None):
+ def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None):
self.serialize_type = {
"iso-8601": Serializer.serialize_iso,
"rfc-1123": Serializer.serialize_rfc,
@@ -534,7 +561,7 @@ def __init__(self, classes=None):
"[]": self.serialize_iter,
"{}": self.serialize_dict,
}
- self.dependencies = dict(classes) if classes else {}
+ self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {}
self.key_transformer = full_restapi_key_transformer
self.client_side_validation = True
@@ -626,8 +653,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
serialized.append(local_node) # type: ignore
else: # JSON
for k in reversed(keys): # type: ignore
- unflattened = {k: new_attr}
- new_attr = unflattened
+ new_attr = {k: new_attr}
_new_attr = new_attr
_serialized = serialized
@@ -656,8 +682,8 @@ def body(self, data, data_type, **kwargs):
"""
# Just in case this is a dict
- internal_data_type = data_type.strip("[]{}")
- internal_data_type = self.dependencies.get(internal_data_type, None)
+ internal_data_type_str = data_type.strip("[]{}")
+ internal_data_type = self.dependencies.get(internal_data_type_str, None)
try:
is_xml_model_serialization = kwargs["is_xml"]
except KeyError:
@@ -777,6 +803,8 @@ def serialize_data(self, data, data_type, **kwargs):
raise ValueError("No value for given attribute")
try:
+ if data is AzureCoreNull:
+ return None
if data_type in self.basic_types.values():
return self.serialize_basic(data, data_type, **kwargs)
@@ -1161,7 +1189,8 @@ def rest_key_extractor(attr, attr_desc, data):
working_data = data
while "." in key:
- dict_keys = _FLATTEN.split(key)
+ # Need the cast, as for some reasons "split" is typed as list[str | Any]
+ dict_keys = cast(List[str], _FLATTEN.split(key))
if len(dict_keys) == 1:
key = _decode_attribute_map_key(dict_keys[0])
break
@@ -1332,7 +1361,7 @@ class Deserializer(object):
valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?")
- def __init__(self, classes=None):
+ def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None):
self.deserialize_type = {
"iso-8601": Deserializer.deserialize_iso,
"rfc-1123": Deserializer.deserialize_rfc,
@@ -1352,7 +1381,7 @@ def __init__(self, classes=None):
"duration": (isodate.Duration, datetime.timedelta),
"iso-8601": (datetime.datetime),
}
- self.dependencies = dict(classes) if classes else {}
+ self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {}
self.key_extractors = [rest_key_extractor, xml_key_extractor]
# Additional properties only works if the "rest_key_extractor" is used to
# extract the keys. Making it to work whatever the key extractor is too much
@@ -1471,7 +1500,7 @@ def _classify_target(self, target, data):
Once classification has been determined, initialize object.
:param str target: The target object type to deserialize to.
- :param str/dict data: The response data to deseralize.
+ :param str/dict data: The response data to deserialize.
"""
if target is None:
return None, None
@@ -1486,7 +1515,7 @@ def _classify_target(self, target, data):
target = target._classify(data, self.dependencies)
except AttributeError:
pass # Target is not a Model, no classify
- return target, target.__class__.__name__
+ return target, target.__class__.__name__ # type: ignore
def failsafe_deserialize(self, target_obj, data, content_type=None):
"""Ignores any errors encountered in deserialization,
@@ -1496,7 +1525,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None):
a deserialization error.
:param str target_obj: The target object type to deserialize to.
- :param str/dict data: The response data to deseralize.
+ :param str/dict data: The response data to deserialize.
:param str content_type: Swagger "produces" if available.
"""
try:
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_vendor.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_vendor.py
index 9aad73fc743e..bd0df84f5319 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_vendor.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_vendor.py
@@ -5,6 +5,8 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+from typing import List, cast
+
from azure.core.pipeline.transport import HttpRequest
@@ -22,6 +24,7 @@ def _format_url_section(template, **kwargs):
try:
return template.format(**kwargs)
except KeyError as key:
- formatted_components = template.split("/")
+ # Need the cast, as for some reasons "split" is typed as list[str | Any]
+ formatted_components = cast(List[str], template.split("/"))
components = [c for c in formatted_components if "{}".format(key.args[0]) not in c]
template = "/".join(components)
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py
index 2eda20789583..e5754a47ce68 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py
@@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-VERSION = "2.0.0b2"
+VERSION = "1.0.0b1"
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py
index 63aa0c907fd7..5d26e16f81a9 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py
@@ -242,10 +242,10 @@ class Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class SkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Name of the Sku."""
- #: Consumption SKU of Managed Environment.
CONSUMPTION = "Consumption"
- #: Premium SKU of Managed Environment.
+ """Consumption SKU of Managed Environment."""
PREMIUM = "Premium"
+ """Premium SKU of Managed Environment."""
class SourceControlOperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py
index b94ff92bd5a0..d241dab925fa 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py
@@ -40,7 +40,7 @@ class AllowedAudiencesValidation(_serialization.Model):
"allowed_audiences": {"key": "allowedAudiences", "type": "[str]"},
}
- def __init__(self, *, allowed_audiences: Optional[List[str]] = None, **kwargs):
+ def __init__(self, *, allowed_audiences: Optional[List[str]] = None, **kwargs: Any) -> None:
"""
:keyword allowed_audiences: The configuration settings of the allowed list of audiences from
which to validate the JWT token.
@@ -64,7 +64,9 @@ class AllowedPrincipals(_serialization.Model):
"identities": {"key": "identities", "type": "[str]"},
}
- def __init__(self, *, groups: Optional[List[str]] = None, identities: Optional[List[str]] = None, **kwargs):
+ def __init__(
+ self, *, groups: Optional[List[str]] = None, identities: Optional[List[str]] = None, **kwargs: Any
+ ) -> None:
"""
:keyword groups: The list of the allowed groups.
:paramtype groups: list[str]
@@ -100,8 +102,8 @@ def __init__(
enabled: Optional[bool] = None,
registration: Optional["_models.AppleRegistration"] = None,
login: Optional["_models.LoginScopes"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the Apple provider should not be enabled
despite the set registration; otherwise, :code:`true
`.
@@ -131,7 +133,9 @@ class AppleRegistration(_serialization.Model):
"client_secret_setting_name": {"key": "clientSecretSettingName", "type": "str"},
}
- def __init__(self, *, client_id: Optional[str] = None, client_secret_setting_name: Optional[str] = None, **kwargs):
+ def __init__(
+ self, *, client_id: Optional[str] = None, client_secret_setting_name: Optional[str] = None, **kwargs: Any
+ ) -> None:
"""
:keyword client_id: The Client ID of the app used for login.
:paramtype client_id: str
@@ -163,8 +167,8 @@ def __init__(
*,
destination: Optional[str] = None,
log_analytics_configuration: Optional["_models.LogAnalyticsConfiguration"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword destination: Logs destination.
:paramtype destination: str
@@ -178,7 +182,8 @@ def __init__(
class AppRegistration(_serialization.Model):
- """The configuration settings of the app registration for providers that have app ids and app secrets.
+ """The configuration settings of the app registration for providers that have app ids and app
+ secrets.
:ivar app_id: The App ID of the app used for login.
:vartype app_id: str
@@ -191,7 +196,9 @@ class AppRegistration(_serialization.Model):
"app_secret_setting_name": {"key": "appSecretSettingName", "type": "str"},
}
- def __init__(self, *, app_id: Optional[str] = None, app_secret_setting_name: Optional[str] = None, **kwargs):
+ def __init__(
+ self, *, app_id: Optional[str] = None, app_secret_setting_name: Optional[str] = None, **kwargs: Any
+ ) -> None:
"""
:keyword app_id: The App ID of the app used for login.
:paramtype app_id: str
@@ -235,7 +242,7 @@ class Resource(_serialization.Model):
"system_data": {"key": "systemData", "type": "SystemData"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.id = None
@@ -245,7 +252,8 @@ def __init__(self, **kwargs):
class ProxyResource(Resource):
- """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location.
+ """The resource model definition for a Azure Resource Manager proxy resource. It will not have
+ tags and a location.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -276,13 +284,14 @@ class ProxyResource(Resource):
"system_data": {"key": "systemData", "type": "SystemData"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
class AuthConfig(ProxyResource):
- """Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.
+ """Configuration settings for the Azure ContainerApp Service Authentication / Authorization
+ feature.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -341,8 +350,8 @@ def __init__(
identity_providers: Optional["_models.IdentityProviders"] = None,
login: Optional["_models.Login"] = None,
http_settings: Optional["_models.HttpSettings"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword platform: The configuration settings of the platform of ContainerApp Service
Authentication/Authorization.
@@ -391,7 +400,7 @@ class AuthConfigCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.AuthConfig"], **kwargs):
+ def __init__(self, *, value: List["_models.AuthConfig"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.AuthConfig]
@@ -402,7 +411,8 @@ def __init__(self, *, value: List["_models.AuthConfig"], **kwargs):
class AuthPlatform(_serialization.Model):
- """The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
+ """The configuration settings of the platform of ContainerApp Service
+ Authentication/Authorization.
:ivar enabled: :code:`true
` if the Authentication / Authorization feature is
enabled for the current app; otherwise, :code:`false
`.
@@ -419,7 +429,7 @@ class AuthPlatform(_serialization.Model):
"runtime_version": {"key": "runtimeVersion", "type": "str"},
}
- def __init__(self, *, enabled: Optional[bool] = None, runtime_version: Optional[str] = None, **kwargs):
+ def __init__(self, *, enabled: Optional[bool] = None, runtime_version: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword enabled: :code:`true
` if the Authentication / Authorization feature is
enabled for the current app; otherwise, :code:`false
`.
@@ -451,8 +461,8 @@ class AvailableOperations(_serialization.Model):
}
def __init__(
- self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs
- ):
+ self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any
+ ) -> None:
"""
:keyword value: Collection of available operation details.
:paramtype value: list[~azure.mgmt.appcontainers.models.OperationDetail]
@@ -508,8 +518,8 @@ def __init__(
*,
location: Optional[str] = None,
properties: Optional["_models.AvailableWorkloadProfileProperties"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword location: Region of the workload profile.
:paramtype location: str
@@ -554,8 +564,8 @@ def __init__(
cores: Optional[int] = None,
memory_gi_b: Optional[int] = None,
display_name: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword billing_meter_category: Used to map workload profile types to billing meter. Known
values are: "PremiumSkuGeneralPurpose", "PremiumSkuMemoryOptimized", and
@@ -602,7 +612,7 @@ class AvailableWorkloadProfilesCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.AvailableWorkloadProfile"], **kwargs):
+ def __init__(self, *, value: List["_models.AvailableWorkloadProfile"], **kwargs: Any) -> None:
"""
:keyword value: Collection of workload profiles. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.AvailableWorkloadProfile]
@@ -649,8 +659,8 @@ def __init__(
login: Optional["_models.AzureActiveDirectoryLogin"] = None,
validation: Optional["_models.AzureActiveDirectoryValidation"] = None,
is_auto_provisioned: Optional[bool] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the Azure Active Directory provider should not
be enabled despite the set registration; otherwise, :code:`true
`.
@@ -696,8 +706,12 @@ class AzureActiveDirectoryLogin(_serialization.Model):
}
def __init__(
- self, *, login_parameters: Optional[List[str]] = None, disable_www_authenticate: Optional[bool] = None, **kwargs
- ):
+ self,
+ *,
+ login_parameters: Optional[List[str]] = None,
+ disable_www_authenticate: Optional[bool] = None,
+ **kwargs: Any
+ ) -> None:
"""
:keyword login_parameters: Login parameters to send to the OpenID Connect authorization
endpoint when
@@ -768,8 +782,8 @@ def __init__(
client_secret_certificate_thumbprint: Optional[str] = None,
client_secret_certificate_subject_alternative_name: Optional[str] = None,
client_secret_certificate_issuer: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword open_id_issuer: The OpenID Connect Issuer URI that represents the entity which issues
access tokens for this application.
@@ -838,8 +852,8 @@ def __init__(
jwt_claim_checks: Optional["_models.JwtClaimChecks"] = None,
allowed_audiences: Optional[List[str]] = None,
default_authorization_policy: Optional["_models.DefaultAuthorizationPolicy"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword jwt_claim_checks: The configuration settings of the checks that should be made while
validating the JWT Claims.
@@ -885,8 +899,8 @@ def __init__(
client_secret: Optional[str] = None,
tenant_id: Optional[str] = None,
subscription_id: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword client_id: Client Id.
:paramtype client_id: str
@@ -931,8 +945,8 @@ def __init__(
account_key: Optional[str] = None,
access_mode: Optional[Union[str, "_models.AccessMode"]] = None,
share_name: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword account_name: Storage account name for azure file.
:paramtype account_name: str
@@ -970,8 +984,8 @@ def __init__(
*,
enabled: Optional[bool] = None,
registration: Optional["_models.AzureStaticWebAppsRegistration"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the Azure Static Web Apps provider should not
be enabled despite the set registration; otherwise, :code:`true
`.
@@ -995,7 +1009,7 @@ class AzureStaticWebAppsRegistration(_serialization.Model):
"client_id": {"key": "clientId", "type": "str"},
}
- def __init__(self, *, client_id: Optional[str] = None, **kwargs):
+ def __init__(self, *, client_id: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword client_id: The Client ID of the app used for login.
:paramtype client_id: str
@@ -1043,8 +1057,8 @@ def __init__(
env: Optional[List["_models.EnvironmentVar"]] = None,
resources: Optional["_models.ContainerResources"] = None,
volume_mounts: Optional[List["_models.VolumeMount"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword image: Container image tag.
:paramtype image: str
@@ -1110,8 +1124,12 @@ class BillingMeter(ProxyResource):
}
def __init__(
- self, *, location: Optional[str] = None, properties: Optional["_models.BillingMeterProperties"] = None, **kwargs
- ):
+ self,
+ *,
+ location: Optional[str] = None,
+ properties: Optional["_models.BillingMeterProperties"] = None,
+ **kwargs: Any
+ ) -> None:
"""
:keyword location: Region for the billing meter.
:paramtype location: str
@@ -1140,7 +1158,7 @@ class BillingMeterCollection(_serialization.Model):
"value": {"key": "value", "type": "[BillingMeter]"},
}
- def __init__(self, *, value: List["_models.BillingMeter"], **kwargs):
+ def __init__(self, *, value: List["_models.BillingMeter"], **kwargs: Any) -> None:
"""
:keyword value: Collection of billing meters. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.BillingMeter]
@@ -1173,8 +1191,8 @@ def __init__(
category: Optional[Union[str, "_models.Category"]] = None,
meter_type: Optional[str] = None,
display_name: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword category: Used to map workload profile types to billing meter. Known values are:
"PremiumSkuGeneralPurpose", "PremiumSkuMemoryOptimized", and "PremiumSkuComputeOptimized".
@@ -1191,7 +1209,8 @@ def __init__(
class TrackedResource(Resource):
- """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'.
+ """The resource model definition for an Azure Resource Manager tracked top level resource which
+ has 'tags' and a 'location'.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -1231,7 +1250,7 @@ class TrackedResource(Resource):
"location": {"key": "location", "type": "str"},
}
- def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs):
+ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
@@ -1293,8 +1312,8 @@ def __init__(
location: str,
tags: Optional[Dict[str, str]] = None,
properties: Optional["_models.CertificateProperties"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
@@ -1330,7 +1349,7 @@ class CertificateCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.Certificate"], **kwargs):
+ def __init__(self, *, value: List["_models.Certificate"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.Certificate]
@@ -1351,7 +1370,7 @@ class CertificatePatch(_serialization.Model):
"tags": {"key": "tags", "type": "{str}"},
}
- def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs):
+ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
"""
:keyword tags: Application-specific metadata in the form of key-value pairs.
:paramtype tags: dict[str, str]
@@ -1417,7 +1436,7 @@ class CertificateProperties(_serialization.Model): # pylint: disable=too-many-i
"public_key_hash": {"key": "publicKeyHash", "type": "str"},
}
- def __init__(self, *, password: Optional[str] = None, value: Optional[bytes] = None, **kwargs):
+ def __init__(self, *, password: Optional[str] = None, value: Optional[bytes] = None, **kwargs: Any) -> None:
"""
:keyword password: Certificate password.
:paramtype password: str
@@ -1452,7 +1471,7 @@ class CheckNameAvailabilityRequest(_serialization.Model):
"type": {"key": "type", "type": "str"},
}
- def __init__(self, *, name: Optional[str] = None, type: Optional[str] = None, **kwargs):
+ def __init__(self, *, name: Optional[str] = None, type: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword name: The name of the resource for which availability needs to be checked.
:paramtype name: str
@@ -1488,8 +1507,8 @@ def __init__(
name_available: Optional[bool] = None,
reason: Optional[Union[str, "_models.CheckNameAvailabilityReason"]] = None,
message: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword name_available: Indicates if the resource name is available.
:paramtype name_available: bool
@@ -1506,7 +1525,8 @@ def __init__(
class ClientRegistration(_serialization.Model):
- """The configuration settings of the app registration for providers that have client ids and client secrets.
+ """The configuration settings of the app registration for providers that have client ids and
+ client secrets.
:ivar client_id: The Client ID of the app used for login.
:vartype client_id: str
@@ -1519,7 +1539,9 @@ class ClientRegistration(_serialization.Model):
"client_secret_setting_name": {"key": "clientSecretSettingName", "type": "str"},
}
- def __init__(self, *, client_id: Optional[str] = None, client_secret_setting_name: Optional[str] = None, **kwargs):
+ def __init__(
+ self, *, client_id: Optional[str] = None, client_secret_setting_name: Optional[str] = None, **kwargs: Any
+ ) -> None:
"""
:keyword client_id: The Client ID of the app used for login.
:paramtype client_id: str
@@ -1532,7 +1554,8 @@ def __init__(self, *, client_id: Optional[str] = None, client_secret_setting_nam
class Configuration(_serialization.Model):
- """Non versioned Container App configuration properties that define the mutable settings of a Container app.
+ """Non versioned Container App configuration properties that define the mutable settings of a
+ Container app.
:ivar secrets: Collection of secrets used by a Container app.
:vartype secrets: list[~azure.mgmt.appcontainers.models.Secret]
@@ -1575,8 +1598,8 @@ def __init__(
registries: Optional[List["_models.RegistryCredentials"]] = None,
dapr: Optional["_models.Dapr"] = None,
max_inactive_revisions: Optional[int] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword secrets: Collection of secrets used by a Container app.
:paramtype secrets: list[~azure.mgmt.appcontainers.models.Secret]
@@ -1691,8 +1714,8 @@ def __init__(
static_ip: Optional[str] = None,
dapr_ai_connection_string: Optional[str] = None,
custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
@@ -1739,7 +1762,7 @@ class ConnectedEnvironmentCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: Optional[List["_models.ConnectedEnvironment"]] = None, **kwargs):
+ def __init__(self, *, value: Optional[List["_models.ConnectedEnvironment"]] = None, **kwargs: Any) -> None:
"""
:keyword value: Collection of resources.
:paramtype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironment]
@@ -1784,7 +1807,9 @@ class ConnectedEnvironmentStorage(ProxyResource):
"properties": {"key": "properties", "type": "ConnectedEnvironmentStorageProperties"},
}
- def __init__(self, *, properties: Optional["_models.ConnectedEnvironmentStorageProperties"] = None, **kwargs):
+ def __init__(
+ self, *, properties: Optional["_models.ConnectedEnvironmentStorageProperties"] = None, **kwargs: Any
+ ) -> None:
"""
:keyword properties: Storage properties.
:paramtype properties: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProperties
@@ -1804,7 +1829,7 @@ class ConnectedEnvironmentStorageProperties(_serialization.Model):
"azure_file": {"key": "azureFile", "type": "AzureFileProperties"},
}
- def __init__(self, *, azure_file: Optional["_models.AzureFileProperties"] = None, **kwargs):
+ def __init__(self, *, azure_file: Optional["_models.AzureFileProperties"] = None, **kwargs: Any) -> None:
"""
:keyword azure_file: Azure file properties.
:paramtype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties
@@ -1830,7 +1855,7 @@ class ConnectedEnvironmentStoragesCollection(_serialization.Model):
"value": {"key": "value", "type": "[ConnectedEnvironmentStorage]"},
}
- def __init__(self, *, value: List["_models.ConnectedEnvironmentStorage"], **kwargs):
+ def __init__(self, *, value: List["_models.ConnectedEnvironmentStorage"], **kwargs: Any) -> None:
"""
:keyword value: Collection of storage resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage]
@@ -1882,8 +1907,8 @@ def __init__(
resources: Optional["_models.ContainerResources"] = None,
volume_mounts: Optional[List["_models.VolumeMount"]] = None,
probes: Optional[List["_models.ContainerAppProbe"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword image: Container image tag.
:paramtype image: str
@@ -2021,8 +2046,8 @@ def __init__(
workload_profile_type: Optional[str] = None,
configuration: Optional["_models.Configuration"] = None,
template: Optional["_models.Template"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
@@ -2110,7 +2135,7 @@ class ContainerAppAuthToken(TrackedResource):
"expires": {"key": "properties.expires", "type": "iso-8601"},
}
- def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs):
+ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
@@ -2145,7 +2170,7 @@ class ContainerAppCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.ContainerApp"], **kwargs):
+ def __init__(self, *, value: List["_models.ContainerApp"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.ContainerApp]
@@ -2156,7 +2181,8 @@ def __init__(self, *, value: List["_models.ContainerApp"], **kwargs):
class ContainerAppProbe(_serialization.Model):
- """Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
+ """Probe describes a health check to be performed against a container to determine whether it is
+ alive or ready to receive traffic.
:ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed
after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10.
@@ -2217,8 +2243,8 @@ def __init__(
termination_grace_period_seconds: Optional[int] = None,
timeout_seconds: Optional[int] = None,
type: Optional[Union[str, "_models.Type"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed
after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10.
@@ -2307,8 +2333,8 @@ def __init__(
http_headers: Optional[List["_models.ContainerAppProbeHttpGetHttpHeadersItem"]] = None,
path: Optional[str] = None,
scheme: Optional[Union[str, "_models.Scheme"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword host: Host name to connect to, defaults to the pod IP. You probably want to set "Host"
in httpHeaders instead.
@@ -2354,7 +2380,7 @@ class ContainerAppProbeHttpGetHttpHeadersItem(_serialization.Model):
"value": {"key": "value", "type": "str"},
}
- def __init__(self, *, name: str, value: str, **kwargs):
+ def __init__(self, *, name: str, value: str, **kwargs: Any) -> None:
"""
:keyword name: The header field name. Required.
:paramtype name: str
@@ -2387,7 +2413,7 @@ class ContainerAppProbeTcpSocket(_serialization.Model):
"port": {"key": "port", "type": "int"},
}
- def __init__(self, *, port: int, host: Optional[str] = None, **kwargs):
+ def __init__(self, *, port: int, host: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword host: Optional: Host name to connect to, defaults to the pod IP.
:paramtype host: str
@@ -2421,7 +2447,7 @@ class ContainerAppSecret(_serialization.Model):
"value": {"key": "value", "type": "str"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.name = None
@@ -2451,7 +2477,7 @@ class ContainerResources(_serialization.Model):
"ephemeral_storage": {"key": "ephemeralStorage", "type": "str"},
}
- def __init__(self, *, cpu: Optional[float] = None, memory: Optional[str] = None, **kwargs):
+ def __init__(self, *, cpu: Optional[float] = None, memory: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword cpu: Required CPU in cores, e.g. 0.5.
:paramtype cpu: float
@@ -2485,8 +2511,8 @@ def __init__(
*,
convention: Optional[Union[str, "_models.CookieExpirationConvention"]] = None,
time_to_expiration: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword convention: The convention used when determining the session cookie's expiration.
Known values are: "FixedTime" and "IdentityProviderDerived".
@@ -2541,8 +2567,8 @@ def __init__(
expose_headers: Optional[List[str]] = None,
max_age: Optional[int] = None,
allow_credentials: Optional[bool] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword allowed_origins: allowed origins. Required.
:paramtype allowed_origins: list[str]
@@ -2575,14 +2601,12 @@ class CustomDomain(_serialization.Model):
:vartype name: str
:ivar binding_type: Custom Domain binding type. Known values are: "Disabled" and "SniEnabled".
:vartype binding_type: str or ~azure.mgmt.appcontainers.models.BindingType
- :ivar certificate_id: Resource Id of the Certificate to be bound to this hostname. Must exist
- in the Managed Environment. Required.
+ :ivar certificate_id: Resource Id of the Certificate to be bound to this hostname.
:vartype certificate_id: str
"""
_validation = {
"name": {"required": True},
- "certificate_id": {"required": True},
}
_attribute_map = {
@@ -2595,18 +2619,17 @@ def __init__(
self,
*,
name: str,
- certificate_id: str,
binding_type: Optional[Union[str, "_models.BindingType"]] = None,
- **kwargs
- ):
+ certificate_id: Optional[str] = None,
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: Hostname. Required.
:paramtype name: str
:keyword binding_type: Custom Domain binding type. Known values are: "Disabled" and
"SniEnabled".
:paramtype binding_type: str or ~azure.mgmt.appcontainers.models.BindingType
- :keyword certificate_id: Resource Id of the Certificate to be bound to this hostname. Must
- exist in the Managed Environment. Required.
+ :keyword certificate_id: Resource Id of the Certificate to be bound to this hostname.
:paramtype certificate_id: str
"""
super().__init__(**kwargs)
@@ -2659,8 +2682,8 @@ def __init__(
dns_suffix: Optional[str] = None,
certificate_value: Optional[bytes] = None,
certificate_password: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword dns_suffix: Dns suffix for the environment domain.
:paramtype dns_suffix: str
@@ -2755,8 +2778,8 @@ def __init__(
a_records: Optional[List[str]] = None,
alternate_c_name_records: Optional[List[str]] = None,
alternate_txt_records: Optional[List[str]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword c_name_records: CName records visible for this hostname.
:paramtype c_name_records: list[str]
@@ -2822,8 +2845,8 @@ def __init__(
details: Optional[
List["_models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem"]
] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword details: Details or the error.
:paramtype details:
@@ -2861,7 +2884,7 @@ class CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem
"target": {"key": "target", "type": "str"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.code = None
@@ -2895,8 +2918,8 @@ def __init__(
enabled: Optional[bool] = None,
registration: Optional["_models.OpenIdConnectRegistration"] = None,
login: Optional["_models.OpenIdConnectLogin"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the custom Open ID provider provider should not
be enabled; otherwise, :code:`true
`.
@@ -2938,8 +2961,8 @@ def __init__(
type: Optional[str] = None,
metadata: Optional[Dict[str, str]] = None,
auth: Optional[List["_models.ScaleRuleAuth"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword type: Type of the custom scale rule
eg: azure-servicebus, redis etc.
@@ -3002,8 +3025,8 @@ def __init__(
http_max_request_size: Optional[int] = None,
log_level: Optional[Union[str, "_models.LogLevel"]] = None,
enable_api_logging: Optional[bool] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: Boolean indicating if the Dapr side car is enabled.
:paramtype enabled: bool
@@ -3104,8 +3127,8 @@ def __init__(
secret_store_component: Optional[str] = None,
metadata: Optional[List["_models.DaprMetadata"]] = None,
scopes: Optional[List[str]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword component_type: Component type.
:paramtype component_type: str
@@ -3158,7 +3181,7 @@ class DaprComponentsCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.DaprComponent"], **kwargs):
+ def __init__(self, *, value: List["_models.DaprComponent"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.DaprComponent]
@@ -3187,8 +3210,13 @@ class DaprMetadata(_serialization.Model):
}
def __init__(
- self, *, name: Optional[str] = None, value: Optional[str] = None, secret_ref: Optional[str] = None, **kwargs
- ):
+ self,
+ *,
+ name: Optional[str] = None,
+ value: Optional[str] = None,
+ secret_ref: Optional[str] = None,
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: Metadata property name.
:paramtype name: str
@@ -3225,7 +3253,7 @@ class DaprSecret(_serialization.Model):
"value": {"key": "value", "type": "str"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.name = None
@@ -3249,7 +3277,7 @@ class DaprSecretsCollection(_serialization.Model):
"value": {"key": "value", "type": "[DaprSecret]"},
}
- def __init__(self, *, value: List["_models.DaprSecret"], **kwargs):
+ def __init__(self, *, value: List["_models.DaprSecret"], **kwargs: Any) -> None:
"""
:keyword value: Collection of secrets used by a Dapr component. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.DaprSecret]
@@ -3279,8 +3307,8 @@ def __init__(
*,
allowed_principals: Optional["_models.AllowedPrincipals"] = None,
allowed_applications: Optional[List[str]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword allowed_principals: The configuration settings of the Azure Active Directory allowed
principals.
@@ -3311,7 +3339,7 @@ class DefaultErrorResponse(_serialization.Model):
"error": {"key": "error", "type": "DefaultErrorResponseError"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.error = None
@@ -3349,7 +3377,9 @@ class DefaultErrorResponseError(_serialization.Model):
"innererror": {"key": "innererror", "type": "str"},
}
- def __init__(self, *, details: Optional[List["_models.DefaultErrorResponseErrorDetailsItem"]] = None, **kwargs):
+ def __init__(
+ self, *, details: Optional[List["_models.DefaultErrorResponseErrorDetailsItem"]] = None, **kwargs: Any
+ ) -> None:
"""
:keyword details: Details or the error.
:paramtype details: list[~azure.mgmt.appcontainers.models.DefaultErrorResponseErrorDetailsItem]
@@ -3387,7 +3417,7 @@ class DefaultErrorResponseErrorDetailsItem(_serialization.Model):
"target": {"key": "target", "type": "str"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.code = None
@@ -3415,8 +3445,8 @@ def __init__(
*,
provider_name: Optional[str] = None,
property_bag: Optional[List["_models.DiagnosticDataProviderMetadataPropertyBagItem"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword provider_name: Name of data provider.
:paramtype provider_name: str
@@ -3443,7 +3473,7 @@ class DiagnosticDataProviderMetadataPropertyBagItem(_serialization.Model):
"value": {"key": "value", "type": "str"},
}
- def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs):
+ def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword name: Property name.
:paramtype name: str
@@ -3478,8 +3508,8 @@ def __init__(
column_name: Optional[str] = None,
data_type: Optional[str] = None,
column_type: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword column_name: Column name.
:paramtype column_name: str
@@ -3517,8 +3547,8 @@ def __init__(
table_name: Optional[str] = None,
columns: Optional[List["_models.DiagnosticDataTableResponseColumn"]] = None,
rows: Optional[List[JSON]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword table_name: Table name.
:paramtype table_name: str
@@ -3560,8 +3590,8 @@ def __init__(
title: Optional[str] = None,
description: Optional[str] = None,
is_visible: Optional[bool] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword type: Rendering type.
:paramtype type: int
@@ -3614,7 +3644,7 @@ class Diagnostics(ProxyResource):
"properties": {"key": "properties", "type": "DiagnosticsProperties"},
}
- def __init__(self, *, properties: Optional["_models.DiagnosticsProperties"] = None, **kwargs):
+ def __init__(self, *, properties: Optional["_models.DiagnosticsProperties"] = None, **kwargs: Any) -> None:
"""
:keyword properties: Diagnostics resource specific properties.
:paramtype properties: ~azure.mgmt.appcontainers.models.DiagnosticsProperties
@@ -3646,7 +3676,7 @@ class DiagnosticsCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.Diagnostics"], **kwargs):
+ def __init__(self, *, value: List["_models.Diagnostics"], **kwargs: Any) -> None:
"""
:keyword value: Collection of diagnostic data. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.Diagnostics]
@@ -3675,8 +3705,8 @@ def __init__(
*,
table: Optional["_models.DiagnosticDataTableResponseObject"] = None,
rendering_properties: Optional["_models.DiagnosticRendering"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword table: Table response.
:paramtype table: ~azure.mgmt.appcontainers.models.DiagnosticDataTableResponseObject
@@ -3740,8 +3770,8 @@ def __init__(
*,
support_topic_list: Optional[List["_models.DiagnosticSupportTopic"]] = None,
analysis_types: Optional[List[str]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword support_topic_list: List of support topics.
:paramtype support_topic_list: list[~azure.mgmt.appcontainers.models.DiagnosticSupportTopic]
@@ -3788,8 +3818,8 @@ def __init__(
dataset: Optional[List["_models.DiagnosticsDataApiResponse"]] = None,
status: Optional["_models.DiagnosticsStatus"] = None,
data_provider_metadata: Optional["_models.DiagnosticDataProviderMetadata"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword metadata: Metadata of the diagnostics response.
:paramtype metadata: ~azure.mgmt.appcontainers.models.DiagnosticsDefinition
@@ -3822,7 +3852,7 @@ class DiagnosticsStatus(_serialization.Model):
"status_id": {"key": "statusId", "type": "int"},
}
- def __init__(self, *, message: Optional[str] = None, status_id: Optional[int] = None, **kwargs):
+ def __init__(self, *, message: Optional[str] = None, status_id: Optional[int] = None, **kwargs: Any) -> None:
"""
:keyword message: Diagnostic message.
:paramtype message: str
@@ -3855,7 +3885,7 @@ class DiagnosticSupportTopic(_serialization.Model):
"pes_id": {"key": "pesId", "type": "str"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.id = None
@@ -3911,7 +3941,7 @@ class EnvironmentAuthToken(TrackedResource):
"expires": {"key": "properties.expires", "type": "iso-8601"},
}
- def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs):
+ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
@@ -3940,7 +3970,7 @@ class EnvironmentSkuProperties(_serialization.Model):
"name": {"key": "name", "type": "str"},
}
- def __init__(self, *, name: Union[str, "_models.SkuName"], **kwargs):
+ def __init__(self, *, name: Union[str, "_models.SkuName"], **kwargs: Any) -> None:
"""
:keyword name: Name of the Sku. Required. Known values are: "Consumption" and "Premium".
:paramtype name: str or ~azure.mgmt.appcontainers.models.SkuName
@@ -3968,8 +3998,13 @@ class EnvironmentVar(_serialization.Model):
}
def __init__(
- self, *, name: Optional[str] = None, value: Optional[str] = None, secret_ref: Optional[str] = None, **kwargs
- ):
+ self,
+ *,
+ name: Optional[str] = None,
+ value: Optional[str] = None,
+ secret_ref: Optional[str] = None,
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: Environment variable name.
:paramtype name: str
@@ -4006,7 +4041,7 @@ class ErrorAdditionalInfo(_serialization.Model):
"info": {"key": "info", "type": "object"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.type = None
@@ -4046,7 +4081,7 @@ class ErrorDetail(_serialization.Model):
"additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.code = None
@@ -4057,7 +4092,8 @@ def __init__(self, **kwargs):
class ErrorResponse(_serialization.Model):
- """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
+ """Common error response for all Azure Resource Manager APIs to return error details for failed
+ operations. (This also follows the OData error response format.).
:ivar error: The error object.
:vartype error: ~azure.mgmt.appcontainers.models.ErrorDetail
@@ -4067,7 +4103,7 @@ class ErrorResponse(_serialization.Model):
"error": {"key": "error", "type": "ErrorDetail"},
}
- def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs):
+ def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None:
"""
:keyword error: The error object.
:paramtype error: ~azure.mgmt.appcontainers.models.ErrorDetail
@@ -4095,8 +4131,8 @@ def __init__(
*,
name: Optional[str] = None,
type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: The name of the extended location.
:paramtype name: str
@@ -4137,8 +4173,8 @@ def __init__(
registration: Optional["_models.AppRegistration"] = None,
graph_api_version: Optional[str] = None,
login: Optional["_models.LoginScopes"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the Facebook provider should not be enabled
despite the set registration; otherwise, :code:`true
`.
@@ -4182,8 +4218,8 @@ def __init__(
convention: Optional[Union[str, "_models.ForwardProxyConvention"]] = None,
custom_host_header_name: Optional[str] = None,
custom_proto_header_name: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword convention: The convention used to determine the url of the request made. Known values
are: "NoProxy", "Standard", and "Custom".
@@ -4223,8 +4259,8 @@ def __init__(
enabled: Optional[bool] = None,
registration: Optional["_models.ClientRegistration"] = None,
login: Optional["_models.LoginScopes"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the GitHub provider should not be enabled
despite the set registration; otherwise, :code:`true
`.
@@ -4284,8 +4320,8 @@ def __init__(
os: Optional[str] = None,
runtime_stack: Optional[str] = None,
runtime_version: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword registry_info: Registry configurations.
:paramtype registry_info: ~azure.mgmt.appcontainers.models.RegistryInfo
@@ -4316,7 +4352,8 @@ def __init__(
class GlobalValidation(_serialization.Model):
- """The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization.
+ """The configuration settings that determines the validation flow of users using ContainerApp
+ Service Authentication/Authorization.
:ivar unauthenticated_client_action: The action to take when an unauthenticated client attempts
to access the app. Known values are: "RedirectToLoginPage", "AllowAnonymous", "Return401", and
@@ -4346,8 +4383,8 @@ def __init__(
unauthenticated_client_action: Optional[Union[str, "_models.UnauthenticatedClientActionV2"]] = None,
redirect_to_provider: Optional[str] = None,
excluded_paths: Optional[List[str]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword unauthenticated_client_action: The action to take when an unauthenticated client
attempts to access the app. Known values are: "RedirectToLoginPage", "AllowAnonymous",
@@ -4399,8 +4436,8 @@ def __init__(
registration: Optional["_models.ClientRegistration"] = None,
login: Optional["_models.LoginScopes"] = None,
validation: Optional["_models.AllowedAudiencesValidation"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the Google provider should not be enabled
despite the set registration; otherwise, :code:`true
`.
@@ -4440,8 +4477,8 @@ def __init__(
*,
metadata: Optional[Dict[str, str]] = None,
auth: Optional[List["_models.ScaleRuleAuth"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword metadata: Metadata properties to describe http scale rule.
:paramtype metadata: dict[str, str]
@@ -4454,7 +4491,8 @@ def __init__(
class HttpSettings(_serialization.Model):
- """The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization.
+ """The configuration settings of the HTTP requests for authentication and authorization requests
+ made against ContainerApp Service Authentication/Authorization.
:ivar require_https: :code:`false
` if the authentication/authorization responses
not having the HTTPS scheme are permissible; otherwise, :code:`true
`.
@@ -4477,8 +4515,8 @@ def __init__(
require_https: Optional[bool] = None,
routes: Optional["_models.HttpSettingsRoutes"] = None,
forward_proxy: Optional["_models.ForwardProxy"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword require_https: :code:`false
` if the authentication/authorization
responses not having the HTTPS scheme are permissible; otherwise, :code:`true
`.
@@ -4506,7 +4544,7 @@ class HttpSettingsRoutes(_serialization.Model):
"api_prefix": {"key": "apiPrefix", "type": "str"},
}
- def __init__(self, *, api_prefix: Optional[str] = None, **kwargs):
+ def __init__(self, *, api_prefix: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword api_prefix: The prefix that should precede all the authentication/authorization paths.
:paramtype api_prefix: str
@@ -4516,7 +4554,8 @@ def __init__(self, *, api_prefix: Optional[str] = None, **kwargs):
class IdentityProviders(_serialization.Model):
- """The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.
+ """The configuration settings of each of the identity providers used to configure ContainerApp
+ Service Authentication/Authorization.
:ivar azure_active_directory: The configuration settings of the Azure Active directory
provider.
@@ -4565,8 +4604,8 @@ def __init__(
apple: Optional["_models.Apple"] = None,
azure_static_web_apps: Optional["_models.AzureStaticWebApps"] = None,
custom_open_id_connect_providers: Optional[Dict[str, "_models.CustomOpenIdConnectProvider"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword azure_active_directory: The configuration settings of the Azure Active directory
provider.
@@ -4668,8 +4707,8 @@ def __init__(
ip_security_restrictions: Optional[List["_models.IpSecurityRestrictionRule"]] = None,
client_certificate_mode: Optional[Union[str, "_models.IngressClientCertificateMode"]] = None,
cors_policy: Optional["_models.CorsPolicy"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword external: Bool indicating if app exposes an external http endpoint.
:paramtype external: bool
@@ -4752,8 +4791,8 @@ def __init__(
env: Optional[List["_models.EnvironmentVar"]] = None,
resources: Optional["_models.ContainerResources"] = None,
volume_mounts: Optional[List["_models.VolumeMount"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword image: Container image tag.
:paramtype image: str
@@ -4819,8 +4858,8 @@ def __init__(
ip_address_range: str,
action: Union[str, "_models.Action"],
description: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: Name for the IP restriction rule. Required.
:paramtype name: str
@@ -4859,8 +4898,8 @@ def __init__(
*,
allowed_groups: Optional[List[str]] = None,
allowed_client_applications: Optional[List[str]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword allowed_groups: The list of the allowed groups.
:paramtype allowed_groups: list[str]
@@ -4886,7 +4925,7 @@ class LogAnalyticsConfiguration(_serialization.Model):
"shared_key": {"key": "sharedKey", "type": "str"},
}
- def __init__(self, *, customer_id: Optional[str] = None, shared_key: Optional[str] = None, **kwargs):
+ def __init__(self, *, customer_id: Optional[str] = None, shared_key: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword customer_id: Log analytics customer id.
:paramtype customer_id: str
@@ -4899,7 +4938,8 @@ def __init__(self, *, customer_id: Optional[str] = None, shared_key: Optional[st
class Login(_serialization.Model):
- """The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.
+ """The configuration settings of the login flow of users using ContainerApp Service
+ Authentication/Authorization.
:ivar routes: The routes that specify the endpoints used for login and logout requests.
:vartype routes: ~azure.mgmt.appcontainers.models.LoginRoutes
@@ -4933,8 +4973,8 @@ def __init__(
allowed_external_redirect_urls: Optional[List[str]] = None,
cookie_expiration: Optional["_models.CookieExpiration"] = None,
nonce: Optional["_models.Nonce"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword routes: The routes that specify the endpoints used for login and logout requests.
:paramtype routes: ~azure.mgmt.appcontainers.models.LoginRoutes
@@ -4970,7 +5010,7 @@ class LoginRoutes(_serialization.Model):
"logout_endpoint": {"key": "logoutEndpoint", "type": "str"},
}
- def __init__(self, *, logout_endpoint: Optional[str] = None, **kwargs):
+ def __init__(self, *, logout_endpoint: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword logout_endpoint: The endpoint at which a logout request should be made.
:paramtype logout_endpoint: str
@@ -4990,7 +5030,7 @@ class LoginScopes(_serialization.Model):
"scopes": {"key": "scopes", "type": "[str]"},
}
- def __init__(self, *, scopes: Optional[List[str]] = None, **kwargs):
+ def __init__(self, *, scopes: Optional[List[str]] = None, **kwargs: Any) -> None:
"""
:keyword scopes: A list of the scopes that should be requested while authenticating.
:paramtype scopes: list[str]
@@ -5112,8 +5152,8 @@ def __init__(
zone_redundant: Optional[bool] = None,
custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = None,
workload_profiles: Optional[List["_models.WorkloadProfile"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
@@ -5181,8 +5221,8 @@ def __init__(
*,
out_bound_type: Optional[Union[str, "_models.ManagedEnvironmentOutBoundType"]] = None,
virtual_network_appliance_ip: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword out_bound_type: Outbound type for the cluster. Known values are: "LoadBalancer" and
"UserDefinedRouting".
@@ -5220,7 +5260,7 @@ class ManagedEnvironmentsCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.ManagedEnvironment"], **kwargs):
+ def __init__(self, *, value: List["_models.ManagedEnvironment"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.ManagedEnvironment]
@@ -5265,7 +5305,9 @@ class ManagedEnvironmentStorage(ProxyResource):
"properties": {"key": "properties", "type": "ManagedEnvironmentStorageProperties"},
}
- def __init__(self, *, properties: Optional["_models.ManagedEnvironmentStorageProperties"] = None, **kwargs):
+ def __init__(
+ self, *, properties: Optional["_models.ManagedEnvironmentStorageProperties"] = None, **kwargs: Any
+ ) -> None:
"""
:keyword properties: Storage properties.
:paramtype properties: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorageProperties
@@ -5285,7 +5327,7 @@ class ManagedEnvironmentStorageProperties(_serialization.Model):
"azure_file": {"key": "azureFile", "type": "AzureFileProperties"},
}
- def __init__(self, *, azure_file: Optional["_models.AzureFileProperties"] = None, **kwargs):
+ def __init__(self, *, azure_file: Optional["_models.AzureFileProperties"] = None, **kwargs: Any) -> None:
"""
:keyword azure_file: Azure file properties.
:paramtype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties
@@ -5311,7 +5353,7 @@ class ManagedEnvironmentStoragesCollection(_serialization.Model):
"value": {"key": "value", "type": "[ManagedEnvironmentStorage]"},
}
- def __init__(self, *, value: List["_models.ManagedEnvironmentStorage"], **kwargs):
+ def __init__(self, *, value: List["_models.ManagedEnvironmentStorage"], **kwargs: Any) -> None:
"""
:keyword value: Collection of storage resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage]
@@ -5363,8 +5405,8 @@ def __init__(
*,
type: Union[str, "_models.ManagedServiceIdentityType"],
user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentity"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword type: Type of managed service identity (where both SystemAssigned and UserAssigned
types are allowed). Required. Known values are: "None", "SystemAssigned", "UserAssigned", and
@@ -5401,8 +5443,8 @@ class Nonce(_serialization.Model):
}
def __init__(
- self, *, validate_nonce: Optional[bool] = None, nonce_expiration_interval: Optional[str] = None, **kwargs
- ):
+ self, *, validate_nonce: Optional[bool] = None, nonce_expiration_interval: Optional[str] = None, **kwargs: Any
+ ) -> None:
"""
:keyword validate_nonce: :code:`false
` if the nonce should not be validated while
completing the login flow; otherwise, :code:`true
`.
@@ -5437,8 +5479,8 @@ def __init__(
*,
method: Optional[Literal["ClientSecretPost"]] = None,
client_secret_setting_name: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword method: The method that should be used to authenticate the user. Default value is
"ClientSecretPost".
@@ -5484,8 +5526,8 @@ def __init__(
issuer: Optional[str] = None,
certification_uri: Optional[str] = None,
well_known_open_id_configuration: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword authorization_endpoint: The endpoint to be used to make an authorization request.
:paramtype authorization_endpoint: str
@@ -5522,7 +5564,9 @@ class OpenIdConnectLogin(_serialization.Model):
"scopes": {"key": "scopes", "type": "[str]"},
}
- def __init__(self, *, name_claim_type: Optional[str] = None, scopes: Optional[List[str]] = None, **kwargs):
+ def __init__(
+ self, *, name_claim_type: Optional[str] = None, scopes: Optional[List[str]] = None, **kwargs: Any
+ ) -> None:
"""
:keyword name_claim_type: The name of the claim that contains the users name.
:paramtype name_claim_type: str
@@ -5558,8 +5602,8 @@ def __init__(
client_id: Optional[str] = None,
client_credential: Optional["_models.OpenIdConnectClientCredential"] = None,
open_id_connect_configuration: Optional["_models.OpenIdConnectConfig"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword client_id: The client id of the custom Open ID Connect provider.
:paramtype client_id: str
@@ -5603,8 +5647,8 @@ def __init__(
is_data_action: Optional[bool] = None,
display: Optional["_models.OperationDisplay"] = None,
origin: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: Name of the operation.
:paramtype name: str
@@ -5649,8 +5693,8 @@ def __init__(
resource: Optional[str] = None,
operation: Optional[str] = None,
description: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword provider: Resource provider of the operation.
:paramtype provider: str
@@ -5691,8 +5735,8 @@ def __init__(
queue_name: Optional[str] = None,
queue_length: Optional[int] = None,
auth: Optional[List["_models.ScaleRuleAuth"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword queue_name: Queue name.
:paramtype queue_name: str
@@ -5736,8 +5780,8 @@ def __init__(
username: Optional[str] = None,
password_secret_ref: Optional[str] = None,
identity: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword server: Container Registry Server.
:paramtype server: str
@@ -5780,8 +5824,8 @@ def __init__(
registry_url: Optional[str] = None,
registry_user_name: Optional[str] = None,
registry_password: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword registry_url: registry server Url.
:paramtype registry_url: str
@@ -5835,7 +5879,7 @@ class Replica(ProxyResource):
"containers": {"key": "properties.containers", "type": "[ReplicaContainer]"},
}
- def __init__(self, *, containers: Optional[List["_models.ReplicaContainer"]] = None, **kwargs):
+ def __init__(self, *, containers: Optional[List["_models.ReplicaContainer"]] = None, **kwargs: Any) -> None:
"""
:keyword containers: The containers collection under a replica.
:paramtype containers: list[~azure.mgmt.appcontainers.models.ReplicaContainer]
@@ -5862,7 +5906,7 @@ class ReplicaCollection(_serialization.Model):
"value": {"key": "value", "type": "[Replica]"},
}
- def __init__(self, *, value: List["_models.Replica"], **kwargs):
+ def __init__(self, *, value: List["_models.Replica"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.Replica]
@@ -5915,8 +5959,8 @@ def __init__(
ready: Optional[bool] = None,
started: Optional[bool] = None,
restart_count: Optional[int] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: The Name of the Container.
:paramtype name: str
@@ -6017,7 +6061,7 @@ class Revision(ProxyResource): # pylint: disable=too-many-instance-attributes
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.created_time = None
@@ -6055,7 +6099,7 @@ class RevisionCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.Revision"], **kwargs):
+ def __init__(self, *, value: List["_models.Revision"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.Revision]
@@ -6088,8 +6132,8 @@ def __init__(
min_replicas: Optional[int] = None,
max_replicas: int = 10,
rules: Optional[List["_models.ScaleRule"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword min_replicas: Optional. Minimum number of container replicas.
:paramtype min_replicas: int
@@ -6136,8 +6180,8 @@ def __init__(
custom: Optional["_models.CustomScaleRule"] = None,
http: Optional["_models.HttpScaleRule"] = None,
tcp: Optional["_models.TcpScaleRule"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: Scale Rule Name.
:paramtype name: str
@@ -6172,7 +6216,9 @@ class ScaleRuleAuth(_serialization.Model):
"trigger_parameter": {"key": "triggerParameter", "type": "str"},
}
- def __init__(self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs):
+ def __init__(
+ self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any
+ ) -> None:
"""
:keyword secret_ref: Name of the Container App secret from which to pull the auth params.
:paramtype secret_ref: str
@@ -6198,7 +6244,7 @@ class Secret(_serialization.Model):
"value": {"key": "value", "type": "str"},
}
- def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs):
+ def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword name: Secret Name.
:paramtype name: str
@@ -6227,7 +6273,7 @@ class SecretsCollection(_serialization.Model):
"value": {"key": "value", "type": "[ContainerAppSecret]"},
}
- def __init__(self, *, value: List["_models.ContainerAppSecret"], **kwargs):
+ def __init__(self, *, value: List["_models.ContainerAppSecret"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.ContainerAppSecret]
@@ -6295,8 +6341,8 @@ def __init__(
repo_url: Optional[str] = None,
branch: Optional[str] = None,
github_action_configuration: Optional["_models.GithubActionConfiguration"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword repo_url: The repo url which will be integrated to ContainerApp.
:paramtype repo_url: str
@@ -6339,7 +6385,7 @@ class SourceControlCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.SourceControl"], **kwargs):
+ def __init__(self, *, value: List["_models.SourceControl"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.SourceControl]
@@ -6386,8 +6432,8 @@ def __init__(
last_modified_by: Optional[str] = None,
last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
last_modified_at: Optional[datetime.datetime] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword created_by: The identity that created the resource.
:paramtype created_by: str
@@ -6432,8 +6478,8 @@ def __init__(
*,
metadata: Optional[Dict[str, str]] = None,
auth: Optional[List["_models.ScaleRuleAuth"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword metadata: Metadata properties to describe tcp scale rule.
:paramtype metadata: dict[str, str]
@@ -6450,16 +6496,16 @@ class Template(_serialization.Model):
Defines the desired state of an immutable revision.
Any changes to this section Will result in a new revision being created.
- :ivar revision_suffix: User friendly suffix that is appended to the revision name.
- :vartype revision_suffix: str
- :ivar init_containers: List of specialized containers that run before app containers.
- :vartype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer]
- :ivar containers: List of container definitions for the Container App.
- :vartype containers: list[~azure.mgmt.appcontainers.models.Container]
- :ivar scale: Scaling properties for the Container App.
- :vartype scale: ~azure.mgmt.appcontainers.models.Scale
- :ivar volumes: List of volume definitions for the Container App.
- :vartype volumes: list[~azure.mgmt.appcontainers.models.Volume]
+ :ivar revision_suffix: User friendly suffix that is appended to the revision name.
+ :vartype revision_suffix: str
+ :ivar init_containers: List of specialized containers that run before app containers.
+ :vartype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer]
+ :ivar containers: List of container definitions for the Container App.
+ :vartype containers: list[~azure.mgmt.appcontainers.models.Container]
+ :ivar scale: Scaling properties for the Container App.
+ :vartype scale: ~azure.mgmt.appcontainers.models.Scale
+ :ivar volumes: List of volume definitions for the Container App.
+ :vartype volumes: list[~azure.mgmt.appcontainers.models.Volume]
"""
_attribute_map = {
@@ -6478,8 +6524,8 @@ def __init__(
containers: Optional[List["_models.Container"]] = None,
scale: Optional["_models.Scale"] = None,
volumes: Optional[List["_models.Volume"]] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword revision_suffix: User friendly suffix that is appended to the revision name.
:paramtype revision_suffix: str
@@ -6527,8 +6573,8 @@ def __init__(
weight: Optional[int] = None,
latest_revision: bool = False,
label: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword revision_name: Name of a revision.
:paramtype revision_name: str
@@ -6564,8 +6610,12 @@ class Twitter(_serialization.Model):
}
def __init__(
- self, *, enabled: Optional[bool] = None, registration: Optional["_models.TwitterRegistration"] = None, **kwargs
- ):
+ self,
+ *,
+ enabled: Optional[bool] = None,
+ registration: Optional["_models.TwitterRegistration"] = None,
+ **kwargs: Any
+ ) -> None:
"""
:keyword enabled: :code:`false
` if the Twitter provider should not be enabled
despite the set registration; otherwise, :code:`true
`.
@@ -6598,8 +6648,8 @@ class TwitterRegistration(_serialization.Model):
}
def __init__(
- self, *, consumer_key: Optional[str] = None, consumer_secret_setting_name: Optional[str] = None, **kwargs
- ):
+ self, *, consumer_key: Optional[str] = None, consumer_secret_setting_name: Optional[str] = None, **kwargs: Any
+ ) -> None:
"""
:keyword consumer_key: The OAuth 1.0a consumer key of the Twitter application used for sign-in.
This setting is required for enabling Twitter Sign-In.
@@ -6636,7 +6686,7 @@ class UserAssignedIdentity(_serialization.Model):
"client_id": {"key": "clientId", "type": "str"},
}
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.principal_id = None
@@ -6691,8 +6741,8 @@ def __init__(
platform_reserved_cidr: Optional[str] = None,
platform_reserved_dns_ip: Optional[str] = None,
outbound_settings: Optional["_models.ManagedEnvironmentOutboundSettings"] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword internal: Boolean indicating the environment only has an internal load balancer. These
environments do not have a public static IP resource. They must provide runtimeSubnetId and
@@ -6754,8 +6804,8 @@ def __init__(
name: Optional[str] = None,
storage_type: Optional[Union[str, "_models.StorageType"]] = None,
storage_name: Optional[str] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword name: Volume name.
:paramtype name: str
@@ -6786,7 +6836,7 @@ class VolumeMount(_serialization.Model):
"mount_path": {"key": "mountPath", "type": "str"},
}
- def __init__(self, *, volume_name: Optional[str] = None, mount_path: Optional[str] = None, **kwargs):
+ def __init__(self, *, volume_name: Optional[str] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword volume_name: This must match the Name of a Volume.
:paramtype volume_name: str
@@ -6824,7 +6874,7 @@ class WorkloadProfile(_serialization.Model):
"maximum_count": {"key": "maximumCount", "type": "int"},
}
- def __init__(self, *, workload_profile_type: str, minimum_count: int, maximum_count: int, **kwargs):
+ def __init__(self, *, workload_profile_type: str, minimum_count: int, maximum_count: int, **kwargs: Any) -> None:
"""
:keyword workload_profile_type: Workload profile type for the workloads to run on. Required.
:paramtype workload_profile_type: str
@@ -6874,7 +6924,9 @@ class WorkloadProfileStates(ProxyResource):
"properties": {"key": "properties", "type": "WorkloadProfileStatesProperties"},
}
- def __init__(self, *, properties: Optional["_models.WorkloadProfileStatesProperties"] = None, **kwargs):
+ def __init__(
+ self, *, properties: Optional["_models.WorkloadProfileStatesProperties"] = None, **kwargs: Any
+ ) -> None:
"""
:keyword properties: Workload Profile resource specific properties.
:paramtype properties: ~azure.mgmt.appcontainers.models.WorkloadProfileStatesProperties
@@ -6906,7 +6958,7 @@ class WorkloadProfileStatesCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: List["_models.WorkloadProfileStates"], **kwargs):
+ def __init__(self, *, value: List["_models.WorkloadProfileStates"], **kwargs: Any) -> None:
"""
:keyword value: Collection of resources. Required.
:paramtype value: list[~azure.mgmt.appcontainers.models.WorkloadProfileStates]
@@ -6939,8 +6991,8 @@ def __init__(
minimum_count: Optional[int] = None,
maximum_count: Optional[int] = None,
current_count: Optional[int] = None,
- **kwargs
- ):
+ **kwargs: Any
+ ) -> None:
"""
:keyword minimum_count: Minimum count of instances.
:paramtype minimum_count: int