id
int64
0
843k
repository_name
stringlengths
7
55
file_path
stringlengths
9
332
class_name
stringlengths
3
290
human_written_code
stringlengths
12
4.36M
class_skeleton
stringlengths
19
2.2M
total_program_units
int64
1
9.57k
total_doc_str
int64
0
4.2k
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
300
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
176
CountClassBase
float64
0
48
CountClassCoupled
float64
0
589
CountClassCoupledModified
float64
0
581
CountClassDerived
float64
0
5.37k
CountDeclInstanceMethod
float64
0
4.2k
CountDeclInstanceVariable
float64
0
299
CountDeclMethod
float64
0
4.2k
CountDeclMethodAll
float64
0
4.2k
CountLine
float64
1
115k
CountLineBlank
float64
0
9.01k
CountLineCode
float64
0
94.4k
CountLineCodeDecl
float64
0
46.1k
CountLineCodeExe
float64
0
91.3k
CountLineComment
float64
0
27k
CountStmt
float64
1
93.2k
CountStmtDecl
float64
0
46.1k
CountStmtExe
float64
0
90.2k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
6k
10,100
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_cosmos_db_management_client_enums.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._cosmos_db_management_client_enums.VectorIndexType
class VectorIndexType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The index type of the vector. Currently, flat, diskANN, and quantizedFlat are supported.""" FLAT = "flat" DISK_ANN = "diskANN" QUANTIZED_FLAT = "quantizedFlat"
class VectorIndexType(str, Enum, metaclass=CaseInsensitiveEnumMeta): '''The index type of the vector. Currently, flat, diskANN, and quantizedFlat are supported.''' pass
1
1
0
0
0
0
0
0.25
3
0
0
0
0
0
0
115
6
1
4
4
3
1
4
4
3
0
4
0
0
10,101
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/threat_indicator/_show.py
azext_sentinel.aaz.latest.sentinel.threat_indicator._show.Show.ThreatIntelligenceIndicatorGet
class ThreatIntelligenceIndicatorGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "name", self.ctx.args.name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.kind = AAZStrType( flags={"required": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_indicator = cls._schema_on_200.discriminate_by( "kind", "indicator") disc_indicator.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "indicator").properties properties.additional_data = AAZDictType( serialized_name="additionalData", flags={"read_only": True}, ) properties.confidence = AAZIntType() properties.created = AAZStrType() properties.created_by_ref = AAZStrType( serialized_name="createdByRef", ) properties.defanged = AAZBoolType() properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", ) properties.external_id = AAZStrType( serialized_name="externalId", ) properties.external_last_updated_time_utc = AAZStrType( serialized_name="externalLastUpdatedTimeUtc", ) properties.external_references = AAZListType( serialized_name="externalReferences", ) properties.friendly_name = AAZStrType( serialized_name="friendlyName", flags={"read_only": True}, ) properties.granular_markings = AAZListType( serialized_name="granularMarkings", ) properties.indicator_types = AAZListType( serialized_name="indicatorTypes", ) properties.kill_chain_phases = AAZListType( serialized_name="killChainPhases", ) properties.labels = AAZListType() properties.language = AAZStrType() properties.last_updated_time_utc = AAZStrType( serialized_name="lastUpdatedTimeUtc", ) properties.modified = AAZStrType() properties.object_marking_refs = AAZListType( serialized_name="objectMarkingRefs", ) properties.parsed_pattern = AAZListType( serialized_name="parsedPattern", ) properties.pattern = AAZStrType() properties.pattern_type = AAZStrType( serialized_name="patternType", ) properties.pattern_version = AAZStrType( serialized_name="patternVersion", ) properties.revoked = AAZBoolType() properties.source = AAZStrType() properties.threat_intelligence_tags = AAZListType( serialized_name="threatIntelligenceTags", ) properties.threat_types = AAZListType( serialized_name="threatTypes", ) properties.valid_from = AAZStrType( serialized_name="validFrom", ) properties.valid_until = AAZStrType( serialized_name="validUntil", ) external_references = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.external_references external_references.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.external_references.Element _element.description = AAZStrType() _element.external_id = AAZStrType( serialized_name="externalId", ) _element.hashes = AAZDictType() _element.source_name = AAZStrType( serialized_name="sourceName", ) _element.url = AAZStrType() hashes = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.external_references.Element.hashes hashes.Element = AAZStrType() granular_markings = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.granular_markings granular_markings.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.granular_markings.Element _element.language = AAZStrType() _element.marking_ref = AAZIntType( serialized_name="markingRef", ) _element.selectors = AAZListType() selectors = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.granular_markings.Element.selectors selectors.Element = AAZStrType() indicator_types = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.indicator_types indicator_types.Element = AAZStrType() kill_chain_phases = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.kill_chain_phases kill_chain_phases.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.kill_chain_phases.Element _element.kill_chain_name = AAZStrType( serialized_name="killChainName", ) _element.phase_name = AAZStrType( serialized_name="phaseName", ) labels = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.labels labels.Element = AAZStrType() object_marking_refs = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.object_marking_refs object_marking_refs.Element = AAZStrType() parsed_pattern = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern parsed_pattern.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element _element.pattern_type_key = AAZStrType( serialized_name="patternTypeKey", ) _element.pattern_type_values = AAZListType( serialized_name="patternTypeValues", ) pattern_type_values = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values pattern_type_values.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values.Element _element.value = AAZStrType() _element.value_type = AAZStrType( serialized_name="valueType", ) threat_intelligence_tags = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.threat_intelligence_tags threat_intelligence_tags.Element = AAZStrType() threat_types = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.threat_types threat_types.Element = AAZStrType() return cls._schema_on_200
class ThreatIntelligenceIndicatorGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
29
3
26
0
1
0
1
0
0
0
8
0
9
9
282
34
248
42
231
0
121
35
111
2
1
1
11
10,102
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.ARMProxyResource
class ARMProxyResource(_serialization.Model): """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The unique resource identifier of the database account. :vartype id: str :ivar name: The name of the database account. :vartype name: str :ivar type: The type of Azure resource. :vartype type: str """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None self.name = None self.type = None
class ARMProxyResource(_serialization.Model): '''The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The unique resource identifier of the database account. :vartype id: str :ivar name: The name of the database account. :vartype name: str :ivar type: The type of Azure resource. :vartype type: str ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
6
0
5
1
1
0.69
1
2
0
13
1
3
1
16
32
5
16
7
14
11
8
7
6
1
2
0
1
10,103
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.AccessRule
class AccessRule(_serialization.Model): """Access rule in a network security perimeter configuration profile. :ivar name: Name of the access rule. :vartype name: str :ivar properties: Properties of Access Rule. :vartype properties: ~azure.mgmt.cosmosdb.models.AccessRuleProperties """ _attribute_map = { "name": {"key": "name", "type": "str"}, "properties": {"key": "properties", "type": "AccessRuleProperties"}, } def __init__( self, *, name: Optional[str] = None, properties: Optional["_models.AccessRuleProperties"] = None, **kwargs: Any ) -> None: """ :keyword name: Name of the access rule. :paramtype name: str :keyword properties: Properties of Access Rule. :paramtype properties: ~azure.mgmt.cosmosdb.models.AccessRuleProperties """ super().__init__(**kwargs) self.name = name self.properties = properties
class AccessRule(_serialization.Model): '''Access rule in a network security perimeter configuration profile. :ivar name: Name of the access rule. :vartype name: str :ivar properties: Properties of Access Rule. :vartype properties: ~azure.mgmt.cosmosdb.models.AccessRuleProperties ''' def __init__( self, *, name: Optional[str] = None, properties: Optional["_models.AccessRuleProperties"] = None, **kwargs: Any ) -> None: ''' :keyword name: Name of the access rule. :paramtype name: str :keyword properties: Properties of Access Rule. :paramtype properties: ~azure.mgmt.cosmosdb.models.AccessRuleProperties ''' pass
2
2
12
0
6
6
1
1.09
1
3
0
0
1
2
1
16
26
3
11
7
7
12
6
5
4
1
2
0
1
10,104
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.AccessRuleProperties
class AccessRuleProperties(_serialization.Model): """Properties of Access Rule. :ivar direction: Direction of Access Rule. Known values are: "Inbound" and "Outbound". :vartype direction: str or ~azure.mgmt.cosmosdb.models.AccessRuleDirection :ivar address_prefixes: Address prefixes in the CIDR format for inbound rules. :vartype address_prefixes: list[str] :ivar subscriptions: Subscriptions for inbound rules. :vartype subscriptions: list[~azure.mgmt.cosmosdb.models.AccessRulePropertiesSubscriptionsItem] :ivar network_security_perimeters: Network security perimeters for inbound rules. :vartype network_security_perimeters: list[~azure.mgmt.cosmosdb.models.NetworkSecurityPerimeter] :ivar fully_qualified_domain_names: Fully qualified domain names (FQDN) for outbound rules. :vartype fully_qualified_domain_names: list[str] :ivar email_addresses: Email addresses for outbound rules. :vartype email_addresses: list[str] :ivar phone_numbers: Phone numbers for outbound rules. :vartype phone_numbers: list[str] """ _attribute_map = { "direction": {"key": "direction", "type": "str"}, "address_prefixes": {"key": "addressPrefixes", "type": "[str]"}, "subscriptions": {"key": "subscriptions", "type": "[AccessRulePropertiesSubscriptionsItem]"}, "network_security_perimeters": {"key": "networkSecurityPerimeters", "type": "[NetworkSecurityPerimeter]"}, "fully_qualified_domain_names": {"key": "fullyQualifiedDomainNames", "type": "[str]"}, "email_addresses": {"key": "emailAddresses", "type": "[str]"}, "phone_numbers": {"key": "phoneNumbers", "type": "[str]"}, } def __init__( self, *, direction: Optional[Union[str, "_models.AccessRuleDirection"]] = None, address_prefixes: Optional[List[str]] = None, subscriptions: Optional[List["_models.AccessRulePropertiesSubscriptionsItem"]] = None, network_security_perimeters: Optional[List["_models.NetworkSecurityPerimeter"]] = None, fully_qualified_domain_names: Optional[List[str]] = None, email_addresses: Optional[List[str]] = None, phone_numbers: Optional[List[str]] = None, **kwargs: Any ) -> None: """ :keyword direction: Direction of Access Rule. Known values are: "Inbound" and "Outbound". :paramtype direction: str or ~azure.mgmt.cosmosdb.models.AccessRuleDirection :keyword address_prefixes: Address prefixes in the CIDR format for inbound rules. :paramtype address_prefixes: list[str] :keyword subscriptions: Subscriptions for inbound rules. :paramtype subscriptions: list[~azure.mgmt.cosmosdb.models.AccessRulePropertiesSubscriptionsItem] :keyword network_security_perimeters: Network security perimeters for inbound rules. :paramtype network_security_perimeters: list[~azure.mgmt.cosmosdb.models.NetworkSecurityPerimeter] :keyword fully_qualified_domain_names: Fully qualified domain names (FQDN) for outbound rules. :paramtype fully_qualified_domain_names: list[str] :keyword email_addresses: Email addresses for outbound rules. :paramtype email_addresses: list[str] :keyword phone_numbers: Phone numbers for outbound rules. :paramtype phone_numbers: list[str] """ super().__init__(**kwargs) self.direction = direction self.address_prefixes = address_prefixes self.subscriptions = subscriptions self.network_security_perimeters = network_security_perimeters self.fully_qualified_domain_names = fully_qualified_domain_names self.email_addresses = email_addresses self.phone_numbers = phone_numbers
class AccessRuleProperties(_serialization.Model): '''Properties of Access Rule. :ivar direction: Direction of Access Rule. Known values are: "Inbound" and "Outbound". :vartype direction: str or ~azure.mgmt.cosmosdb.models.AccessRuleDirection :ivar address_prefixes: Address prefixes in the CIDR format for inbound rules. :vartype address_prefixes: list[str] :ivar subscriptions: Subscriptions for inbound rules. :vartype subscriptions: list[~azure.mgmt.cosmosdb.models.AccessRulePropertiesSubscriptionsItem] :ivar network_security_perimeters: Network security perimeters for inbound rules. :vartype network_security_perimeters: list[~azure.mgmt.cosmosdb.models.NetworkSecurityPerimeter] :ivar fully_qualified_domain_names: Fully qualified domain names (FQDN) for outbound rules. :vartype fully_qualified_domain_names: list[str] :ivar email_addresses: Email addresses for outbound rules. :vartype email_addresses: list[str] :ivar phone_numbers: Phone numbers for outbound rules. :vartype phone_numbers: list[str] ''' def __init__( self, *, direction: Optional[Union[str, "_models.AccessRuleDirection"]] = None, address_prefixes: Optional[List[str]] = None, subscriptions: Optional[List["_models.AccessRulePropertiesSubscriptionsItem"]] = None, network_security_perimeters: Optional[List["_models.NetworkSecurityPerimeter"]] = None, fully_qualified_domain_names: Optional[List[str]] = None, email_addresses: Optional[List[str]] = None, phone_numbers: Optional[List[str]] = None, **kwargs: Any ) -> None: ''' :keyword direction: Direction of Access Rule. Known values are: "Inbound" and "Outbound". :paramtype direction: str or ~azure.mgmt.cosmosdb.models.AccessRuleDirection :keyword address_prefixes: Address prefixes in the CIDR format for inbound rules. :paramtype address_prefixes: list[str] :keyword subscriptions: Subscriptions for inbound rules. :paramtype subscriptions: list[~azure.mgmt.cosmosdb.models.AccessRulePropertiesSubscriptionsItem] :keyword network_security_perimeters: Network security perimeters for inbound rules. :paramtype network_security_perimeters: list[~azure.mgmt.cosmosdb.models.NetworkSecurityPerimeter] :keyword fully_qualified_domain_names: Fully qualified domain names (FQDN) for outbound rules. :paramtype fully_qualified_domain_names: list[str] :keyword email_addresses: Email addresses for outbound rules. :paramtype email_addresses: list[str] :keyword phone_numbers: Phone numbers for outbound rules. :paramtype phone_numbers: list[str] ''' pass
2
2
38
0
20
18
1
1.17
1
3
0
0
1
7
1
16
68
3
30
21
17
35
11
10
9
1
2
0
1
10,105
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.AccessRulePropertiesSubscriptionsItem
class AccessRulePropertiesSubscriptionsItem(_serialization.Model): """Subscription identifiers. :ivar id: The fully qualified Azure resource ID of the subscription e.g. ('/subscriptions/00000000-0000-0000-0000-000000000000'). :vartype id: str """ _attribute_map = { "id": {"key": "id", "type": "str"}, } def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The fully qualified Azure resource ID of the subscription e.g. ('/subscriptions/00000000-0000-0000-0000-000000000000'). :paramtype id: str """ super().__init__(**kwargs) self.id = id
class AccessRulePropertiesSubscriptionsItem(_serialization.Model): '''Subscription identifiers. :ivar id: The fully qualified Azure resource ID of the subscription e.g. ('/subscriptions/00000000-0000-0000-0000-000000000000'). :vartype id: str ''' def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: ''' :keyword id: The fully qualified Azure resource ID of the subscription e.g. ('/subscriptions/00000000-0000-0000-0000-000000000000'). :paramtype id: str ''' pass
2
2
8
0
3
6
1
1.57
1
3
0
0
1
1
1
16
20
3
7
4
5
11
5
4
3
1
2
0
1
10,106
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.AccountKeyMetadata
class AccountKeyMetadata(_serialization.Model): """The metadata related to an access key for a given database account. Variables are only populated by the server, and will be ignored when sending a request. :ivar generation_time: Generation time in UTC of the key in ISO-8601 format. If the value is missing from the object, it means that the last key regeneration was triggered before 2022-06-18. :vartype generation_time: ~datetime.datetime """ _validation = { "generation_time": {"readonly": True}, } _attribute_map = { "generation_time": {"key": "generationTime", "type": "iso-8601"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.generation_time = None
class AccountKeyMetadata(_serialization.Model): '''The metadata related to an access key for a given database account. Variables are only populated by the server, and will be ignored when sending a request. :ivar generation_time: Generation time in UTC of the key in ISO-8601 format. If the value is missing from the object, it means that the last key regeneration was triggered before 2022-06-18. :vartype generation_time: ~datetime.datetime ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
4
0
3
1
1
0.8
1
2
0
0
1
1
1
16
23
5
10
5
8
8
6
5
4
1
2
0
1
10,107
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.AnalyticalStorageConfiguration
class AnalyticalStorageConfiguration(_serialization.Model): """Analytical storage specific properties. :ivar schema_type: Describes the types of schema for analytical storage. Known values are: "WellDefined" and "FullFidelity". :vartype schema_type: str or ~azure.mgmt.cosmosdb.models.AnalyticalStorageSchemaType """ _attribute_map = { "schema_type": {"key": "schemaType", "type": "str"}, } def __init__( self, *, schema_type: Optional[Union[str, "_models.AnalyticalStorageSchemaType"]] = None, **kwargs: Any ) -> None: """ :keyword schema_type: Describes the types of schema for analytical storage. Known values are: "WellDefined" and "FullFidelity". :paramtype schema_type: str or ~azure.mgmt.cosmosdb.models.AnalyticalStorageSchemaType """ super().__init__(**kwargs) self.schema_type = schema_type
class AnalyticalStorageConfiguration(_serialization.Model): '''Analytical storage specific properties. :ivar schema_type: Describes the types of schema for analytical storage. Known values are: "WellDefined" and "FullFidelity". :vartype schema_type: str or ~azure.mgmt.cosmosdb.models.AnalyticalStorageSchemaType ''' def __init__( self, *, schema_type: Optional[Union[str, "_models.AnalyticalStorageSchemaType"]] = None, **kwargs: Any ) -> None: ''' :keyword schema_type: Describes the types of schema for analytical storage. Known values are: "WellDefined" and "FullFidelity". :paramtype schema_type: str or ~azure.mgmt.cosmosdb.models.AnalyticalStorageSchemaType ''' pass
2
2
10
0
5
5
1
1.11
1
3
0
0
1
1
1
16
22
3
9
6
5
10
5
4
3
1
2
0
1
10,108
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.ApiProperties
class ApiProperties(_serialization.Model): """ApiProperties. :ivar server_version: Describes the version of the MongoDB account. Known values are: "3.2", "3.6", "4.0", "4.2", "5.0", "6.0", and "7.0". :vartype server_version: str or ~azure.mgmt.cosmosdb.models.ServerVersion """ _attribute_map = { "server_version": {"key": "serverVersion", "type": "str"}, } def __init__(self, *, server_version: Optional[Union[str, "_models.ServerVersion"]] = None, **kwargs: Any) -> None: """ :keyword server_version: Describes the version of the MongoDB account. Known values are: "3.2", "3.6", "4.0", "4.2", "5.0", "6.0", and "7.0". :paramtype server_version: str or ~azure.mgmt.cosmosdb.models.ServerVersion """ super().__init__(**kwargs) self.server_version = server_version
class ApiProperties(_serialization.Model): '''ApiProperties. :ivar server_version: Describes the version of the MongoDB account. Known values are: "3.2", "3.6", "4.0", "4.2", "5.0", "6.0", and "7.0". :vartype server_version: str or ~azure.mgmt.cosmosdb.models.ServerVersion ''' def __init__(self, *, server_version: Optional[Union[str, "_models.ServerVersion"]] = None, **kwargs: Any) -> None: ''' :keyword server_version: Describes the version of the MongoDB account. Known values are: "3.2", "3.6", "4.0", "4.2", "5.0", "6.0", and "7.0". :paramtype server_version: str or ~azure.mgmt.cosmosdb.models.ServerVersion ''' pass
2
2
8
0
3
5
1
1.43
1
3
0
0
1
1
1
16
20
3
7
4
5
10
5
4
3
1
2
0
1
10,109
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.AuthenticationMethodLdapProperties
class AuthenticationMethodLdapProperties(_serialization.Model): """Ldap authentication method properties. This feature is in preview. :ivar server_hostname: Hostname of the LDAP server. :vartype server_hostname: str :ivar server_port: Port of the LDAP server. :vartype server_port: int :ivar service_user_distinguished_name: Distinguished name of the look up user account, who can look up user details on authentication. :vartype service_user_distinguished_name: str :ivar service_user_password: Password of the look up user. :vartype service_user_password: str :ivar search_base_distinguished_name: Distinguished name of the object to start the recursive search of users from. :vartype search_base_distinguished_name: str :ivar search_filter_template: Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login. :vartype search_filter_template: str :ivar server_certificates: :vartype server_certificates: list[~azure.mgmt.cosmosdb.models.Certificate] :ivar connection_timeout_in_ms: Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms. :vartype connection_timeout_in_ms: int """ _attribute_map = { "server_hostname": {"key": "serverHostname", "type": "str"}, "server_port": {"key": "serverPort", "type": "int"}, "service_user_distinguished_name": {"key": "serviceUserDistinguishedName", "type": "str"}, "service_user_password": {"key": "serviceUserPassword", "type": "str"}, "search_base_distinguished_name": {"key": "searchBaseDistinguishedName", "type": "str"}, "search_filter_template": {"key": "searchFilterTemplate", "type": "str"}, "server_certificates": {"key": "serverCertificates", "type": "[Certificate]"}, "connection_timeout_in_ms": {"key": "connectionTimeoutInMs", "type": "int"}, } def __init__( self, *, server_hostname: Optional[str] = None, server_port: Optional[int] = None, service_user_distinguished_name: Optional[str] = None, service_user_password: Optional[str] = None, search_base_distinguished_name: Optional[str] = None, search_filter_template: Optional[str] = None, server_certificates: Optional[List["_models.Certificate"]] = None, connection_timeout_in_ms: Optional[int] = None, **kwargs: Any ) -> None: """ :keyword server_hostname: Hostname of the LDAP server. :paramtype server_hostname: str :keyword server_port: Port of the LDAP server. :paramtype server_port: int :keyword service_user_distinguished_name: Distinguished name of the look up user account, who can look up user details on authentication. :paramtype service_user_distinguished_name: str :keyword service_user_password: Password of the look up user. :paramtype service_user_password: str :keyword search_base_distinguished_name: Distinguished name of the object to start the recursive search of users from. :paramtype search_base_distinguished_name: str :keyword search_filter_template: Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login. :paramtype search_filter_template: str :keyword server_certificates: :paramtype server_certificates: list[~azure.mgmt.cosmosdb.models.Certificate] :keyword connection_timeout_in_ms: Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms. :paramtype connection_timeout_in_ms: int """ super().__init__(**kwargs) self.server_hostname = server_hostname self.server_port = server_port self.service_user_distinguished_name = service_user_distinguished_name self.service_user_password = service_user_password self.search_base_distinguished_name = search_base_distinguished_name self.search_filter_template = search_filter_template self.server_certificates = server_certificates self.connection_timeout_in_ms = connection_timeout_in_ms
class AuthenticationMethodLdapProperties(_serialization.Model): '''Ldap authentication method properties. This feature is in preview. :ivar server_hostname: Hostname of the LDAP server. :vartype server_hostname: str :ivar server_port: Port of the LDAP server. :vartype server_port: int :ivar service_user_distinguished_name: Distinguished name of the look up user account, who can look up user details on authentication. :vartype service_user_distinguished_name: str :ivar service_user_password: Password of the look up user. :vartype service_user_password: str :ivar search_base_distinguished_name: Distinguished name of the object to start the recursive search of users from. :vartype search_base_distinguished_name: str :ivar search_filter_template: Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login. :vartype search_filter_template: str :ivar server_certificates: :vartype server_certificates: list[~azure.mgmt.cosmosdb.models.Certificate] :ivar connection_timeout_in_ms: Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms. :vartype connection_timeout_in_ms: int ''' def __init__( self, *, server_hostname: Optional[str] = None, server_port: Optional[int] = None, service_user_distinguished_name: Optional[str] = None, service_user_password: Optional[str] = None, search_base_distinguished_name: Optional[str] = None, search_filter_template: Optional[str] = None, server_certificates: Optional[List["_models.Certificate"]] = None, connection_timeout_in_ms: Optional[int] = None, **kwargs: Any ) -> None: ''' :keyword server_hostname: Hostname of the LDAP server. :paramtype server_hostname: str :keyword server_port: Port of the LDAP server. :paramtype server_port: int :keyword service_user_distinguished_name: Distinguished name of the look up user account, who can look up user details on authentication. :paramtype service_user_distinguished_name: str :keyword service_user_password: Password of the look up user. :paramtype service_user_password: str :keyword search_base_distinguished_name: Distinguished name of the object to start the recursive search of users from. :paramtype search_base_distinguished_name: str :keyword search_filter_template: Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login. :paramtype search_filter_template: str :keyword server_certificates: :paramtype server_certificates: list[~azure.mgmt.cosmosdb.models.Certificate] :keyword connection_timeout_in_ms: Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms. :paramtype connection_timeout_in_ms: int ''' pass
2
2
44
0
22
22
1
1.33
1
4
0
0
1
8
1
16
80
3
33
23
19
44
12
11
10
1
2
0
1
10,110
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.AutoUpgradePolicyResource
class AutoUpgradePolicyResource(_serialization.Model): """Cosmos DB resource auto-upgrade policy. :ivar throughput_policy: Represents throughput policy which service must adhere to for auto-upgrade. :vartype throughput_policy: ~azure.mgmt.cosmosdb.models.ThroughputPolicyResource """ _attribute_map = { "throughput_policy": {"key": "throughputPolicy", "type": "ThroughputPolicyResource"}, } def __init__( self, *, throughput_policy: Optional["_models.ThroughputPolicyResource"] = None, **kwargs: Any ) -> None: """ :keyword throughput_policy: Represents throughput policy which service must adhere to for auto-upgrade. :paramtype throughput_policy: ~azure.mgmt.cosmosdb.models.ThroughputPolicyResource """ super().__init__(**kwargs) self.throughput_policy = throughput_policy
class AutoUpgradePolicyResource(_serialization.Model): '''Cosmos DB resource auto-upgrade policy. :ivar throughput_policy: Represents throughput policy which service must adhere to for auto-upgrade. :vartype throughput_policy: ~azure.mgmt.cosmosdb.models.ThroughputPolicyResource ''' def __init__( self, *, throughput_policy: Optional["_models.ThroughputPolicyResource"] = None, **kwargs: Any ) -> None: ''' :keyword throughput_policy: Represents throughput policy which service must adhere to for auto-upgrade. :paramtype throughput_policy: ~azure.mgmt.cosmosdb.models.ThroughputPolicyResource ''' pass
2
2
10
0
5
5
1
1.11
1
2
0
0
1
1
1
16
22
3
9
6
5
10
5
4
3
1
2
0
1
10,111
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.ARMResourceProperties
class ARMResourceProperties(_serialization.Model): """The core properties of ARM resources. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The unique resource identifier of the ARM resource. :vartype id: str :ivar name: The name of the ARM resource. :vartype name: str :ivar type: The type of Azure resource. :vartype type: str :ivar location: The location of the resource group to which the resource belongs. :vartype location: str :ivar tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :vartype tags: dict[str, str] :ivar identity: Identity for the resource. :vartype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "location": {"key": "location", "type": "str"}, "tags": {"key": "tags", "type": "{str}"}, "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, } def __init__( self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, identity: Optional["_models.ManagedServiceIdentity"] = None, **kwargs: Any ) -> None: """ :keyword location: The location of the resource group to which the resource belongs. :paramtype location: str :keyword tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :paramtype tags: dict[str, str] :keyword identity: Identity for the resource. :paramtype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity """ super().__init__(**kwargs) self.id = None self.name = None self.type = None self.location = location self.tags = tags self.identity = identity
class ARMResourceProperties(_serialization.Model): '''The core properties of ARM resources. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The unique resource identifier of the ARM resource. :vartype id: str :ivar name: The name of the ARM resource. :vartype name: str :ivar type: The type of Azure resource. :vartype type: str :ivar location: The location of the resource group to which the resource belongs. :vartype location: str :ivar tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :vartype tags: dict[str, str] :ivar identity: Identity for the resource. :vartype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity ''' def __init__( self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, identity: Optional["_models.ManagedServiceIdentity"] = None, **kwargs: Any ) -> None: ''' :keyword location: The location of the resource group to which the resource belongs. :paramtype location: str :keyword tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :paramtype tags: dict[str, str] :keyword identity: Identity for the resource. :paramtype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity ''' pass
2
2
28
0
15
13
1
1.14
1
3
0
35
1
6
1
16
67
5
29
17
20
33
11
10
9
1
2
0
1
10,112
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.PercentileMetricValue
class PercentileMetricValue(MetricValue): """Represents percentile metrics values. Variables are only populated by the server, and will be ignored when sending a request. :ivar count: The number of values for the metric. :vartype count: int :ivar average: The average value of the metric. :vartype average: float :ivar maximum: The max value of the metric. :vartype maximum: float :ivar minimum: The min value of the metric. :vartype minimum: float :ivar timestamp: The metric timestamp (ISO-8601 format). :vartype timestamp: ~datetime.datetime :ivar total: The total value of the metric. :vartype total: float :ivar p10: The 10th percentile value for the metric. :vartype p10: float :ivar p25: The 25th percentile value for the metric. :vartype p25: float :ivar p50: The 50th percentile value for the metric. :vartype p50: float :ivar p75: The 75th percentile value for the metric. :vartype p75: float :ivar p90: The 90th percentile value for the metric. :vartype p90: float :ivar p95: The 95th percentile value for the metric. :vartype p95: float :ivar p99: The 99th percentile value for the metric. :vartype p99: float """ _validation = { "count": {"readonly": True}, "average": {"readonly": True}, "maximum": {"readonly": True}, "minimum": {"readonly": True}, "timestamp": {"readonly": True}, "total": {"readonly": True}, "p10": {"readonly": True}, "p25": {"readonly": True}, "p50": {"readonly": True}, "p75": {"readonly": True}, "p90": {"readonly": True}, "p95": {"readonly": True}, "p99": {"readonly": True}, } _attribute_map = { "count": {"key": "_count", "type": "int"}, "average": {"key": "average", "type": "float"}, "maximum": {"key": "maximum", "type": "float"}, "minimum": {"key": "minimum", "type": "float"}, "timestamp": {"key": "timestamp", "type": "iso-8601"}, "total": {"key": "total", "type": "float"}, "p10": {"key": "P10", "type": "float"}, "p25": {"key": "P25", "type": "float"}, "p50": {"key": "P50", "type": "float"}, "p75": {"key": "P75", "type": "float"}, "p90": {"key": "P90", "type": "float"}, "p95": {"key": "P95", "type": "float"}, "p99": {"key": "P99", "type": "float"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.p10 = None self.p25 = None self.p50 = None self.p75 = None self.p90 = None self.p95 = None self.p99 = None
class PercentileMetricValue(MetricValue): '''Represents percentile metrics values. Variables are only populated by the server, and will be ignored when sending a request. :ivar count: The number of values for the metric. :vartype count: int :ivar average: The average value of the metric. :vartype average: float :ivar maximum: The max value of the metric. :vartype maximum: float :ivar minimum: The min value of the metric. :vartype minimum: float :ivar timestamp: The metric timestamp (ISO-8601 format). :vartype timestamp: ~datetime.datetime :ivar total: The total value of the metric. :vartype total: float :ivar p10: The 10th percentile value for the metric. :vartype p10: float :ivar p25: The 25th percentile value for the metric. :vartype p25: float :ivar p50: The 50th percentile value for the metric. :vartype p50: float :ivar p75: The 75th percentile value for the metric. :vartype p75: float :ivar p90: The 90th percentile value for the metric. :vartype p90: float :ivar p95: The 95th percentile value for the metric. :vartype p95: float :ivar p99: The 99th percentile value for the metric. :vartype p99: float ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
10
0
9
1
1
0.75
1
2
0
0
1
7
1
17
75
5
40
11
38
30
12
11
10
1
3
0
1
10,113
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/threat_indicator/_replace_tag.py
azext_sentinel.aaz.latest.sentinel.threat_indicator._replace_tag.ReplaceTag.ThreatIntelligenceIndicatorReplaceTags
class ThreatIntelligenceIndicatorReplaceTags(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/replaceTags", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "name", self.ctx.args.name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_const("kind", "indicator", AAZStrType, ".", typ_kwargs={ "flags": {"required": True}}) _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("confidence", AAZIntType, ".confidence") properties.set_prop("created", AAZStrType, ".created") properties.set_prop( "createdByRef", AAZStrType, ".created_by_ref") properties.set_prop("defanged", AAZBoolType, ".defanged") properties.set_prop("description", AAZStrType, ".description") properties.set_prop("displayName", AAZStrType, ".display_name") properties.set_prop("externalId", AAZStrType, ".external_id") properties.set_prop( "externalLastUpdatedTimeUtc", AAZStrType, ".external_updated_time") properties.set_prop("externalReferences", AAZListType, ".external_references") properties.set_prop("granularMarkings", AAZListType, ".granular_markings") properties.set_prop( "indicatorTypes", AAZListType, ".indicator_types") properties.set_prop("killChainPhases", AAZListType, ".kill_chain_phases") properties.set_prop("labels", AAZListType, ".labels") properties.set_prop("language", AAZStrType, ".language") properties.set_prop("lastUpdatedTimeUtc", AAZStrType, ".last_updated_time") properties.set_prop("modified", AAZStrType, ".modified") properties.set_prop("objectMarkingRefs", AAZListType, ".object_marking_refs") properties.set_prop( "parsedPattern", AAZListType, ".parsed_pattern") properties.set_prop("pattern", AAZStrType, ".pattern") properties.set_prop("patternType", AAZStrType, ".pattern_type") properties.set_prop( "patternVersion", AAZStrType, ".pattern_version") properties.set_prop("revoked", AAZBoolType, ".revoked") properties.set_prop("source", AAZStrType, ".source") properties.set_prop("threatIntelligenceTags", AAZListType, ".intelligence_tags") properties.set_prop( "threatTypes", AAZListType, ".threat_types") properties.set_prop("validFrom", AAZStrType, ".valid_from") properties.set_prop("validUntil", AAZStrType, ".valid_until") external_references = _builder.get( ".properties.externalReferences") if external_references is not None: external_references.set_elements(AAZObjectType) _elements = _builder.get(".properties.externalReferences[]") if _elements is not None: _elements.set_prop("description", AAZStrType, ".description") _elements.set_prop("externalId", AAZStrType, ".external_id") _elements.set_prop("hashes", AAZDictType, ".hashes") _elements.set_prop("sourceName", AAZStrType, ".source_name") _elements.set_prop("url", AAZStrType, ".url") hashes = _builder.get(".properties.externalReferences[].hashes") if hashes is not None: hashes.set_elements(AAZStrType, ".") granular_markings = _builder.get(".properties.granularMarkings") if granular_markings is not None: granular_markings.set_elements(AAZObjectType) _elements = _builder.get(".properties.granularMarkings[]") if _elements is not None: _elements.set_prop("language", AAZStrType, ".language") _elements.set_prop("markingRef", AAZIntType, ".marking_ref") _elements.set_prop("selectors", AAZListType, ".selectors") selectors = _builder.get( ".properties.granularMarkings[].selectors") if selectors is not None: selectors.set_elements(AAZStrType, ".") indicator_types = _builder.get(".properties.indicatorTypes") if indicator_types is not None: indicator_types.set_elements(AAZStrType, ".") kill_chain_phases = _builder.get(".properties.killChainPhases") if kill_chain_phases is not None: kill_chain_phases.set_elements(AAZObjectType) _elements = _builder.get(".properties.killChainPhases[]") if _elements is not None: _elements.set_prop( "killChainName", AAZStrType, ".kill_chain_name") _elements.set_prop("phaseName", AAZStrType, ".phase_name") labels = _builder.get(".properties.labels") if labels is not None: labels.set_elements(AAZStrType, ".") object_marking_refs = _builder.get(".properties.objectMarkingRefs") if object_marking_refs is not None: object_marking_refs.set_elements(AAZStrType, ".") parsed_pattern = _builder.get(".properties.parsedPattern") if parsed_pattern is not None: parsed_pattern.set_elements(AAZObjectType) _elements = _builder.get(".properties.parsedPattern[]") if _elements is not None: _elements.set_prop( "patternTypeKey", AAZStrType, ".pattern_type_key") _elements.set_prop("patternTypeValues", AAZListType, ".pattern_type_values") pattern_type_values = _builder.get( ".properties.parsedPattern[].patternTypeValues") if pattern_type_values is not None: pattern_type_values.set_elements(AAZObjectType) _elements = _builder.get( ".properties.parsedPattern[].patternTypeValues[]") if _elements is not None: _elements.set_prop("value", AAZStrType, ".value") _elements.set_prop("valueType", AAZStrType, ".value_type") threat_intelligence_tags = _builder.get( ".properties.threatIntelligenceTags") if threat_intelligence_tags is not None: threat_intelligence_tags.set_elements(AAZStrType, ".") threat_types = _builder.get(".properties.threatTypes") if threat_types is not None: threat_types.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.kind = AAZStrType( flags={"required": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_indicator = cls._schema_on_200.discriminate_by( "kind", "indicator") disc_indicator.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "indicator").properties properties.additional_data = AAZDictType( serialized_name="additionalData", flags={"read_only": True}, ) properties.confidence = AAZIntType() properties.created = AAZStrType() properties.created_by_ref = AAZStrType( serialized_name="createdByRef", ) properties.defanged = AAZBoolType() properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", ) properties.external_id = AAZStrType( serialized_name="externalId", ) properties.external_last_updated_time_utc = AAZStrType( serialized_name="externalLastUpdatedTimeUtc", ) properties.external_references = AAZListType( serialized_name="externalReferences", ) properties.friendly_name = AAZStrType( serialized_name="friendlyName", flags={"read_only": True}, ) properties.granular_markings = AAZListType( serialized_name="granularMarkings", ) properties.indicator_types = AAZListType( serialized_name="indicatorTypes", ) properties.kill_chain_phases = AAZListType( serialized_name="killChainPhases", ) properties.labels = AAZListType() properties.language = AAZStrType() properties.last_updated_time_utc = AAZStrType( serialized_name="lastUpdatedTimeUtc", ) properties.modified = AAZStrType() properties.object_marking_refs = AAZListType( serialized_name="objectMarkingRefs", ) properties.parsed_pattern = AAZListType( serialized_name="parsedPattern", ) properties.pattern = AAZStrType() properties.pattern_type = AAZStrType( serialized_name="patternType", ) properties.pattern_version = AAZStrType( serialized_name="patternVersion", ) properties.revoked = AAZBoolType() properties.source = AAZStrType() properties.threat_intelligence_tags = AAZListType( serialized_name="threatIntelligenceTags", ) properties.threat_types = AAZListType( serialized_name="threatTypes", ) properties.valid_from = AAZStrType( serialized_name="validFrom", ) properties.valid_until = AAZStrType( serialized_name="validUntil", ) external_references = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.external_references external_references.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.external_references.Element _element.description = AAZStrType() _element.external_id = AAZStrType( serialized_name="externalId", ) _element.hashes = AAZDictType() _element.source_name = AAZStrType( serialized_name="sourceName", ) _element.url = AAZStrType() hashes = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.external_references.Element.hashes hashes.Element = AAZStrType() granular_markings = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.granular_markings granular_markings.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.granular_markings.Element _element.language = AAZStrType() _element.marking_ref = AAZIntType( serialized_name="markingRef", ) _element.selectors = AAZListType() selectors = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.granular_markings.Element.selectors selectors.Element = AAZStrType() indicator_types = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.indicator_types indicator_types.Element = AAZStrType() kill_chain_phases = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.kill_chain_phases kill_chain_phases.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.kill_chain_phases.Element _element.kill_chain_name = AAZStrType( serialized_name="killChainName", ) _element.phase_name = AAZStrType( serialized_name="phaseName", ) labels = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.labels labels.Element = AAZStrType() object_marking_refs = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.object_marking_refs object_marking_refs.Element = AAZStrType() parsed_pattern = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern parsed_pattern.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element _element.pattern_type_key = AAZStrType( serialized_name="patternTypeKey", ) _element.pattern_type_values = AAZListType( serialized_name="patternTypeValues", ) pattern_type_values = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values pattern_type_values.Element = AAZObjectType() _element = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values.Element _element.value = AAZStrType() _element.value_type = AAZStrType( serialized_name="valueType", ) threat_intelligence_tags = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.threat_intelligence_tags threat_intelligence_tags.Element = AAZStrType() threat_types = cls._schema_on_200.discriminate_by( "kind", "indicator").properties.threat_types threat_types.Element = AAZStrType() return cls._schema_on_200
class ThreatIntelligenceIndicatorReplaceTags(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
38
4
34
0
3
0
1
0
0
0
9
0
10
10
405
54
351
59
332
0
216
51
205
19
1
1
30
10,114
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/threat_indicator/_list.py
azext_sentinel.aaz.latest.sentinel.threat_indicator._list.List.ThreatIntelligenceIndicatorsList
class ThreatIntelligenceIndicatorsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "$filter", self.ctx.args.filter, ), **self.serialize_query_param( "$orderby", self.ctx.args.orderby, ), **self.serialize_query_param( "$skipToken", self.ctx.args.skip_token, ), **self.serialize_query_param( "$top", self.ctx.args.top, ), **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType() _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType( flags={"required": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_indicator = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator") disc_indicator.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties properties.additional_data = AAZDictType( serialized_name="additionalData", flags={"read_only": True}, ) properties.confidence = AAZIntType() properties.created = AAZStrType() properties.created_by_ref = AAZStrType( serialized_name="createdByRef", ) properties.defanged = AAZBoolType() properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", ) properties.external_id = AAZStrType( serialized_name="externalId", ) properties.external_last_updated_time_utc = AAZStrType( serialized_name="externalLastUpdatedTimeUtc", ) properties.external_references = AAZListType( serialized_name="externalReferences", ) properties.friendly_name = AAZStrType( serialized_name="friendlyName", flags={"read_only": True}, ) properties.granular_markings = AAZListType( serialized_name="granularMarkings", ) properties.indicator_types = AAZListType( serialized_name="indicatorTypes", ) properties.kill_chain_phases = AAZListType( serialized_name="killChainPhases", ) properties.labels = AAZListType() properties.language = AAZStrType() properties.last_updated_time_utc = AAZStrType( serialized_name="lastUpdatedTimeUtc", ) properties.modified = AAZStrType() properties.object_marking_refs = AAZListType( serialized_name="objectMarkingRefs", ) properties.parsed_pattern = AAZListType( serialized_name="parsedPattern", ) properties.pattern = AAZStrType() properties.pattern_type = AAZStrType( serialized_name="patternType", ) properties.pattern_version = AAZStrType( serialized_name="patternVersion", ) properties.revoked = AAZBoolType() properties.source = AAZStrType() properties.threat_intelligence_tags = AAZListType( serialized_name="threatIntelligenceTags", ) properties.threat_types = AAZListType( serialized_name="threatTypes", ) properties.valid_from = AAZStrType( serialized_name="validFrom", ) properties.valid_until = AAZStrType( serialized_name="validUntil", ) external_references = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.external_references external_references.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.external_references.Element _element.description = AAZStrType() _element.external_id = AAZStrType( serialized_name="externalId", ) _element.hashes = AAZDictType() _element.source_name = AAZStrType( serialized_name="sourceName", ) _element.url = AAZStrType() hashes = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.external_references.Element.hashes hashes.Element = AAZStrType() granular_markings = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.granular_markings granular_markings.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.granular_markings.Element _element.language = AAZStrType() _element.marking_ref = AAZIntType( serialized_name="markingRef", ) _element.selectors = AAZListType() selectors = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.granular_markings.Element.selectors selectors.Element = AAZStrType() indicator_types = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.indicator_types indicator_types.Element = AAZStrType() kill_chain_phases = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.kill_chain_phases kill_chain_phases.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.kill_chain_phases.Element _element.kill_chain_name = AAZStrType( serialized_name="killChainName", ) _element.phase_name = AAZStrType( serialized_name="phaseName", ) labels = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.labels labels.Element = AAZStrType() object_marking_refs = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.object_marking_refs object_marking_refs.Element = AAZStrType() parsed_pattern = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern parsed_pattern.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element _element.pattern_type_key = AAZStrType( serialized_name="patternTypeKey", ) _element.pattern_type_values = AAZListType( serialized_name="patternTypeValues", ) pattern_type_values = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values pattern_type_values.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values.Element _element.value = AAZStrType() _element.value_type = AAZStrType( serialized_name="valueType", ) threat_intelligence_tags = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.threat_intelligence_tags threat_intelligence_tags.Element = AAZStrType() threat_types = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.threat_types threat_types.Element = AAZStrType() return cls._schema_on_200
class ThreatIntelligenceIndicatorsList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
31
3
28
0
1
0
1
0
0
0
8
0
9
9
302
36
266
43
249
0
126
36
116
2
1
1
11
10,115
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/onboarding_state/_list.py
azext_sentinel.aaz.latest.sentinel.onboarding_state._list.List.SentinelOnboardingStatesList
class SentinelOnboardingStatesList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType() _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.customer_managed_key = AAZBoolType( serialized_name="customerManagedKey", ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class SentinelOnboardingStatesList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
13
1
12
0
1
0
1
0
0
0
8
0
9
9
139
18
121
30
104
0
52
23
42
2
1
1
11
10,116
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/onboarding_state/_delete.py
azext_sentinel.aaz.latest.sentinel.onboarding_state._delete.Delete.SentinelOnboardingStatesDelete
class SentinelOnboardingStatesDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sentinelOnboardingStateName", self.ctx.args.sentinel_onboarding_state_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class SentinelOnboardingStatesDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
65
9
56
19
42
0
26
14
17
3
1
1
10
10,117
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/onboarding_state/_create.py
azext_sentinel.aaz.latest.sentinel.onboarding_state._create.Create.SentinelOnboardingStatesCreate
class SentinelOnboardingStatesCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sentinelOnboardingStateName", self.ctx.args.sentinel_onboarding_state_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}} ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("customerManagedKey", AAZBoolType, ".customer_managed_key") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.etag = AAZStrType() _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.customer_managed_key = AAZBoolType( serialized_name="customerManagedKey", ) system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200_201
class SentinelOnboardingStatesCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
13
1
12
0
1
0
1
0
0
0
9
0
10
10
154
19
135
32
116
0
56
24
45
2
1
1
13
10,118
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/office_consent/_show.py
azext_sentinel.aaz.latest.sentinel.office_consent._show.Show.OfficeConsentsGet
class OfficeConsentsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/officeConsents/{consentId}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "consentId", self.ctx.args.consent_id, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.consent_id = AAZStrType( serialized_name="consentId", ) properties.tenant_id = AAZStrType( serialized_name="tenantId", ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class OfficeConsentsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
13
1
12
0
1
0
1
0
0
0
8
0
9
9
137
16
121
28
104
0
48
21
38
2
1
1
11
10,119
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/office_consent/_list.py
azext_sentinel.aaz.latest.sentinel.office_consent._list.List.OfficeConsentsList
class OfficeConsentsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/officeConsents", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.consent_id = AAZStrType( serialized_name="consentId", ) properties.tenant_id = AAZStrType( serialized_name="tenantId", ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class OfficeConsentsList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
14
1
13
0
1
0
1
0
0
0
8
0
9
9
145
18
127
30
110
0
53
23
43
2
1
1
11
10,120
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/office_consent/_delete.py
azext_sentinel.aaz.latest.sentinel.office_consent._delete.Delete.OfficeConsentsDelete
class OfficeConsentsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/officeConsents/{consentId}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "consentId", self.ctx.args.consent_id, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class OfficeConsentsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
65
9
56
19
42
0
26
14
17
3
1
1
10
10,121
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/metadata/_update.py
azext_sentinel.aaz.latest.sentinel.metadata._update.Update.MetadataGet
class MetadataGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata/{metadataName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "metadataName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _build_schema_metadata_model_read(cls._schema_on_200) return cls._schema_on_200
class MetadataGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
0
0
0
8
0
9
9
86
13
73
25
56
0
33
18
23
2
1
1
11
10,122
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/metadata/_update.py
azext_sentinel.aaz.latest.sentinel.metadata._update.Update.MetadataCreate
class MetadataCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata/{metadataName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "metadataName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _build_schema_metadata_model_read(cls._schema_on_200_201) return cls._schema_on_200_201
class MetadataCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
8
0
7
0
1
0
1
0
0
0
9
0
10
10
98
15
83
28
64
0
36
20
25
2
1
1
12
10,123
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/metadata/_update.py
azext_sentinel.aaz.latest.sentinel.metadata._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("author", AAZObjectType, ".author") properties.set_prop("categories", AAZObjectType, ".categories") properties.set_prop("contentId", AAZStrType, ".content_id") properties.set_prop("contentSchemaVersion", AAZStrType, ".content_schema_version") properties.set_prop( "customVersion", AAZStrType, ".custom_version") _build_schema_metadata_dependencies_update( properties.set_prop("dependencies", AAZObjectType, ".dependencies")) properties.set_prop("firstPublishDate", AAZStrType, ".first_publish_date") properties.set_prop("icon", AAZStrType, ".icon") properties.set_prop("kind", AAZStrType, ".kind", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("lastPublishDate", AAZStrType, ".last_publish_date") properties.set_prop("parentId", AAZStrType, ".parent_id", typ_kwargs={ "flags": {"required": True}}) properties.set_prop( "previewImages", AAZListType, ".preview_images") properties.set_prop("previewImagesDark", AAZListType, ".preview_images_dark") properties.set_prop("providers", AAZListType, ".providers") properties.set_prop("source", AAZObjectType, ".source") properties.set_prop("support", AAZObjectType, ".support") properties.set_prop("threatAnalysisTactics", AAZListType, ".threat_tactics") properties.set_prop("threatAnalysisTechniques", AAZListType, ".threat_techniques") properties.set_prop("version", AAZStrType, ".version") author = _builder.get(".properties.author") if author is not None: author.set_prop("email", AAZStrType, ".email") author.set_prop("link", AAZStrType, ".link") author.set_prop("name", AAZStrType, ".name") categories = _builder.get(".properties.categories") if categories is not None: categories.set_prop("domains", AAZListType, ".domains") categories.set_prop("verticals", AAZListType, ".verticals") domains = _builder.get(".properties.categories.domains") if domains is not None: domains.set_elements(AAZStrType, ".") verticals = _builder.get(".properties.categories.verticals") if verticals is not None: verticals.set_elements(AAZStrType, ".") preview_images = _builder.get(".properties.previewImages") if preview_images is not None: preview_images.set_elements(AAZStrType, ".") preview_images_dark = _builder.get(".properties.previewImagesDark") if preview_images_dark is not None: preview_images_dark.set_elements(AAZStrType, ".") providers = _builder.get(".properties.providers") if providers is not None: providers.set_elements(AAZStrType, ".") source = _builder.get(".properties.source") if source is not None: source.set_prop("kind", AAZStrType, ".kind", typ_kwargs={ "flags": {"required": True}}) source.set_prop("name", AAZStrType, ".name") source.set_prop("sourceId", AAZStrType, ".source_id") support = _builder.get(".properties.support") if support is not None: support.set_prop("email", AAZStrType, ".email") support.set_prop("link", AAZStrType, ".link") support.set_prop("name", AAZStrType, ".name") support.set_prop("tier", AAZStrType, ".tier", typ_kwargs={ "flags": {"required": True}}) threat_analysis_tactics = _builder.get( ".properties.threatAnalysisTactics") if threat_analysis_tactics is not None: threat_analysis_tactics.set_elements(AAZStrType, ".") threat_analysis_techniques = _builder.get( ".properties.threatAnalysisTechniques") if threat_analysis_techniques is not None: threat_analysis_techniques.set_elements(AAZStrType, ".") return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
43
7
37
0
7
0
1
0
0
0
2
0
2
2
89
15
74
16
71
0
70
16
67
13
1
1
14
10,124
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/metadata/_show.py
azext_sentinel.aaz.latest.sentinel.metadata._show.Show.MetadataGet
class MetadataGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata/{metadataName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "metadataName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.author = AAZObjectType() properties.categories = AAZObjectType() properties.content_id = AAZStrType( serialized_name="contentId", ) properties.content_schema_version = AAZStrType( serialized_name="contentSchemaVersion", ) properties.custom_version = AAZStrType( serialized_name="customVersion", ) properties.dependencies = AAZObjectType() _build_schema_metadata_dependencies_read(properties.dependencies) properties.first_publish_date = AAZStrType( serialized_name="firstPublishDate", ) properties.icon = AAZStrType() properties.kind = AAZStrType( flags={"required": True}, ) properties.last_publish_date = AAZStrType( serialized_name="lastPublishDate", ) properties.parent_id = AAZStrType( serialized_name="parentId", flags={"required": True}, ) properties.preview_images = AAZListType( serialized_name="previewImages", ) properties.preview_images_dark = AAZListType( serialized_name="previewImagesDark", ) properties.providers = AAZListType() properties.source = AAZObjectType() properties.support = AAZObjectType() properties.threat_analysis_tactics = AAZListType( serialized_name="threatAnalysisTactics", ) properties.threat_analysis_techniques = AAZListType( serialized_name="threatAnalysisTechniques", ) properties.version = AAZStrType() author = cls._schema_on_200.properties.author author.email = AAZStrType() author.link = AAZStrType() author.name = AAZStrType() categories = cls._schema_on_200.properties.categories categories.domains = AAZListType() categories.verticals = AAZListType() domains = cls._schema_on_200.properties.categories.domains domains.Element = AAZStrType() verticals = cls._schema_on_200.properties.categories.verticals verticals.Element = AAZStrType() preview_images = cls._schema_on_200.properties.preview_images preview_images.Element = AAZStrType() preview_images_dark = cls._schema_on_200.properties.preview_images_dark preview_images_dark.Element = AAZStrType() providers = cls._schema_on_200.properties.providers providers.Element = AAZStrType() source = cls._schema_on_200.properties.source source.kind = AAZStrType( flags={"required": True}, ) source.name = AAZStrType() source.source_id = AAZStrType( serialized_name="sourceId", ) support = cls._schema_on_200.properties.support support.email = AAZStrType() support.link = AAZStrType() support.name = AAZStrType() support.tier = AAZStrType( flags={"required": True}, ) threat_analysis_tactics = cls._schema_on_200.properties.threat_analysis_tactics threat_analysis_tactics.Element = AAZStrType() threat_analysis_techniques = cls._schema_on_200.properties.threat_analysis_techniques threat_analysis_techniques.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class MetadataGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
22
2
21
0
1
0
1
0
0
0
8
0
9
9
222
27
195
39
178
0
97
32
87
2
1
1
11
10,125
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/metadata/_list.py
azext_sentinel.aaz.latest.sentinel.metadata._list.List.MetadataList
class MetadataList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "$filter", self.ctx.args.filter, ), **self.serialize_query_param( "$orderby", self.ctx.args.orderby, ), **self.serialize_query_param( "$skip", self.ctx.args.skip, ), **self.serialize_query_param( "$top", self.ctx.args.top, ), **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType() _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.author = AAZObjectType() properties.categories = AAZObjectType() properties.content_id = AAZStrType( serialized_name="contentId", ) properties.content_schema_version = AAZStrType( serialized_name="contentSchemaVersion", ) properties.custom_version = AAZStrType( serialized_name="customVersion", ) properties.dependencies = AAZObjectType() _build_schema_metadata_dependencies_read(properties.dependencies) properties.first_publish_date = AAZStrType( serialized_name="firstPublishDate", ) properties.icon = AAZStrType() properties.kind = AAZStrType( flags={"required": True}, ) properties.last_publish_date = AAZStrType( serialized_name="lastPublishDate", ) properties.parent_id = AAZStrType( serialized_name="parentId", flags={"required": True}, ) properties.preview_images = AAZListType( serialized_name="previewImages", ) properties.preview_images_dark = AAZListType( serialized_name="previewImagesDark", ) properties.providers = AAZListType() properties.source = AAZObjectType() properties.support = AAZObjectType() properties.threat_analysis_tactics = AAZListType( serialized_name="threatAnalysisTactics", ) properties.threat_analysis_techniques = AAZListType( serialized_name="threatAnalysisTechniques", ) properties.version = AAZStrType() author = cls._schema_on_200.value.Element.properties.author author.email = AAZStrType() author.link = AAZStrType() author.name = AAZStrType() categories = cls._schema_on_200.value.Element.properties.categories categories.domains = AAZListType() categories.verticals = AAZListType() domains = cls._schema_on_200.value.Element.properties.categories.domains domains.Element = AAZStrType() verticals = cls._schema_on_200.value.Element.properties.categories.verticals verticals.Element = AAZStrType() preview_images = cls._schema_on_200.value.Element.properties.preview_images preview_images.Element = AAZStrType() preview_images_dark = cls._schema_on_200.value.Element.properties.preview_images_dark preview_images_dark.Element = AAZStrType() providers = cls._schema_on_200.value.Element.properties.providers providers.Element = AAZStrType() source = cls._schema_on_200.value.Element.properties.source source.kind = AAZStrType( flags={"required": True}, ) source.name = AAZStrType() source.source_id = AAZStrType( serialized_name="sourceId", ) support = cls._schema_on_200.value.Element.properties.support support.email = AAZStrType() support.link = AAZStrType() support.name = AAZStrType() support.tier = AAZStrType( flags={"required": True}, ) threat_analysis_tactics = cls._schema_on_200.value.Element.properties.threat_analysis_tactics threat_analysis_tactics.Element = AAZStrType() threat_analysis_techniques = cls._schema_on_200.value.Element.properties.threat_analysis_techniques threat_analysis_techniques.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class MetadataList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
25
2
23
0
1
0
1
0
0
0
8
0
9
9
242
29
213
41
196
0
102
34
92
2
1
1
11
10,126
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/metadata/_delete.py
azext_sentinel.aaz.latest.sentinel.metadata._delete.Delete.MetadataDelete
class MetadataDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata/{metadataName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "metadataName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class MetadataDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
65
9
56
19
42
0
26
14
17
3
1
1
10
10,127
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/metadata/_create.py
azext_sentinel.aaz.latest.sentinel.metadata._create.Create.MetadataCreate
class MetadataCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata/{metadataName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "metadataName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("author", AAZObjectType, ".author") properties.set_prop("categories", AAZObjectType, ".categories") properties.set_prop("contentId", AAZStrType, ".content_id") properties.set_prop("contentSchemaVersion", AAZStrType, ".content_schema_version") properties.set_prop( "customVersion", AAZStrType, ".custom_version") _build_schema_metadata_dependencies_create( properties.set_prop("dependencies", AAZObjectType, ".dependencies")) properties.set_prop("firstPublishDate", AAZStrType, ".first_publish_date") properties.set_prop("icon", AAZStrType, ".icon") properties.set_prop("kind", AAZStrType, ".kind", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("lastPublishDate", AAZStrType, ".last_publish_date") properties.set_prop("parentId", AAZStrType, ".parent_id", typ_kwargs={ "flags": {"required": True}}) properties.set_prop( "previewImages", AAZListType, ".preview_images") properties.set_prop("previewImagesDark", AAZListType, ".preview_images_dark") properties.set_prop("providers", AAZListType, ".providers") properties.set_prop("source", AAZObjectType, ".source") properties.set_prop("support", AAZObjectType, ".support") properties.set_prop("threatAnalysisTactics", AAZListType, ".threat_tactics") properties.set_prop("threatAnalysisTechniques", AAZListType, ".threat_techniques") properties.set_prop("version", AAZStrType, ".version") author = _builder.get(".properties.author") if author is not None: author.set_prop("email", AAZStrType, ".email") author.set_prop("link", AAZStrType, ".link") author.set_prop("name", AAZStrType, ".name") categories = _builder.get(".properties.categories") if categories is not None: categories.set_prop("domains", AAZListType, ".domains") categories.set_prop("verticals", AAZListType, ".verticals") domains = _builder.get(".properties.categories.domains") if domains is not None: domains.set_elements(AAZStrType, ".") verticals = _builder.get(".properties.categories.verticals") if verticals is not None: verticals.set_elements(AAZStrType, ".") preview_images = _builder.get(".properties.previewImages") if preview_images is not None: preview_images.set_elements(AAZStrType, ".") preview_images_dark = _builder.get(".properties.previewImagesDark") if preview_images_dark is not None: preview_images_dark.set_elements(AAZStrType, ".") providers = _builder.get(".properties.providers") if providers is not None: providers.set_elements(AAZStrType, ".") source = _builder.get(".properties.source") if source is not None: source.set_prop("kind", AAZStrType, ".kind", typ_kwargs={ "flags": {"required": True}}) source.set_prop("name", AAZStrType, ".name") source.set_prop("sourceId", AAZStrType, ".source_id") support = _builder.get(".properties.support") if support is not None: support.set_prop("email", AAZStrType, ".email") support.set_prop("link", AAZStrType, ".link") support.set_prop("name", AAZStrType, ".name") support.set_prop("tier", AAZStrType, ".tier", typ_kwargs={ "flags": {"required": True}}) threat_analysis_tactics = _builder.get( ".properties.threatAnalysisTactics") if threat_analysis_tactics is not None: threat_analysis_tactics.set_elements(AAZStrType, ".") threat_analysis_techniques = _builder.get( ".properties.threatAnalysisTechniques") if threat_analysis_techniques is not None: threat_analysis_techniques.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.etag = AAZStrType() _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.author = AAZObjectType() properties.categories = AAZObjectType() properties.content_id = AAZStrType( serialized_name="contentId", ) properties.content_schema_version = AAZStrType( serialized_name="contentSchemaVersion", ) properties.custom_version = AAZStrType( serialized_name="customVersion", ) properties.dependencies = AAZObjectType() _build_schema_metadata_dependencies_read(properties.dependencies) properties.first_publish_date = AAZStrType( serialized_name="firstPublishDate", ) properties.icon = AAZStrType() properties.kind = AAZStrType( flags={"required": True}, ) properties.last_publish_date = AAZStrType( serialized_name="lastPublishDate", ) properties.parent_id = AAZStrType( serialized_name="parentId", flags={"required": True}, ) properties.preview_images = AAZListType( serialized_name="previewImages", ) properties.preview_images_dark = AAZListType( serialized_name="previewImagesDark", ) properties.providers = AAZListType() properties.source = AAZObjectType() properties.support = AAZObjectType() properties.threat_analysis_tactics = AAZListType( serialized_name="threatAnalysisTactics", ) properties.threat_analysis_techniques = AAZListType( serialized_name="threatAnalysisTechniques", ) properties.version = AAZStrType() author = cls._schema_on_200_201.properties.author author.email = AAZStrType() author.link = AAZStrType() author.name = AAZStrType() categories = cls._schema_on_200_201.properties.categories categories.domains = AAZListType() categories.verticals = AAZListType() domains = cls._schema_on_200_201.properties.categories.domains domains.Element = AAZStrType() verticals = cls._schema_on_200_201.properties.categories.verticals verticals.Element = AAZStrType() preview_images = cls._schema_on_200_201.properties.preview_images preview_images.Element = AAZStrType() preview_images_dark = cls._schema_on_200_201.properties.preview_images_dark preview_images_dark.Element = AAZStrType() providers = cls._schema_on_200_201.properties.providers providers.Element = AAZStrType() source = cls._schema_on_200_201.properties.source source.kind = AAZStrType( flags={"required": True}, ) source.name = AAZStrType() source.source_id = AAZStrType( serialized_name="sourceId", ) support = cls._schema_on_200_201.properties.support support.email = AAZStrType() support.link = AAZStrType() support.name = AAZStrType() support.tier = AAZStrType( flags={"required": True}, ) threat_analysis_tactics = cls._schema_on_200_201.properties.threat_analysis_tactics threat_analysis_tactics.Element = AAZStrType() threat_analysis_techniques = cls._schema_on_200_201.properties.threat_analysis_techniques threat_analysis_techniques.Element = AAZStrType() system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200_201
class MetadataCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
29
3
26
0
2
0
1
0
0
0
9
0
10
10
311
41
270
54
251
0
164
46
153
13
1
1
24
10,128
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/incident/relation/_update.py
azext_sentinel.aaz.latest.sentinel.incident.relation._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("relatedResourceId", AAZStrType, ".related_resource_id", typ_kwargs={ "flags": {"required": True}}) return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
8
1
7
0
2
0
1
0
0
0
2
0
2
2
19
4
15
5
12
0
11
5
8
2
1
1
3
10,129
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/incident/relation/_update.py
azext_sentinel.aaz.latest.sentinel.incident.relation._update.Update.IncidentRelationsGet
class IncidentRelationsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "incidentId", self.ctx.args.incident_id, required=True, ), **self.serialize_url_param( "relationName", self.ctx.args.relation_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _build_schema_relation_read(cls._schema_on_200) return cls._schema_on_200
class IncidentRelationsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
8
0
7
0
1
0
1
0
0
0
8
0
9
9
90
13
77
25
60
0
33
18
23
2
1
1
11
10,130
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/incident/relation/_update.py
azext_sentinel.aaz.latest.sentinel.incident.relation._update.Update.IncidentRelationsCreateOrUpdate
class IncidentRelationsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "incidentId", self.ctx.args.incident_id, required=True, ), **self.serialize_url_param( "relationName", self.ctx.args.relation_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _build_schema_relation_read(cls._schema_on_200_201) return cls._schema_on_200_201
class IncidentRelationsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
8
0
8
0
1
0
1
0
0
0
9
0
10
10
102
15
87
28
68
0
36
20
25
2
1
1
12
10,131
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/incident/relation/_show.py
azext_sentinel.aaz.latest.sentinel.incident.relation._show.Show.IncidentRelationsGet
class IncidentRelationsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "incidentId", self.ctx.args.incident_id, required=True, ), **self.serialize_url_param( "relationName", self.ctx.args.relation_name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.related_resource_id = AAZStrType( serialized_name="relatedResourceId", flags={"required": True}, ) properties.related_resource_kind = AAZStrType( serialized_name="relatedResourceKind", flags={"read_only": True}, ) properties.related_resource_name = AAZStrType( serialized_name="relatedResourceName", flags={"read_only": True}, ) properties.related_resource_type = AAZStrType( serialized_name="relatedResourceType", flags={"read_only": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class IncidentRelationsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
15
1
14
0
1
0
1
0
0
0
8
0
9
9
152
16
136
28
119
0
51
21
41
2
1
1
11
10,132
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/onboarding_state/_show.py
azext_sentinel.aaz.latest.sentinel.onboarding_state._show.Show.SentinelOnboardingStatesGet
class SentinelOnboardingStatesGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sentinelOnboardingStateName", self.ctx.args.sentinel_onboarding_state_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.customer_managed_key = AAZBoolType( serialized_name="customerManagedKey", ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class SentinelOnboardingStatesGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
13
1
12
0
1
0
1
0
0
0
8
0
9
9
135
16
119
28
102
0
48
21
38
2
1
1
11
10,133
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/onboarding_state/_update.py
azext_sentinel.aaz.latest.sentinel.onboarding_state._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("customerManagedKey", AAZBoolType, ".customer_managed_key") return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
8
1
7
0
2
0
1
0
0
0
2
0
2
2
19
4
15
5
12
0
11
5
8
2
1
1
3
10,134
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/onboarding_state/_update.py
azext_sentinel.aaz.latest.sentinel.onboarding_state._update.Update.SentinelOnboardingStatesCreate
class SentinelOnboardingStatesCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sentinelOnboardingStateName", self.ctx.args.sentinel_onboarding_state_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _build_schema_sentinel_onboarding_state_read( cls._schema_on_200_201) return cls._schema_on_200_201
class SentinelOnboardingStatesCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
8
0
7
0
1
0
1
0
0
0
9
0
10
10
98
15
83
28
64
0
36
20
25
2
1
1
12
10,135
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/onboarding_state/_update.py
azext_sentinel.aaz.latest.sentinel.onboarding_state._update.Update.SentinelOnboardingStatesGet
class SentinelOnboardingStatesGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sentinelOnboardingStateName", self.ctx.args.sentinel_onboarding_state_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _build_schema_sentinel_onboarding_state_read(cls._schema_on_200) return cls._schema_on_200
class SentinelOnboardingStatesGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
0
0
0
8
0
9
9
86
13
73
25
56
0
33
18
23
2
1
1
11
10,136
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/threat_indicator/_delete.py
azext_sentinel.aaz.latest.sentinel.threat_indicator._delete.Delete.ThreatIntelligenceIndicatorDelete
class ThreatIntelligenceIndicatorDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "name", self.ctx.args.name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class ThreatIntelligenceIndicatorDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
65
9
56
19
42
0
26
14
17
3
1
1
10
10,137
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/threat_indicator/_create.py
azext_sentinel.aaz.latest.sentinel.threat_indicator._create.Create.ThreatIntelligenceIndicatorCreateIndicator
class ThreatIntelligenceIndicatorCreateIndicator(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/createIndicator", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_const("kind", "indicator", AAZStrType, ".", typ_kwargs={ "flags": {"required": True}}) _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("confidence", AAZIntType, ".confidence") properties.set_prop("created", AAZStrType, ".created") properties.set_prop( "createdByRef", AAZStrType, ".created_by_ref") properties.set_prop("defanged", AAZBoolType, ".defanged") properties.set_prop("description", AAZStrType, ".description") properties.set_prop("displayName", AAZStrType, ".display_name") properties.set_prop("externalId", AAZStrType, ".external_id") properties.set_prop( "externalLastUpdatedTimeUtc", AAZStrType, ".external_updated_time") properties.set_prop("externalReferences", AAZListType, ".external_references") properties.set_prop("granularMarkings", AAZListType, ".granular_markings") properties.set_prop( "indicatorTypes", AAZListType, ".indicator_types") properties.set_prop("killChainPhases", AAZListType, ".kill_chain_phases") properties.set_prop("labels", AAZListType, ".labels") properties.set_prop("language", AAZStrType, ".language") properties.set_prop("lastUpdatedTimeUtc", AAZStrType, ".last_updated_time") properties.set_prop("modified", AAZStrType, ".modified") properties.set_prop("objectMarkingRefs", AAZListType, ".object_marking_refs") properties.set_prop( "parsedPattern", AAZListType, ".parsed_pattern") properties.set_prop("pattern", AAZStrType, ".pattern") properties.set_prop("patternType", AAZStrType, ".pattern_type") properties.set_prop( "patternVersion", AAZStrType, ".pattern_version") properties.set_prop("revoked", AAZBoolType, ".revoked") properties.set_prop("source", AAZStrType, ".source") properties.set_prop("threatIntelligenceTags", AAZListType, ".threat_tags") properties.set_prop( "threatTypes", AAZListType, ".threat_types") properties.set_prop("validFrom", AAZStrType, ".valid_from") properties.set_prop("validUntil", AAZStrType, ".valid_until") external_references = _builder.get( ".properties.externalReferences") if external_references is not None: external_references.set_elements(AAZObjectType) _elements = _builder.get(".properties.externalReferences[]") if _elements is not None: _elements.set_prop("description", AAZStrType, ".description") _elements.set_prop("externalId", AAZStrType, ".external_id") _elements.set_prop("hashes", AAZDictType, ".hashes") _elements.set_prop("sourceName", AAZStrType, ".source_name") _elements.set_prop("url", AAZStrType, ".url") hashes = _builder.get(".properties.externalReferences[].hashes") if hashes is not None: hashes.set_elements(AAZStrType, ".") granular_markings = _builder.get(".properties.granularMarkings") if granular_markings is not None: granular_markings.set_elements(AAZObjectType) _elements = _builder.get(".properties.granularMarkings[]") if _elements is not None: _elements.set_prop("language", AAZStrType, ".language") _elements.set_prop("markingRef", AAZIntType, ".marking_ref") _elements.set_prop("selectors", AAZListType, ".selectors") selectors = _builder.get( ".properties.granularMarkings[].selectors") if selectors is not None: selectors.set_elements(AAZStrType, ".") indicator_types = _builder.get(".properties.indicatorTypes") if indicator_types is not None: indicator_types.set_elements(AAZStrType, ".") kill_chain_phases = _builder.get(".properties.killChainPhases") if kill_chain_phases is not None: kill_chain_phases.set_elements(AAZObjectType) _elements = _builder.get(".properties.killChainPhases[]") if _elements is not None: _elements.set_prop( "killChainName", AAZStrType, ".kill_chain_name") _elements.set_prop("phaseName", AAZStrType, ".phase_name") labels = _builder.get(".properties.labels") if labels is not None: labels.set_elements(AAZStrType, ".") object_marking_refs = _builder.get(".properties.objectMarkingRefs") if object_marking_refs is not None: object_marking_refs.set_elements(AAZStrType, ".") parsed_pattern = _builder.get(".properties.parsedPattern") if parsed_pattern is not None: parsed_pattern.set_elements(AAZObjectType) _elements = _builder.get(".properties.parsedPattern[]") if _elements is not None: _elements.set_prop( "patternTypeKey", AAZStrType, ".pattern_type_key") _elements.set_prop("patternTypeValues", AAZListType, ".pattern_type_values") pattern_type_values = _builder.get( ".properties.parsedPattern[].patternTypeValues") if pattern_type_values is not None: pattern_type_values.set_elements(AAZObjectType) _elements = _builder.get( ".properties.parsedPattern[].patternTypeValues[]") if _elements is not None: _elements.set_prop("value", AAZStrType, ".value") _elements.set_prop("valueType", AAZStrType, ".value_type") threat_intelligence_tags = _builder.get( ".properties.threatIntelligenceTags") if threat_intelligence_tags is not None: threat_intelligence_tags.set_elements(AAZStrType, ".") threat_types = _builder.get(".properties.threatTypes") if threat_types is not None: threat_types.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.etag = AAZStrType() _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.kind = AAZStrType( flags={"required": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_indicator = cls._schema_on_200_201.discriminate_by( "kind", "indicator") disc_indicator.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties properties.additional_data = AAZDictType( serialized_name="additionalData", flags={"read_only": True}, ) properties.confidence = AAZIntType() properties.created = AAZStrType() properties.created_by_ref = AAZStrType( serialized_name="createdByRef", ) properties.defanged = AAZBoolType() properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", ) properties.external_id = AAZStrType( serialized_name="externalId", ) properties.external_last_updated_time_utc = AAZStrType( serialized_name="externalLastUpdatedTimeUtc", ) properties.external_references = AAZListType( serialized_name="externalReferences", ) properties.friendly_name = AAZStrType( serialized_name="friendlyName", flags={"read_only": True}, ) properties.granular_markings = AAZListType( serialized_name="granularMarkings", ) properties.indicator_types = AAZListType( serialized_name="indicatorTypes", ) properties.kill_chain_phases = AAZListType( serialized_name="killChainPhases", ) properties.labels = AAZListType() properties.language = AAZStrType() properties.last_updated_time_utc = AAZStrType( serialized_name="lastUpdatedTimeUtc", ) properties.modified = AAZStrType() properties.object_marking_refs = AAZListType( serialized_name="objectMarkingRefs", ) properties.parsed_pattern = AAZListType( serialized_name="parsedPattern", ) properties.pattern = AAZStrType() properties.pattern_type = AAZStrType( serialized_name="patternType", ) properties.pattern_version = AAZStrType( serialized_name="patternVersion", ) properties.revoked = AAZBoolType() properties.source = AAZStrType() properties.threat_intelligence_tags = AAZListType( serialized_name="threatIntelligenceTags", ) properties.threat_types = AAZListType( serialized_name="threatTypes", ) properties.valid_from = AAZStrType( serialized_name="validFrom", ) properties.valid_until = AAZStrType( serialized_name="validUntil", ) external_references = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.external_references external_references.Element = AAZObjectType() _element = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.external_references.Element _element.description = AAZStrType() _element.external_id = AAZStrType( serialized_name="externalId", ) _element.hashes = AAZDictType() _element.source_name = AAZStrType( serialized_name="sourceName", ) _element.url = AAZStrType() hashes = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.external_references.Element.hashes hashes.Element = AAZStrType() granular_markings = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.granular_markings granular_markings.Element = AAZObjectType() _element = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.granular_markings.Element _element.language = AAZStrType() _element.marking_ref = AAZIntType( serialized_name="markingRef", ) _element.selectors = AAZListType() selectors = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.granular_markings.Element.selectors selectors.Element = AAZStrType() indicator_types = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.indicator_types indicator_types.Element = AAZStrType() kill_chain_phases = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.kill_chain_phases kill_chain_phases.Element = AAZObjectType() _element = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.kill_chain_phases.Element _element.kill_chain_name = AAZStrType( serialized_name="killChainName", ) _element.phase_name = AAZStrType( serialized_name="phaseName", ) labels = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.labels labels.Element = AAZStrType() object_marking_refs = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.object_marking_refs object_marking_refs.Element = AAZStrType() parsed_pattern = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.parsed_pattern parsed_pattern.Element = AAZObjectType() _element = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element _element.pattern_type_key = AAZStrType( serialized_name="patternTypeKey", ) _element.pattern_type_values = AAZListType( serialized_name="patternTypeValues", ) pattern_type_values = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values pattern_type_values.Element = AAZObjectType() _element = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values.Element _element.value = AAZStrType() _element.value_type = AAZStrType( serialized_name="valueType", ) threat_intelligence_tags = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.threat_intelligence_tags threat_intelligence_tags.Element = AAZStrType() threat_types = cls._schema_on_200_201.discriminate_by( "kind", "indicator").properties.threat_types threat_types.Element = AAZStrType() return cls._schema_on_200_201
class ThreatIntelligenceIndicatorCreateIndicator(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
38
4
34
0
3
0
1
0
0
0
9
0
10
10
401
54
347
59
328
0
216
51
205
19
1
1
30
10,138
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/threat_indicator/_append_tag.py
azext_sentinel.aaz.latest.sentinel.threat_indicator._append_tag.AppendTag.ThreatIntelligenceIndicatorAppendTags
class ThreatIntelligenceIndicatorAppendTags(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/appendTags", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "name", self.ctx.args.name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("threatIntelligenceTags", AAZListType, ".intelligence_tags") threat_intelligence_tags = _builder.get(".threatIntelligenceTags") if threat_intelligence_tags is not None: threat_intelligence_tags.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200(self, session): pass
class ThreatIntelligenceIndicatorAppendTags(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass
17
0
7
0
7
0
1
0
1
0
0
0
9
0
9
9
84
12
72
25
55
0
32
18
22
2
1
1
11
10,139
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_update.py
azext_sentinel.aaz.latest.sentinel.source_control._update.Update.SourceControlsGet
class SourceControlsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sourceControlId", self.ctx.args.source_control_id, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _build_schema_source_control_read(cls._schema_on_200) return cls._schema_on_200
class SourceControlsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
0
0
0
8
0
9
9
86
13
73
25
56
0
33
18
23
2
1
1
11
10,140
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_update.py
azext_sentinel.aaz.latest.sentinel.source_control._update.Update.SourceControlsCreate
class SourceControlsCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sourceControlId", self.ctx.args.source_control_id, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _build_schema_source_control_read(cls._schema_on_200_201) return cls._schema_on_200_201
class SourceControlsCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
8
0
7
0
1
0
1
0
0
0
9
0
10
10
98
15
83
28
64
0
36
20
25
2
1
1
12
10,141
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_update.py
azext_sentinel.aaz.latest.sentinel.source_control._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("contentTypes", AAZListType, ".content_types", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("description", AAZStrType, ".description") properties.set_prop("displayName", AAZStrType, ".display_name", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("id", AAZStrType, ".id") properties.set_prop("lastDeploymentInfo", AAZObjectType, ".last_deployment_info") properties.set_prop("repoType", AAZStrType, ".repo_type", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("repository", AAZObjectType, ".repository", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("repositoryResourceInfo", AAZObjectType, ".repository_info") properties.set_prop("version", AAZStrType, ".version") content_types = _builder.get(".properties.contentTypes") if content_types is not None: content_types.set_elements(AAZStrType, ".") last_deployment_info = _builder.get( ".properties.lastDeploymentInfo") if last_deployment_info is not None: last_deployment_info.set_prop( "deployment", AAZObjectType, ".deployment") last_deployment_info.set_prop( "deploymentFetchStatus", AAZStrType, ".deployment_fetch_status") last_deployment_info.set_prop( "message", AAZStrType, ".message") deployment = _builder.get( ".properties.lastDeploymentInfo.deployment") if deployment is not None: deployment.set_prop( "deploymentId", AAZStrType, ".deployment_id") deployment.set_prop("deploymentLogsUrl", AAZStrType, ".deployment_logs_url") deployment.set_prop("deploymentResult", AAZStrType, ".deployment_result") deployment.set_prop("deploymentState", AAZStrType, ".deployment_state") deployment.set_prop( "deploymentTime", AAZStrType, ".deployment_time") repository = _builder.get(".properties.repository") if repository is not None: repository.set_prop("branch", AAZStrType, ".branch") repository.set_prop("deploymentLogsUrl", AAZStrType, ".deployment_logs_url") repository.set_prop("displayUrl", AAZStrType, ".display_url") repository.set_prop( "pathMapping", AAZListType, ".path_mapping") repository.set_prop("url", AAZStrType, ".url") path_mapping = _builder.get(".properties.repository.pathMapping") if path_mapping is not None: path_mapping.set_elements(AAZObjectType) _elements = _builder.get(".properties.repository.pathMapping[]") if _elements is not None: _elements.set_prop("contentType", AAZStrType, ".content_type") _elements.set_prop("path", AAZStrType, ".path") repository_resource_info = _builder.get( ".properties.repositoryResourceInfo") if repository_resource_info is not None: repository_resource_info.set_prop( "azureDevOpsResourceInfo", AAZObjectType, ".azure_dev_ops_resource_info") repository_resource_info.set_prop( "gitHubResourceInfo", AAZObjectType, ".git_hub_resource_info") repository_resource_info.set_prop( "webhook", AAZObjectType, ".webhook") azure_dev_ops_resource_info = _builder.get( ".properties.repositoryResourceInfo.azureDevOpsResourceInfo") if azure_dev_ops_resource_info is not None: azure_dev_ops_resource_info.set_prop( "pipelineId", AAZStrType, ".pipeline_id") azure_dev_ops_resource_info.set_prop( "serviceConnectionId", AAZStrType, ".service_connection_id") git_hub_resource_info = _builder.get( ".properties.repositoryResourceInfo.gitHubResourceInfo") if git_hub_resource_info is not None: git_hub_resource_info.set_prop( "appInstallationId", AAZStrType, ".app_installation_id") webhook = _builder.get( ".properties.repositoryResourceInfo.webhook") if webhook is not None: webhook.set_prop("rotateWebhookSecret", AAZBoolType, ".rotate_webhook_secret") webhook.set_prop("webhookId", AAZStrType, ".webhook_id") webhook.set_prop("webhookSecretUpdateTime", AAZStrType, ".webhook_secret_update_time") webhook.set_prop("webhookUrl", AAZStrType, ".webhook_url") return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
41
6
35
0
7
0
1
0
0
0
2
0
2
2
84
14
70
15
67
0
66
15
63
12
1
1
13
10,142
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_show.py
azext_sentinel.aaz.latest.sentinel.source_control._show.Show.SourceControlsGet
class SourceControlsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sourceControlId", self.ctx.args.source_control_id, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.content_types = AAZListType( serialized_name="contentTypes", flags={"required": True}, ) properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", flags={"required": True}, ) properties.id = AAZStrType() properties.last_deployment_info = AAZObjectType( serialized_name="lastDeploymentInfo", ) properties.repo_type = AAZStrType( serialized_name="repoType", flags={"required": True}, ) properties.repository = AAZObjectType( flags={"required": True}, ) properties.repository_resource_info = AAZObjectType( serialized_name="repositoryResourceInfo", ) properties.version = AAZStrType() content_types = cls._schema_on_200.properties.content_types content_types.Element = AAZStrType() last_deployment_info = cls._schema_on_200.properties.last_deployment_info last_deployment_info.deployment = AAZObjectType() last_deployment_info.deployment_fetch_status = AAZStrType( serialized_name="deploymentFetchStatus", ) last_deployment_info.message = AAZStrType() deployment = cls._schema_on_200.properties.last_deployment_info.deployment deployment.deployment_id = AAZStrType( serialized_name="deploymentId", ) deployment.deployment_logs_url = AAZStrType( serialized_name="deploymentLogsUrl", ) deployment.deployment_result = AAZStrType( serialized_name="deploymentResult", ) deployment.deployment_state = AAZStrType( serialized_name="deploymentState", ) deployment.deployment_time = AAZStrType( serialized_name="deploymentTime", ) repository = cls._schema_on_200.properties.repository repository.branch = AAZStrType() repository.deployment_logs_url = AAZStrType( serialized_name="deploymentLogsUrl", ) repository.display_url = AAZStrType( serialized_name="displayUrl", ) repository.path_mapping = AAZListType( serialized_name="pathMapping", ) repository.url = AAZStrType() path_mapping = cls._schema_on_200.properties.repository.path_mapping path_mapping.Element = AAZObjectType() _element = cls._schema_on_200.properties.repository.path_mapping.Element _element.content_type = AAZStrType( serialized_name="contentType", ) _element.path = AAZStrType() repository_resource_info = cls._schema_on_200.properties.repository_resource_info repository_resource_info.azure_dev_ops_resource_info = AAZObjectType( serialized_name="azureDevOpsResourceInfo", ) repository_resource_info.git_hub_resource_info = AAZObjectType( serialized_name="gitHubResourceInfo", ) repository_resource_info.webhook = AAZObjectType() azure_dev_ops_resource_info = cls._schema_on_200.properties.repository_resource_info.azure_dev_ops_resource_info azure_dev_ops_resource_info.pipeline_id = AAZStrType( serialized_name="pipelineId", ) azure_dev_ops_resource_info.service_connection_id = AAZStrType( serialized_name="serviceConnectionId", ) git_hub_resource_info = cls._schema_on_200.properties.repository_resource_info.git_hub_resource_info git_hub_resource_info.app_installation_id = AAZStrType( serialized_name="appInstallationId", ) webhook = cls._schema_on_200.properties.repository_resource_info.webhook webhook.rotate_webhook_secret = AAZBoolType( serialized_name="rotateWebhookSecret", ) webhook.webhook_id = AAZStrType( serialized_name="webhookId", ) webhook.webhook_secret_update_time = AAZStrType( serialized_name="webhookSecretUpdateTime", ) webhook.webhook_url = AAZStrType( serialized_name="webhookUrl", ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class SourceControlsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
25
2
23
0
1
0
1
0
0
0
8
0
9
9
241
26
215
38
198
0
93
31
83
2
1
1
11
10,143
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_list_repository.py
azext_sentinel.aaz.latest.sentinel.source_control._list_repository.ListRepository.SourceControlListRepositories
class SourceControlListRepositories(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/listRepositories", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args.repo_type, typ=AAZStrType, typ_kwargs={"flags": {"required": True}} ) return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.branches = AAZListType() _element.full_name = AAZStrType( serialized_name="fullName", ) _element.url = AAZStrType() branches = cls._schema_on_200.value.Element.branches branches.Element = AAZStrType() return cls._schema_on_200
class SourceControlListRepositories(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
9
1
9
0
1
0
1
0
0
0
9
0
10
10
116
19
97
32
78
0
46
24
35
2
1
1
12
10,144
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/threat_indicator/_query.py
azext_sentinel.aaz.latest.sentinel.threat_indicator._query.Query.ThreatIntelligenceIndicatorQueryIndicators
class ThreatIntelligenceIndicatorQueryIndicators(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("ids", AAZListType, ".ids") _builder.set_prop("includeDisabled", AAZBoolType, ".include_disabled") _builder.set_prop("keywords", AAZListType, ".keywords") _builder.set_prop("maxConfidence", AAZIntType, ".max_confidence") _builder.set_prop("maxValidUntil", AAZStrType, ".max_valid_until") _builder.set_prop("minConfidence", AAZIntType, ".min_confidence") _builder.set_prop("minValidUntil", AAZStrType, ".min_valid_until") _builder.set_prop("pageSize", AAZIntType, ".page_size") _builder.set_prop("patternTypes", AAZListType, ".pattern_types") _builder.set_prop("skipToken", AAZStrType, ".skip_token") _builder.set_prop("sortBy", AAZListType, ".sort_by") _builder.set_prop("sources", AAZListType, ".sources") _builder.set_prop("threatTypes", AAZListType, ".threat_types") ids = _builder.get(".ids") if ids is not None: ids.set_elements(AAZStrType, ".") keywords = _builder.get(".keywords") if keywords is not None: keywords.set_elements(AAZStrType, ".") pattern_types = _builder.get(".patternTypes") if pattern_types is not None: pattern_types.set_elements(AAZStrType, ".") sort_by = _builder.get(".sortBy") if sort_by is not None: sort_by.set_elements(AAZObjectType) _elements = _builder.get(".sortBy[]") if _elements is not None: _elements.set_prop("itemKey", AAZStrType, ".item_key") _elements.set_prop("sortOrder", AAZStrType, ".sort_order") sources = _builder.get(".sources") if sources is not None: sources.set_elements(AAZStrType, ".") threat_types = _builder.get(".threatTypes") if threat_types is not None: threat_types.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType() _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType( flags={"required": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_indicator = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator") disc_indicator.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties properties.additional_data = AAZDictType( serialized_name="additionalData", flags={"read_only": True}, ) properties.confidence = AAZIntType() properties.created = AAZStrType() properties.created_by_ref = AAZStrType( serialized_name="createdByRef", ) properties.defanged = AAZBoolType() properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", ) properties.external_id = AAZStrType( serialized_name="externalId", ) properties.external_last_updated_time_utc = AAZStrType( serialized_name="externalLastUpdatedTimeUtc", ) properties.external_references = AAZListType( serialized_name="externalReferences", ) properties.friendly_name = AAZStrType( serialized_name="friendlyName", flags={"read_only": True}, ) properties.granular_markings = AAZListType( serialized_name="granularMarkings", ) properties.indicator_types = AAZListType( serialized_name="indicatorTypes", ) properties.kill_chain_phases = AAZListType( serialized_name="killChainPhases", ) properties.labels = AAZListType() properties.language = AAZStrType() properties.last_updated_time_utc = AAZStrType( serialized_name="lastUpdatedTimeUtc", ) properties.modified = AAZStrType() properties.object_marking_refs = AAZListType( serialized_name="objectMarkingRefs", ) properties.parsed_pattern = AAZListType( serialized_name="parsedPattern", ) properties.pattern = AAZStrType() properties.pattern_type = AAZStrType( serialized_name="patternType", ) properties.pattern_version = AAZStrType( serialized_name="patternVersion", ) properties.revoked = AAZBoolType() properties.source = AAZStrType() properties.threat_intelligence_tags = AAZListType( serialized_name="threatIntelligenceTags", ) properties.threat_types = AAZListType( serialized_name="threatTypes", ) properties.valid_from = AAZStrType( serialized_name="validFrom", ) properties.valid_until = AAZStrType( serialized_name="validUntil", ) external_references = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.external_references external_references.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.external_references.Element _element.description = AAZStrType() _element.external_id = AAZStrType( serialized_name="externalId", ) _element.hashes = AAZDictType() _element.source_name = AAZStrType( serialized_name="sourceName", ) _element.url = AAZStrType() hashes = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.external_references.Element.hashes hashes.Element = AAZStrType() granular_markings = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.granular_markings granular_markings.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.granular_markings.Element _element.language = AAZStrType() _element.marking_ref = AAZIntType( serialized_name="markingRef", ) _element.selectors = AAZListType() selectors = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.granular_markings.Element.selectors selectors.Element = AAZStrType() indicator_types = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.indicator_types indicator_types.Element = AAZStrType() kill_chain_phases = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.kill_chain_phases kill_chain_phases.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.kill_chain_phases.Element _element.kill_chain_name = AAZStrType( serialized_name="killChainName", ) _element.phase_name = AAZStrType( serialized_name="phaseName", ) labels = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.labels labels.Element = AAZStrType() object_marking_refs = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.object_marking_refs object_marking_refs.Element = AAZStrType() parsed_pattern = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern parsed_pattern.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element _element.pattern_type_key = AAZStrType( serialized_name="patternTypeKey", ) _element.pattern_type_values = AAZListType( serialized_name="patternTypeValues", ) pattern_type_values = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values pattern_type_values.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.parsed_pattern.Element.pattern_type_values.Element _element.value = AAZStrType() _element.value_type = AAZStrType( serialized_name="valueType", ) threat_intelligence_tags = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.threat_intelligence_tags threat_intelligence_tags.Element = AAZStrType() threat_types = cls._schema_on_200.value.Element.discriminate_by( "kind", "indicator").properties.threat_types threat_types.Element = AAZStrType() return cls._schema_on_200
class ThreatIntelligenceIndicatorQueryIndicators(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
32
3
29
0
2
0
1
0
0
0
9
0
10
10
345
45
300
53
281
0
164
45
153
8
1
1
19
10,145
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_list.py
azext_sentinel.aaz.latest.sentinel.source_control._list.List.SourceControlsList
class SourceControlsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType() _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.content_types = AAZListType( serialized_name="contentTypes", flags={"required": True}, ) properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", flags={"required": True}, ) properties.id = AAZStrType() properties.last_deployment_info = AAZObjectType( serialized_name="lastDeploymentInfo", ) properties.repo_type = AAZStrType( serialized_name="repoType", flags={"required": True}, ) properties.repository = AAZObjectType( flags={"required": True}, ) properties.repository_resource_info = AAZObjectType( serialized_name="repositoryResourceInfo", ) properties.version = AAZStrType() content_types = cls._schema_on_200.value.Element.properties.content_types content_types.Element = AAZStrType() last_deployment_info = cls._schema_on_200.value.Element.properties.last_deployment_info last_deployment_info.deployment = AAZObjectType() last_deployment_info.deployment_fetch_status = AAZStrType( serialized_name="deploymentFetchStatus", ) last_deployment_info.message = AAZStrType() deployment = cls._schema_on_200.value.Element.properties.last_deployment_info.deployment deployment.deployment_id = AAZStrType( serialized_name="deploymentId", ) deployment.deployment_logs_url = AAZStrType( serialized_name="deploymentLogsUrl", ) deployment.deployment_result = AAZStrType( serialized_name="deploymentResult", ) deployment.deployment_state = AAZStrType( serialized_name="deploymentState", ) deployment.deployment_time = AAZStrType( serialized_name="deploymentTime", ) repository = cls._schema_on_200.value.Element.properties.repository repository.branch = AAZStrType() repository.deployment_logs_url = AAZStrType( serialized_name="deploymentLogsUrl", ) repository.display_url = AAZStrType( serialized_name="displayUrl", ) repository.path_mapping = AAZListType( serialized_name="pathMapping", ) repository.url = AAZStrType() path_mapping = cls._schema_on_200.value.Element.properties.repository.path_mapping path_mapping.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.repository.path_mapping.Element _element.content_type = AAZStrType( serialized_name="contentType", ) _element.path = AAZStrType() repository_resource_info = cls._schema_on_200.value.Element.properties.repository_resource_info repository_resource_info.azure_dev_ops_resource_info = AAZObjectType( serialized_name="azureDevOpsResourceInfo", ) repository_resource_info.git_hub_resource_info = AAZObjectType( serialized_name="gitHubResourceInfo", ) repository_resource_info.webhook = AAZObjectType() azure_dev_ops_resource_info = cls._schema_on_200.value.Element.properties.repository_resource_info.azure_dev_ops_resource_info azure_dev_ops_resource_info.pipeline_id = AAZStrType( serialized_name="pipelineId", ) azure_dev_ops_resource_info.service_connection_id = AAZStrType( serialized_name="serviceConnectionId", ) git_hub_resource_info = cls._schema_on_200.value.Element.properties.repository_resource_info.git_hub_resource_info git_hub_resource_info.app_installation_id = AAZStrType( serialized_name="appInstallationId", ) webhook = cls._schema_on_200.value.Element.properties.repository_resource_info.webhook webhook.rotate_webhook_secret = AAZBoolType( serialized_name="rotateWebhookSecret", ) webhook.webhook_id = AAZStrType( serialized_name="webhookId", ) webhook.webhook_secret_update_time = AAZStrType( serialized_name="webhookSecretUpdateTime", ) webhook.webhook_url = AAZStrType( serialized_name="webhookUrl", ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200
class SourceControlsList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
25
2
23
0
1
0
1
0
0
0
8
0
9
9
249
28
221
39
204
0
98
32
88
2
1
1
11
10,146
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_create.py
azext_sentinel.aaz.latest.sentinel.source_control._create.Create.SourceControlsCreate
class SourceControlsCreate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200, 201]: return self.on_200_201(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sourceControlId", self.ctx.args.source_control_id, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("contentTypes", AAZListType, ".content_types", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("description", AAZStrType, ".description") properties.set_prop("displayName", AAZStrType, ".display_name", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("id", AAZStrType, ".id") properties.set_prop("lastDeploymentInfo", AAZObjectType, ".last_deployment_info") properties.set_prop("repoType", AAZStrType, ".repo_type", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("repository", AAZObjectType, ".repository", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("repositoryResourceInfo", AAZObjectType, ".repository_info") properties.set_prop("version", AAZStrType, ".version") content_types = _builder.get(".properties.contentTypes") if content_types is not None: content_types.set_elements(AAZStrType, ".") last_deployment_info = _builder.get( ".properties.lastDeploymentInfo") if last_deployment_info is not None: last_deployment_info.set_prop( "deployment", AAZObjectType, ".deployment") last_deployment_info.set_prop( "deploymentFetchStatus", AAZStrType, ".deployment_fetch_status") last_deployment_info.set_prop( "message", AAZStrType, ".message") deployment = _builder.get( ".properties.lastDeploymentInfo.deployment") if deployment is not None: deployment.set_prop( "deploymentId", AAZStrType, ".deployment_id") deployment.set_prop("deploymentLogsUrl", AAZStrType, ".deployment_logs_url") deployment.set_prop("deploymentResult", AAZStrType, ".deployment_result") deployment.set_prop("deploymentState", AAZStrType, ".deployment_state") deployment.set_prop( "deploymentTime", AAZStrType, ".deployment_time") repository = _builder.get(".properties.repository") if repository is not None: repository.set_prop("branch", AAZStrType, ".branch") repository.set_prop("deploymentLogsUrl", AAZStrType, ".deployment_logs_url") repository.set_prop("displayUrl", AAZStrType, ".display_url") repository.set_prop( "pathMapping", AAZListType, ".path_mapping") repository.set_prop("url", AAZStrType, ".url") path_mapping = _builder.get(".properties.repository.pathMapping") if path_mapping is not None: path_mapping.set_elements(AAZObjectType) _elements = _builder.get(".properties.repository.pathMapping[]") if _elements is not None: _elements.set_prop("contentType", AAZStrType, ".content_type") _elements.set_prop("path", AAZStrType, ".path") repository_resource_info = _builder.get( ".properties.repositoryResourceInfo") if repository_resource_info is not None: repository_resource_info.set_prop( "azureDevOpsResourceInfo", AAZObjectType, ".azure_dev_ops_resource_info") repository_resource_info.set_prop( "gitHubResourceInfo", AAZObjectType, ".git_hub_resource_info") repository_resource_info.set_prop( "webhook", AAZObjectType, ".webhook") azure_dev_ops_resource_info = _builder.get( ".properties.repositoryResourceInfo.azureDevOpsResourceInfo") if azure_dev_ops_resource_info is not None: azure_dev_ops_resource_info.set_prop( "pipelineId", AAZStrType, ".pipeline_id") azure_dev_ops_resource_info.set_prop( "serviceConnectionId", AAZStrType, ".service_connection_id") git_hub_resource_info = _builder.get( ".properties.repositoryResourceInfo.gitHubResourceInfo") if git_hub_resource_info is not None: git_hub_resource_info.set_prop( "appInstallationId", AAZStrType, ".app_installation_id") webhook = _builder.get( ".properties.repositoryResourceInfo.webhook") if webhook is not None: webhook.set_prop("rotateWebhookSecret", AAZBoolType, ".rotate_webhook_secret") webhook.set_prop("webhookId", AAZStrType, ".webhook_id") webhook.set_prop("webhookSecretUpdateTime", AAZStrType, ".webhook_secret_update_time") webhook.set_prop("webhookUrl", AAZStrType, ".webhook_url") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.etag = AAZStrType() _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.content_types = AAZListType( serialized_name="contentTypes", flags={"required": True}, ) properties.description = AAZStrType() properties.display_name = AAZStrType( serialized_name="displayName", flags={"required": True}, ) properties.id = AAZStrType() properties.last_deployment_info = AAZObjectType( serialized_name="lastDeploymentInfo", ) properties.repo_type = AAZStrType( serialized_name="repoType", flags={"required": True}, ) properties.repository = AAZObjectType( flags={"required": True}, ) properties.repository_resource_info = AAZObjectType( serialized_name="repositoryResourceInfo", ) properties.version = AAZStrType() content_types = cls._schema_on_200_201.properties.content_types content_types.Element = AAZStrType() last_deployment_info = cls._schema_on_200_201.properties.last_deployment_info last_deployment_info.deployment = AAZObjectType() last_deployment_info.deployment_fetch_status = AAZStrType( serialized_name="deploymentFetchStatus", ) last_deployment_info.message = AAZStrType() deployment = cls._schema_on_200_201.properties.last_deployment_info.deployment deployment.deployment_id = AAZStrType( serialized_name="deploymentId", ) deployment.deployment_logs_url = AAZStrType( serialized_name="deploymentLogsUrl", ) deployment.deployment_result = AAZStrType( serialized_name="deploymentResult", ) deployment.deployment_state = AAZStrType( serialized_name="deploymentState", ) deployment.deployment_time = AAZStrType( serialized_name="deploymentTime", ) repository = cls._schema_on_200_201.properties.repository repository.branch = AAZStrType() repository.deployment_logs_url = AAZStrType( serialized_name="deploymentLogsUrl", ) repository.display_url = AAZStrType( serialized_name="displayUrl", ) repository.path_mapping = AAZListType( serialized_name="pathMapping", ) repository.url = AAZStrType() path_mapping = cls._schema_on_200_201.properties.repository.path_mapping path_mapping.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.repository.path_mapping.Element _element.content_type = AAZStrType( serialized_name="contentType", ) _element.path = AAZStrType() repository_resource_info = cls._schema_on_200_201.properties.repository_resource_info repository_resource_info.azure_dev_ops_resource_info = AAZObjectType( serialized_name="azureDevOpsResourceInfo", ) repository_resource_info.git_hub_resource_info = AAZObjectType( serialized_name="gitHubResourceInfo", ) repository_resource_info.webhook = AAZObjectType() azure_dev_ops_resource_info = cls._schema_on_200_201.properties.repository_resource_info.azure_dev_ops_resource_info azure_dev_ops_resource_info.pipeline_id = AAZStrType( serialized_name="pipelineId", ) azure_dev_ops_resource_info.service_connection_id = AAZStrType( serialized_name="serviceConnectionId", ) git_hub_resource_info = cls._schema_on_200_201.properties.repository_resource_info.git_hub_resource_info git_hub_resource_info.app_installation_id = AAZStrType( serialized_name="appInstallationId", ) webhook = cls._schema_on_200_201.properties.repository_resource_info.webhook webhook.rotate_webhook_secret = AAZBoolType( serialized_name="rotateWebhookSecret", ) webhook.webhook_id = AAZStrType( serialized_name="webhookId", ) webhook.webhook_secret_update_time = AAZStrType( serialized_name="webhookSecretUpdateTime", ) webhook.webhook_url = AAZStrType( serialized_name="webhookUrl", ) system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) return cls._schema_on_200_201
class SourceControlsCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
30
3
28
0
2
0
1
0
0
0
9
0
10
10
325
39
286
52
267
0
156
44
145
12
1
1
23
10,147
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/setting/_update.py
azext_sentinel.aaz.latest.sentinel.setting._update.Update.ProductSettingsUpdate
class ProductSettingsUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "settingsName", self.ctx.args.settings_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _build_schema_settings_read(cls._schema_on_200) return cls._schema_on_200
class ProductSettingsUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
8
0
7
0
1
0
1
0
0
0
9
0
10
10
98
15
83
28
64
0
36
20
25
2
1
1
12
10,148
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/setting/_update.py
azext_sentinel.aaz.latest.sentinel.setting._update.Update.ProductSettingsGet
class ProductSettingsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "settingsName", self.ctx.args.settings_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _build_schema_settings_read(cls._schema_on_200) return cls._schema_on_200
class ProductSettingsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
0
0
0
8
0
9
9
86
13
73
25
56
0
33
18
23
2
1
1
11
10,149
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/setting/_update.py
azext_sentinel.aaz.latest.sentinel.setting._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_const("kind", "EntityAnalytics", AAZStrType, ".entity_analytics", typ_kwargs={"flags": {"required": True}}) _builder.set_const("kind", "Ueba", AAZStrType, ".ueba", typ_kwargs={ "flags": {"required": True}}) _builder.discriminate_by("kind", "EntityAnalytics") _builder.discriminate_by("kind", "Ueba") disc_entity_analytics = _builder.get("{kind:EntityAnalytics}") if disc_entity_analytics is not None: disc_entity_analytics.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get("{kind:EntityAnalytics}.properties") if properties is not None: properties.set_prop( "entityProviders", AAZListType, ".entity_analytics.entity_providers") entity_providers = _builder.get( "{kind:EntityAnalytics}.properties.entityProviders") if entity_providers is not None: entity_providers.set_elements(AAZStrType, ".") disc_ueba = _builder.get("{kind:Ueba}") if disc_ueba is not None: disc_ueba.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get("{kind:Ueba}.properties") if properties is not None: properties.set_prop( "dataSources", AAZListType, ".ueba.data_sources") data_sources = _builder.get("{kind:Ueba}.properties.dataSources") if data_sources is not None: data_sources.set_elements(AAZStrType, ".") return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
20
4
16
0
4
0
1
0
0
0
2
0
2
2
42
9
33
9
30
0
29
9
26
7
1
1
8
10,150
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/setting/_show.py
azext_sentinel.aaz.latest.sentinel.setting._show.Show.ProductSettingsGet
class ProductSettingsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "settingsName", self.ctx.args.settings_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.kind = AAZStrType( flags={"required": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_anomalies = cls._schema_on_200.discriminate_by( "kind", "Anomalies") disc_anomalies.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "Anomalies").properties properties.is_enabled = AAZBoolType( serialized_name="isEnabled", flags={"read_only": True}, ) disc_entity_analytics = cls._schema_on_200.discriminate_by( "kind", "EntityAnalytics") disc_entity_analytics.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "EntityAnalytics").properties properties.entity_providers = AAZListType( serialized_name="entityProviders", ) entity_providers = cls._schema_on_200.discriminate_by( "kind", "EntityAnalytics").properties.entity_providers entity_providers.Element = AAZStrType() disc_eyes_on = cls._schema_on_200.discriminate_by("kind", "EyesOn") disc_eyes_on.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "EyesOn").properties properties.is_enabled = AAZBoolType( serialized_name="isEnabled", flags={"read_only": True}, ) disc_ueba = cls._schema_on_200.discriminate_by("kind", "Ueba") disc_ueba.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "Ueba").properties properties.data_sources = AAZListType( serialized_name="dataSources", ) data_sources = cls._schema_on_200.discriminate_by( "kind", "Ueba").properties.data_sources data_sources.Element = AAZStrType() return cls._schema_on_200
class ProductSettingsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
18
2
16
0
1
0
1
0
0
0
8
0
9
9
178
25
153
34
136
0
66
27
56
2
1
1
11
10,151
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/setting/_list.py
azext_sentinel.aaz.latest.sentinel.setting._list.List.ProductSettingsList
class ProductSettingsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.etag = AAZStrType() _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType( flags={"required": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_anomalies = cls._schema_on_200.value.Element.discriminate_by( "kind", "Anomalies") disc_anomalies.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.value.Element.discriminate_by( "kind", "Anomalies").properties properties.is_enabled = AAZBoolType( serialized_name="isEnabled", flags={"read_only": True}, ) disc_entity_analytics = cls._schema_on_200.value.Element.discriminate_by( "kind", "EntityAnalytics") disc_entity_analytics.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.value.Element.discriminate_by( "kind", "EntityAnalytics").properties properties.entity_providers = AAZListType( serialized_name="entityProviders", ) entity_providers = cls._schema_on_200.value.Element.discriminate_by( "kind", "EntityAnalytics").properties.entity_providers entity_providers.Element = AAZStrType() disc_eyes_on = cls._schema_on_200.value.Element.discriminate_by( "kind", "EyesOn") disc_eyes_on.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.value.Element.discriminate_by( "kind", "EyesOn").properties properties.is_enabled = AAZBoolType( serialized_name="isEnabled", flags={"read_only": True}, ) disc_ueba = cls._schema_on_200.value.Element.discriminate_by( "kind", "Ueba") disc_ueba.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.value.Element.discriminate_by( "kind", "Ueba").properties properties.data_sources = AAZListType( serialized_name="dataSources", ) data_sources = cls._schema_on_200.value.Element.discriminate_by( "kind", "Ueba").properties.data_sources data_sources.Element = AAZStrType() return cls._schema_on_200
class ProductSettingsList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
18
2
16
0
1
0
1
0
0
0
8
0
9
9
182
27
155
36
138
0
70
29
60
2
1
1
11
10,152
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/setting/_delete.py
azext_sentinel.aaz.latest.sentinel.setting._delete.Delete.ProductSettingsDelete
class ProductSettingsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "settingsName", self.ctx.args.settings_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class ProductSettingsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
65
9
56
19
42
0
26
14
17
3
1
1
10
10,153
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/setting/_create.py
azext_sentinel.aaz.latest.sentinel.setting._create.Create.ProductSettingsUpdate
class ProductSettingsUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "settingsName", self.ctx.args.settings_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("etag", AAZStrType, ".etag") _builder.set_const("kind", "EntityAnalytics", AAZStrType, ".entity_analytics", typ_kwargs={"flags": {"required": True}}) _builder.set_const("kind", "Ueba", AAZStrType, ".ueba", typ_kwargs={ "flags": {"required": True}}) _builder.discriminate_by("kind", "EntityAnalytics") _builder.discriminate_by("kind", "Ueba") disc_entity_analytics = _builder.get("{kind:EntityAnalytics}") if disc_entity_analytics is not None: disc_entity_analytics.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get("{kind:EntityAnalytics}.properties") if properties is not None: properties.set_prop( "entityProviders", AAZListType, ".entity_analytics.entity_providers") entity_providers = _builder.get( "{kind:EntityAnalytics}.properties.entityProviders") if entity_providers is not None: entity_providers.set_elements(AAZStrType, ".") disc_ueba = _builder.get("{kind:Ueba}") if disc_ueba is not None: disc_ueba.set_prop("properties", AAZObjectType, typ_kwargs={ "flags": {"client_flatten": True}}) properties = _builder.get("{kind:Ueba}.properties") if properties is not None: properties.set_prop( "dataSources", AAZListType, ".ueba.data_sources") data_sources = _builder.get("{kind:Ueba}.properties.dataSources") if data_sources is not None: data_sources.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.etag = AAZStrType() _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.kind = AAZStrType( flags={"required": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", flags={"read_only": True}, ) disc_anomalies = cls._schema_on_200.discriminate_by( "kind", "Anomalies") disc_anomalies.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "Anomalies").properties properties.is_enabled = AAZBoolType( serialized_name="isEnabled", flags={"read_only": True}, ) disc_entity_analytics = cls._schema_on_200.discriminate_by( "kind", "EntityAnalytics") disc_entity_analytics.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "EntityAnalytics").properties properties.entity_providers = AAZListType( serialized_name="entityProviders", ) entity_providers = cls._schema_on_200.discriminate_by( "kind", "EntityAnalytics").properties.entity_providers entity_providers.Element = AAZStrType() disc_eyes_on = cls._schema_on_200.discriminate_by("kind", "EyesOn") disc_eyes_on.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "EyesOn").properties properties.is_enabled = AAZBoolType( serialized_name="isEnabled", flags={"read_only": True}, ) disc_ueba = cls._schema_on_200.discriminate_by("kind", "Ueba") disc_ueba.properties = AAZObjectType( flags={"client_flatten": True}, ) properties = cls._schema_on_200.discriminate_by( "kind", "Ueba").properties properties.data_sources = AAZListType( serialized_name="dataSources", ) data_sources = cls._schema_on_200.discriminate_by( "kind", "Ueba").properties.data_sources data_sources.Element = AAZStrType() return cls._schema_on_200
class ProductSettingsUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
20
2
18
0
2
0
1
0
0
0
9
0
10
10
220
33
187
42
168
0
92
34
81
7
1
1
18
10,154
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/securityinsight/azext_sentinel/aaz/latest/sentinel/source_control/_delete.py
azext_sentinel.aaz.latest.sentinel.source_control._delete.Delete.SourceControlsDelete
class SourceControlsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "sourceControlId", self.ctx.args.source_control_id, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), **self.serialize_url_param( "workspaceName", self.ctx.args.workspace_name, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-06-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class SourceControlsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
65
9
56
19
42
0
26
14
17
3
1
1
10
10,155
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.PeriodicModeBackupPolicy
class PeriodicModeBackupPolicy(BackupPolicy): """The object representing periodic mode backup policy. All required parameters must be populated in order to send to server. :ivar type: Describes the mode of backups. Required. Known values are: "Periodic" and "Continuous". :vartype type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType :ivar migration_state: The object representing the state of the migration between the backup policies. :vartype migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState :ivar periodic_mode_properties: Configuration values for periodic mode backup. :vartype periodic_mode_properties: ~azure.mgmt.cosmosdb.models.PeriodicModeProperties """ _validation = { "type": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "migration_state": {"key": "migrationState", "type": "BackupPolicyMigrationState"}, "periodic_mode_properties": {"key": "periodicModeProperties", "type": "PeriodicModeProperties"}, } def __init__( self, *, migration_state: Optional["_models.BackupPolicyMigrationState"] = None, periodic_mode_properties: Optional["_models.PeriodicModeProperties"] = None, **kwargs: Any ) -> None: """ :keyword migration_state: The object representing the state of the migration between the backup policies. :paramtype migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState :keyword periodic_mode_properties: Configuration values for periodic mode backup. :paramtype periodic_mode_properties: ~azure.mgmt.cosmosdb.models.PeriodicModeProperties """ super().__init__(migration_state=migration_state, **kwargs) self.type: str = "Periodic" self.periodic_mode_properties = periodic_mode_properties
class PeriodicModeBackupPolicy(BackupPolicy): '''The object representing periodic mode backup policy. All required parameters must be populated in order to send to server. :ivar type: Describes the mode of backups. Required. Known values are: "Periodic" and "Continuous". :vartype type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType :ivar migration_state: The object representing the state of the migration between the backup policies. :vartype migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState :ivar periodic_mode_properties: Configuration values for periodic mode backup. :vartype periodic_mode_properties: ~azure.mgmt.cosmosdb.models.PeriodicModeProperties ''' def __init__( self, *, migration_state: Optional["_models.BackupPolicyMigrationState"] = None, periodic_mode_properties: Optional["_models.PeriodicModeProperties"] = None, **kwargs: Any ) -> None: ''' :keyword migration_state: The object representing the state of the migration between the backup policies. :paramtype migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState :keyword periodic_mode_properties: Configuration values for periodic mode backup. :paramtype periodic_mode_properties: ~azure.mgmt.cosmosdb.models.PeriodicModeProperties ''' pass
2
2
17
0
10
7
1
0.95
1
3
0
0
1
2
1
17
42
5
19
12
11
18
7
6
5
1
3
0
1
10,156
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.PeriodicModeProperties
class PeriodicModeProperties(_serialization.Model): """Configuration values for periodic mode backup. :ivar backup_interval_in_minutes: An integer representing the interval in minutes between two backups. :vartype backup_interval_in_minutes: int :ivar backup_retention_interval_in_hours: An integer representing the time (in hours) that each backup is retained. :vartype backup_retention_interval_in_hours: int :ivar backup_storage_redundancy: Enum to indicate type of backup residency. Known values are: "Geo", "Local", and "Zone". :vartype backup_storage_redundancy: str or ~azure.mgmt.cosmosdb.models.BackupStorageRedundancy """ _validation = { "backup_interval_in_minutes": {"minimum": 0}, "backup_retention_interval_in_hours": {"minimum": 0}, } _attribute_map = { "backup_interval_in_minutes": {"key": "backupIntervalInMinutes", "type": "int"}, "backup_retention_interval_in_hours": {"key": "backupRetentionIntervalInHours", "type": "int"}, "backup_storage_redundancy": {"key": "backupStorageRedundancy", "type": "str"}, } def __init__( self, *, backup_interval_in_minutes: Optional[int] = None, backup_retention_interval_in_hours: Optional[int] = None, backup_storage_redundancy: Optional[Union[str, "_models.BackupStorageRedundancy"]] = None, **kwargs: Any ) -> None: """ :keyword backup_interval_in_minutes: An integer representing the interval in minutes between two backups. :paramtype backup_interval_in_minutes: int :keyword backup_retention_interval_in_hours: An integer representing the time (in hours) that each backup is retained. :paramtype backup_retention_interval_in_hours: int :keyword backup_storage_redundancy: Enum to indicate type of backup residency. Known values are: "Geo", "Local", and "Zone". :paramtype backup_storage_redundancy: str or ~azure.mgmt.cosmosdb.models.BackupStorageRedundancy """ super().__init__(**kwargs) self.backup_interval_in_minutes = backup_interval_in_minutes self.backup_retention_interval_in_hours = backup_retention_interval_in_hours self.backup_storage_redundancy = backup_storage_redundancy
class PeriodicModeProperties(_serialization.Model): '''Configuration values for periodic mode backup. :ivar backup_interval_in_minutes: An integer representing the interval in minutes between two backups. :vartype backup_interval_in_minutes: int :ivar backup_retention_interval_in_hours: An integer representing the time (in hours) that each backup is retained. :vartype backup_retention_interval_in_hours: int :ivar backup_storage_redundancy: Enum to indicate type of backup residency. Known values are: "Geo", "Local", and "Zone". :vartype backup_storage_redundancy: str or ~azure.mgmt.cosmosdb.models.BackupStorageRedundancy ''' def __init__( self, *, backup_interval_in_minutes: Optional[int] = None, backup_retention_interval_in_hours: Optional[int] = None, backup_storage_redundancy: Optional[Union[str, "_models.BackupStorageRedundancy"]] = None, **kwargs: Any ) -> None: ''' :keyword backup_interval_in_minutes: An integer representing the interval in minutes between two backups. :paramtype backup_interval_in_minutes: int :keyword backup_retention_interval_in_hours: An integer representing the time (in hours) that each backup is retained. :paramtype backup_retention_interval_in_hours: int :keyword backup_storage_redundancy: Enum to indicate type of backup residency. Known values are: "Geo", "Local", and "Zone". :paramtype backup_storage_redundancy: str or ~azure.mgmt.cosmosdb.models.BackupStorageRedundancy ''' pass
2
2
24
0
12
12
1
1.05
1
4
0
0
1
3
1
16
49
4
22
14
13
23
8
7
6
1
2
0
1
10,157
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.Permission
class Permission(_serialization.Model): """The set of data plane operations permitted through this Role Definition. :ivar data_actions: An array of data actions that are allowed. :vartype data_actions: list[str] :ivar not_data_actions: An array of data actions that are denied. :vartype not_data_actions: list[str] """ _attribute_map = { "data_actions": {"key": "dataActions", "type": "[str]"}, "not_data_actions": {"key": "notDataActions", "type": "[str]"}, } def __init__( self, *, data_actions: Optional[List[str]] = None, not_data_actions: Optional[List[str]] = None, **kwargs: Any ) -> None: """ :keyword data_actions: An array of data actions that are allowed. :paramtype data_actions: list[str] :keyword not_data_actions: An array of data actions that are denied. :paramtype not_data_actions: list[str] """ super().__init__(**kwargs) self.data_actions = data_actions self.not_data_actions = not_data_actions
class Permission(_serialization.Model): '''The set of data plane operations permitted through this Role Definition. :ivar data_actions: An array of data actions that are allowed. :vartype data_actions: list[str] :ivar not_data_actions: An array of data actions that are denied. :vartype not_data_actions: list[str] ''' def __init__( self, *, data_actions: Optional[List[str]] = None, not_data_actions: Optional[List[str]] = None, **kwargs: Any ) -> None: ''' :keyword data_actions: An array of data actions that are allowed. :paramtype data_actions: list[str] :keyword not_data_actions: An array of data actions that are denied. :paramtype not_data_actions: list[str] ''' pass
2
2
12
0
6
6
1
1.09
1
3
0
0
1
2
1
16
26
3
11
7
7
12
6
5
4
1
2
0
1
10,158
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_update.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._update.Update.CustomRolloutsGet
class CustomRolloutsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_custom_rollout_read(cls._schema_on_200) return cls._schema_on_200
class CustomRolloutsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
1
1
0
8
0
9
9
82
13
69
25
52
0
33
18
23
2
1
1
11
10,159
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_update.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._update.Update.CustomRolloutsCreateOrUpdate
class CustomRolloutsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _UpdateHelper._build_schema_custom_rollout_read( cls._schema_on_200_201) return cls._schema_on_200_201
class CustomRolloutsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
9
0
8
0
1
0
1
1
1
0
9
1
10
10
110
15
95
29
76
0
38
20
27
3
1
1
13
10,160
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_stop.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._stop.Stop.CustomRolloutsStop
class CustomRolloutsStop(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}/stop", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters def on_200(self, session): pass
class CustomRolloutsStop(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass
13
0
6
0
6
0
1
0
1
0
0
0
7
0
7
7
56
8
48
18
35
0
22
13
14
2
1
1
8
10,161
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_show.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._show.Show.CustomRolloutsGet
class CustomRolloutsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"required": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ShowHelper._build_schema_system_data_read( _schema_on_200.system_data) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType( flags={"required": True}, ) properties.status = AAZObjectType() specification = cls._schema_on_200.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.refresh_subscription_registration = AAZBoolType( serialized_name="refreshSubscriptionRegistration", ) specification.release_scopes = AAZListType( serialized_name="releaseScopes", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.skip_release_scope_validation = AAZBoolType( serialized_name="skipReleaseScopeValidation", ) auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200.properties.specification.canary canary.regions = AAZListType() regions = cls._schema_on_200.properties.specification.canary.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) provider_registration = cls._schema_on_200.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ShowHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _ShowHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ShowHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ShowHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ShowHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ShowHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() release_scopes = cls._schema_on_200.properties.specification.release_scopes release_scopes.Element = AAZStrType() resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ShowHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _ShowHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ShowHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ShowHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ShowHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _ShowHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ShowHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() status = cls._schema_on_200.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) completed_regions = cls._schema_on_200.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _ShowHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200
class CustomRolloutsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
179
22
157
0
1
0
1
1
1
0
8
0
9
9
1,628
209
1,419
155
1,402
0
722
148
712
2
1
1
11
10,162
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_list.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._list.List.CustomRolloutsListByProviderRegistration
class CustomRolloutsListByProviderRegistration(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"required": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ListHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType( flags={"required": True}, ) properties.status = AAZObjectType() specification = cls._schema_on_200.value.Element.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.refresh_subscription_registration = AAZBoolType( serialized_name="refreshSubscriptionRegistration", ) specification.release_scopes = AAZListType( serialized_name="releaseScopes", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.skip_release_scope_validation = AAZBoolType( serialized_name="skipReleaseScopeValidation", ) auto_provision_config = cls._schema_on_200.value.Element.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200.value.Element.properties.specification.canary canary.regions = AAZListType() regions = cls._schema_on_200.value.Element.properties.specification.canary.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) provider_registration = cls._schema_on_200.value.Element.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ListHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _ListHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ListHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ListHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ListHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ListHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() release_scopes = cls._schema_on_200.value.Element.properties.specification.release_scopes release_scopes.Element = AAZStrType() resource_type_registrations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ListHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _ListHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ListHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ListHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ListHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _ListHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ListHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() status = cls._schema_on_200.value.Element.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) completed_regions = cls._schema_on_200.value.Element.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200.value.Element.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _ListHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200.value.Element.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200
class CustomRolloutsListByProviderRegistration(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
179
22
157
0
1
0
1
1
1
0
8
0
9
9
1,633
211
1,422
156
1,405
0
727
149
717
2
1
1
11
10,163
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_delete.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._delete.Delete.CustomRolloutsDelete
class CustomRolloutsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class CustomRolloutsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
61
9
52
19
38
0
26
14
17
3
1
1
10
10,164
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_create.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._create.Create.CustomRolloutsCreateOrUpdate
class CustomRolloutsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("specification", AAZObjectType, ".", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("status", AAZObjectType, ".status") specification = _builder.get(".properties.specification") if specification is not None: specification.set_prop( "autoProvisionConfig", AAZObjectType, ".auto_provision_config") specification.set_prop("canary", AAZObjectType, ".canary") specification.set_prop( "manifestCheckinSpecification", AAZObjectType, ".manifest_checkin_specification") specification.set_prop( "providerRegistration", AAZObjectType, ".provider_registration") specification.set_prop( "refreshSubscriptionRegistration", AAZBoolType, ".refresh_subscription_registration") specification.set_prop( "releaseScopes", AAZListType, ".release_scopes") specification.set_prop( "resourceTypeRegistrations", AAZListType, ".resource_type_registrations") specification.set_prop( "skipReleaseScopeValidation", AAZBoolType, ".skip_release_scope_validation") auto_provision_config = _builder.get( ".properties.specification.autoProvisionConfig") if auto_provision_config is not None: auto_provision_config.set_prop( "resourceGraph", AAZBoolType, ".resource_graph") auto_provision_config.set_prop( "storage", AAZBoolType, ".storage") canary = _builder.get(".properties.specification.canary") if canary is not None: canary.set_prop("regions", AAZListType, ".regions") regions = _builder.get(".properties.specification.canary.regions") if regions is not None: regions.set_elements(AAZStrType, ".") manifest_checkin_specification = _builder.get( ".properties.specification.manifestCheckinSpecification") if manifest_checkin_specification is not None: manifest_checkin_specification.set_prop( "manifestCheckinOption", AAZStrType, ".manifest_checkin_option") manifest_checkin_specification.set_prop( "manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") manifest_checkin_params = _builder.get( ".properties.specification.manifestCheckinSpecification.manifestCheckinParams") if manifest_checkin_params is not None: manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) manifest_checkin_params.set_prop( "environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) provider_registration = _builder.get( ".properties.specification.providerRegistration") if provider_registration is not None: provider_registration.set_prop("kind", AAZStrType, ".kind") provider_registration.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.providerRegistration.properties") if properties is not None: properties.set_prop( "capabilities", AAZListType, ".capabilities") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop( "globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") properties.set_prop( "metadata", AAZFreeFormDictType, ".metadata") properties.set_prop("namespace", AAZStrType, ".namespace") properties.set_prop("notificationOptions", AAZStrType, ".notification_options") properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") _CreateHelper._build_schema_notifications_create( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("optionalFeatures", AAZListType, ".optional_features") properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") properties.set_prop( "providerType", AAZStrType, ".provider_type") properties.set_prop("providerVersion", AAZStrType, ".provider_version") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("responseOptions", AAZObjectType, ".response_options") properties.set_prop("serviceName", AAZStrType, ".service_name") properties.set_prop("services", AAZListType, ".services") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) capabilities = _builder.get( ".properties.specification.providerRegistration.properties.capabilities") if capabilities is not None: capabilities.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[]") if _elements is not None: _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) features_rule = _builder.get( ".properties.specification.providerRegistration.properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.globalNotificationEndpoints") if global_notification_endpoints is not None: _CreateHelper._build_schema_resource_provider_endpoint_create( global_notification_endpoints.set_elements(AAZObjectType, ".")) legacy_registrations = _builder.get( ".properties.specification.providerRegistration.properties.legacyRegistrations") if legacy_registrations is not None: legacy_registrations.set_elements(AAZStrType, ".") linked_notification_rules = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("endpoints", AAZListType, ".endpoints") _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) actions = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") if endpoints is not None: _CreateHelper._build_schema_resource_provider_endpoint_create( endpoints.set_elements(AAZObjectType, ".")) management = _builder.get( ".properties.specification.providerRegistration.properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.providerRegistration.properties.management.resourceAccessRoles") if resource_access_roles is not None: _CreateHelper._build_schema_resource_access_role_create( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.providerRegistration.properties.management.serviceTreeInfos") if service_tree_infos is not None: _CreateHelper._build_schema_service_tree_info_create( service_tree_infos.set_elements(AAZObjectType, ".")) management_group_global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") if management_group_global_notification_endpoints is not None: _CreateHelper._build_schema_resource_provider_endpoint_create( management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) metadata = _builder.get( ".properties.specification.providerRegistration.properties.metadata") if metadata is not None: metadata.set_anytype_elements(".") notification_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings") if notification_settings is not None: notification_settings.set_prop( "subscriberSettings", AAZListType, ".subscriber_settings") subscriber_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") if subscriber_settings is not None: subscriber_settings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") if _elements is not None: _elements.set_prop("filterRules", AAZListType, ".filter_rules") filter_rules = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") if filter_rules is not None: filter_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") if _elements is not None: _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") _elements.set_prop("filterQuery", AAZStrType, ".filter_query") endpoint_information = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") if endpoint_information is not None: endpoint_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") if _elements is not None: _elements.set_prop("endpoint", AAZStrType, ".endpoint") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop( "schemaVersion", AAZStrType, ".schema_version") optional_features = _builder.get( ".properties.specification.providerRegistration.properties.optionalFeatures") if optional_features is not None: optional_features.set_elements(AAZStrType, ".") private_resource_provider_configuration = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") if private_resource_provider_configuration is not None: private_resource_provider_configuration.set_prop( "allowedSubscriptions", AAZListType, ".allowed_subscriptions") allowed_subscriptions = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") if allowed_subscriptions is not None: allowed_subscriptions.set_elements(AAZStrType, ".") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthorizations") if provider_authorizations is not None: _CreateHelper._build_schema_resource_provider_authorization_create( provider_authorizations.set_elements(AAZObjectType, ".")) provider_hub_metadata = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata") if provider_hub_metadata is not None: provider_hub_metadata.set_prop( "directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") provider_hub_metadata.set_prop( "globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") provider_hub_metadata.set_prop( "providerAuthentication", AAZObjectType, ".provider_authentication") provider_hub_metadata.set_prop( "providerAuthorizations", AAZListType, ".provider_authorizations") provider_hub_metadata.set_prop( "regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") provider_hub_metadata.set_prop( "thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") if provider_authorizations is not None: _CreateHelper._build_schema_resource_provider_authorization_create( provider_authorizations.set_elements(AAZObjectType, ".")) third_party_provider_authorization = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") if third_party_provider_authorization is not None: third_party_provider_authorization.set_prop( "authorizations", AAZListType, ".authorizations") third_party_provider_authorization.set_prop( "managedByTenantId", AAZStrType, ".managed_by_tenant_id") authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") if authorizations is not None: authorizations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") if _elements is not None: _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={ "flags": {"required": True}}) request_header_options = _builder.get( ".properties.specification.providerRegistration.properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.providerRegistration.properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_group_lock_option_during_move = _builder.get( ".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") if resource_group_lock_option_during_move is not None: resource_group_lock_option_during_move.set_prop( "blockActionVerb", AAZStrType, ".block_action_verb") resource_hydration_accounts = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts") if resource_hydration_accounts is not None: resource_hydration_accounts.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") if _elements is not None: _elements.set_prop("accountName", AAZStrType, ".account_name") _elements.set_prop( "encryptedKey", AAZStrType, ".encrypted_key") _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") _elements.set_prop( "subscriptionId", AAZStrType, ".subscription_id") response_options = _builder.get( ".properties.specification.providerRegistration.properties.responseOptions") if response_options is not None: response_options.set_prop( "serviceClientOptionsType", AAZStrType, ".service_client_options_type") services = _builder.get( ".properties.specification.providerRegistration.properties.services") if services is not None: services.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.services[]") if _elements is not None: _elements.set_prop("serviceName", AAZStrType, ".service_name") _elements.set_prop("status", AAZStrType, ".status") subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _CreateHelper._build_schema_subscription_state_override_action_create( subscription_state_override_actions.set_elements(AAZObjectType, ".")) template_deployment_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") release_scopes = _builder.get( ".properties.specification.releaseScopes") if release_scopes is not None: release_scopes.set_elements(AAZStrType, ".") resource_type_registrations = _builder.get( ".properties.specification.resourceTypeRegistrations") if resource_type_registrations is not None: resource_type_registrations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[]") if _elements is not None: _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties") if properties is not None: properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") properties.set_prop("additionalOptions", AAZStrType, ".additional_options") properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") properties.set_prop( "allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") properties.set_prop( "apiProfiles", AAZListType, ".api_profiles") properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") properties.set_prop( "authorizationActionMappings", AAZListType, ".authorization_action_mappings") properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") properties.set_prop( "capacityRule", AAZObjectType, ".capacity_rule") properties.set_prop("category", AAZStrType, ".category") properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") properties.set_prop( "disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") properties.set_prop("endpoints", AAZListType, ".endpoints") properties.set_prop("extendedLocations", AAZListType, ".extended_locations") properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") properties.set_prop("identityManagement", AAZObjectType, ".identity_management") properties.set_prop( "isPureProxy", AAZBoolType, ".is_pure_proxy") properties.set_prop("legacyName", AAZStrType, ".legacy_name") properties.set_prop( "legacyNames", AAZListType, ".legacy_names") properties.set_prop( "legacyPolicy", AAZObjectType, ".legacy_policy") properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") properties.set_prop( "loggingRules", AAZListType, ".logging_rules") properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop( "manifestLink", AAZStrType, ".manifest_link") properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") properties.set_prop("metadata", AAZDictType, ".metadata") _CreateHelper._build_schema_notifications_create( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") properties.set_prop("regionality", AAZStrType, ".regionality") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop( "resourceCache", AAZObjectType, ".resource_cache") properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") properties.set_prop( "resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") properties.set_prop( "routingRule", AAZObjectType, ".routing_rule") properties.set_prop("routingType", AAZStrType, ".routing_type") properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") properties.set_prop("skuLink", AAZStrType, ".sku_link") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") properties.set_prop( "supportsTags", AAZBoolType, ".supports_tags") properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) allowed_resource_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") if allowed_resource_names is not None: allowed_resource_names.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") if _elements is not None: _elements.set_prop( "getActionVerb", AAZStrType, ".get_action_verb") _elements.set_prop("name", AAZStrType, ".name") allowed_template_deployment_reference_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") if allowed_template_deployment_reference_actions is not None: allowed_template_deployment_reference_actions.set_elements( AAZStrType, ".") allowed_unauthorized_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") if allowed_unauthorized_actions is not None: allowed_unauthorized_actions.set_elements(AAZStrType, ".") api_profiles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") if api_profiles is not None: api_profiles.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop( "profileVersion", AAZStrType, ".profile_version") async_timeout_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") if async_timeout_rules is not None: async_timeout_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop("timeout", AAZStrType, ".timeout") authorization_action_mappings = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") if authorization_action_mappings is not None: authorization_action_mappings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") if _elements is not None: _elements.set_prop("desired", AAZStrType, ".desired") _elements.set_prop("original", AAZStrType, ".original") availability_zone_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") if availability_zone_rule is not None: availability_zone_rule.set_prop( "availabilityZonePolicy", AAZStrType, ".availability_zone_policy") capacity_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.capacityRule") if capacity_rule is not None: capacity_rule.set_prop( "capacityPolicy", AAZStrType, ".capacity_policy") capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") check_name_availability_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") if check_name_availability_specifications is not None: check_name_availability_specifications.set_prop( "enableDefaultValidation", AAZBoolType, ".enable_default_validation") check_name_availability_specifications.set_prop( "resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") resource_types_with_custom_validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") if resource_types_with_custom_validation is not None: resource_types_with_custom_validation.set_elements( AAZStrType, ".") common_api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") if common_api_versions is not None: common_api_versions.set_elements(AAZStrType, ".") disallowed_action_verbs = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") if disallowed_action_verbs is not None: disallowed_action_verbs.set_elements(AAZStrType, ".") disallowed_end_user_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") if disallowed_end_user_operations is not None: disallowed_end_user_operations.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints") if endpoints is not None: endpoints.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop( "dataBoundary", AAZStrType, ".data_boundary") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("enabled", AAZBoolType, ".enabled") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensions", AAZListType, ".extensions") _elements.set_prop( "featuresRule", AAZObjectType, ".features_rule") _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("locations", AAZListType, ".locations") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") _elements.set_prop("skuLink", AAZStrType, ".sku_link") _elements.set_prop("timeout", AAZStrType, ".timeout") _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) _elements.set_prop("zones", AAZListType, ".zones") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) extensions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") if extensions is not None: extensions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") if _elements is not None: _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") _elements.set_prop("timeout", AAZStrType, ".timeout") extension_categories = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") if extension_categories is not None: extension_categories.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") if locations is not None: locations.set_elements(AAZStrType, ".") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") zones = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") if zones is not None: zones.set_elements(AAZStrType, ".") extended_locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") if extended_locations is not None: extended_locations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") if _elements is not None: _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") _elements.set_prop("type", AAZStrType, ".type") extension_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") if extension_options is not None: extension_options.set_prop( "resourceCreationBegin", AAZObjectType, ".resource_creation_begin") resource_creation_begin = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") if resource_creation_begin is not None: resource_creation_begin.set_prop( "request", AAZListType, ".request") resource_creation_begin.set_prop( "response", AAZListType, ".response") request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") if request is not None: request.set_elements(AAZStrType, ".") response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") if response is not None: response.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) identity_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement") if identity_management is not None: identity_management.set_prop( "applicationId", AAZStrType, ".application_id") identity_management.set_prop( "applicationIds", AAZListType, ".application_ids") identity_management.set_prop( "delegationAppIds", AAZListType, ".delegation_app_ids") identity_management.set_prop("type", AAZStrType, ".type") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") delegation_app_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") if delegation_app_ids is not None: delegation_app_ids.set_elements(AAZStrType, ".") legacy_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyNames") if legacy_names is not None: legacy_names.set_elements(AAZStrType, ".") legacy_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") if legacy_policy is not None: legacy_policy.set_prop( "disallowedConditions", AAZListType, ".disallowed_conditions") legacy_policy.set_prop( "disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") disallowed_conditions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") if disallowed_conditions is not None: disallowed_conditions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") if _elements is not None: _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") _elements.set_prop("feature", AAZStrType, ".feature") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") linked_access_checks = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") if linked_access_checks is not None: linked_access_checks.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop( "linkedAction", AAZStrType, ".linked_action") _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") linked_notification_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") if actions_on_failed_operation is not None: actions_on_failed_operation.set_elements(AAZStrType, ".") fast_path_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") if fast_path_actions is not None: fast_path_actions.set_elements(AAZStrType, ".") fast_path_actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") if fast_path_actions_on_failed_operation is not None: fast_path_actions_on_failed_operation.set_elements( AAZStrType, ".") linked_operation_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") if linked_operation_rules is not None: linked_operation_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") if _elements is not None: _elements.set_prop( "dependsOnTypes", AAZListType, ".depends_on_types") _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={ "flags": {"required": True}}) depends_on_types = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") if depends_on_types is not None: depends_on_types.set_elements(AAZStrType, ".") logging_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules") if logging_rules is not None: logging_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") hidden_property_paths = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") if hidden_property_paths is not None: hidden_property_paths.set_prop( "hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") hidden_property_paths.set_prop( "hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") hidden_paths_on_request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") if hidden_paths_on_request is not None: hidden_paths_on_request.set_elements(AAZStrType, ".") hidden_paths_on_response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") if hidden_paths_on_response is not None: hidden_paths_on_response.set_elements(AAZStrType, ".") managed_resource_group_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") if managed_resource_group_configuration is not None: managed_resource_group_configuration.set_prop( "applicationIds", AAZListType, ".application_ids") managed_resource_group_configuration.set_prop( "denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") managed_resource_group_configuration.set_prop( "enabled", AAZBoolType, ".enabled") managed_resource_group_configuration.set_prop( "resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") deny_assignment_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") if deny_assignment_configuration is not None: deny_assignment_configuration.set_prop( "enabled", AAZBoolType, ".enabled") deny_assignment_configuration.set_prop( "notActions", AAZListType, ".not_actions") not_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") if not_actions is not None: not_actions.set_elements(AAZStrType, ".") management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") if resource_access_roles is not None: _CreateHelper._build_schema_resource_access_role_create( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") if service_tree_infos is not None: _CreateHelper._build_schema_service_tree_info_create( service_tree_infos.set_elements(AAZObjectType, ".")) marketplace_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") if marketplace_options is not None: marketplace_options.set_prop( "addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata") if metadata is not None: metadata.set_elements(AAZFreeFormDictType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata{}") if _elements is not None: _elements.set_anytype_elements(".") on_behalf_of_tokens = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") if on_behalf_of_tokens is not None: on_behalf_of_tokens.set_prop( "actionName", AAZStrType, ".action_name") on_behalf_of_tokens.set_prop( "lifeTime", AAZStrType, ".life_time") open_api_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") if open_api_configuration is not None: open_api_configuration.set_prop( "validation", AAZObjectType, ".validation") validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") if validation is not None: validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") private_endpoint_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") if private_endpoint_configuration is not None: private_endpoint_configuration.set_prop( "groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) private_endpoint_configuration.set_prop( "minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) group_connectivity_information = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") if group_connectivity_information is not None: group_connectivity_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") if _elements is not None: _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "redirectMapId", AAZStrType, ".redirect_map_id") _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={ "flags": {"required": True}}) required_members = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") if required_members is not None: required_members.set_elements(AAZStrType, ".") required_zone_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") if required_zone_names is not None: required_zone_names.set_elements(AAZStrType, ".") quota_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule") if quota_rule is not None: quota_rule.set_prop( "locationRules", AAZListType, ".location_rules") quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") location_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") if location_rules is not None: location_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") if _elements is not None: _elements.set_prop("location", AAZStrType, ".location") _elements.set_prop("policy", AAZStrType, ".policy") _elements.set_prop("quotaId", AAZStrType, ".quota_id") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") request_header_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_cache = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceCache") if resource_cache is not None: resource_cache.set_prop( "enableResourceCache", AAZBoolType, ".enable_resource_cache") resource_cache.set_prop( "resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") resource_concurrency_control_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") if resource_concurrency_control_options is not None: resource_concurrency_control_options.set_elements( AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") if _elements is not None: _elements.set_prop("policy", AAZStrType, ".policy") resource_graph_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") if resource_graph_configuration is not None: resource_graph_configuration.set_prop( "apiVersion", AAZStrType, ".api_version") resource_graph_configuration.set_prop( "enabled", AAZBoolType, ".enabled") resource_management_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") if resource_management_options is not None: resource_management_options.set_prop( "batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") resource_management_options.set_prop( "deleteDependencies", AAZListType, ".delete_dependencies") resource_management_options.set_prop( "nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") batch_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") if batch_provisioning_support is not None: batch_provisioning_support.set_prop( "supportedOperations", AAZStrType, ".supported_operations") delete_dependencies = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") if delete_dependencies is not None: delete_dependencies.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") if _elements is not None: _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") nested_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") if nested_provisioning_support is not None: nested_provisioning_support.set_prop( "minimumApiVersion", AAZStrType, ".minimum_api_version") resource_move_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") if resource_move_policy is not None: resource_move_policy.set_prop( "crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") resource_move_policy.set_prop( "crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") resource_move_policy.set_prop( "validationRequired", AAZBoolType, ".validation_required") resource_query_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") if resource_query_management is not None: resource_query_management.set_prop( "filterOption", AAZStrType, ".filter_option") resource_type_common_attribute_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") if resource_type_common_attribute_management is not None: resource_type_common_attribute_management.set_prop( "commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") routing_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.routingRule") if routing_rule is not None: routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") if service_tree_infos is not None: _CreateHelper._build_schema_service_tree_info_create( service_tree_infos.set_elements(AAZObjectType, ".")) subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _CreateHelper._build_schema_subscription_state_override_action_create( subscription_state_override_actions.set_elements(AAZObjectType, ".")) subscription_state_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") if subscription_state_rules is not None: subscription_state_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") if _elements is not None: _elements.set_prop( "allowedActions", AAZListType, ".allowed_actions") _elements.set_prop("state", AAZStrType, ".state") allowed_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") if allowed_actions is not None: allowed_actions.set_elements(AAZStrType, ".") swagger_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") if swagger_specifications is not None: swagger_specifications.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") if _elements is not None: _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") template_deployment_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") template_deployment_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") if template_deployment_policy is not None: template_deployment_policy.set_prop( "capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) template_deployment_policy.set_prop( "preflightNotifications", AAZStrType, ".preflight_notifications") template_deployment_policy.set_prop( "preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) throttling_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") if throttling_rules is not None: throttling_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "applicationId", AAZListType, ".application_id") _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") application_id = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") if application_id is not None: application_id.set_elements(AAZStrType, ".") metrics = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") if metrics is not None: metrics.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") if _elements is not None: _elements.set_prop("interval", AAZStrType, ".interval") _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={ "flags": {"required": True}}) required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") status = _builder.get(".properties.status") if status is not None: status.set_prop("completedRegions", AAZListType, ".completed_regions") status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") completed_regions = _builder.get( ".properties.status.completedRegions") if completed_regions is not None: completed_regions.set_elements(AAZStrType, ".") failed_or_skipped_regions = _builder.get( ".properties.status.failedOrSkippedRegions") if failed_or_skipped_regions is not None: _CreateHelper._build_schema_extended_error_info_create( failed_or_skipped_regions.set_elements(AAZObjectType, ".")) manifest_checkin_status = _builder.get( ".properties.status.manifestCheckinStatus") if manifest_checkin_status is not None: manifest_checkin_status.set_prop( "commitId", AAZStrType, ".commit_id") manifest_checkin_status.set_prop( "isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) manifest_checkin_status.set_prop( "pullRequest", AAZStrType, ".pull_request") manifest_checkin_status.set_prop( "statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( flags={"required": True}, ) _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _CreateHelper._build_schema_system_data_read( _schema_on_200_201.system_data) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType( flags={"required": True}, ) properties.status = AAZObjectType() specification = cls._schema_on_200_201.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.refresh_subscription_registration = AAZBoolType( serialized_name="refreshSubscriptionRegistration", ) specification.release_scopes = AAZListType( serialized_name="releaseScopes", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.skip_release_scope_validation = AAZBoolType( serialized_name="skipReleaseScopeValidation", ) auto_provision_config = cls._schema_on_200_201.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200_201.properties.specification.canary canary.regions = AAZListType() regions = cls._schema_on_200_201.properties.specification.canary.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200_201.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200_201.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) provider_registration = cls._schema_on_200_201.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _CreateHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _CreateHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _CreateHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200_201.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200_201.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200_201.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _CreateHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _CreateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200_201.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _CreateHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() release_scopes = cls._schema_on_200_201.properties.specification.release_scopes release_scopes.Element = AAZStrType() resource_type_registrations = cls._schema_on_200_201.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _CreateHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _CreateHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _CreateHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _CreateHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _CreateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _CreateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _CreateHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() status = cls._schema_on_200_201.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) completed_regions = cls._schema_on_200_201.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200_201.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _CreateHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200_201.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200_201
class CustomRolloutsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
268
40
229
0
21
0
1
1
1
0
9
1
10
10
2,705
408
2,297
288
2,278
0
1,578
279
1,567
198
1
1
210
10,165
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_wait.py
azext_providerhub.aaz.latest.providerhub.authorized_application._wait.Wait.AuthorizedApplicationsGet
class AuthorizedApplicationsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "applicationId", self.ctx.args.application_id, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.data_authorizations = AAZListType( serialized_name="dataAuthorizations", ) properties.provider_authorization = AAZObjectType( serialized_name="providerAuthorization", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) data_authorizations = cls._schema_on_200.properties.data_authorizations data_authorizations.Element = AAZObjectType() _element = cls._schema_on_200.properties.data_authorizations.Element _element.resource_types = AAZListType( serialized_name="resourceTypes", ) _element.role = AAZStrType( flags={"required": True}, ) resource_types = cls._schema_on_200.properties.data_authorizations.Element.resource_types resource_types.Element = AAZStrType() provider_authorization = cls._schema_on_200.properties.provider_authorization provider_authorization.managed_by_role_definition_id = AAZStrType( serialized_name="managedByRoleDefinitionId", ) provider_authorization.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class AuthorizedApplicationsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
15
1
13
0
1
0
1
0
0
0
8
0
9
9
151
20
131
32
114
0
59
25
49
2
1
1
11
10,166
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_update.py
azext_providerhub.aaz.latest.providerhub.authorized_application._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop("dataAuthorizations", AAZListType, ".data_authorizations") properties.set_prop("providerAuthorization", AAZObjectType, ".provider_authorization") data_authorizations = _builder.get( ".properties.dataAuthorizations") if data_authorizations is not None: data_authorizations.set_elements(AAZObjectType, ".") _elements = _builder.get(".properties.dataAuthorizations[]") if _elements is not None: _elements.set_prop( "resourceTypes", AAZListType, ".resource_types") _elements.set_prop("role", AAZStrType, ".role", typ_kwargs={ "flags": {"required": True}}) resource_types = _builder.get( ".properties.dataAuthorizations[].resourceTypes") if resource_types is not None: resource_types.set_elements(AAZStrType, ".") provider_authorization = _builder.get( ".properties.providerAuthorization") if provider_authorization is not None: provider_authorization.set_prop( "managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") provider_authorization.set_prop( "roleDefinitionId", AAZStrType, ".role_definition_id") return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
17
3
14
0
4
0
1
0
0
0
2
0
2
2
37
8
29
9
26
0
25
9
22
6
1
1
7
10,167
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_update.py
azext_providerhub.aaz.latest.providerhub.authorized_application._update.Update.AuthorizedApplicationsGet
class AuthorizedApplicationsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "applicationId", self.ctx.args.application_id, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_authorized_application_read( cls._schema_on_200) return cls._schema_on_200
class AuthorizedApplicationsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
1
1
0
8
0
9
9
82
13
69
25
52
0
33
18
23
2
1
1
11
10,168
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/operations/_gateways_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.operations._gateways_operations.GatewaysOperations
class GatewaysOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`gateways` attribute. """ models = _models def __init__(self, *args, **kwargs): input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def get( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> _models.GatewayResource: """Get the Spring Cloud Gateway and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: GatewayResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("GatewayResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _create_or_update_initial( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: Union[_models.GatewayResource, IO[bytes]], **kwargs: Any ) -> _models.GatewayResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(gateway_resource, (IOBase, bytes)): _content = gateway_resource else: _json = self._serialize.body(gateway_resource, "GatewayResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("GatewayResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("GatewayResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: _models.GatewayResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayResource]: """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param gateway_resource: The gateway for the create or update operation. Required. :type gateway_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayResource]: """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param gateway_resource: The gateway for the create or update operation. Required. :type gateway_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: Union[_models.GatewayResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.GatewayResource]: """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param gateway_resource: The gateway for the create or update operation. Is either a GatewayResource type or a IO[bytes] type. Required. :type gateway_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource or IO[bytes] :return: An instance of LROPoller that returns either GatewayResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, gateway_resource=gateway_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("GatewayResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.GatewayResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.GatewayResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> LROPoller[None]: """Disable the default Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list_env_secrets( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> Dict[str, str]: """List sensitive environment variables of Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: dict mapping str to str or the result of cls(response) :rtype: dict[str, str] :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) _request = build_list_env_secrets_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("{str}", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _restart_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_restart_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, None, response_headers) # type: ignore @distributed_trace def begin_restart( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> LROPoller[None]: """Restart the Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._restart_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast( PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) ) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: """Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either GatewayResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) @overload def validate_domain( self, resource_group_name: str, service_name: str, gateway_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ @overload def validate_domain( self, resource_group_name: str, service_name: str, gateway_name: str, validate_payload: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def validate_domain( self, resource_group_name: str, service_name: str, gateway_name: str, validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], **kwargs: Any ) -> _models.CustomDomainValidateResult: """Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param validate_payload: Custom domain payload to be validated. Is either a CustomDomainValidatePayload type or a IO[bytes] type. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload or IO[bytes] :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(validate_payload, (IOBase, bytes)): _content = validate_payload else: _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") _request = build_validate_domain_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized
class GatewaysOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`gateways` attribute. ''' def __init__(self, *args, **kwargs): pass @distributed_trace def get( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> _models.GatewayResource: '''Get the Spring Cloud Gateway and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: GatewayResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _create_or_update_initial( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: Union[_models.GatewayResource, IO[bytes]], **kwargs: Any ) -> _models.GatewayResource: pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: _models.GatewayResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayResource]: '''Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param gateway_resource: The gateway for the create or update operation. Required. :type gateway_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: _models.GatewayResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayResource]: '''Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param gateway_resource: The gateway for the create or update operation. Required. :type gateway_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, gateway_resource: _models.GatewayResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayResource]: '''Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param gateway_resource: The gateway for the create or update operation. Is either a GatewayResource type or a IO[bytes] type. Required. :type gateway_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource or IO[bytes] :return: An instance of LROPoller that returns either GatewayResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> LROPoller[None]: '''Disable the default Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list_env_secrets( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> Dict[str, str]: '''List sensitive environment variables of Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: dict mapping str to str or the result of cls(response) :rtype: dict[str, str] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _restart_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_restart( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> LROPoller[None]: '''Restart the Spring Cloud Gateway. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list_env_secrets( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> Dict[str, str]: '''Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either GatewayResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass @overload def validate_domain( self, resource_group_name: str, service_name: str, gateway_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def validate_domain( self, resource_group_name: str, service_name: str, gateway_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param validate_payload: Custom domain payload to be validated. Required. :type validate_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def validate_domain( self, resource_group_name: str, service_name: str, gateway_name: str, validate_payload: _models.CustomDomainValidatePayload, *, content_type: str = "application/json", **kwargs: Any ) -> _models.CustomDomainValidateResult: '''Check the domains are valid as well as not in use. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param validate_payload: Custom domain payload to be validated. Is either a CustomDomainValidatePayload type or a IO[bytes] type. Required. :type validate_payload: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidatePayload or IO[bytes] :return: CustomDomainValidateResult or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainValidateResult :raises ~azure.core.exceptions.HttpResponseError: ''' pass
33
12
38
4
26
10
3
0.4
0
7
0
0
15
5
15
15
779
102
505
217
403
202
251
137
229
6
0
1
61
10,169
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/operations/_gateway_route_configs_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.operations._gateway_route_configs_operations.GatewayRouteConfigsOperations
class GatewayRouteConfigsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`gateway_route_configs` attribute. """ models = _models def __init__(self, *args, **kwargs): input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def get( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any ) -> _models.GatewayRouteConfigResource: """Get the Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :return: GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, route_config_name=route_config_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _create_or_update_initial( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], **kwargs: Any ) -> _models.GatewayRouteConfigResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(gateway_route_config_resource, (IOBase, bytes)): _content = gateway_route_config_resource else: _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, route_config_name=route_config_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: _models.GatewayRouteConfigResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayRouteConfigResource]: """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or update operation. Required. :type gateway_route_config_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayRouteConfigResource]: """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or update operation. Required. :type gateway_route_config_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.GatewayRouteConfigResource]: """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. :type gateway_route_config_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource or IO[bytes] :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, route_config_name=route_config_name, gateway_route_config_resource=gateway_route_config_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.GatewayRouteConfigResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, route_config_name=route_config_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any ) -> LROPoller[None]: """Delete the Spring Cloud Gateway route config. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, route_config_name=route_config_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> Iterable["_models.GatewayRouteConfigResource"]: """Handle requests to list all Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An iterator like instance of either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data)
class GatewayRouteConfigsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`gateway_route_configs` attribute. ''' def __init__(self, *args, **kwargs): pass @distributed_trace def get( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any ) -> _models.GatewayRouteConfigResource: '''Get the Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :return: GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _create_or_update_initial( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], **kwargs: Any ) -> _models.GatewayRouteConfigResource: pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: _models.GatewayRouteConfigResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayRouteConfigResource]: '''Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or update operation. Required. :type gateway_route_config_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: _models.GatewayRouteConfigResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayRouteConfigResource]: '''Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or update operation. Required. :type gateway_route_config_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, gateway_route_config_resource: _models.GatewayRouteConfigResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayRouteConfigResource]: '''Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. :type gateway_route_config_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource or IO[bytes] :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any ) -> LROPoller[None]: '''Delete the Spring Cloud Gateway route config. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param route_config_name: The name of the Spring Cloud Gateway route config. Required. :type route_config_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> Iterable["_models.GatewayRouteConfigResource"]: '''Handle requests to list all Spring Cloud Gateway route configs. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An iterator like instance of either GatewayRouteConfigResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass
21
7
38
4
26
10
3
0.42
0
7
0
0
9
5
9
9
502
61
323
138
258
135
160
88
145
6
0
1
41
10,170
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/operations/_gateway_custom_domains_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.operations._gateway_custom_domains_operations.GatewayCustomDomainsOperations
class GatewayCustomDomainsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`gateway_custom_domains` attribute. """ models = _models def __init__(self, *args, **kwargs): input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def get( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any ) -> _models.GatewayCustomDomainResource: """Get the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :return: GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _create_or_update_initial( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.GatewayCustomDomainResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): _content = gateway_custom_domain_resource else: _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: _models.GatewayCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayCustomDomainResource]: """Create or update the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :param gateway_custom_domain_resource: The gateway custom domain resource for the create or update operation. Required. :type gateway_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayCustomDomainResource]: """Create or update the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :param gateway_custom_domain_resource: The gateway custom domain resource for the create or update operation. Required. :type gateway_custom_domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.GatewayCustomDomainResource]: """Create or update the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :param gateway_custom_domain_resource: The gateway custom domain resource for the create or update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. :type gateway_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource or IO[bytes] :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, domain_name=domain_name, gateway_custom_domain_resource=gateway_custom_domain_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.GatewayCustomDomainResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any ) -> LROPoller[None]: """Delete the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, domain_name=domain_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> Iterable["_models.GatewayCustomDomainResource"]: """Handle requests to list all Spring Cloud Gateway custom domains. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An iterator like instance of either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data)
class GatewayCustomDomainsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`gateway_custom_domains` attribute. ''' def __init__(self, *args, **kwargs): pass @distributed_trace def get( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any ) -> _models.GatewayCustomDomainResource: '''Get the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :return: GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _create_or_update_initial( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.GatewayCustomDomainResource: pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: _models.GatewayCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayCustomDomainResource]: '''Create or update the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :param gateway_custom_domain_resource: The gateway custom domain resource for the create or update operation. Required. :type gateway_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: _models.GatewayCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayCustomDomainResource]: '''Create or update the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :param gateway_custom_domain_resource: The gateway custom domain resource for the create or update operation. Required. :type gateway_custom_domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, gateway_custom_domain_resource: _models.GatewayCustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.GatewayCustomDomainResource]: '''Create or update the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :param gateway_custom_domain_resource: The gateway custom domain resource for the create or update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. :type gateway_custom_domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource or IO[bytes] :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any ) -> LROPoller[None]: '''Delete the Spring Cloud Gateway custom domain. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. :type domain_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any ) -> Iterable["_models.GatewayCustomDomainResource"]: '''Handle requests to list all Spring Cloud Gateway custom domains. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param gateway_name: The name of Spring Cloud Gateway. Required. :type gateway_name: str :return: An iterator like instance of either GatewayCustomDomainResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass
21
7
38
4
26
9
3
0.41
0
7
0
0
9
5
9
9
499
61
323
138
258
132
160
88
145
6
0
1
41
10,171
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/operations/_dev_tool_portals_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.operations._dev_tool_portals_operations.DevToolPortalsOperations
class DevToolPortalsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`dev_tool_portals` attribute. """ models = _models def __init__(self, *args, **kwargs): input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> Iterable["_models.DevToolPortalResource"]: """Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) @distributed_trace def get( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any ) -> _models.DevToolPortalResource: """Get the Application Live and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :return: DevToolPortalResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, dev_tool_portal_name=dev_tool_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("DevToolPortalResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _create_or_update_initial( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], **kwargs: Any ) -> _models.DevToolPortalResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(dev_tool_portal_resource, (IOBase, bytes)): _content = dev_tool_portal_resource else: _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, dev_tool_portal_name=dev_tool_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("DevToolPortalResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("DevToolPortalResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: _models.DevToolPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DevToolPortalResource]: """Create the default Dev Tool Portal or update the existing Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :param dev_tool_portal_resource: Parameters for the create or update operation. Required. :type dev_tool_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DevToolPortalResource]: """Create the default Dev Tool Portal or update the existing Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :param dev_tool_portal_resource: Parameters for the create or update operation. Required. :type dev_tool_portal_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.DevToolPortalResource]: """Create the default Dev Tool Portal or update the existing Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a DevToolPortalResource type or a IO[bytes] type. Required. :type dev_tool_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource or IO[bytes] :return: An instance of LROPoller that returns either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, dev_tool_portal_name=dev_tool_portal_name, dev_tool_portal_resource=dev_tool_portal_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("DevToolPortalResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.DevToolPortalResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.DevToolPortalResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, dev_tool_portal_name=dev_tool_portal_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, None, response_headers) # type: ignore @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any ) -> LROPoller[None]: """Disable the default Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, dev_tool_portal_name=dev_tool_portal_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method)
class DevToolPortalsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`dev_tool_portals` attribute. ''' def __init__(self, *args, **kwargs): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, **kwargs: Any ) -> Iterable["_models.DevToolPortalResource"]: '''Handles requests to list all resources in a Service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :return: An iterator like instance of either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass @distributed_trace def get_next(next_link=None): '''Get the Application Live and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :return: DevToolPortalResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _create_or_update_initial( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], **kwargs: Any ) -> _models.DevToolPortalResource: pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: _models.DevToolPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DevToolPortalResource]: '''Create the default Dev Tool Portal or update the existing Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :param dev_tool_portal_resource: Parameters for the create or update operation. Required. :type dev_tool_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: _models.DevToolPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DevToolPortalResource]: '''Create the default Dev Tool Portal or update the existing Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :param dev_tool_portal_resource: Parameters for the create or update operation. Required. :type dev_tool_portal_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, dev_tool_portal_resource: _models.DevToolPortalResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DevToolPortalResource]: '''Create the default Dev Tool Portal or update the existing Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a DevToolPortalResource type or a IO[bytes] type. Required. :type dev_tool_portal_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource or IO[bytes] :return: An instance of LROPoller that returns either DevToolPortalResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any ) -> LROPoller[None]: '''Disable the default Dev Tool Portal. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param dev_tool_portal_name: The name of Dev Tool Portal. Required. :type dev_tool_portal_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass
21
7
37
4
26
8
3
0.37
0
7
0
0
9
5
9
9
479
62
316
135
255
118
163
89
148
6
0
1
42
10,172
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/operations/_deployments_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.operations._deployments_operations.DeploymentsOperations
class DeploymentsOperations: # pylint: disable=too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`deployments` attribute. """ models = _models def __init__(self, *args, **kwargs): input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def get( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> _models.DeploymentResource: """Get a Deployment and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: DeploymentResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("DeploymentResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: Union[_models.DeploymentResource, IO[bytes]], **kwargs: Any ) -> _models.DeploymentResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(deployment_resource, (IOBase, bytes)): _content = deployment_resource else: _json = self._serialize.body(deployment_resource, "DeploymentResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("DeploymentResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("DeploymentResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("DeploymentResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: """Create a new Deployment or update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the create or update operation. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: """Create a new Deployment or update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the create or update operation. Required. :type deployment_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: Union[_models.DeploymentResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: """Create a new Deployment or update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the create or update operation. Is either a DeploymentResource type or a IO[bytes] type. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource or IO[bytes] :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, deployment_resource=deployment_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("DeploymentResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.DeploymentResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.DeploymentResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: """Operation to delete a Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: Union[_models.DeploymentResource, IO[bytes]], **kwargs: Any ) -> _models.DeploymentResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(deployment_resource, (IOBase, bytes)): _content = deployment_resource else: _json = self._serialize.body(deployment_resource, "DeploymentResource") _request = build_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("DeploymentResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("DeploymentResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: """Operation to update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the update operation. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: """Operation to update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the update operation. Required. :type deployment_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: Union[_models.DeploymentResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: """Operation to update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource type or a IO[bytes] type. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource or IO[bytes] :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, deployment_resource=deployment_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("DeploymentResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.DeploymentResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.DeploymentResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @distributed_trace def list( self, resource_group_name: str, service_name: str, app_name: str, version: Optional[List[str]] = None, **kwargs: Any ) -> Iterable["_models.DeploymentResource"]: """Handles requests to list all resources in an App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param version: Version of the deployments to be listed. Default value is None. :type version: list[str] :return: An iterator like instance of either DeploymentResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, version=version, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) @distributed_trace def list_for_cluster( self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, expand: Optional[str] = None, **kwargs: Any ) -> Iterable["_models.DeploymentResource"]: """List deployments for a certain service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param version: Version of the deployments to be listed. Default value is None. :type version: list[str] :param expand: The expand expression to apply on the operation. Default value is None. :type expand: str :return: An iterator like instance of either DeploymentResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_for_cluster_request( resource_group_name=resource_group_name, service_name=service_name, subscription_id=self._config.subscription_id, version=version, expand=expand, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) def _start_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_start_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_start( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: """Start the deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._start_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_stop_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_stop( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: """Stop the deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._stop_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _restart_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_restart_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_restart( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: """Restart the deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._restart_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _enable_remote_debugging_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, **kwargs: Any ) -> _models.RemoteDebugging: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(remote_debugging_payload, (IOBase, bytes)): _content = remote_debugging_payload else: if remote_debugging_payload is not None: _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") else: _json = None _request = build_enable_remote_debugging_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("RemoteDebugging", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("RemoteDebugging", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_enable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: """Enable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. :type remote_debugging_payload: ~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebuggingPayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_enable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: """Enable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. :type remote_debugging_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_enable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: """Enable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param remote_debugging_payload: Parameters for enable remote debugging. Is either a RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. :type remote_debugging_payload: ~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebuggingPayload or IO[bytes] :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._enable_remote_debugging_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, remote_debugging_payload=remote_debugging_payload, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("RemoteDebugging", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.RemoteDebugging].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.RemoteDebugging]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _disable_remote_debugging_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> _models.RemoteDebugging: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) _request = build_disable_remote_debugging_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("RemoteDebugging", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("RemoteDebugging", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace def begin_disable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: """Disable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._disable_remote_debugging_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("RemoteDebugging", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.RemoteDebugging].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.RemoteDebugging]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @distributed_trace def get_remote_debugging_config( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> _models.RemoteDebugging: """Get remote debugging config. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: RemoteDebugging or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) _request = build_get_remote_debugging_config_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("RemoteDebugging", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @distributed_trace def get_log_file_url( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> Optional[_models.LogFileUrlResponse]: """Get deployment log file URL. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: LogFileUrlResponse or None or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.LogFileUrlResponse or None :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) _request = build_get_log_file_url_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(diagnostic_parameters, (IOBase, bytes)): _content = diagnostic_parameters else: _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") _request = build_generate_heap_dump_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @overload def begin_generate_heap_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Generate Heap Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_generate_heap_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Generate Heap Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_generate_heap_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Generate Heap Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a DiagnosticParameters type or a IO[bytes] type. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._generate_heap_dump_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, diagnostic_parameters=diagnostic_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(diagnostic_parameters, (IOBase, bytes)): _content = diagnostic_parameters else: _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") _request = build_generate_thread_dump_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @overload def begin_generate_thread_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Generate Thread Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_generate_thread_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Generate Thread Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_generate_thread_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Generate Thread Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a DiagnosticParameters type or a IO[bytes] type. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._generate_thread_dump_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, diagnostic_parameters=diagnostic_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _start_jfr_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(diagnostic_parameters, (IOBase, bytes)): _content = diagnostic_parameters else: _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") _request = build_start_jfr_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @overload def begin_start_jfr( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Start JFR. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_start_jfr( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Start JFR. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_start_jfr( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Start JFR. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a DiagnosticParameters type or a IO[bytes] type. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._start_jfr_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, deployment_name=deployment_name, diagnostic_parameters=diagnostic_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method)
class DeploymentsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`deployments` attribute. ''' def __init__(self, *args, **kwargs): pass @distributed_trace def get( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> _models.DeploymentResource: '''Get a Deployment and its properties. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: DeploymentResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: Union[_models.DeploymentResource, IO[bytes]], **kwargs: Any ) -> _models.DeploymentResource: pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: '''Create a new Deployment or update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the create or update operation. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: '''Create a new Deployment or update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the create or update operation. Required. :type deployment_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: '''Create a new Deployment or update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the create or update operation. Is either a DeploymentResource type or a IO[bytes] type. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource or IO[bytes] :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: '''Operation to delete a Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: Union[_models.DeploymentResource, IO[bytes]], **kwargs: Any ) -> _models.DeploymentResource: pass @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: '''Operation to update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the update operation. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: '''Operation to update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the update operation. Required. :type deployment_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_update( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, deployment_resource: _models.DeploymentResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.DeploymentResource]: '''Operation to update an exiting Deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource type or a IO[bytes] type. Required. :type deployment_resource: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource or IO[bytes] :return: An instance of LROPoller that returns either DeploymentResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, app_name: str, version: Optional[List[str]] = None, **kwargs: Any ) -> Iterable["_models.DeploymentResource"]: '''Handles requests to list all resources in an App. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param version: Version of the deployments to be listed. Default value is None. :type version: list[str] :return: An iterator like instance of either DeploymentResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass @distributed_trace def list_for_cluster( self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, expand: Optional[str] = None, **kwargs: Any ) -> Iterable["_models.DeploymentResource"]: '''List deployments for a certain service. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param version: Version of the deployments to be listed. Default value is None. :type version: list[str] :param expand: The expand expression to apply on the operation. Default value is None. :type expand: str :return: An iterator like instance of either DeploymentResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass def _start_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_start( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: '''Start the deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_stop( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: '''Stop the deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _restart_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_restart( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[None]: '''Restart the deployment. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _enable_remote_debugging_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, **kwargs: Any ) -> _models.RemoteDebugging: pass @overload def begin_enable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: '''Enable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. :type remote_debugging_payload: ~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebuggingPayload :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_enable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: '''Enable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. :type remote_debugging_payload: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_enable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: '''Enable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param remote_debugging_payload: Parameters for enable remote debugging. Is either a RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. :type remote_debugging_payload: ~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebuggingPayload or IO[bytes] :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _disable_remote_debugging_initial( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> _models.RemoteDebugging: pass @distributed_trace def begin_disable_remote_debugging( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> LROPoller[_models.RemoteDebugging]: '''Disable remote debugging. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: An instance of LROPoller that returns either RemoteDebugging or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def get_remote_debugging_config( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> _models.RemoteDebugging: '''Get remote debugging config. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: RemoteDebugging or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.RemoteDebugging :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def get_log_file_url( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any ) -> Optional[_models.LogFileUrlResponse]: '''Get deployment log file URL. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :return: LogFileUrlResponse or None or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.LogFileUrlResponse or None :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> None: pass @overload def begin_generate_heap_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Generate Heap Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_generate_heap_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Generate Heap Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_generate_heap_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Generate Heap Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a DiagnosticParameters type or a IO[bytes] type. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> None: pass @overload def begin_generate_thread_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Generate Thread Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_generate_thread_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Generate Thread Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_generate_thread_dump( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Generate Thread Dump. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a DiagnosticParameters type or a IO[bytes] type. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _start_jfr_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], **kwargs: Any ) -> None: pass @overload def begin_start_jfr( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Start JFR. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_start_jfr( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Start JFR. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Required. :type diagnostic_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_start_jfr( self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, diagnostic_parameters: _models.DiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: '''Start JFR. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param deployment_name: The name of the Deployment resource. Required. :type deployment_name: str :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a DiagnosticParameters type or a IO[bytes] type. Required. :type diagnostic_parameters: ~azure.mgmt.appplatform.v2023_12_01.models.DiagnosticParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass
86
29
40
4
27
11
3
0.41
0
7
0
0
40
5
40
40
2,208
248
1,452
637
1,110
591
664
353
606
7
0
2
168
10,173
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/operations/_customized_accelerators_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.operations._customized_accelerators_operations.CustomizedAcceleratorsOperations
class CustomizedAcceleratorsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`customized_accelerators` attribute. """ models = _models def __init__(self, *args, **kwargs): input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def list( self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any ) -> Iterable["_models.CustomizedAcceleratorResource"]: """Handle requests to list all customized accelerators. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :return: An iterator like instance of either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) @distributed_trace def get( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, **kwargs: Any ) -> _models.CustomizedAcceleratorResource: """Get the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :return: CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, customized_accelerator_name=customized_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _create_or_update_initial( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], **kwargs: Any ) -> _models.CustomizedAcceleratorResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(customized_accelerator_resource, (IOBase, bytes)): _content = customized_accelerator_resource else: _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, customized_accelerator_name=customized_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: _models.CustomizedAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorResource]: """Create or update the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param customized_accelerator_resource: The customized accelerator for the create or update operation. Required. :type customized_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorResource]: """Create or update the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param customized_accelerator_resource: The customized accelerator for the create or update operation. Required. :type customized_accelerator_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorResource]: """Create or update the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param customized_accelerator_resource: The customized accelerator for the create or update operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. :type customized_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource or IO[bytes] :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, customized_accelerator_name=customized_accelerator_name, customized_accelerator_resource=customized_accelerator_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.CustomizedAcceleratorResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, customized_accelerator_name=customized_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, None, response_headers) # type: ignore @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, **kwargs: Any ) -> LROPoller[None]: """Delete the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, customized_accelerator_name=customized_accelerator_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _validate_initial( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], **kwargs: Any ) -> Optional[_models.CustomizedAcceleratorValidateResult]: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(properties, (IOBase, bytes)): _content = properties else: _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") _request = build_validate_request( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, customized_accelerator_name=customized_accelerator_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None response_headers = {} if response.status_code == 200: deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload def begin_validate( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: _models.CustomizedAcceleratorProperties, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: """Check the customized accelerator are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param properties: Customized accelerator properties to be validated. Required. :type properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_validate( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: """Check the customized accelerator are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param properties: Customized accelerator properties to be validated. Required. :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_validate( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: """Check the customized accelerator are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param properties: Customized accelerator properties to be validated. Is either a CustomizedAcceleratorProperties type or a IO[bytes] type. Required. :type properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties or IO[bytes] :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomizedAcceleratorValidateResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._validate_initial( resource_group_name=resource_group_name, service_name=service_name, application_accelerator_name=application_accelerator_name, customized_accelerator_name=customized_accelerator_name, properties=properties, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.CustomizedAcceleratorValidateResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.CustomizedAcceleratorValidateResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore )
class CustomizedAcceleratorsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`customized_accelerators` attribute. ''' def __init__(self, *args, **kwargs): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any ) -> Iterable["_models.CustomizedAcceleratorResource"]: '''Handle requests to list all customized accelerators. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :return: An iterator like instance of either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass @distributed_trace def get_next(next_link=None): '''Get the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :return: CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _create_or_update_initial( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], **kwargs: Any ) -> _models.CustomizedAcceleratorResource: pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: _models.CustomizedAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorResource]: '''Create or update the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param customized_accelerator_resource: The customized accelerator for the create or update operation. Required. :type customized_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: _models.CustomizedAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorResource]: '''Create or update the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param customized_accelerator_resource: The customized accelerator for the create or update operation. Required. :type customized_accelerator_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, customized_accelerator_resource: _models.CustomizedAcceleratorResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorResource]: '''Create or update the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param customized_accelerator_resource: The customized accelerator for the create or update operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. :type customized_accelerator_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource or IO[bytes] :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, **kwargs: Any ) -> LROPoller[None]: '''Delete the customized accelerator. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _validate_initial( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], **kwargs: Any ) -> Optional[_models.CustomizedAcceleratorValidateResult]: pass @overload def begin_validate( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: _models.CustomizedAcceleratorProperties, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: '''Check the customized accelerator are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param properties: Customized accelerator properties to be validated. Required. :type properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_validate( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: _models.CustomizedAcceleratorProperties, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: '''Check the customized accelerator are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param properties: Customized accelerator properties to be validated. Required. :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_validate( self, resource_group_name: str, service_name: str, application_accelerator_name: str, customized_accelerator_name: str, properties: _models.CustomizedAcceleratorProperties, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: '''Check the customized accelerator are valid. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param application_accelerator_name: The name of the application accelerator. Required. :type application_accelerator_name: str :param customized_accelerator_name: The name of the customized accelerator. Required. :type customized_accelerator_name: str :param properties: Customized accelerator properties to be validated. Is either a CustomizedAcceleratorProperties type or a IO[bytes] type. Required. :type properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties or IO[bytes] :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResult] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass
29
10
41
4
28
10
3
0.42
0
7
0
0
13
5
13
13
739
83
479
223
355
199
221
119
201
6
0
1
57
10,174
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/operations/_custom_domains_operations.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.operations._custom_domains_operations.CustomDomainsOperations
class CustomDomainsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`custom_domains` attribute. """ models = _models def __init__(self, *args, **kwargs): input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") @distributed_trace def get( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any ) -> _models.CustomDomainResource: """Get the custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :return: CustomDomainResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) _request = build_get_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize("CustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: Union[_models.CustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.CustomDomainResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(domain_resource, (IOBase, bytes)): _content = domain_resource else: _json = self._serialize.body(domain_resource, "CustomDomainResource") _request = build_create_or_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("CustomDomainResource", pipeline_response) if response.status_code == 201: deserialized = self._deserialize("CustomDomainResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("CustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: """Create or update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: """Create or update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: Union[_models.CustomDomainResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: """Create or update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Is either a CustomDomainResource type or a IO[bytes] type. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource or IO[bytes] :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, domain_name=domain_name, domain_resource=domain_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("CustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.CustomDomainResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.CustomDomainResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any ) -> None: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any ) -> LROPoller[None]: """Delete the custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, domain_name=domain_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: Union[_models.CustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.CustomDomainResource: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None if isinstance(domain_resource, (IOBase, bytes)): _content = domain_resource else: _json = self._serialize.body(domain_resource, "CustomDomainResource") _request = build_update_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, domain_name=domain_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize("CustomDomainResource", pipeline_response) if response.status_code == 202: deserialized = self._deserialize("CustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: """Update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: """Update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace def begin_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: Union[_models.CustomDomainResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: """Update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Is either a CustomDomainResource type or a IO[bytes] type. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource or IO[bytes] :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._update_initial( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, domain_name=domain_name, domain_resource=domain_resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): deserialized = self._deserialize("CustomDomainResource", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller[_models.CustomDomainResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) return LROPoller[_models.CustomDomainResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @distributed_trace def list( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> Iterable["_models.CustomDomainResource"]: """List the custom domains of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: An iterator like instance of either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-12-01")) cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: _request = build_list_request( resource_group_name=resource_group_name, service_name=service_name, app_name=app_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version _parsed_next_link = urllib.parse.urlparse(next_link) _next_request_params = case_insensitive_dict( { key: [urllib.parse.quote(v) for v in value] for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() } ) _next_request_params["api-version"] = self._api_version _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) _request = _convert_request(_request) _request.url = self._client.format_url(_request.url) _request.method = "GET" return _request def extract_data(pipeline_response): deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data)
class CustomDomainsOperations: ''' .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appplatform.v2023_12_01.AppPlatformManagementClient`'s :attr:`custom_domains` attribute. ''' def __init__(self, *args, **kwargs): pass @distributed_trace def get( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any ) -> _models.CustomDomainResource: '''Get the custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :return: CustomDomainResource or the result of cls(response) :rtype: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource :raises ~azure.core.exceptions.HttpResponseError: ''' pass def _create_or_update_initial( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: Union[_models.CustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.CustomDomainResource: pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: '''Create or update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: '''Create or update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_create_or_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: '''Create or update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Is either a CustomDomainResource type or a IO[bytes] type. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource or IO[bytes] :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any ) -> None: pass @distributed_trace def begin_delete( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any ) -> LROPoller[None]: '''Delete the custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass def _update_initial( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: Union[_models.CustomDomainResource, IO[bytes]], **kwargs: Any ) -> _models.CustomDomainResource: pass @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: '''Update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @overload def begin_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: '''Update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Required. :type domain_resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass @distributed_trace def begin_update( self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, domain_resource: _models.CustomDomainResource, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.CustomDomainResource]: '''Update custom domain of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :param domain_name: The name of the custom domain resource. Required. :type domain_name: str :param domain_resource: Parameters for the create or update operation. Is either a CustomDomainResource type or a IO[bytes] type. Required. :type domain_resource: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource or IO[bytes] :return: An instance of LROPoller that returns either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def get_long_running_output(pipeline_response): pass @distributed_trace def list( self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any ) -> Iterable["_models.CustomDomainResource"]: '''List the custom domains of one lifecycle application. :param resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. :type resource_group_name: str :param service_name: The name of the Service resource. Required. :type service_name: str :param app_name: The name of the App resource. Required. :type app_name: str :return: An iterator like instance of either CustomDomainResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :raises ~azure.core.exceptions.HttpResponseError: ''' pass def prepare_request(next_link=None): pass def extract_data(pipeline_response): pass def get_next(next_link=None): pass
29
10
39
4
27
10
3
0.43
0
7
0
0
13
5
13
13
718
83
461
206
352
196
218
117
198
7
0
1
57
10,175
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_update.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("specification", AAZObjectType, ".", typ_kwargs={ "flags": {"required": True}}) properties.set_prop("status", AAZObjectType, ".status") specification = _builder.get(".properties.specification") if specification is not None: specification.set_prop( "autoProvisionConfig", AAZObjectType, ".auto_provision_config") specification.set_prop("canary", AAZObjectType, ".canary") specification.set_prop( "manifestCheckinSpecification", AAZObjectType, ".manifest_checkin_specification") specification.set_prop( "providerRegistration", AAZObjectType, ".provider_registration") specification.set_prop( "refreshSubscriptionRegistration", AAZBoolType, ".refresh_subscription_registration") specification.set_prop( "releaseScopes", AAZListType, ".release_scopes") specification.set_prop( "resourceTypeRegistrations", AAZListType, ".resource_type_registrations") specification.set_prop( "skipReleaseScopeValidation", AAZBoolType, ".skip_release_scope_validation") auto_provision_config = _builder.get( ".properties.specification.autoProvisionConfig") if auto_provision_config is not None: auto_provision_config.set_prop( "resourceGraph", AAZBoolType, ".resource_graph") auto_provision_config.set_prop( "storage", AAZBoolType, ".storage") canary = _builder.get(".properties.specification.canary") if canary is not None: canary.set_prop("regions", AAZListType, ".regions") regions = _builder.get(".properties.specification.canary.regions") if regions is not None: regions.set_elements(AAZStrType, ".") manifest_checkin_specification = _builder.get( ".properties.specification.manifestCheckinSpecification") if manifest_checkin_specification is not None: manifest_checkin_specification.set_prop( "manifestCheckinOption", AAZStrType, ".manifest_checkin_option") manifest_checkin_specification.set_prop( "manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") manifest_checkin_params = _builder.get( ".properties.specification.manifestCheckinSpecification.manifestCheckinParams") if manifest_checkin_params is not None: manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) manifest_checkin_params.set_prop( "environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) provider_registration = _builder.get( ".properties.specification.providerRegistration") if provider_registration is not None: provider_registration.set_prop("kind", AAZStrType, ".kind") provider_registration.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.providerRegistration.properties") if properties is not None: properties.set_prop( "capabilities", AAZListType, ".capabilities") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop( "globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") properties.set_prop( "metadata", AAZFreeFormDictType, ".metadata") properties.set_prop("namespace", AAZStrType, ".namespace") properties.set_prop("notificationOptions", AAZStrType, ".notification_options") properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") _UpdateHelper._build_schema_notifications_update( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("optionalFeatures", AAZListType, ".optional_features") properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") properties.set_prop( "providerType", AAZStrType, ".provider_type") properties.set_prop("providerVersion", AAZStrType, ".provider_version") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("responseOptions", AAZObjectType, ".response_options") properties.set_prop("serviceName", AAZStrType, ".service_name") properties.set_prop("services", AAZListType, ".services") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) capabilities = _builder.get( ".properties.specification.providerRegistration.properties.capabilities") if capabilities is not None: capabilities.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[]") if _elements is not None: _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) features_rule = _builder.get( ".properties.specification.providerRegistration.properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.globalNotificationEndpoints") if global_notification_endpoints is not None: _UpdateHelper._build_schema_resource_provider_endpoint_update( global_notification_endpoints.set_elements(AAZObjectType, ".")) legacy_registrations = _builder.get( ".properties.specification.providerRegistration.properties.legacyRegistrations") if legacy_registrations is not None: legacy_registrations.set_elements(AAZStrType, ".") linked_notification_rules = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("endpoints", AAZListType, ".endpoints") _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) actions = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") if endpoints is not None: _UpdateHelper._build_schema_resource_provider_endpoint_update( endpoints.set_elements(AAZObjectType, ".")) management = _builder.get( ".properties.specification.providerRegistration.properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.providerRegistration.properties.management.resourceAccessRoles") if resource_access_roles is not None: _UpdateHelper._build_schema_resource_access_role_update( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.providerRegistration.properties.management.serviceTreeInfos") if service_tree_infos is not None: _UpdateHelper._build_schema_service_tree_info_update( service_tree_infos.set_elements(AAZObjectType, ".")) management_group_global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") if management_group_global_notification_endpoints is not None: _UpdateHelper._build_schema_resource_provider_endpoint_update( management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) metadata = _builder.get( ".properties.specification.providerRegistration.properties.metadata") if metadata is not None: metadata.set_anytype_elements(".") notification_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings") if notification_settings is not None: notification_settings.set_prop( "subscriberSettings", AAZListType, ".subscriber_settings") subscriber_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") if subscriber_settings is not None: subscriber_settings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") if _elements is not None: _elements.set_prop("filterRules", AAZListType, ".filter_rules") filter_rules = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") if filter_rules is not None: filter_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") if _elements is not None: _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") _elements.set_prop("filterQuery", AAZStrType, ".filter_query") endpoint_information = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") if endpoint_information is not None: endpoint_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") if _elements is not None: _elements.set_prop("endpoint", AAZStrType, ".endpoint") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop( "schemaVersion", AAZStrType, ".schema_version") optional_features = _builder.get( ".properties.specification.providerRegistration.properties.optionalFeatures") if optional_features is not None: optional_features.set_elements(AAZStrType, ".") private_resource_provider_configuration = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") if private_resource_provider_configuration is not None: private_resource_provider_configuration.set_prop( "allowedSubscriptions", AAZListType, ".allowed_subscriptions") allowed_subscriptions = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") if allowed_subscriptions is not None: allowed_subscriptions.set_elements(AAZStrType, ".") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthorizations") if provider_authorizations is not None: _UpdateHelper._build_schema_resource_provider_authorization_update( provider_authorizations.set_elements(AAZObjectType, ".")) provider_hub_metadata = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata") if provider_hub_metadata is not None: provider_hub_metadata.set_prop( "directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") provider_hub_metadata.set_prop( "globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") provider_hub_metadata.set_prop( "providerAuthentication", AAZObjectType, ".provider_authentication") provider_hub_metadata.set_prop( "providerAuthorizations", AAZListType, ".provider_authorizations") provider_hub_metadata.set_prop( "regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") provider_hub_metadata.set_prop( "thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") if provider_authorizations is not None: _UpdateHelper._build_schema_resource_provider_authorization_update( provider_authorizations.set_elements(AAZObjectType, ".")) third_party_provider_authorization = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") if third_party_provider_authorization is not None: third_party_provider_authorization.set_prop( "authorizations", AAZListType, ".authorizations") third_party_provider_authorization.set_prop( "managedByTenantId", AAZStrType, ".managed_by_tenant_id") authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") if authorizations is not None: authorizations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") if _elements is not None: _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={ "flags": {"required": True}}) request_header_options = _builder.get( ".properties.specification.providerRegistration.properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.providerRegistration.properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_group_lock_option_during_move = _builder.get( ".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") if resource_group_lock_option_during_move is not None: resource_group_lock_option_during_move.set_prop( "blockActionVerb", AAZStrType, ".block_action_verb") resource_hydration_accounts = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts") if resource_hydration_accounts is not None: resource_hydration_accounts.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") if _elements is not None: _elements.set_prop("accountName", AAZStrType, ".account_name") _elements.set_prop( "encryptedKey", AAZStrType, ".encrypted_key") _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") _elements.set_prop( "subscriptionId", AAZStrType, ".subscription_id") response_options = _builder.get( ".properties.specification.providerRegistration.properties.responseOptions") if response_options is not None: response_options.set_prop( "serviceClientOptionsType", AAZStrType, ".service_client_options_type") services = _builder.get( ".properties.specification.providerRegistration.properties.services") if services is not None: services.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.services[]") if _elements is not None: _elements.set_prop("serviceName", AAZStrType, ".service_name") _elements.set_prop("status", AAZStrType, ".status") subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _UpdateHelper._build_schema_subscription_state_override_action_update( subscription_state_override_actions.set_elements(AAZObjectType, ".")) template_deployment_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") release_scopes = _builder.get( ".properties.specification.releaseScopes") if release_scopes is not None: release_scopes.set_elements(AAZStrType, ".") resource_type_registrations = _builder.get( ".properties.specification.resourceTypeRegistrations") if resource_type_registrations is not None: resource_type_registrations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[]") if _elements is not None: _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties") if properties is not None: properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") properties.set_prop("additionalOptions", AAZStrType, ".additional_options") properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") properties.set_prop( "allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") properties.set_prop( "apiProfiles", AAZListType, ".api_profiles") properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") properties.set_prop( "authorizationActionMappings", AAZListType, ".authorization_action_mappings") properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") properties.set_prop( "capacityRule", AAZObjectType, ".capacity_rule") properties.set_prop("category", AAZStrType, ".category") properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") properties.set_prop( "disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") properties.set_prop("endpoints", AAZListType, ".endpoints") properties.set_prop("extendedLocations", AAZListType, ".extended_locations") properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") properties.set_prop("identityManagement", AAZObjectType, ".identity_management") properties.set_prop( "isPureProxy", AAZBoolType, ".is_pure_proxy") properties.set_prop("legacyName", AAZStrType, ".legacy_name") properties.set_prop( "legacyNames", AAZListType, ".legacy_names") properties.set_prop( "legacyPolicy", AAZObjectType, ".legacy_policy") properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") properties.set_prop( "loggingRules", AAZListType, ".logging_rules") properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop( "manifestLink", AAZStrType, ".manifest_link") properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") properties.set_prop("metadata", AAZDictType, ".metadata") _UpdateHelper._build_schema_notifications_update( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") properties.set_prop("regionality", AAZStrType, ".regionality") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop( "resourceCache", AAZObjectType, ".resource_cache") properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") properties.set_prop( "resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") properties.set_prop( "routingRule", AAZObjectType, ".routing_rule") properties.set_prop("routingType", AAZStrType, ".routing_type") properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") properties.set_prop("skuLink", AAZStrType, ".sku_link") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") properties.set_prop( "supportsTags", AAZBoolType, ".supports_tags") properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) allowed_resource_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") if allowed_resource_names is not None: allowed_resource_names.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") if _elements is not None: _elements.set_prop( "getActionVerb", AAZStrType, ".get_action_verb") _elements.set_prop("name", AAZStrType, ".name") allowed_template_deployment_reference_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") if allowed_template_deployment_reference_actions is not None: allowed_template_deployment_reference_actions.set_elements( AAZStrType, ".") allowed_unauthorized_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") if allowed_unauthorized_actions is not None: allowed_unauthorized_actions.set_elements(AAZStrType, ".") api_profiles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") if api_profiles is not None: api_profiles.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop( "profileVersion", AAZStrType, ".profile_version") async_timeout_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") if async_timeout_rules is not None: async_timeout_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop("timeout", AAZStrType, ".timeout") authorization_action_mappings = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") if authorization_action_mappings is not None: authorization_action_mappings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") if _elements is not None: _elements.set_prop("desired", AAZStrType, ".desired") _elements.set_prop("original", AAZStrType, ".original") availability_zone_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") if availability_zone_rule is not None: availability_zone_rule.set_prop( "availabilityZonePolicy", AAZStrType, ".availability_zone_policy") capacity_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.capacityRule") if capacity_rule is not None: capacity_rule.set_prop( "capacityPolicy", AAZStrType, ".capacity_policy") capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") check_name_availability_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") if check_name_availability_specifications is not None: check_name_availability_specifications.set_prop( "enableDefaultValidation", AAZBoolType, ".enable_default_validation") check_name_availability_specifications.set_prop( "resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") resource_types_with_custom_validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") if resource_types_with_custom_validation is not None: resource_types_with_custom_validation.set_elements( AAZStrType, ".") common_api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") if common_api_versions is not None: common_api_versions.set_elements(AAZStrType, ".") disallowed_action_verbs = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") if disallowed_action_verbs is not None: disallowed_action_verbs.set_elements(AAZStrType, ".") disallowed_end_user_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") if disallowed_end_user_operations is not None: disallowed_end_user_operations.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints") if endpoints is not None: endpoints.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop( "dataBoundary", AAZStrType, ".data_boundary") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("enabled", AAZBoolType, ".enabled") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensions", AAZListType, ".extensions") _elements.set_prop( "featuresRule", AAZObjectType, ".features_rule") _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("locations", AAZListType, ".locations") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") _elements.set_prop("skuLink", AAZStrType, ".sku_link") _elements.set_prop("timeout", AAZStrType, ".timeout") _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) _elements.set_prop("zones", AAZListType, ".zones") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) extensions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") if extensions is not None: extensions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") if _elements is not None: _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") _elements.set_prop("timeout", AAZStrType, ".timeout") extension_categories = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") if extension_categories is not None: extension_categories.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") if locations is not None: locations.set_elements(AAZStrType, ".") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") zones = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") if zones is not None: zones.set_elements(AAZStrType, ".") extended_locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") if extended_locations is not None: extended_locations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") if _elements is not None: _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") _elements.set_prop("type", AAZStrType, ".type") extension_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") if extension_options is not None: extension_options.set_prop( "resourceCreationBegin", AAZObjectType, ".resource_creation_begin") resource_creation_begin = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") if resource_creation_begin is not None: resource_creation_begin.set_prop( "request", AAZListType, ".request") resource_creation_begin.set_prop( "response", AAZListType, ".response") request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") if request is not None: request.set_elements(AAZStrType, ".") response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") if response is not None: response.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) identity_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement") if identity_management is not None: identity_management.set_prop( "applicationId", AAZStrType, ".application_id") identity_management.set_prop( "applicationIds", AAZListType, ".application_ids") identity_management.set_prop( "delegationAppIds", AAZListType, ".delegation_app_ids") identity_management.set_prop("type", AAZStrType, ".type") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") delegation_app_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") if delegation_app_ids is not None: delegation_app_ids.set_elements(AAZStrType, ".") legacy_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyNames") if legacy_names is not None: legacy_names.set_elements(AAZStrType, ".") legacy_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") if legacy_policy is not None: legacy_policy.set_prop( "disallowedConditions", AAZListType, ".disallowed_conditions") legacy_policy.set_prop( "disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") disallowed_conditions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") if disallowed_conditions is not None: disallowed_conditions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") if _elements is not None: _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") _elements.set_prop("feature", AAZStrType, ".feature") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") linked_access_checks = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") if linked_access_checks is not None: linked_access_checks.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop( "linkedAction", AAZStrType, ".linked_action") _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") linked_notification_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") if actions_on_failed_operation is not None: actions_on_failed_operation.set_elements(AAZStrType, ".") fast_path_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") if fast_path_actions is not None: fast_path_actions.set_elements(AAZStrType, ".") fast_path_actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") if fast_path_actions_on_failed_operation is not None: fast_path_actions_on_failed_operation.set_elements( AAZStrType, ".") linked_operation_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") if linked_operation_rules is not None: linked_operation_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") if _elements is not None: _elements.set_prop( "dependsOnTypes", AAZListType, ".depends_on_types") _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={ "flags": {"required": True}}) depends_on_types = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") if depends_on_types is not None: depends_on_types.set_elements(AAZStrType, ".") logging_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules") if logging_rules is not None: logging_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") hidden_property_paths = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") if hidden_property_paths is not None: hidden_property_paths.set_prop( "hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") hidden_property_paths.set_prop( "hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") hidden_paths_on_request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") if hidden_paths_on_request is not None: hidden_paths_on_request.set_elements(AAZStrType, ".") hidden_paths_on_response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") if hidden_paths_on_response is not None: hidden_paths_on_response.set_elements(AAZStrType, ".") managed_resource_group_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") if managed_resource_group_configuration is not None: managed_resource_group_configuration.set_prop( "applicationIds", AAZListType, ".application_ids") managed_resource_group_configuration.set_prop( "denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") managed_resource_group_configuration.set_prop( "enabled", AAZBoolType, ".enabled") managed_resource_group_configuration.set_prop( "resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") deny_assignment_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") if deny_assignment_configuration is not None: deny_assignment_configuration.set_prop( "enabled", AAZBoolType, ".enabled") deny_assignment_configuration.set_prop( "notActions", AAZListType, ".not_actions") not_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") if not_actions is not None: not_actions.set_elements(AAZStrType, ".") management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") if resource_access_roles is not None: _UpdateHelper._build_schema_resource_access_role_update( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") if service_tree_infos is not None: _UpdateHelper._build_schema_service_tree_info_update( service_tree_infos.set_elements(AAZObjectType, ".")) marketplace_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") if marketplace_options is not None: marketplace_options.set_prop( "addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata") if metadata is not None: metadata.set_elements(AAZFreeFormDictType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata{}") if _elements is not None: _elements.set_anytype_elements(".") on_behalf_of_tokens = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") if on_behalf_of_tokens is not None: on_behalf_of_tokens.set_prop( "actionName", AAZStrType, ".action_name") on_behalf_of_tokens.set_prop( "lifeTime", AAZStrType, ".life_time") open_api_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") if open_api_configuration is not None: open_api_configuration.set_prop( "validation", AAZObjectType, ".validation") validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") if validation is not None: validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") private_endpoint_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") if private_endpoint_configuration is not None: private_endpoint_configuration.set_prop( "groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) private_endpoint_configuration.set_prop( "minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) group_connectivity_information = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") if group_connectivity_information is not None: group_connectivity_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") if _elements is not None: _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "redirectMapId", AAZStrType, ".redirect_map_id") _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={ "flags": {"required": True}}) required_members = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") if required_members is not None: required_members.set_elements(AAZStrType, ".") required_zone_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") if required_zone_names is not None: required_zone_names.set_elements(AAZStrType, ".") quota_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule") if quota_rule is not None: quota_rule.set_prop( "locationRules", AAZListType, ".location_rules") quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") location_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") if location_rules is not None: location_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") if _elements is not None: _elements.set_prop("location", AAZStrType, ".location") _elements.set_prop("policy", AAZStrType, ".policy") _elements.set_prop("quotaId", AAZStrType, ".quota_id") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") request_header_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_cache = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceCache") if resource_cache is not None: resource_cache.set_prop( "enableResourceCache", AAZBoolType, ".enable_resource_cache") resource_cache.set_prop( "resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") resource_concurrency_control_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") if resource_concurrency_control_options is not None: resource_concurrency_control_options.set_elements( AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") if _elements is not None: _elements.set_prop("policy", AAZStrType, ".policy") resource_graph_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") if resource_graph_configuration is not None: resource_graph_configuration.set_prop( "apiVersion", AAZStrType, ".api_version") resource_graph_configuration.set_prop( "enabled", AAZBoolType, ".enabled") resource_management_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") if resource_management_options is not None: resource_management_options.set_prop( "batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") resource_management_options.set_prop( "deleteDependencies", AAZListType, ".delete_dependencies") resource_management_options.set_prop( "nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") batch_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") if batch_provisioning_support is not None: batch_provisioning_support.set_prop( "supportedOperations", AAZStrType, ".supported_operations") delete_dependencies = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") if delete_dependencies is not None: delete_dependencies.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") if _elements is not None: _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") nested_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") if nested_provisioning_support is not None: nested_provisioning_support.set_prop( "minimumApiVersion", AAZStrType, ".minimum_api_version") resource_move_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") if resource_move_policy is not None: resource_move_policy.set_prop( "crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") resource_move_policy.set_prop( "crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") resource_move_policy.set_prop( "validationRequired", AAZBoolType, ".validation_required") resource_query_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") if resource_query_management is not None: resource_query_management.set_prop( "filterOption", AAZStrType, ".filter_option") resource_type_common_attribute_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") if resource_type_common_attribute_management is not None: resource_type_common_attribute_management.set_prop( "commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") routing_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.routingRule") if routing_rule is not None: routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") if service_tree_infos is not None: _UpdateHelper._build_schema_service_tree_info_update( service_tree_infos.set_elements(AAZObjectType, ".")) subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _UpdateHelper._build_schema_subscription_state_override_action_update( subscription_state_override_actions.set_elements(AAZObjectType, ".")) subscription_state_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") if subscription_state_rules is not None: subscription_state_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") if _elements is not None: _elements.set_prop( "allowedActions", AAZListType, ".allowed_actions") _elements.set_prop("state", AAZStrType, ".state") allowed_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") if allowed_actions is not None: allowed_actions.set_elements(AAZStrType, ".") swagger_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") if swagger_specifications is not None: swagger_specifications.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") if _elements is not None: _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") template_deployment_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") template_deployment_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") if template_deployment_policy is not None: template_deployment_policy.set_prop( "capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) template_deployment_policy.set_prop( "preflightNotifications", AAZStrType, ".preflight_notifications") template_deployment_policy.set_prop( "preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) throttling_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") if throttling_rules is not None: throttling_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "applicationId", AAZListType, ".application_id") _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") application_id = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") if application_id is not None: application_id.set_elements(AAZStrType, ".") metrics = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") if metrics is not None: metrics.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") if _elements is not None: _elements.set_prop("interval", AAZStrType, ".interval") _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={ "flags": {"required": True}}) required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") status = _builder.get(".properties.status") if status is not None: status.set_prop("completedRegions", AAZListType, ".completed_regions") status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") completed_regions = _builder.get( ".properties.status.completedRegions") if completed_regions is not None: completed_regions.set_elements(AAZStrType, ".") failed_or_skipped_regions = _builder.get( ".properties.status.failedOrSkippedRegions") if failed_or_skipped_regions is not None: _UpdateHelper._build_schema_extended_error_info_update( failed_or_skipped_regions.set_elements(AAZObjectType, ".")) manifest_checkin_status = _builder.get( ".properties.status.manifestCheckinStatus") if manifest_checkin_status is not None: manifest_checkin_status.set_prop( "commitId", AAZStrType, ".commit_id") manifest_checkin_status.set_prop( "isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) manifest_checkin_status.set_prop( "pullRequest", AAZStrType, ".pull_request") manifest_checkin_status.set_prop( "statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
529
99
430
0
100
0
1
1
1
0
2
0
2
2
1,061
200
861
133
858
0
857
133
854
198
1
1
199
10,176
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_update.py
azext_providerhub.aaz.latest.providerhub.authorized_application._update.Update.AuthorizedApplicationsCreateOrUpdate
class AuthorizedApplicationsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "applicationId", self.ctx.args.application_id, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _UpdateHelper._build_schema_authorized_application_read( cls._schema_on_200_201) return cls._schema_on_200_201
class AuthorizedApplicationsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
9
0
8
0
1
0
1
1
1
0
9
1
10
10
110
15
95
29
76
0
38
20
27
3
1
1
13
10,177
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_wait.py
azext_providerhub.aaz.latest.providerhub.custom_rollout._wait.Wait.CustomRolloutsGet
class CustomRolloutsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"required": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _WaitHelper._build_schema_system_data_read( _schema_on_200.system_data) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType( flags={"required": True}, ) properties.status = AAZObjectType() specification = cls._schema_on_200.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.refresh_subscription_registration = AAZBoolType( serialized_name="refreshSubscriptionRegistration", ) specification.release_scopes = AAZListType( serialized_name="releaseScopes", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.skip_release_scope_validation = AAZBoolType( serialized_name="skipReleaseScopeValidation", ) auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200.properties.specification.canary canary.regions = AAZListType() regions = cls._schema_on_200.properties.specification.canary.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) provider_registration = cls._schema_on_200.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _WaitHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _WaitHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _WaitHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _WaitHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _WaitHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _WaitHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() release_scopes = cls._schema_on_200.properties.specification.release_scopes release_scopes.Element = AAZStrType() resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _WaitHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _WaitHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _WaitHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _WaitHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _WaitHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _WaitHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _WaitHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() status = cls._schema_on_200.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) completed_regions = cls._schema_on_200.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _WaitHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200
class CustomRolloutsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
179
22
157
0
1
0
1
1
1
0
8
0
9
9
1,628
209
1,419
155
1,402
0
722
148
712
2
1
1
11
10,178
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_delete.py
azext_providerhub.aaz.latest.providerhub.default_rollout._delete.Delete.DefaultRolloutsDelete
class DefaultRolloutsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class DefaultRolloutsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
61
9
52
19
38
0
26
14
17
3
1
1
10
10,179
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_create.py
azext_providerhub.aaz.latest.providerhub.operation._create.Create.OperationsCreateOrUpdate
class OperationsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop("contents", AAZListType, ".contents") contents = _builder.get(".properties.contents") if contents is not None: contents.set_elements(AAZObjectType, ".") _elements = _builder.get(".properties.contents[]") if _elements is not None: _elements.set_prop("actionType", AAZStrType, ".action_type") _elements.set_prop("display", AAZObjectType, ".display", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "isDataAction", AAZBoolType, ".is_data_action") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("origin", AAZStrType, ".origin") display = _builder.get(".properties.contents[].display") if display is not None: display.set_prop("cs", AAZObjectType, ".cs") display.set_prop("de", AAZObjectType, ".de") display.set_prop("default", AAZObjectType, ".default", typ_kwargs={ "flags": {"required": True}}) display.set_prop("en", AAZObjectType, ".en") display.set_prop("es", AAZObjectType, ".es") display.set_prop("fr", AAZObjectType, ".fr") display.set_prop("hu", AAZObjectType, ".hu") display.set_prop("it", AAZObjectType, ".it") display.set_prop("ja", AAZObjectType, ".ja") display.set_prop("ko", AAZObjectType, ".ko") display.set_prop("nl", AAZObjectType, ".nl") display.set_prop("pl", AAZObjectType, ".pl") display.set_prop("ptBR", AAZObjectType, ".pt_br") display.set_prop("ptPT", AAZObjectType, ".pt_pt") display.set_prop("ru", AAZObjectType, ".ru") display.set_prop("sv", AAZObjectType, ".sv") display.set_prop("zhHans", AAZObjectType, ".zh_hans") display.set_prop("zhHant", AAZObjectType, ".zh_hant") cs = _builder.get(".properties.contents[].display.cs") if cs is not None: cs.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) cs.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) cs.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) cs.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) de = _builder.get(".properties.contents[].display.de") if de is not None: de.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) de.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) de.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) de.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) default = _builder.get(".properties.contents[].display.default") if default is not None: default.set_prop("description", AAZStrType, ".description", typ_kwargs={ "flags": {"required": True}}) default.set_prop("operation", AAZStrType, ".operation", typ_kwargs={ "flags": {"required": True}}) default.set_prop("provider", AAZStrType, ".provider", typ_kwargs={ "flags": {"required": True}}) default.set_prop("resource", AAZStrType, ".resource", typ_kwargs={ "flags": {"required": True}}) en = _builder.get(".properties.contents[].display.en") if en is not None: en.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) en.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) en.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) en.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) es = _builder.get(".properties.contents[].display.es") if es is not None: es.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) es.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) es.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) es.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) fr = _builder.get(".properties.contents[].display.fr") if fr is not None: fr.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) fr.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) fr.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) fr.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) hu = _builder.get(".properties.contents[].display.hu") if hu is not None: hu.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) hu.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) hu.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) hu.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) it = _builder.get(".properties.contents[].display.it") if it is not None: it.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) it.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) it.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) it.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) ja = _builder.get(".properties.contents[].display.ja") if ja is not None: ja.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) ja.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) ja.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) ja.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) ko = _builder.get(".properties.contents[].display.ko") if ko is not None: ko.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) ko.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) ko.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) ko.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) nl = _builder.get(".properties.contents[].display.nl") if nl is not None: nl.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) nl.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) nl.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) nl.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) pl = _builder.get(".properties.contents[].display.pl") if pl is not None: pl.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) pl.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) pl.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) pl.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) pt_br = _builder.get(".properties.contents[].display.ptBR") if pt_br is not None: pt_br.set_prop("description", AAZStrType, ".description", typ_kwargs={ "flags": {"required": True}}) pt_br.set_prop("operation", AAZStrType, ".operation", typ_kwargs={ "flags": {"required": True}}) pt_br.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) pt_br.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) pt_pt = _builder.get(".properties.contents[].display.ptPT") if pt_pt is not None: pt_pt.set_prop("description", AAZStrType, ".description", typ_kwargs={ "flags": {"required": True}}) pt_pt.set_prop("operation", AAZStrType, ".operation", typ_kwargs={ "flags": {"required": True}}) pt_pt.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) pt_pt.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) ru = _builder.get(".properties.contents[].display.ru") if ru is not None: ru.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) ru.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) ru.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) ru.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) sv = _builder.get(".properties.contents[].display.sv") if sv is not None: sv.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) sv.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) sv.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) sv.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) zh_hans = _builder.get(".properties.contents[].display.zhHans") if zh_hans is not None: zh_hans.set_prop("description", AAZStrType, ".description", typ_kwargs={ "flags": {"required": True}}) zh_hans.set_prop("operation", AAZStrType, ".operation", typ_kwargs={ "flags": {"required": True}}) zh_hans.set_prop("provider", AAZStrType, ".provider", typ_kwargs={ "flags": {"required": True}}) zh_hans.set_prop("resource", AAZStrType, ".resource", typ_kwargs={ "flags": {"required": True}}) zh_hant = _builder.get(".properties.contents[].display.zhHant") if zh_hant is not None: zh_hant.set_prop("description", AAZStrType, ".description", typ_kwargs={ "flags": {"required": True}}) zh_hant.set_prop("operation", AAZStrType, ".operation", typ_kwargs={ "flags": {"required": True}}) zh_hant.set_prop("provider", AAZStrType, ".provider", typ_kwargs={ "flags": {"required": True}}) zh_hant.set_prop("resource", AAZStrType, ".resource", typ_kwargs={ "flags": {"required": True}}) return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.contents = AAZListType() contents = cls._schema_on_200.properties.contents contents.Element = AAZObjectType() _element = cls._schema_on_200.properties.contents.Element _element.action_type = AAZStrType( serialized_name="actionType", ) _element.display = AAZObjectType( flags={"required": True}, ) _element.is_data_action = AAZBoolType( serialized_name="isDataAction", ) _element.name = AAZStrType( flags={"required": True}, ) _element.origin = AAZStrType() display = cls._schema_on_200.properties.contents.Element.display display.cs = AAZObjectType() display.de = AAZObjectType() display.default = AAZObjectType( flags={"required": True}, ) display.en = AAZObjectType() display.es = AAZObjectType() display.fr = AAZObjectType() display.hu = AAZObjectType() display.it = AAZObjectType() display.ja = AAZObjectType() display.ko = AAZObjectType() display.nl = AAZObjectType() display.pl = AAZObjectType() display.pt_br = AAZObjectType( serialized_name="ptBR", ) display.pt_pt = AAZObjectType( serialized_name="ptPT", ) display.ru = AAZObjectType() display.sv = AAZObjectType() display.zh_hans = AAZObjectType( serialized_name="zhHans", ) display.zh_hant = AAZObjectType( serialized_name="zhHant", ) cs = cls._schema_on_200.properties.contents.Element.display.cs cs.description = AAZStrType( flags={"required": True}, ) cs.operation = AAZStrType( flags={"required": True}, ) cs.provider = AAZStrType( flags={"required": True}, ) cs.resource = AAZStrType( flags={"required": True}, ) de = cls._schema_on_200.properties.contents.Element.display.de de.description = AAZStrType( flags={"required": True}, ) de.operation = AAZStrType( flags={"required": True}, ) de.provider = AAZStrType( flags={"required": True}, ) de.resource = AAZStrType( flags={"required": True}, ) default = cls._schema_on_200.properties.contents.Element.display.default default.description = AAZStrType( flags={"required": True}, ) default.operation = AAZStrType( flags={"required": True}, ) default.provider = AAZStrType( flags={"required": True}, ) default.resource = AAZStrType( flags={"required": True}, ) en = cls._schema_on_200.properties.contents.Element.display.en en.description = AAZStrType( flags={"required": True}, ) en.operation = AAZStrType( flags={"required": True}, ) en.provider = AAZStrType( flags={"required": True}, ) en.resource = AAZStrType( flags={"required": True}, ) es = cls._schema_on_200.properties.contents.Element.display.es es.description = AAZStrType( flags={"required": True}, ) es.operation = AAZStrType( flags={"required": True}, ) es.provider = AAZStrType( flags={"required": True}, ) es.resource = AAZStrType( flags={"required": True}, ) fr = cls._schema_on_200.properties.contents.Element.display.fr fr.description = AAZStrType( flags={"required": True}, ) fr.operation = AAZStrType( flags={"required": True}, ) fr.provider = AAZStrType( flags={"required": True}, ) fr.resource = AAZStrType( flags={"required": True}, ) hu = cls._schema_on_200.properties.contents.Element.display.hu hu.description = AAZStrType( flags={"required": True}, ) hu.operation = AAZStrType( flags={"required": True}, ) hu.provider = AAZStrType( flags={"required": True}, ) hu.resource = AAZStrType( flags={"required": True}, ) it = cls._schema_on_200.properties.contents.Element.display.it it.description = AAZStrType( flags={"required": True}, ) it.operation = AAZStrType( flags={"required": True}, ) it.provider = AAZStrType( flags={"required": True}, ) it.resource = AAZStrType( flags={"required": True}, ) ja = cls._schema_on_200.properties.contents.Element.display.ja ja.description = AAZStrType( flags={"required": True}, ) ja.operation = AAZStrType( flags={"required": True}, ) ja.provider = AAZStrType( flags={"required": True}, ) ja.resource = AAZStrType( flags={"required": True}, ) ko = cls._schema_on_200.properties.contents.Element.display.ko ko.description = AAZStrType( flags={"required": True}, ) ko.operation = AAZStrType( flags={"required": True}, ) ko.provider = AAZStrType( flags={"required": True}, ) ko.resource = AAZStrType( flags={"required": True}, ) nl = cls._schema_on_200.properties.contents.Element.display.nl nl.description = AAZStrType( flags={"required": True}, ) nl.operation = AAZStrType( flags={"required": True}, ) nl.provider = AAZStrType( flags={"required": True}, ) nl.resource = AAZStrType( flags={"required": True}, ) pl = cls._schema_on_200.properties.contents.Element.display.pl pl.description = AAZStrType( flags={"required": True}, ) pl.operation = AAZStrType( flags={"required": True}, ) pl.provider = AAZStrType( flags={"required": True}, ) pl.resource = AAZStrType( flags={"required": True}, ) pt_br = cls._schema_on_200.properties.contents.Element.display.pt_br pt_br.description = AAZStrType( flags={"required": True}, ) pt_br.operation = AAZStrType( flags={"required": True}, ) pt_br.provider = AAZStrType( flags={"required": True}, ) pt_br.resource = AAZStrType( flags={"required": True}, ) pt_pt = cls._schema_on_200.properties.contents.Element.display.pt_pt pt_pt.description = AAZStrType( flags={"required": True}, ) pt_pt.operation = AAZStrType( flags={"required": True}, ) pt_pt.provider = AAZStrType( flags={"required": True}, ) pt_pt.resource = AAZStrType( flags={"required": True}, ) ru = cls._schema_on_200.properties.contents.Element.display.ru ru.description = AAZStrType( flags={"required": True}, ) ru.operation = AAZStrType( flags={"required": True}, ) ru.provider = AAZStrType( flags={"required": True}, ) ru.resource = AAZStrType( flags={"required": True}, ) sv = cls._schema_on_200.properties.contents.Element.display.sv sv.description = AAZStrType( flags={"required": True}, ) sv.operation = AAZStrType( flags={"required": True}, ) sv.provider = AAZStrType( flags={"required": True}, ) sv.resource = AAZStrType( flags={"required": True}, ) zh_hans = cls._schema_on_200.properties.contents.Element.display.zh_hans zh_hans.description = AAZStrType( flags={"required": True}, ) zh_hans.operation = AAZStrType( flags={"required": True}, ) zh_hans.provider = AAZStrType( flags={"required": True}, ) zh_hans.resource = AAZStrType( flags={"required": True}, ) zh_hant = cls._schema_on_200.properties.contents.Element.display.zh_hant zh_hant.description = AAZStrType( flags={"required": True}, ) zh_hant.operation = AAZStrType( flags={"required": True}, ) zh_hant.provider = AAZStrType( flags={"required": True}, ) zh_hant.resource = AAZStrType( flags={"required": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class OperationsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
57
5
52
0
3
0
1
0
0
0
9
0
10
10
593
61
532
74
513
0
309
66
298
23
1
1
34
10,180
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_update.py
azext_providerhub.aaz.latest.providerhub.notification_registration._update.Update.NotificationRegistrationsGet
class NotificationRegistrationsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "notificationRegistrationName", self.ctx.args.notification_registration_name, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_notification_registration_read( cls._schema_on_200) return cls._schema_on_200
class NotificationRegistrationsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
1
1
0
8
0
9
9
82
13
69
25
52
0
33
18
23
2
1
1
11
10,181
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_update.py
azext_providerhub.aaz.latest.providerhub.notification_registration._update.Update.NotificationRegistrationsCreateOrUpdate
class NotificationRegistrationsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "notificationRegistrationName", self.ctx.args.notification_registration_name, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_notification_registration_read( cls._schema_on_200) return cls._schema_on_200
class NotificationRegistrationsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
7
0
7
0
1
0
1
1
1
0
9
0
10
10
94
15
79
28
60
0
36
20
25
2
1
1
12
10,182
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_update.py
azext_providerhub.aaz.latest.providerhub.notification_registration._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop( "includedEvents", AAZListType, ".included_events") properties.set_prop( "messageScope", AAZStrType, ".message_scope") properties.set_prop("notificationEndpoints", AAZListType, ".notification_endpoints") properties.set_prop("notificationMode", AAZStrType, ".notification_mode") included_events = _builder.get(".properties.includedEvents") if included_events is not None: included_events.set_elements(AAZStrType, ".") notification_endpoints = _builder.get( ".properties.notificationEndpoints") if notification_endpoints is not None: notification_endpoints.set_elements(AAZObjectType, ".") _elements = _builder.get(".properties.notificationEndpoints[]") if _elements is not None: _elements.set_prop("locations", AAZListType, ".locations") _elements.set_prop("notificationDestination", AAZStrType, ".notification_destination") locations = _builder.get( ".properties.notificationEndpoints[].locations") if locations is not None: locations.set_elements(AAZStrType, ".") return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
18
3
15
0
4
0
1
0
0
0
2
0
2
2
38
8
30
9
27
0
26
9
23
6
1
1
7
10,183
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_show.py
azext_providerhub.aaz.latest.providerhub.notification_registration._show.Show.NotificationRegistrationsGet
class NotificationRegistrationsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "notificationRegistrationName", self.ctx.args.notification_registration_name, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.included_events = AAZListType( serialized_name="includedEvents", ) properties.message_scope = AAZStrType( serialized_name="messageScope", ) properties.notification_endpoints = AAZListType( serialized_name="notificationEndpoints", ) properties.notification_mode = AAZStrType( serialized_name="notificationMode", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) included_events = cls._schema_on_200.properties.included_events included_events.Element = AAZStrType() notification_endpoints = cls._schema_on_200.properties.notification_endpoints notification_endpoints.Element = AAZObjectType() _element = cls._schema_on_200.properties.notification_endpoints.Element _element.locations = AAZListType() _element.notification_destination = AAZStrType( serialized_name="notificationDestination", ) locations = cls._schema_on_200.properties.notification_endpoints.Element.locations locations.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class NotificationRegistrationsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
14
1
13
0
1
0
1
0
0
0
8
0
9
9
150
20
130
32
113
0
60
25
50
2
1
1
11
10,184
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_list.py
azext_providerhub.aaz.latest.providerhub.notification_registration._list.List.NotificationRegistrationsListByProviderRegistration
class NotificationRegistrationsListByProviderRegistration(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.included_events = AAZListType( serialized_name="includedEvents", ) properties.message_scope = AAZStrType( serialized_name="messageScope", ) properties.notification_endpoints = AAZListType( serialized_name="notificationEndpoints", ) properties.notification_mode = AAZStrType( serialized_name="notificationMode", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) included_events = cls._schema_on_200.value.Element.properties.included_events included_events.Element = AAZStrType() notification_endpoints = cls._schema_on_200.value.Element.properties.notification_endpoints notification_endpoints.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.notification_endpoints.Element _element.locations = AAZListType() _element.notification_destination = AAZStrType( serialized_name="notificationDestination", ) locations = cls._schema_on_200.value.Element.properties.notification_endpoints.Element.locations locations.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class NotificationRegistrationsListByProviderRegistration(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
15
1
14
0
1
0
1
0
0
0
8
0
9
9
155
22
133
33
116
0
65
26
55
2
1
1
11
10,185
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_delete.py
azext_providerhub.aaz.latest.providerhub.notification_registration._delete.Delete.NotificationRegistrationsDelete
class NotificationRegistrationsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "notificationRegistrationName", self.ctx.args.notification_registration_name, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class NotificationRegistrationsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
61
9
52
19
38
0
26
14
17
3
1
1
10
10,186
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_create.py
azext_providerhub.aaz.latest.providerhub.notification_registration._create.Create.NotificationRegistrationsCreateOrUpdate
class NotificationRegistrationsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "notificationRegistrationName", self.ctx.args.notification_registration_name, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop( "includedEvents", AAZListType, ".included_events") properties.set_prop( "messageScope", AAZStrType, ".message_scope") properties.set_prop("notificationEndpoints", AAZListType, ".notification_endpoints") properties.set_prop("notificationMode", AAZStrType, ".notification_mode") included_events = _builder.get(".properties.includedEvents") if included_events is not None: included_events.set_elements(AAZStrType, ".") notification_endpoints = _builder.get( ".properties.notificationEndpoints") if notification_endpoints is not None: notification_endpoints.set_elements(AAZObjectType, ".") _elements = _builder.get(".properties.notificationEndpoints[]") if _elements is not None: _elements.set_prop("locations", AAZListType, ".locations") _elements.set_prop("notificationDestination", AAZStrType, ".notification_destination") locations = _builder.get( ".properties.notificationEndpoints[].locations") if locations is not None: locations.set_elements(AAZStrType, ".") return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.included_events = AAZListType( serialized_name="includedEvents", ) properties.message_scope = AAZStrType( serialized_name="messageScope", ) properties.notification_endpoints = AAZListType( serialized_name="notificationEndpoints", ) properties.notification_mode = AAZStrType( serialized_name="notificationMode", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) included_events = cls._schema_on_200.properties.included_events included_events.Element = AAZStrType() notification_endpoints = cls._schema_on_200.properties.notification_endpoints notification_endpoints.Element = AAZObjectType() _element = cls._schema_on_200.properties.notification_endpoints.Element _element.locations = AAZListType() _element.notification_destination = AAZStrType( serialized_name="notificationDestination", ) locations = cls._schema_on_200.properties.notification_endpoints.Element.locations locations.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class NotificationRegistrationsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
17
2
15
0
2
0
1
0
0
0
9
0
10
10
188
27
161
40
142
0
83
32
72
6
1
1
17
10,187
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_generate.py
azext_providerhub.aaz.latest.providerhub.manifest._generate.Generate.GenerateManifest
class GenerateManifest(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateManifest", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.capabilities = AAZListType() _schema_on_200.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) _schema_on_200.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) _schema_on_200.features_rule = AAZObjectType( serialized_name="featuresRule", ) _schema_on_200.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) _schema_on_200.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) _schema_on_200.management = AAZObjectType() _schema_on_200.metadata = AAZFreeFormDictType() _schema_on_200.namespace = AAZStrType() _schema_on_200.notifications = AAZListType() _GenerateHelper._build_schema_notifications_read( _schema_on_200.notifications) _schema_on_200.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) _schema_on_200.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) _schema_on_200.provider_type = AAZStrType( serialized_name="providerType", ) _schema_on_200.provider_version = AAZStrType( serialized_name="providerVersion", ) _schema_on_200.re_register_subscription_metadata = AAZObjectType( serialized_name="reRegisterSubscriptionMetadata", ) _schema_on_200.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) _schema_on_200.required_features = AAZListType( serialized_name="requiredFeatures", ) _schema_on_200.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _GenerateHelper._build_schema_resource_provider_authorization_rules_read( _schema_on_200.resource_provider_authorization_rules) _schema_on_200.resource_types = AAZListType( serialized_name="resourceTypes", ) _schema_on_200.service_name = AAZStrType( serialized_name="serviceName", ) _schema_on_200.services = AAZListType() capabilities = cls._schema_on_200.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.capabilities.Element.required_features required_features.Element = AAZStrType() features_rule = cls._schema_on_200.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _GenerateHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) linked_notification_rules = cls._schema_on_200.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) actions = cls._schema_on_200.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _GenerateHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) token_auth_configuration = cls._schema_on_200.linked_notification_rules.Element.token_auth_configuration token_auth_configuration.authentication_scheme = AAZStrType( serialized_name="authenticationScheme", ) token_auth_configuration.disable_certificate_authentication_fallback = AAZBoolType( serialized_name="disableCertificateAuthenticationFallback", ) token_auth_configuration.signed_request_scope = AAZStrType( serialized_name="signedRequestScope", ) management = cls._schema_on_200.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _element = cls._schema_on_200.management.resource_access_roles.Element _element.actions = AAZListType() _element.allowed_group_claims = AAZListType( serialized_name="allowedGroupClaims", ) actions = cls._schema_on_200.management.resource_access_roles.Element.actions actions.Element = AAZStrType() allowed_group_claims = cls._schema_on_200.management.resource_access_roles.Element.allowed_group_claims allowed_group_claims.Element = AAZStrType() schema_owners = cls._schema_on_200.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _GenerateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) provider_authentication = cls._schema_on_200.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.provider_authorizations provider_authorizations.Element = AAZObjectType() _element = cls._schema_on_200.provider_authorizations.Element _element.allowed_third_party_extensions = AAZListType( serialized_name="allowedThirdPartyExtensions", ) _element.application_id = AAZStrType( serialized_name="applicationId", ) _element.grouping_tag = AAZStrType( serialized_name="groupingTag", ) _element.managed_by_authorization = AAZObjectType( serialized_name="managedByAuthorization", ) _element.managed_by_role_definition_id = AAZStrType( serialized_name="managedByRoleDefinitionId", ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", ) allowed_third_party_extensions = cls._schema_on_200.provider_authorizations.Element.allowed_third_party_extensions allowed_third_party_extensions.Element = AAZObjectType() _element = cls._schema_on_200.provider_authorizations.Element.allowed_third_party_extensions.Element _element.name = AAZStrType() managed_by_authorization = cls._schema_on_200.provider_authorizations.Element.managed_by_authorization managed_by_authorization.additional_authorizations = AAZListType( serialized_name="additionalAuthorizations", ) managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( serialized_name="allowManagedByInheritance", ) managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( serialized_name="managedByResourceRoleDefinitionId", ) additional_authorizations = cls._schema_on_200.provider_authorizations.Element.managed_by_authorization.additional_authorizations additional_authorizations.Element = AAZObjectType() _element = cls._schema_on_200.provider_authorizations.Element.managed_by_authorization.additional_authorizations.Element _element.application_id = AAZStrType( serialized_name="applicationId", ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", ) re_register_subscription_metadata = cls._schema_on_200.re_register_subscription_metadata re_register_subscription_metadata.concurrency_limit = AAZIntType( serialized_name="concurrencyLimit", ) re_register_subscription_metadata.enabled = AAZBoolType( flags={"required": True}, ) request_header_options = cls._schema_on_200.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.required_features required_features.Element = AAZStrType() resource_types = cls._schema_on_200.resource_types resource_types.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element _element.additional_options = AAZStrType( serialized_name="additionalOptions", ) _element.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) _element.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) _element.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) _element.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) _element.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) _element.endpoints = AAZListType() _element.extended_locations = AAZListType( serialized_name="extendedLocations", ) _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.identity_management = AAZObjectType( serialized_name="identityManagement", ) _element.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) _element.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) _element.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) _element.logging_rules = AAZListType( serialized_name="loggingRules", ) _element.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) _element.metadata = AAZFreeFormDictType() _element.name = AAZStrType() _element.notifications = AAZListType() _GenerateHelper._build_schema_notifications_read( _element.notifications) _element.quota_rule = AAZObjectType( serialized_name="quotaRule", ) _element.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) _element.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _GenerateHelper._build_schema_resource_provider_authorization_rules_read( _element.resource_provider_authorization_rules) _element.resource_validation = AAZStrType( serialized_name="resourceValidation", ) _element.routing_type = AAZStrType( serialized_name="routingType", ) _element.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) _element.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) _element.throttling_rules = AAZListType( serialized_name="throttlingRules", ) allowed_unauthorized_actions = cls._schema_on_200.resource_types.Element.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() authorization_action_mappings = cls._schema_on_200.resource_types.Element.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() disallowed_action_verbs = cls._schema_on_200.resource_types.Element.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() endpoints = cls._schema_on_200.resource_types.Element.endpoints endpoints.Element = AAZObjectType() _GenerateHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) extended_locations = cls._schema_on_200.resource_types.Element.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() features_rule = cls._schema_on_200.resource_types.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200.resource_types.Element.identity_management identity_management.type = AAZStrType() linked_access_checks = cls._schema_on_200.resource_types.Element.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200.resource_types.Element.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200.resource_types.Element.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200.resource_types.Element.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200.resource_types.Element.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200.resource_types.Element.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200.resource_types.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200.resource_types.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() quota_rule = cls._schema_on_200.resource_types.Element.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200.resource_types.Element.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200.resource_types.Element.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200.resource_types.Element.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.resource_types.Element.required_features required_features.Element = AAZStrType() service_tree_infos = cls._schema_on_200.resource_types.Element.service_tree_infos service_tree_infos.Element = AAZObjectType() _GenerateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_state_rules = cls._schema_on_200.resource_types.Element.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200.resource_types.Element.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() template_deployment_policy = cls._schema_on_200.resource_types.Element.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200.resource_types.Element.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200.resource_types.Element.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200.resource_types.Element.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200.resource_types.Element.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200.resource_types.Element.throttling_rules.Element.required_features required_features.Element = AAZStrType() services = cls._schema_on_200.services services.Element = AAZObjectType() _element = cls._schema_on_200.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() return cls._schema_on_200
class GenerateManifest(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
76
10
66
0
1
0
1
1
1
0
8
0
9
9
704
96
608
80
591
0
320
73
310
2
1
1
11
10,188
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_checkin.py
azext_providerhub.aaz.latest.providerhub.manifest._checkin.Checkin.CheckinManifest
class CheckinManifest(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/checkinManifest", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) _builder.set_prop("environment", AAZStrType, ".environment", typ_kwargs={ "flags": {"required": True}}) return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.commit_id = AAZStrType( serialized_name="commitId", ) _schema_on_200.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) _schema_on_200.pull_request = AAZStrType( serialized_name="pullRequest", ) _schema_on_200.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200
class CheckinManifest(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
9
1
8
0
1
0
1
0
0
0
9
0
10
10
108
16
92
29
73
0
42
21
31
2
1
1
12
10,189
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_wait.py
azext_providerhub.aaz.latest.providerhub.default_rollout._wait.Wait.DefaultRolloutsGet
class DefaultRolloutsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _WaitHelper._build_schema_system_data_read( _schema_on_200.system_data) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType() properties.status = AAZObjectType() specification = cls._schema_on_200.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.expedited_rollout = AAZObjectType( serialized_name="expeditedRollout", ) specification.high_traffic = AAZObjectType( serialized_name="highTraffic", ) specification.low_traffic = AAZObjectType( serialized_name="lowTraffic", ) specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.medium_traffic = AAZObjectType( serialized_name="mediumTraffic", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.rest_of_the_world_group_one = AAZObjectType( serialized_name="restOfTheWorldGroupOne", ) specification.rest_of_the_world_group_two = AAZObjectType( serialized_name="restOfTheWorldGroupTwo", ) auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200.properties.specification.canary canary.regions = AAZListType() canary.skip_regions = AAZListType( serialized_name="skipRegions", ) regions = cls._schema_on_200.properties.specification.canary.regions regions.Element = AAZStrType() skip_regions = cls._schema_on_200.properties.specification.canary.skip_regions skip_regions.Element = AAZStrType() expedited_rollout = cls._schema_on_200.properties.specification.expedited_rollout expedited_rollout.enabled = AAZBoolType() high_traffic = cls._schema_on_200.properties.specification.high_traffic high_traffic.regions = AAZListType() high_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.high_traffic.regions regions.Element = AAZStrType() low_traffic = cls._schema_on_200.properties.specification.low_traffic low_traffic.regions = AAZListType() low_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.low_traffic.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) medium_traffic = cls._schema_on_200.properties.specification.medium_traffic medium_traffic.regions = AAZListType() medium_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.medium_traffic.regions regions.Element = AAZStrType() provider_registration = cls._schema_on_200.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _WaitHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _WaitHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _WaitHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _WaitHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _WaitHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _WaitHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _WaitHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _WaitHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _WaitHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _WaitHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _WaitHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _WaitHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _WaitHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _WaitHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _WaitHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() rest_of_the_world_group_one = cls._schema_on_200.properties.specification.rest_of_the_world_group_one rest_of_the_world_group_one.regions = AAZListType() rest_of_the_world_group_one.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_one.regions regions.Element = AAZStrType() rest_of_the_world_group_two = cls._schema_on_200.properties.specification.rest_of_the_world_group_two rest_of_the_world_group_two.regions = AAZListType() rest_of_the_world_group_two.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_two.regions regions.Element = AAZStrType() status = cls._schema_on_200.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) status.next_traffic_region = AAZStrType( serialized_name="nextTrafficRegion", ) status.next_traffic_region_scheduled_time = AAZStrType( serialized_name="nextTrafficRegionScheduledTime", ) status.subscription_reregistration_result = AAZStrType( serialized_name="subscriptionReregistrationResult", ) completed_regions = cls._schema_on_200.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _WaitHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200
class DefaultRolloutsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
186
23
163
0
1
0
1
1
1
0
8
0
9
9
1,693
220
1,473
161
1,456
0
756
154
746
2
1
1
11
10,190
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_update.py
azext_providerhub.aaz.latest.providerhub.default_rollout._update.Update.InstanceUpdateByJson
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance(self.ctx.vars.instance) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( self.ctx.args, value=instance, typ=AAZObjectType ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop("specification", AAZObjectType) properties.set_prop("status", AAZObjectType, ".status") specification = _builder.get(".properties.specification") if specification is not None: specification.set_prop( "autoProvisionConfig", AAZObjectType, ".auto_provision_config") specification.set_prop("canary", AAZObjectType, ".canary") specification.set_prop( "expeditedRollout", AAZObjectType, ".expedited_rollout") specification.set_prop( "highTraffic", AAZObjectType, ".high_traffic") specification.set_prop( "lowTraffic", AAZObjectType, ".low_traffic") specification.set_prop( "manifestCheckinSpecification", AAZObjectType, ".manifest_checkin_specification") specification.set_prop( "mediumTraffic", AAZObjectType, ".medium_traffic") specification.set_prop( "providerRegistration", AAZObjectType, ".provider_registration") specification.set_prop( "resourceTypeRegistrations", AAZListType, ".resource_type_registrations") specification.set_prop( "restOfTheWorldGroupOne", AAZObjectType, ".rest_of_the_world_group_one") specification.set_prop( "restOfTheWorldGroupTwo", AAZObjectType, ".rest_of_the_world_group_two") auto_provision_config = _builder.get( ".properties.specification.autoProvisionConfig") if auto_provision_config is not None: auto_provision_config.set_prop( "resourceGraph", AAZBoolType, ".resource_graph") auto_provision_config.set_prop( "storage", AAZBoolType, ".storage") canary = _builder.get(".properties.specification.canary") if canary is not None: canary.set_prop("regions", AAZListType, ".regions") canary.set_prop("skipRegions", AAZListType, ".skip_regions") regions = _builder.get(".properties.specification.canary.regions") if regions is not None: regions.set_elements(AAZStrType, ".") skip_regions = _builder.get( ".properties.specification.canary.skipRegions") if skip_regions is not None: skip_regions.set_elements(AAZStrType, ".") expedited_rollout = _builder.get( ".properties.specification.expeditedRollout") if expedited_rollout is not None: expedited_rollout.set_prop("enabled", AAZBoolType, ".enabled") high_traffic = _builder.get( ".properties.specification.highTraffic") if high_traffic is not None: high_traffic.set_prop("regions", AAZListType, ".regions") high_traffic.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.highTraffic.regions") if regions is not None: regions.set_elements(AAZStrType, ".") low_traffic = _builder.get(".properties.specification.lowTraffic") if low_traffic is not None: low_traffic.set_prop("regions", AAZListType, ".regions") low_traffic.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.lowTraffic.regions") if regions is not None: regions.set_elements(AAZStrType, ".") manifest_checkin_specification = _builder.get( ".properties.specification.manifestCheckinSpecification") if manifest_checkin_specification is not None: manifest_checkin_specification.set_prop( "manifestCheckinOption", AAZStrType, ".manifest_checkin_option") manifest_checkin_specification.set_prop( "manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") manifest_checkin_params = _builder.get( ".properties.specification.manifestCheckinSpecification.manifestCheckinParams") if manifest_checkin_params is not None: manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) manifest_checkin_params.set_prop( "environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) medium_traffic = _builder.get( ".properties.specification.mediumTraffic") if medium_traffic is not None: medium_traffic.set_prop("regions", AAZListType, ".regions") medium_traffic.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.mediumTraffic.regions") if regions is not None: regions.set_elements(AAZStrType, ".") provider_registration = _builder.get( ".properties.specification.providerRegistration") if provider_registration is not None: provider_registration.set_prop("kind", AAZStrType, ".kind") provider_registration.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.providerRegistration.properties") if properties is not None: properties.set_prop( "capabilities", AAZListType, ".capabilities") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop( "globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") properties.set_prop( "metadata", AAZFreeFormDictType, ".metadata") properties.set_prop("namespace", AAZStrType, ".namespace") properties.set_prop("notificationOptions", AAZStrType, ".notification_options") properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") _UpdateHelper._build_schema_notifications_update( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("optionalFeatures", AAZListType, ".optional_features") properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") properties.set_prop( "providerType", AAZStrType, ".provider_type") properties.set_prop("providerVersion", AAZStrType, ".provider_version") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("responseOptions", AAZObjectType, ".response_options") properties.set_prop("serviceName", AAZStrType, ".service_name") properties.set_prop("services", AAZListType, ".services") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) capabilities = _builder.get( ".properties.specification.providerRegistration.properties.capabilities") if capabilities is not None: capabilities.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[]") if _elements is not None: _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) features_rule = _builder.get( ".properties.specification.providerRegistration.properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.globalNotificationEndpoints") if global_notification_endpoints is not None: _UpdateHelper._build_schema_resource_provider_endpoint_update( global_notification_endpoints.set_elements(AAZObjectType, ".")) legacy_registrations = _builder.get( ".properties.specification.providerRegistration.properties.legacyRegistrations") if legacy_registrations is not None: legacy_registrations.set_elements(AAZStrType, ".") linked_notification_rules = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("endpoints", AAZListType, ".endpoints") _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) actions = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") if endpoints is not None: _UpdateHelper._build_schema_resource_provider_endpoint_update( endpoints.set_elements(AAZObjectType, ".")) management = _builder.get( ".properties.specification.providerRegistration.properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.providerRegistration.properties.management.resourceAccessRoles") if resource_access_roles is not None: _UpdateHelper._build_schema_resource_access_role_update( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.providerRegistration.properties.management.serviceTreeInfos") if service_tree_infos is not None: _UpdateHelper._build_schema_service_tree_info_update( service_tree_infos.set_elements(AAZObjectType, ".")) management_group_global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") if management_group_global_notification_endpoints is not None: _UpdateHelper._build_schema_resource_provider_endpoint_update( management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) metadata = _builder.get( ".properties.specification.providerRegistration.properties.metadata") if metadata is not None: metadata.set_anytype_elements(".") notification_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings") if notification_settings is not None: notification_settings.set_prop( "subscriberSettings", AAZListType, ".subscriber_settings") subscriber_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") if subscriber_settings is not None: subscriber_settings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") if _elements is not None: _elements.set_prop("filterRules", AAZListType, ".filter_rules") filter_rules = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") if filter_rules is not None: filter_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") if _elements is not None: _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") _elements.set_prop("filterQuery", AAZStrType, ".filter_query") endpoint_information = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") if endpoint_information is not None: endpoint_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") if _elements is not None: _elements.set_prop("endpoint", AAZStrType, ".endpoint") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop( "schemaVersion", AAZStrType, ".schema_version") optional_features = _builder.get( ".properties.specification.providerRegistration.properties.optionalFeatures") if optional_features is not None: optional_features.set_elements(AAZStrType, ".") private_resource_provider_configuration = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") if private_resource_provider_configuration is not None: private_resource_provider_configuration.set_prop( "allowedSubscriptions", AAZListType, ".allowed_subscriptions") allowed_subscriptions = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") if allowed_subscriptions is not None: allowed_subscriptions.set_elements(AAZStrType, ".") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthorizations") if provider_authorizations is not None: _UpdateHelper._build_schema_resource_provider_authorization_update( provider_authorizations.set_elements(AAZObjectType, ".")) provider_hub_metadata = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata") if provider_hub_metadata is not None: provider_hub_metadata.set_prop( "directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") provider_hub_metadata.set_prop( "globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") provider_hub_metadata.set_prop( "providerAuthentication", AAZObjectType, ".provider_authentication") provider_hub_metadata.set_prop( "providerAuthorizations", AAZListType, ".provider_authorizations") provider_hub_metadata.set_prop( "regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") provider_hub_metadata.set_prop( "thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") if provider_authorizations is not None: _UpdateHelper._build_schema_resource_provider_authorization_update( provider_authorizations.set_elements(AAZObjectType, ".")) third_party_provider_authorization = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") if third_party_provider_authorization is not None: third_party_provider_authorization.set_prop( "authorizations", AAZListType, ".authorizations") third_party_provider_authorization.set_prop( "managedByTenantId", AAZStrType, ".managed_by_tenant_id") authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") if authorizations is not None: authorizations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") if _elements is not None: _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={ "flags": {"required": True}}) request_header_options = _builder.get( ".properties.specification.providerRegistration.properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.providerRegistration.properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_group_lock_option_during_move = _builder.get( ".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") if resource_group_lock_option_during_move is not None: resource_group_lock_option_during_move.set_prop( "blockActionVerb", AAZStrType, ".block_action_verb") resource_hydration_accounts = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts") if resource_hydration_accounts is not None: resource_hydration_accounts.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") if _elements is not None: _elements.set_prop("accountName", AAZStrType, ".account_name") _elements.set_prop( "encryptedKey", AAZStrType, ".encrypted_key") _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") _elements.set_prop( "subscriptionId", AAZStrType, ".subscription_id") response_options = _builder.get( ".properties.specification.providerRegistration.properties.responseOptions") if response_options is not None: response_options.set_prop( "serviceClientOptionsType", AAZStrType, ".service_client_options_type") services = _builder.get( ".properties.specification.providerRegistration.properties.services") if services is not None: services.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.services[]") if _elements is not None: _elements.set_prop("serviceName", AAZStrType, ".service_name") _elements.set_prop("status", AAZStrType, ".status") subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _UpdateHelper._build_schema_subscription_state_override_action_update( subscription_state_override_actions.set_elements(AAZObjectType, ".")) template_deployment_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") resource_type_registrations = _builder.get( ".properties.specification.resourceTypeRegistrations") if resource_type_registrations is not None: resource_type_registrations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[]") if _elements is not None: _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties") if properties is not None: properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") properties.set_prop("additionalOptions", AAZStrType, ".additional_options") properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") properties.set_prop( "allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") properties.set_prop( "apiProfiles", AAZListType, ".api_profiles") properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") properties.set_prop( "authorizationActionMappings", AAZListType, ".authorization_action_mappings") properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") properties.set_prop( "capacityRule", AAZObjectType, ".capacity_rule") properties.set_prop("category", AAZStrType, ".category") properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") properties.set_prop( "disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") properties.set_prop("endpoints", AAZListType, ".endpoints") properties.set_prop("extendedLocations", AAZListType, ".extended_locations") properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") properties.set_prop("identityManagement", AAZObjectType, ".identity_management") properties.set_prop( "isPureProxy", AAZBoolType, ".is_pure_proxy") properties.set_prop("legacyName", AAZStrType, ".legacy_name") properties.set_prop( "legacyNames", AAZListType, ".legacy_names") properties.set_prop( "legacyPolicy", AAZObjectType, ".legacy_policy") properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") properties.set_prop( "loggingRules", AAZListType, ".logging_rules") properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop( "manifestLink", AAZStrType, ".manifest_link") properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") properties.set_prop("metadata", AAZDictType, ".metadata") _UpdateHelper._build_schema_notifications_update( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") properties.set_prop("regionality", AAZStrType, ".regionality") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop( "resourceCache", AAZObjectType, ".resource_cache") properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") properties.set_prop( "resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") properties.set_prop( "routingRule", AAZObjectType, ".routing_rule") properties.set_prop("routingType", AAZStrType, ".routing_type") properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") properties.set_prop("skuLink", AAZStrType, ".sku_link") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") properties.set_prop( "supportsTags", AAZBoolType, ".supports_tags") properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) allowed_resource_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") if allowed_resource_names is not None: allowed_resource_names.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") if _elements is not None: _elements.set_prop( "getActionVerb", AAZStrType, ".get_action_verb") _elements.set_prop("name", AAZStrType, ".name") allowed_template_deployment_reference_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") if allowed_template_deployment_reference_actions is not None: allowed_template_deployment_reference_actions.set_elements( AAZStrType, ".") allowed_unauthorized_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") if allowed_unauthorized_actions is not None: allowed_unauthorized_actions.set_elements(AAZStrType, ".") api_profiles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") if api_profiles is not None: api_profiles.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop( "profileVersion", AAZStrType, ".profile_version") async_timeout_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") if async_timeout_rules is not None: async_timeout_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop("timeout", AAZStrType, ".timeout") authorization_action_mappings = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") if authorization_action_mappings is not None: authorization_action_mappings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") if _elements is not None: _elements.set_prop("desired", AAZStrType, ".desired") _elements.set_prop("original", AAZStrType, ".original") availability_zone_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") if availability_zone_rule is not None: availability_zone_rule.set_prop( "availabilityZonePolicy", AAZStrType, ".availability_zone_policy") capacity_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.capacityRule") if capacity_rule is not None: capacity_rule.set_prop( "capacityPolicy", AAZStrType, ".capacity_policy") capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") check_name_availability_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") if check_name_availability_specifications is not None: check_name_availability_specifications.set_prop( "enableDefaultValidation", AAZBoolType, ".enable_default_validation") check_name_availability_specifications.set_prop( "resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") resource_types_with_custom_validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") if resource_types_with_custom_validation is not None: resource_types_with_custom_validation.set_elements( AAZStrType, ".") common_api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") if common_api_versions is not None: common_api_versions.set_elements(AAZStrType, ".") disallowed_action_verbs = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") if disallowed_action_verbs is not None: disallowed_action_verbs.set_elements(AAZStrType, ".") disallowed_end_user_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") if disallowed_end_user_operations is not None: disallowed_end_user_operations.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints") if endpoints is not None: endpoints.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop( "dataBoundary", AAZStrType, ".data_boundary") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("enabled", AAZBoolType, ".enabled") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensions", AAZListType, ".extensions") _elements.set_prop( "featuresRule", AAZObjectType, ".features_rule") _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("locations", AAZListType, ".locations") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") _elements.set_prop("skuLink", AAZStrType, ".sku_link") _elements.set_prop("timeout", AAZStrType, ".timeout") _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) _elements.set_prop("zones", AAZListType, ".zones") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) extensions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") if extensions is not None: extensions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") if _elements is not None: _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") _elements.set_prop("timeout", AAZStrType, ".timeout") extension_categories = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") if extension_categories is not None: extension_categories.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") if locations is not None: locations.set_elements(AAZStrType, ".") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") zones = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") if zones is not None: zones.set_elements(AAZStrType, ".") extended_locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") if extended_locations is not None: extended_locations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") if _elements is not None: _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") _elements.set_prop("type", AAZStrType, ".type") extension_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") if extension_options is not None: extension_options.set_prop( "resourceCreationBegin", AAZObjectType, ".resource_creation_begin") resource_creation_begin = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") if resource_creation_begin is not None: resource_creation_begin.set_prop( "request", AAZListType, ".request") resource_creation_begin.set_prop( "response", AAZListType, ".response") request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") if request is not None: request.set_elements(AAZStrType, ".") response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") if response is not None: response.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) identity_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement") if identity_management is not None: identity_management.set_prop( "applicationId", AAZStrType, ".application_id") identity_management.set_prop( "applicationIds", AAZListType, ".application_ids") identity_management.set_prop( "delegationAppIds", AAZListType, ".delegation_app_ids") identity_management.set_prop("type", AAZStrType, ".type") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") delegation_app_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") if delegation_app_ids is not None: delegation_app_ids.set_elements(AAZStrType, ".") legacy_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyNames") if legacy_names is not None: legacy_names.set_elements(AAZStrType, ".") legacy_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") if legacy_policy is not None: legacy_policy.set_prop( "disallowedConditions", AAZListType, ".disallowed_conditions") legacy_policy.set_prop( "disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") disallowed_conditions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") if disallowed_conditions is not None: disallowed_conditions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") if _elements is not None: _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") _elements.set_prop("feature", AAZStrType, ".feature") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") linked_access_checks = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") if linked_access_checks is not None: linked_access_checks.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop( "linkedAction", AAZStrType, ".linked_action") _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") linked_notification_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") if actions_on_failed_operation is not None: actions_on_failed_operation.set_elements(AAZStrType, ".") fast_path_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") if fast_path_actions is not None: fast_path_actions.set_elements(AAZStrType, ".") fast_path_actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") if fast_path_actions_on_failed_operation is not None: fast_path_actions_on_failed_operation.set_elements( AAZStrType, ".") linked_operation_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") if linked_operation_rules is not None: linked_operation_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") if _elements is not None: _elements.set_prop( "dependsOnTypes", AAZListType, ".depends_on_types") _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={ "flags": {"required": True}}) depends_on_types = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") if depends_on_types is not None: depends_on_types.set_elements(AAZStrType, ".") logging_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules") if logging_rules is not None: logging_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") hidden_property_paths = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") if hidden_property_paths is not None: hidden_property_paths.set_prop( "hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") hidden_property_paths.set_prop( "hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") hidden_paths_on_request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") if hidden_paths_on_request is not None: hidden_paths_on_request.set_elements(AAZStrType, ".") hidden_paths_on_response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") if hidden_paths_on_response is not None: hidden_paths_on_response.set_elements(AAZStrType, ".") managed_resource_group_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") if managed_resource_group_configuration is not None: managed_resource_group_configuration.set_prop( "applicationIds", AAZListType, ".application_ids") managed_resource_group_configuration.set_prop( "denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") managed_resource_group_configuration.set_prop( "enabled", AAZBoolType, ".enabled") managed_resource_group_configuration.set_prop( "resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") deny_assignment_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") if deny_assignment_configuration is not None: deny_assignment_configuration.set_prop( "enabled", AAZBoolType, ".enabled") deny_assignment_configuration.set_prop( "notActions", AAZListType, ".not_actions") not_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") if not_actions is not None: not_actions.set_elements(AAZStrType, ".") management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") if resource_access_roles is not None: _UpdateHelper._build_schema_resource_access_role_update( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") if service_tree_infos is not None: _UpdateHelper._build_schema_service_tree_info_update( service_tree_infos.set_elements(AAZObjectType, ".")) marketplace_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") if marketplace_options is not None: marketplace_options.set_prop( "addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata") if metadata is not None: metadata.set_elements(AAZFreeFormDictType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata{}") if _elements is not None: _elements.set_anytype_elements(".") on_behalf_of_tokens = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") if on_behalf_of_tokens is not None: on_behalf_of_tokens.set_prop( "actionName", AAZStrType, ".action_name") on_behalf_of_tokens.set_prop( "lifeTime", AAZStrType, ".life_time") open_api_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") if open_api_configuration is not None: open_api_configuration.set_prop( "validation", AAZObjectType, ".validation") validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") if validation is not None: validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") private_endpoint_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") if private_endpoint_configuration is not None: private_endpoint_configuration.set_prop( "groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) private_endpoint_configuration.set_prop( "minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) group_connectivity_information = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") if group_connectivity_information is not None: group_connectivity_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") if _elements is not None: _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "redirectMapId", AAZStrType, ".redirect_map_id") _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={ "flags": {"required": True}}) required_members = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") if required_members is not None: required_members.set_elements(AAZStrType, ".") required_zone_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") if required_zone_names is not None: required_zone_names.set_elements(AAZStrType, ".") quota_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule") if quota_rule is not None: quota_rule.set_prop( "locationRules", AAZListType, ".location_rules") quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") location_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") if location_rules is not None: location_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") if _elements is not None: _elements.set_prop("location", AAZStrType, ".location") _elements.set_prop("policy", AAZStrType, ".policy") _elements.set_prop("quotaId", AAZStrType, ".quota_id") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") request_header_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_cache = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceCache") if resource_cache is not None: resource_cache.set_prop( "enableResourceCache", AAZBoolType, ".enable_resource_cache") resource_cache.set_prop( "resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") resource_concurrency_control_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") if resource_concurrency_control_options is not None: resource_concurrency_control_options.set_elements( AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") if _elements is not None: _elements.set_prop("policy", AAZStrType, ".policy") resource_graph_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") if resource_graph_configuration is not None: resource_graph_configuration.set_prop( "apiVersion", AAZStrType, ".api_version") resource_graph_configuration.set_prop( "enabled", AAZBoolType, ".enabled") resource_management_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") if resource_management_options is not None: resource_management_options.set_prop( "batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") resource_management_options.set_prop( "deleteDependencies", AAZListType, ".delete_dependencies") resource_management_options.set_prop( "nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") batch_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") if batch_provisioning_support is not None: batch_provisioning_support.set_prop( "supportedOperations", AAZStrType, ".supported_operations") delete_dependencies = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") if delete_dependencies is not None: delete_dependencies.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") if _elements is not None: _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") nested_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") if nested_provisioning_support is not None: nested_provisioning_support.set_prop( "minimumApiVersion", AAZStrType, ".minimum_api_version") resource_move_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") if resource_move_policy is not None: resource_move_policy.set_prop( "crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") resource_move_policy.set_prop( "crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") resource_move_policy.set_prop( "validationRequired", AAZBoolType, ".validation_required") resource_query_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") if resource_query_management is not None: resource_query_management.set_prop( "filterOption", AAZStrType, ".filter_option") resource_type_common_attribute_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") if resource_type_common_attribute_management is not None: resource_type_common_attribute_management.set_prop( "commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") routing_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.routingRule") if routing_rule is not None: routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") if service_tree_infos is not None: _UpdateHelper._build_schema_service_tree_info_update( service_tree_infos.set_elements(AAZObjectType, ".")) subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _UpdateHelper._build_schema_subscription_state_override_action_update( subscription_state_override_actions.set_elements(AAZObjectType, ".")) subscription_state_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") if subscription_state_rules is not None: subscription_state_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") if _elements is not None: _elements.set_prop( "allowedActions", AAZListType, ".allowed_actions") _elements.set_prop("state", AAZStrType, ".state") allowed_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") if allowed_actions is not None: allowed_actions.set_elements(AAZStrType, ".") swagger_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") if swagger_specifications is not None: swagger_specifications.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") if _elements is not None: _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") template_deployment_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") template_deployment_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") if template_deployment_policy is not None: template_deployment_policy.set_prop( "capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) template_deployment_policy.set_prop( "preflightNotifications", AAZStrType, ".preflight_notifications") template_deployment_policy.set_prop( "preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) throttling_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") if throttling_rules is not None: throttling_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "applicationId", AAZListType, ".application_id") _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") application_id = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") if application_id is not None: application_id.set_elements(AAZStrType, ".") metrics = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") if metrics is not None: metrics.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") if _elements is not None: _elements.set_prop("interval", AAZStrType, ".interval") _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={ "flags": {"required": True}}) required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") rest_of_the_world_group_one = _builder.get( ".properties.specification.restOfTheWorldGroupOne") if rest_of_the_world_group_one is not None: rest_of_the_world_group_one.set_prop( "regions", AAZListType, ".regions") rest_of_the_world_group_one.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.restOfTheWorldGroupOne.regions") if regions is not None: regions.set_elements(AAZStrType, ".") rest_of_the_world_group_two = _builder.get( ".properties.specification.restOfTheWorldGroupTwo") if rest_of_the_world_group_two is not None: rest_of_the_world_group_two.set_prop( "regions", AAZListType, ".regions") rest_of_the_world_group_two.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.restOfTheWorldGroupTwo.regions") if regions is not None: regions.set_elements(AAZStrType, ".") status = _builder.get(".properties.status") if status is not None: status.set_prop("completedRegions", AAZListType, ".completed_regions") status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") status.set_prop("nextTrafficRegion", AAZStrType, ".next_traffic_region") status.set_prop("nextTrafficRegionScheduledTime", AAZStrType, ".next_traffic_region_scheduled_time") status.set_prop("subscriptionReregistrationResult", AAZStrType, ".subscription_reregistration_result") completed_regions = _builder.get( ".properties.status.completedRegions") if completed_regions is not None: completed_regions.set_elements(AAZStrType, ".") failed_or_skipped_regions = _builder.get( ".properties.status.failedOrSkippedRegions") if failed_or_skipped_regions is not None: _UpdateHelper._build_schema_extended_error_info_update( failed_or_skipped_regions.set_elements(AAZObjectType, ".")) manifest_checkin_status = _builder.get( ".properties.status.manifestCheckinStatus") if manifest_checkin_status is not None: manifest_checkin_status.set_prop( "commitId", AAZStrType, ".commit_id") manifest_checkin_status.set_prop( "isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) manifest_checkin_status.set_prop( "pullRequest", AAZStrType, ".pull_request") manifest_checkin_status.set_prop( "statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) return _instance_value
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): pass def _update_instance(self, instance): pass
3
0
557
105
453
0
105
0
1
1
1
0
2
0
2
2
1,117
211
906
139
903
0
902
139
899
209
1
1
210
10,191
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_update.py
azext_providerhub.aaz.latest.providerhub.default_rollout._update.Update.DefaultRolloutsGet
class DefaultRolloutsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _UpdateHelper._build_schema_default_rollout_read( cls._schema_on_200) return cls._schema_on_200
class DefaultRolloutsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
7
0
7
0
1
0
1
1
1
0
8
0
9
9
82
13
69
25
52
0
33
18
23
2
1
1
11
10,192
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_update.py
azext_providerhub.aaz.latest.providerhub.default_rollout._update.Update.DefaultRolloutsCreateOrUpdate
class DefaultRolloutsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, value=self.ctx.vars.instance, ) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _UpdateHelper._build_schema_default_rollout_read( cls._schema_on_200_201) return cls._schema_on_200_201
class DefaultRolloutsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
9
0
8
0
1
0
1
1
1
0
9
1
10
10
110
15
95
29
76
0
38
20
27
3
1
1
13
10,193
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_stop.py
azext_providerhub.aaz.latest.providerhub.default_rollout._stop.Stop.DefaultRolloutsStop
class DefaultRolloutsStop(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}/stop", **self.url_parameters ) @property def method(self): return "POST" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters def on_200(self, session): pass
class DefaultRolloutsStop(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass
13
0
6
0
6
0
1
0
1
0
0
0
7
0
7
7
56
8
48
18
35
0
22
13
14
2
1
1
8
10,194
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_show.py
azext_providerhub.aaz.latest.providerhub.default_rollout._show.Show.DefaultRolloutsGet
class DefaultRolloutsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ShowHelper._build_schema_system_data_read( _schema_on_200.system_data) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType() properties.status = AAZObjectType() specification = cls._schema_on_200.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.expedited_rollout = AAZObjectType( serialized_name="expeditedRollout", ) specification.high_traffic = AAZObjectType( serialized_name="highTraffic", ) specification.low_traffic = AAZObjectType( serialized_name="lowTraffic", ) specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.medium_traffic = AAZObjectType( serialized_name="mediumTraffic", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.rest_of_the_world_group_one = AAZObjectType( serialized_name="restOfTheWorldGroupOne", ) specification.rest_of_the_world_group_two = AAZObjectType( serialized_name="restOfTheWorldGroupTwo", ) auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200.properties.specification.canary canary.regions = AAZListType() canary.skip_regions = AAZListType( serialized_name="skipRegions", ) regions = cls._schema_on_200.properties.specification.canary.regions regions.Element = AAZStrType() skip_regions = cls._schema_on_200.properties.specification.canary.skip_regions skip_regions.Element = AAZStrType() expedited_rollout = cls._schema_on_200.properties.specification.expedited_rollout expedited_rollout.enabled = AAZBoolType() high_traffic = cls._schema_on_200.properties.specification.high_traffic high_traffic.regions = AAZListType() high_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.high_traffic.regions regions.Element = AAZStrType() low_traffic = cls._schema_on_200.properties.specification.low_traffic low_traffic.regions = AAZListType() low_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.low_traffic.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) medium_traffic = cls._schema_on_200.properties.specification.medium_traffic medium_traffic.regions = AAZListType() medium_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.medium_traffic.regions regions.Element = AAZStrType() provider_registration = cls._schema_on_200.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ShowHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _ShowHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ShowHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ShowHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ShowHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _ShowHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ShowHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ShowHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _ShowHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ShowHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ShowHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ShowHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ShowHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _ShowHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ShowHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() rest_of_the_world_group_one = cls._schema_on_200.properties.specification.rest_of_the_world_group_one rest_of_the_world_group_one.regions = AAZListType() rest_of_the_world_group_one.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_one.regions regions.Element = AAZStrType() rest_of_the_world_group_two = cls._schema_on_200.properties.specification.rest_of_the_world_group_two rest_of_the_world_group_two.regions = AAZListType() rest_of_the_world_group_two.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_two.regions regions.Element = AAZStrType() status = cls._schema_on_200.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) status.next_traffic_region = AAZStrType( serialized_name="nextTrafficRegion", ) status.next_traffic_region_scheduled_time = AAZStrType( serialized_name="nextTrafficRegionScheduledTime", ) status.subscription_reregistration_result = AAZStrType( serialized_name="subscriptionReregistrationResult", ) completed_regions = cls._schema_on_200.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _ShowHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200
class DefaultRolloutsGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
186
23
163
0
1
0
1
1
1
0
8
0
9
9
1,693
220
1,473
161
1,456
0
756
154
746
2
1
1
11
10,195
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_list.py
azext_providerhub.aaz.latest.providerhub.default_rollout._list.List.DefaultRolloutsListByProviderRegistration
class DefaultRolloutsListByProviderRegistration(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ListHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType() properties.status = AAZObjectType() specification = cls._schema_on_200.value.Element.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.expedited_rollout = AAZObjectType( serialized_name="expeditedRollout", ) specification.high_traffic = AAZObjectType( serialized_name="highTraffic", ) specification.low_traffic = AAZObjectType( serialized_name="lowTraffic", ) specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.medium_traffic = AAZObjectType( serialized_name="mediumTraffic", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.rest_of_the_world_group_one = AAZObjectType( serialized_name="restOfTheWorldGroupOne", ) specification.rest_of_the_world_group_two = AAZObjectType( serialized_name="restOfTheWorldGroupTwo", ) auto_provision_config = cls._schema_on_200.value.Element.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200.value.Element.properties.specification.canary canary.regions = AAZListType() canary.skip_regions = AAZListType( serialized_name="skipRegions", ) regions = cls._schema_on_200.value.Element.properties.specification.canary.regions regions.Element = AAZStrType() skip_regions = cls._schema_on_200.value.Element.properties.specification.canary.skip_regions skip_regions.Element = AAZStrType() expedited_rollout = cls._schema_on_200.value.Element.properties.specification.expedited_rollout expedited_rollout.enabled = AAZBoolType() high_traffic = cls._schema_on_200.value.Element.properties.specification.high_traffic high_traffic.regions = AAZListType() high_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.value.Element.properties.specification.high_traffic.regions regions.Element = AAZStrType() low_traffic = cls._schema_on_200.value.Element.properties.specification.low_traffic low_traffic.regions = AAZListType() low_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.value.Element.properties.specification.low_traffic.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) medium_traffic = cls._schema_on_200.value.Element.properties.specification.medium_traffic medium_traffic.regions = AAZListType() medium_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.value.Element.properties.specification.medium_traffic.regions regions.Element = AAZStrType() provider_registration = cls._schema_on_200.value.Element.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ListHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _ListHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ListHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ListHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ListHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _ListHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ListHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() resource_type_registrations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _ListHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _ListHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _ListHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _ListHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _ListHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _ListHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _ListHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _ListHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() rest_of_the_world_group_one = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_one rest_of_the_world_group_one.regions = AAZListType() rest_of_the_world_group_one.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_one.regions regions.Element = AAZStrType() rest_of_the_world_group_two = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_two rest_of_the_world_group_two.regions = AAZListType() rest_of_the_world_group_two.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_two.regions regions.Element = AAZStrType() status = cls._schema_on_200.value.Element.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) status.next_traffic_region = AAZStrType( serialized_name="nextTrafficRegion", ) status.next_traffic_region_scheduled_time = AAZStrType( serialized_name="nextTrafficRegionScheduledTime", ) status.subscription_reregistration_result = AAZStrType( serialized_name="subscriptionReregistrationResult", ) completed_regions = cls._schema_on_200.value.Element.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200.value.Element.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _ListHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200.value.Element.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200
class DefaultRolloutsListByProviderRegistration(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
186
24
163
0
1
0
1
1
1
0
8
0
9
9
1,698
222
1,476
162
1,459
0
761
155
751
2
1
1
11
10,196
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_create.py
azext_providerhub.aaz.latest.providerhub.default_rollout._create.Create.DefaultRolloutsCreateOrUpdate
class DefaultRolloutsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "rolloutName", self.ctx.args.rollout_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop("specification", AAZObjectType) properties.set_prop("status", AAZObjectType, ".status") specification = _builder.get(".properties.specification") if specification is not None: specification.set_prop( "autoProvisionConfig", AAZObjectType, ".auto_provision_config") specification.set_prop("canary", AAZObjectType, ".canary") specification.set_prop( "expeditedRollout", AAZObjectType, ".expedited_rollout") specification.set_prop( "highTraffic", AAZObjectType, ".high_traffic") specification.set_prop( "lowTraffic", AAZObjectType, ".low_traffic") specification.set_prop( "manifestCheckinSpecification", AAZObjectType) specification.set_prop( "mediumTraffic", AAZObjectType, ".medium_traffic") specification.set_prop( "providerRegistration", AAZObjectType, ".provider_registration") specification.set_prop( "resourceTypeRegistrations", AAZListType, ".resource_type_registrations") specification.set_prop( "restOfTheWorldGroupOne", AAZObjectType, ".rest_of_the_world_group_one") specification.set_prop( "restOfTheWorldGroupTwo", AAZObjectType, ".rest_of_the_world_group_two") auto_provision_config = _builder.get( ".properties.specification.autoProvisionConfig") if auto_provision_config is not None: auto_provision_config.set_prop( "resourceGraph", AAZBoolType, ".resource_graph") auto_provision_config.set_prop( "storage", AAZBoolType, ".storage") canary = _builder.get(".properties.specification.canary") if canary is not None: canary.set_prop("regions", AAZListType, ".regions") canary.set_prop("skipRegions", AAZListType, ".skip_regions") regions = _builder.get(".properties.specification.canary.regions") if regions is not None: regions.set_elements(AAZStrType, ".") skip_regions = _builder.get( ".properties.specification.canary.skipRegions") if skip_regions is not None: skip_regions.set_elements(AAZStrType, ".") expedited_rollout = _builder.get( ".properties.specification.expeditedRollout") if expedited_rollout is not None: expedited_rollout.set_prop("enabled", AAZBoolType, ".enabled") high_traffic = _builder.get( ".properties.specification.highTraffic") if high_traffic is not None: high_traffic.set_prop("regions", AAZListType, ".regions") high_traffic.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.highTraffic.regions") if regions is not None: regions.set_elements(AAZStrType, ".") low_traffic = _builder.get(".properties.specification.lowTraffic") if low_traffic is not None: low_traffic.set_prop("regions", AAZListType, ".regions") low_traffic.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.lowTraffic.regions") if regions is not None: regions.set_elements(AAZStrType, ".") manifest_checkin_specification = _builder.get( ".properties.specification.manifestCheckinSpecification") if manifest_checkin_specification is not None: manifest_checkin_specification.set_prop( "manifestCheckinOption", AAZStrType, ".manifest_checkin_option") manifest_checkin_specification.set_prop( "manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") manifest_checkin_params = _builder.get( ".properties.specification.manifestCheckinSpecification.manifestCheckinParams") if manifest_checkin_params is not None: manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) manifest_checkin_params.set_prop( "environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) medium_traffic = _builder.get( ".properties.specification.mediumTraffic") if medium_traffic is not None: medium_traffic.set_prop("regions", AAZListType, ".regions") medium_traffic.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.mediumTraffic.regions") if regions is not None: regions.set_elements(AAZStrType, ".") provider_registration = _builder.get( ".properties.specification.providerRegistration") if provider_registration is not None: provider_registration.set_prop("kind", AAZStrType, ".kind") provider_registration.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.providerRegistration.properties") if properties is not None: properties.set_prop( "capabilities", AAZListType, ".capabilities") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop( "globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") properties.set_prop( "metadata", AAZFreeFormDictType, ".metadata") properties.set_prop("namespace", AAZStrType, ".namespace") properties.set_prop("notificationOptions", AAZStrType, ".notification_options") properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") _CreateHelper._build_schema_notifications_create( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("optionalFeatures", AAZListType, ".optional_features") properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") properties.set_prop( "providerType", AAZStrType, ".provider_type") properties.set_prop("providerVersion", AAZStrType, ".provider_version") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("responseOptions", AAZObjectType, ".response_options") properties.set_prop("serviceName", AAZStrType, ".service_name") properties.set_prop("services", AAZListType, ".services") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) capabilities = _builder.get( ".properties.specification.providerRegistration.properties.capabilities") if capabilities is not None: capabilities.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[]") if _elements is not None: _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) features_rule = _builder.get( ".properties.specification.providerRegistration.properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.globalNotificationEndpoints") if global_notification_endpoints is not None: _CreateHelper._build_schema_resource_provider_endpoint_create( global_notification_endpoints.set_elements(AAZObjectType, ".")) legacy_registrations = _builder.get( ".properties.specification.providerRegistration.properties.legacyRegistrations") if legacy_registrations is not None: legacy_registrations.set_elements(AAZStrType, ".") linked_notification_rules = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("endpoints", AAZListType, ".endpoints") _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) actions = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") if endpoints is not None: _CreateHelper._build_schema_resource_provider_endpoint_create( endpoints.set_elements(AAZObjectType, ".")) management = _builder.get( ".properties.specification.providerRegistration.properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.providerRegistration.properties.management.resourceAccessRoles") if resource_access_roles is not None: _CreateHelper._build_schema_resource_access_role_create( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.providerRegistration.properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.providerRegistration.properties.management.serviceTreeInfos") if service_tree_infos is not None: _CreateHelper._build_schema_service_tree_info_create( service_tree_infos.set_elements(AAZObjectType, ".")) management_group_global_notification_endpoints = _builder.get( ".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") if management_group_global_notification_endpoints is not None: _CreateHelper._build_schema_resource_provider_endpoint_create( management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) metadata = _builder.get( ".properties.specification.providerRegistration.properties.metadata") if metadata is not None: metadata.set_anytype_elements(".") notification_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings") if notification_settings is not None: notification_settings.set_prop( "subscriberSettings", AAZListType, ".subscriber_settings") subscriber_settings = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") if subscriber_settings is not None: subscriber_settings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") if _elements is not None: _elements.set_prop("filterRules", AAZListType, ".filter_rules") filter_rules = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") if filter_rules is not None: filter_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") if _elements is not None: _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") _elements.set_prop("filterQuery", AAZStrType, ".filter_query") endpoint_information = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") if endpoint_information is not None: endpoint_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") if _elements is not None: _elements.set_prop("endpoint", AAZStrType, ".endpoint") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop( "schemaVersion", AAZStrType, ".schema_version") optional_features = _builder.get( ".properties.specification.providerRegistration.properties.optionalFeatures") if optional_features is not None: optional_features.set_elements(AAZStrType, ".") private_resource_provider_configuration = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") if private_resource_provider_configuration is not None: private_resource_provider_configuration.set_prop( "allowedSubscriptions", AAZListType, ".allowed_subscriptions") allowed_subscriptions = _builder.get( ".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") if allowed_subscriptions is not None: allowed_subscriptions.set_elements(AAZStrType, ".") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerAuthorizations") if provider_authorizations is not None: _CreateHelper._build_schema_resource_provider_authorization_create( provider_authorizations.set_elements(AAZObjectType, ".")) provider_hub_metadata = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata") if provider_hub_metadata is not None: provider_hub_metadata.set_prop( "directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") provider_hub_metadata.set_prop( "globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") provider_hub_metadata.set_prop( "providerAuthentication", AAZObjectType, ".provider_authentication") provider_hub_metadata.set_prop( "providerAuthorizations", AAZListType, ".provider_authorizations") provider_hub_metadata.set_prop( "regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") provider_hub_metadata.set_prop( "thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") provider_authentication = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") if provider_authentication is not None: provider_authentication.set_prop( "allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) allowed_audiences = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") if allowed_audiences is not None: allowed_audiences.set_elements(AAZStrType, ".") provider_authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") if provider_authorizations is not None: _CreateHelper._build_schema_resource_provider_authorization_create( provider_authorizations.set_elements(AAZObjectType, ".")) third_party_provider_authorization = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") if third_party_provider_authorization is not None: third_party_provider_authorization.set_prop( "authorizations", AAZListType, ".authorizations") third_party_provider_authorization.set_prop( "managedByTenantId", AAZStrType, ".managed_by_tenant_id") authorizations = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") if authorizations is not None: authorizations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") if _elements is not None: _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={ "flags": {"required": True}}) request_header_options = _builder.get( ".properties.specification.providerRegistration.properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.providerRegistration.properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_group_lock_option_during_move = _builder.get( ".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") if resource_group_lock_option_during_move is not None: resource_group_lock_option_during_move.set_prop( "blockActionVerb", AAZStrType, ".block_action_verb") resource_hydration_accounts = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts") if resource_hydration_accounts is not None: resource_hydration_accounts.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") if _elements is not None: _elements.set_prop("accountName", AAZStrType, ".account_name") _elements.set_prop( "encryptedKey", AAZStrType, ".encrypted_key") _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") _elements.set_prop( "subscriptionId", AAZStrType, ".subscription_id") response_options = _builder.get( ".properties.specification.providerRegistration.properties.responseOptions") if response_options is not None: response_options.set_prop( "serviceClientOptionsType", AAZStrType, ".service_client_options_type") services = _builder.get( ".properties.specification.providerRegistration.properties.services") if services is not None: services.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.providerRegistration.properties.services[]") if _elements is not None: _elements.set_prop("serviceName", AAZStrType, ".service_name") _elements.set_prop("status", AAZStrType, ".status") subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _CreateHelper._build_schema_subscription_state_override_action_create( subscription_state_override_actions.set_elements(AAZObjectType, ".")) template_deployment_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") resource_type_registrations = _builder.get( ".properties.specification.resourceTypeRegistrations") if resource_type_registrations is not None: resource_type_registrations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[]") if _elements is not None: _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("properties", AAZObjectType) properties = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties") if properties is not None: properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") properties.set_prop("additionalOptions", AAZStrType, ".additional_options") properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") properties.set_prop( "allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") properties.set_prop( "apiProfiles", AAZListType, ".api_profiles") properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") properties.set_prop( "authorizationActionMappings", AAZListType, ".authorization_action_mappings") properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") properties.set_prop( "capacityRule", AAZObjectType, ".capacity_rule") properties.set_prop("category", AAZStrType, ".category") properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") properties.set_prop( "crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") properties.set_prop( "disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") properties.set_prop("endpoints", AAZListType, ".endpoints") properties.set_prop("extendedLocations", AAZListType, ".extended_locations") properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") properties.set_prop( "featuresRule", AAZObjectType, ".features_rule") properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") properties.set_prop("identityManagement", AAZObjectType, ".identity_management") properties.set_prop( "isPureProxy", AAZBoolType, ".is_pure_proxy") properties.set_prop("legacyName", AAZStrType, ".legacy_name") properties.set_prop( "legacyNames", AAZListType, ".legacy_names") properties.set_prop( "legacyPolicy", AAZObjectType, ".legacy_policy") properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") properties.set_prop( "loggingRules", AAZListType, ".logging_rules") properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") properties.set_prop("management", AAZObjectType, ".management") properties.set_prop( "manifestLink", AAZStrType, ".manifest_link") properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") properties.set_prop("metadata", AAZDictType, ".metadata") _CreateHelper._build_schema_notifications_create( properties.set_prop("notifications", AAZListType, ".notifications")) properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") properties.set_prop("regionality", AAZStrType, ".regionality") properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") properties.set_prop("requiredFeatures", AAZListType, ".required_features") properties.set_prop( "resourceCache", AAZObjectType, ".resource_cache") properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") properties.set_prop( "resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop( "resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") properties.set_prop( "routingRule", AAZObjectType, ".routing_rule") properties.set_prop("routingType", AAZStrType, ".routing_type") properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") properties.set_prop("skuLink", AAZStrType, ".sku_link") properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") properties.set_prop( "supportsTags", AAZBoolType, ".supports_tags") properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) allowed_resource_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") if allowed_resource_names is not None: allowed_resource_names.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") if _elements is not None: _elements.set_prop( "getActionVerb", AAZStrType, ".get_action_verb") _elements.set_prop("name", AAZStrType, ".name") allowed_template_deployment_reference_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") if allowed_template_deployment_reference_actions is not None: allowed_template_deployment_reference_actions.set_elements( AAZStrType, ".") allowed_unauthorized_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") if allowed_unauthorized_actions is not None: allowed_unauthorized_actions.set_elements(AAZStrType, ".") api_profiles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") if api_profiles is not None: api_profiles.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop( "profileVersion", AAZStrType, ".profile_version") async_timeout_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") if async_timeout_rules is not None: async_timeout_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop("timeout", AAZStrType, ".timeout") authorization_action_mappings = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") if authorization_action_mappings is not None: authorization_action_mappings.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") if _elements is not None: _elements.set_prop("desired", AAZStrType, ".desired") _elements.set_prop("original", AAZStrType, ".original") availability_zone_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") if availability_zone_rule is not None: availability_zone_rule.set_prop( "availabilityZonePolicy", AAZStrType, ".availability_zone_policy") capacity_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.capacityRule") if capacity_rule is not None: capacity_rule.set_prop( "capacityPolicy", AAZStrType, ".capacity_policy") capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") check_name_availability_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") if check_name_availability_specifications is not None: check_name_availability_specifications.set_prop( "enableDefaultValidation", AAZBoolType, ".enable_default_validation") check_name_availability_specifications.set_prop( "resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") resource_types_with_custom_validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") if resource_types_with_custom_validation is not None: resource_types_with_custom_validation.set_elements( AAZStrType, ".") common_api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") if common_api_versions is not None: common_api_versions.set_elements(AAZStrType, ".") disallowed_action_verbs = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") if disallowed_action_verbs is not None: disallowed_action_verbs.set_elements(AAZStrType, ".") disallowed_end_user_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") if disallowed_end_user_operations is not None: disallowed_end_user_operations.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) endpoints = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints") if endpoints is not None: endpoints.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") if _elements is not None: _elements.set_prop("apiVersion", AAZStrType, ".api_version") _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop( "dataBoundary", AAZStrType, ".data_boundary") _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") _elements.set_prop("enabled", AAZBoolType, ".enabled") _elements.set_prop( "endpointType", AAZStrType, ".endpoint_type") _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensions", AAZListType, ".extensions") _elements.set_prop( "featuresRule", AAZObjectType, ".features_rule") _elements.set_prop("kind", AAZStrType, ".kind") _elements.set_prop("locations", AAZListType, ".locations") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") _elements.set_prop("skuLink", AAZStrType, ".sku_link") _elements.set_prop("timeout", AAZStrType, ".timeout") _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop( "tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) _elements.set_prop("zones", AAZListType, ".zones") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") dsts_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") if dsts_configuration is not None: dsts_configuration.set_prop( "serviceDnsName", AAZStrType, ".service_dns_name") dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={ "flags": {"required": True}}) extensions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") if extensions is not None: extensions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") if _elements is not None: _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") _elements.set_prop("timeout", AAZStrType, ".timeout") extension_categories = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") if extension_categories is not None: extension_categories.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") if locations is not None: locations.set_elements(AAZStrType, ".") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") zones = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") if zones is not None: zones.set_elements(AAZStrType, ".") extended_locations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") if extended_locations is not None: extended_locations.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") if _elements is not None: _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") _elements.set_prop("type", AAZStrType, ".type") extension_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") if extension_options is not None: extension_options.set_prop( "resourceCreationBegin", AAZObjectType, ".resource_creation_begin") resource_creation_begin = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") if resource_creation_begin is not None: resource_creation_begin.set_prop( "request", AAZListType, ".request") resource_creation_begin.set_prop( "response", AAZListType, ".response") request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") if request is not None: request.set_elements(AAZStrType, ".") response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") if response is not None: response.set_elements(AAZStrType, ".") features_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.featuresRule") if features_rule is not None: features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={ "flags": {"required": True}}) identity_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement") if identity_management is not None: identity_management.set_prop( "applicationId", AAZStrType, ".application_id") identity_management.set_prop( "applicationIds", AAZListType, ".application_ids") identity_management.set_prop( "delegationAppIds", AAZListType, ".delegation_app_ids") identity_management.set_prop("type", AAZStrType, ".type") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") delegation_app_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") if delegation_app_ids is not None: delegation_app_ids.set_elements(AAZStrType, ".") legacy_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyNames") if legacy_names is not None: legacy_names.set_elements(AAZStrType, ".") legacy_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") if legacy_policy is not None: legacy_policy.set_prop( "disallowedConditions", AAZListType, ".disallowed_conditions") legacy_policy.set_prop( "disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") disallowed_conditions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") if disallowed_conditions is not None: disallowed_conditions.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") if _elements is not None: _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") _elements.set_prop("feature", AAZStrType, ".feature") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") disallowed_legacy_operations = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") if disallowed_legacy_operations is not None: disallowed_legacy_operations.set_elements(AAZStrType, ".") linked_access_checks = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") if linked_access_checks is not None: linked_access_checks.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") if _elements is not None: _elements.set_prop("actionName", AAZStrType, ".action_name") _elements.set_prop( "linkedAction", AAZStrType, ".linked_action") _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") linked_notification_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") if linked_notification_rules is not None: linked_notification_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") if _elements is not None: _elements.set_prop("actions", AAZListType, ".actions") _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") if actions is not None: actions.set_elements(AAZStrType, ".") actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") if actions_on_failed_operation is not None: actions_on_failed_operation.set_elements(AAZStrType, ".") fast_path_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") if fast_path_actions is not None: fast_path_actions.set_elements(AAZStrType, ".") fast_path_actions_on_failed_operation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") if fast_path_actions_on_failed_operation is not None: fast_path_actions_on_failed_operation.set_elements( AAZStrType, ".") linked_operation_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") if linked_operation_rules is not None: linked_operation_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") if _elements is not None: _elements.set_prop( "dependsOnTypes", AAZListType, ".depends_on_types") _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={ "flags": {"required": True}}) depends_on_types = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") if depends_on_types is not None: depends_on_types.set_elements(AAZStrType, ".") logging_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules") if logging_rules is not None: logging_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") hidden_property_paths = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") if hidden_property_paths is not None: hidden_property_paths.set_prop( "hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") hidden_property_paths.set_prop( "hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") hidden_paths_on_request = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") if hidden_paths_on_request is not None: hidden_paths_on_request.set_elements(AAZStrType, ".") hidden_paths_on_response = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") if hidden_paths_on_response is not None: hidden_paths_on_response.set_elements(AAZStrType, ".") managed_resource_group_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") if managed_resource_group_configuration is not None: managed_resource_group_configuration.set_prop( "applicationIds", AAZListType, ".application_ids") managed_resource_group_configuration.set_prop( "denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") managed_resource_group_configuration.set_prop( "enabled", AAZBoolType, ".enabled") managed_resource_group_configuration.set_prop( "resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") application_ids = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") if application_ids is not None: application_ids.set_elements(AAZStrType, ".") deny_assignment_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") if deny_assignment_configuration is not None: deny_assignment_configuration.set_prop( "enabled", AAZBoolType, ".enabled") deny_assignment_configuration.set_prop( "notActions", AAZListType, ".not_actions") not_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") if not_actions is not None: not_actions.set_elements(AAZStrType, ".") management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management") if management is not None: management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") management.set_prop( "expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") management.set_prop( "manifestOwners", AAZListType, ".manifest_owners") management.set_prop("pcCode", AAZStrType, ".pc_code") management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") management.set_prop( "schemaOwners", AAZListType, ".schema_owners") management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") authorization_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") if authorization_owners is not None: authorization_owners.set_elements(AAZStrType, ".") canary_manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") if canary_manifest_owners is not None: canary_manifest_owners.set_elements(AAZStrType, ".") error_response_message_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") if error_response_message_options is not None: error_response_message_options.set_prop( "serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") expedited_rollout_metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") if expedited_rollout_metadata is not None: expedited_rollout_metadata.set_prop( "enabled", AAZBoolType, ".enabled") expedited_rollout_metadata.set_prop( "expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") expedited_rollout_submitters = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") if expedited_rollout_submitters is not None: expedited_rollout_submitters.set_elements(AAZStrType, ".") manifest_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") if manifest_owners is not None: manifest_owners.set_elements(AAZStrType, ".") resource_access_roles = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") if resource_access_roles is not None: _CreateHelper._build_schema_resource_access_role_create( resource_access_roles.set_elements(AAZObjectType, ".")) schema_owners = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") if schema_owners is not None: schema_owners.set_elements(AAZStrType, ".") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") if service_tree_infos is not None: _CreateHelper._build_schema_service_tree_info_create( service_tree_infos.set_elements(AAZObjectType, ".")) marketplace_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") if marketplace_options is not None: marketplace_options.set_prop( "addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") metadata = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata") if metadata is not None: metadata.set_elements(AAZFreeFormDictType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.metadata{}") if _elements is not None: _elements.set_anytype_elements(".") on_behalf_of_tokens = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") if on_behalf_of_tokens is not None: on_behalf_of_tokens.set_prop( "actionName", AAZStrType, ".action_name") on_behalf_of_tokens.set_prop( "lifeTime", AAZStrType, ".life_time") open_api_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") if open_api_configuration is not None: open_api_configuration.set_prop( "validation", AAZObjectType, ".validation") validation = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") if validation is not None: validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") private_endpoint_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") if private_endpoint_configuration is not None: private_endpoint_configuration.set_prop( "groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) private_endpoint_configuration.set_prop( "minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) group_connectivity_information = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") if group_connectivity_information is not None: group_connectivity_information.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") if _elements is not None: _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "redirectMapId", AAZStrType, ".redirect_map_id") _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={ "flags": {"required": True}}) required_members = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") if required_members is not None: required_members.set_elements(AAZStrType, ".") required_zone_names = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") if required_zone_names is not None: required_zone_names.set_elements(AAZStrType, ".") quota_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule") if quota_rule is not None: quota_rule.set_prop( "locationRules", AAZListType, ".location_rules") quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") location_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") if location_rules is not None: location_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") if _elements is not None: _elements.set_prop("location", AAZStrType, ".location") _elements.set_prop("policy", AAZStrType, ".policy") _elements.set_prop("quotaId", AAZStrType, ".quota_id") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") request_header_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") if request_header_options is not None: request_header_options.set_prop( "optInHeaders", AAZStrType, ".opt_in_headers") request_header_options.set_prop( "optOutHeaders", AAZStrType, ".opt_out_headers") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") resource_cache = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceCache") if resource_cache is not None: resource_cache.set_prop( "enableResourceCache", AAZBoolType, ".enable_resource_cache") resource_cache.set_prop( "resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") resource_concurrency_control_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") if resource_concurrency_control_options is not None: resource_concurrency_control_options.set_elements( AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") if _elements is not None: _elements.set_prop("policy", AAZStrType, ".policy") resource_graph_configuration = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") if resource_graph_configuration is not None: resource_graph_configuration.set_prop( "apiVersion", AAZStrType, ".api_version") resource_graph_configuration.set_prop( "enabled", AAZBoolType, ".enabled") resource_management_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") if resource_management_options is not None: resource_management_options.set_prop( "batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") resource_management_options.set_prop( "deleteDependencies", AAZListType, ".delete_dependencies") resource_management_options.set_prop( "nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") batch_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") if batch_provisioning_support is not None: batch_provisioning_support.set_prop( "supportedOperations", AAZStrType, ".supported_operations") delete_dependencies = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") if delete_dependencies is not None: delete_dependencies.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") if _elements is not None: _elements.set_prop( "linkedProperty", AAZStrType, ".linked_property") _elements.set_prop("linkedType", AAZStrType, ".linked_type") _elements.set_prop("requiredFeatures", AAZListType, ".required_features") required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") nested_provisioning_support = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") if nested_provisioning_support is not None: nested_provisioning_support.set_prop( "minimumApiVersion", AAZStrType, ".minimum_api_version") resource_move_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") if resource_move_policy is not None: resource_move_policy.set_prop( "crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") resource_move_policy.set_prop( "crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") resource_move_policy.set_prop( "validationRequired", AAZBoolType, ".validation_required") resource_query_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") if resource_query_management is not None: resource_query_management.set_prop( "filterOption", AAZStrType, ".filter_option") resource_type_common_attribute_management = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") if resource_type_common_attribute_management is not None: resource_type_common_attribute_management.set_prop( "commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") routing_rule = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.routingRule") if routing_rule is not None: routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") service_tree_infos = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") if service_tree_infos is not None: _CreateHelper._build_schema_service_tree_info_create( service_tree_infos.set_elements(AAZObjectType, ".")) subscription_lifecycle_notification_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") if subscription_lifecycle_notification_specifications is not None: subscription_lifecycle_notification_specifications.set_prop( "softDeleteTTL", AAZStrType, ".soft_delete_ttl") subscription_lifecycle_notification_specifications.set_prop( "subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") subscription_state_override_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") if subscription_state_override_actions is not None: _CreateHelper._build_schema_subscription_state_override_action_create( subscription_state_override_actions.set_elements(AAZObjectType, ".")) subscription_state_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") if subscription_state_rules is not None: subscription_state_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") if _elements is not None: _elements.set_prop( "allowedActions", AAZListType, ".allowed_actions") _elements.set_prop("state", AAZStrType, ".state") allowed_actions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") if allowed_actions is not None: allowed_actions.set_elements(AAZStrType, ".") swagger_specifications = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") if swagger_specifications is not None: swagger_specifications.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") if _elements is not None: _elements.set_prop("apiVersions", AAZListType, ".api_versions") _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") api_versions = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") if api_versions is not None: api_versions.set_elements(AAZStrType, ".") template_deployment_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") if template_deployment_options is not None: template_deployment_options.set_prop( "preflightOptions", AAZListType, ".preflight_options") template_deployment_options.set_prop( "preflightSupported", AAZBoolType, ".preflight_supported") preflight_options = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") if preflight_options is not None: preflight_options.set_elements(AAZStrType, ".") template_deployment_policy = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") if template_deployment_policy is not None: template_deployment_policy.set_prop( "capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) template_deployment_policy.set_prop( "preflightNotifications", AAZStrType, ".preflight_notifications") template_deployment_policy.set_prop( "preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) throttling_rules = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") if throttling_rules is not None: throttling_rules.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") if _elements is not None: _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop( "applicationId", AAZListType, ".application_id") _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("requiredFeatures", AAZListType, ".required_features") application_id = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") if application_id is not None: application_id.set_elements(AAZStrType, ".") metrics = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") if metrics is not None: metrics.set_elements(AAZObjectType, ".") _elements = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") if _elements is not None: _elements.set_prop("interval", AAZStrType, ".interval") _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={ "flags": {"required": True}}) _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={ "flags": {"required": True}}) required_features = _builder.get( ".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") if required_features is not None: required_features.set_elements(AAZStrType, ".") rest_of_the_world_group_one = _builder.get( ".properties.specification.restOfTheWorldGroupOne") if rest_of_the_world_group_one is not None: rest_of_the_world_group_one.set_prop( "regions", AAZListType, ".regions") rest_of_the_world_group_one.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.restOfTheWorldGroupOne.regions") if regions is not None: regions.set_elements(AAZStrType, ".") rest_of_the_world_group_two = _builder.get( ".properties.specification.restOfTheWorldGroupTwo") if rest_of_the_world_group_two is not None: rest_of_the_world_group_two.set_prop( "regions", AAZListType, ".regions") rest_of_the_world_group_two.set_prop( "waitDuration", AAZStrType, ".wait_duration") regions = _builder.get( ".properties.specification.restOfTheWorldGroupTwo.regions") if regions is not None: regions.set_elements(AAZStrType, ".") status = _builder.get(".properties.status") if status is not None: status.set_prop("completedRegions", AAZListType, ".completed_regions") status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") status.set_prop("nextTrafficRegion", AAZStrType, ".next_traffic_region") status.set_prop("nextTrafficRegionScheduledTime", AAZStrType, ".next_traffic_region_scheduled_time") status.set_prop("subscriptionReregistrationResult", AAZStrType, ".subscription_reregistration_result") completed_regions = _builder.get( ".properties.status.completedRegions") if completed_regions is not None: completed_regions.set_elements(AAZStrType, ".") failed_or_skipped_regions = _builder.get( ".properties.status.failedOrSkippedRegions") if failed_or_skipped_regions is not None: _CreateHelper._build_schema_extended_error_info_create( failed_or_skipped_regions.set_elements(AAZObjectType, ".")) manifest_checkin_status = _builder.get( ".properties.status.manifestCheckinStatus") if manifest_checkin_status is not None: manifest_checkin_status.set_prop( "commitId", AAZStrType, ".commit_id") manifest_checkin_status.set_prop( "isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) manifest_checkin_status.set_prop( "pullRequest", AAZStrType, ".pull_request") manifest_checkin_status.set_prop( "statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType() _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _CreateHelper._build_schema_system_data_read( _schema_on_200_201.system_data) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.specification = AAZObjectType() properties.status = AAZObjectType() specification = cls._schema_on_200_201.properties.specification specification.auto_provision_config = AAZObjectType( serialized_name="autoProvisionConfig", ) specification.canary = AAZObjectType() specification.expedited_rollout = AAZObjectType( serialized_name="expeditedRollout", ) specification.high_traffic = AAZObjectType( serialized_name="highTraffic", ) specification.low_traffic = AAZObjectType( serialized_name="lowTraffic", ) specification.manifest_checkin_specification = AAZObjectType( serialized_name="manifestCheckinSpecification", ) specification.medium_traffic = AAZObjectType( serialized_name="mediumTraffic", ) specification.provider_registration = AAZObjectType( serialized_name="providerRegistration", ) specification.resource_type_registrations = AAZListType( serialized_name="resourceTypeRegistrations", ) specification.rest_of_the_world_group_one = AAZObjectType( serialized_name="restOfTheWorldGroupOne", ) specification.rest_of_the_world_group_two = AAZObjectType( serialized_name="restOfTheWorldGroupTwo", ) auto_provision_config = cls._schema_on_200_201.properties.specification.auto_provision_config auto_provision_config.resource_graph = AAZBoolType( serialized_name="resourceGraph", ) auto_provision_config.storage = AAZBoolType() canary = cls._schema_on_200_201.properties.specification.canary canary.regions = AAZListType() canary.skip_regions = AAZListType( serialized_name="skipRegions", ) regions = cls._schema_on_200_201.properties.specification.canary.regions regions.Element = AAZStrType() skip_regions = cls._schema_on_200_201.properties.specification.canary.skip_regions skip_regions.Element = AAZStrType() expedited_rollout = cls._schema_on_200_201.properties.specification.expedited_rollout expedited_rollout.enabled = AAZBoolType() high_traffic = cls._schema_on_200_201.properties.specification.high_traffic high_traffic.regions = AAZListType() high_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200_201.properties.specification.high_traffic.regions regions.Element = AAZStrType() low_traffic = cls._schema_on_200_201.properties.specification.low_traffic low_traffic.regions = AAZListType() low_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200_201.properties.specification.low_traffic.regions regions.Element = AAZStrType() manifest_checkin_specification = cls._schema_on_200_201.properties.specification.manifest_checkin_specification manifest_checkin_specification.manifest_checkin_option = AAZStrType( serialized_name="manifestCheckinOption", ) manifest_checkin_specification.manifest_checkin_params = AAZObjectType( serialized_name="manifestCheckinParams", ) manifest_checkin_params = cls._schema_on_200_201.properties.specification.manifest_checkin_specification.manifest_checkin_params manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( serialized_name="baselineArmManifestLocation", flags={"required": True}, ) manifest_checkin_params.environment = AAZStrType( flags={"required": True}, ) medium_traffic = cls._schema_on_200_201.properties.specification.medium_traffic medium_traffic.regions = AAZListType() medium_traffic.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200_201.properties.specification.medium_traffic.regions regions.Element = AAZStrType() provider_registration = cls._schema_on_200_201.properties.specification.provider_registration provider_registration.id = AAZStrType( flags={"read_only": True}, ) provider_registration.kind = AAZStrType() provider_registration.name = AAZStrType( flags={"read_only": True}, ) provider_registration.properties = AAZObjectType() provider_registration.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _CreateHelper._build_schema_system_data_read( provider_registration.system_data) provider_registration.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties.specification.provider_registration.properties properties.capabilities = AAZListType() properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.custom_manifest_version = AAZStrType( serialized_name="customManifestVersion", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_tenant_linked_notification = AAZBoolType( serialized_name="enableTenantLinkedNotification", nullable=True, ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.global_notification_endpoints = AAZListType( serialized_name="globalNotificationEndpoints", ) properties.legacy_namespace = AAZStrType( serialized_name="legacyNamespace", ) properties.legacy_registrations = AAZListType( serialized_name="legacyRegistrations", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.management = AAZObjectType() properties.management_group_global_notification_endpoints = AAZListType( serialized_name="managementGroupGlobalNotificationEndpoints", ) properties.metadata = AAZFreeFormDictType() properties.namespace = AAZStrType() properties.notification_options = AAZStrType( serialized_name="notificationOptions", ) properties.notification_settings = AAZObjectType( serialized_name="notificationSettings", ) properties.notifications = AAZListType() _CreateHelper._build_schema_notifications_read( properties.notifications) properties.optional_features = AAZListType( serialized_name="optionalFeatures", ) properties.private_resource_provider_configuration = AAZObjectType( serialized_name="privateResourceProviderConfiguration", ) properties.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) properties.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) properties.provider_hub_metadata = AAZObjectType( serialized_name="providerHubMetadata", ) properties.provider_type = AAZStrType( serialized_name="providerType", ) properties.provider_version = AAZStrType( serialized_name="providerVersion", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_group_lock_option_during_move = AAZObjectType( serialized_name="resourceGroupLockOptionDuringMove", ) properties.resource_hydration_accounts = AAZListType( serialized_name="resourceHydrationAccounts", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _CreateHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.response_options = AAZObjectType( serialized_name="responseOptions", ) properties.service_name = AAZStrType( serialized_name="serviceName", ) properties.services = AAZListType() properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) capabilities = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities capabilities.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element _element.effect = AAZStrType( flags={"required": True}, ) _element.quota_id = AAZStrType( serialized_name="quotaId", flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element.required_features required_features.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) features_rule = cls._schema_on_200_201.properties.specification.provider_registration.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.global_notification_endpoints global_notification_endpoints.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_endpoint_read( global_notification_endpoints.Element) legacy_registrations = cls._schema_on_200_201.properties.specification.provider_registration.properties.legacy_registrations legacy_registrations.Element = AAZStrType() linked_notification_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.endpoints = AAZListType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints endpoints.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_endpoint_read( endpoints.Element) management = cls._schema_on_200_201.properties.specification.provider_registration.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _CreateHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _CreateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) management_group_global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.management_group_global_notification_endpoints management_group_global_notification_endpoints.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_endpoint_read( management_group_global_notification_endpoints.Element) notification_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings notification_settings.subscriber_settings = AAZListType( serialized_name="subscriberSettings", ) subscriber_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings subscriber_settings.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element _element.filter_rules = AAZListType( serialized_name="filterRules", ) filter_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules filter_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element _element.endpoint_information = AAZListType( serialized_name="endpointInformation", ) _element.filter_query = AAZStrType( serialized_name="filterQuery", ) endpoint_information = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information endpoint_information.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element _element.endpoint = AAZStrType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.schema_version = AAZStrType( serialized_name="schemaVersion", ) optional_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.optional_features optional_features.Element = AAZStrType() private_resource_provider_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration private_resource_provider_configuration.allowed_subscriptions = AAZListType( serialized_name="allowedSubscriptions", ) allowed_subscriptions = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions allowed_subscriptions.Element = AAZStrType() provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authorizations provider_authorizations.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) provider_hub_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( serialized_name="directRpRoleDefinitionId", ) provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( serialized_name="globalAsyncOperationResourceTypeName", ) provider_hub_metadata.provider_authentication = AAZObjectType( serialized_name="providerAuthentication", ) provider_hub_metadata.provider_authorizations = AAZListType( serialized_name="providerAuthorizations", ) provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( serialized_name="regionalAsyncOperationResourceTypeName", ) provider_hub_metadata.third_party_provider_authorization = AAZObjectType( serialized_name="thirdPartyProviderAuthorization", ) provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication provider_authentication.allowed_audiences = AAZListType( serialized_name="allowedAudiences", flags={"required": True}, ) allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences allowed_audiences.Element = AAZStrType() provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations provider_authorizations.Element = AAZObjectType() _CreateHelper._build_schema_resource_provider_authorization_read( provider_authorizations.Element) third_party_provider_authorization = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization third_party_provider_authorization.authorizations = AAZListType() third_party_provider_authorization.managed_by_tenant_id = AAZStrType( serialized_name="managedByTenantId", ) authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations authorizations.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element _element.principal_id = AAZStrType( serialized_name="principalId", flags={"required": True}, ) _element.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", flags={"required": True}, ) request_header_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.required_features required_features.Element = AAZStrType() resource_group_lock_option_during_move = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_group_lock_option_during_move resource_group_lock_option_during_move.block_action_verb = AAZStrType( serialized_name="blockActionVerb", ) resource_hydration_accounts = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts resource_hydration_accounts.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts.Element _element.account_name = AAZStrType( serialized_name="accountName", ) _element.encrypted_key = AAZStrType( serialized_name="encryptedKey", ) _element.max_child_resource_consistency_job_limit = AAZIntType( serialized_name="maxChildResourceConsistencyJobLimit", ) _element.subscription_id = AAZStrType( serialized_name="subscriptionId", ) response_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.response_options response_options.service_client_options_type = AAZStrType( serialized_name="serviceClientOptionsType", ) services = cls._schema_on_200_201.properties.specification.provider_registration.properties.services services.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.services.Element _element.service_name = AAZStrType( serialized_name="serviceName", ) _element.status = AAZStrType() subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _CreateHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) template_deployment_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() resource_type_registrations = cls._schema_on_200_201.properties.specification.resource_type_registrations resource_type_registrations.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.kind = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _CreateHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties properties.add_resource_list_target_locations = AAZBoolType( serialized_name="addResourceListTargetLocations", ) properties.additional_options = AAZStrType( serialized_name="additionalOptions", ) properties.allow_empty_role_assignments = AAZBoolType( serialized_name="allowEmptyRoleAssignments", ) properties.allowed_resource_names = AAZListType( serialized_name="allowedResourceNames", ) properties.allowed_template_deployment_reference_actions = AAZListType( serialized_name="allowedTemplateDeploymentReferenceActions", ) properties.allowed_unauthorized_actions = AAZListType( serialized_name="allowedUnauthorizedActions", ) properties.api_profiles = AAZListType( serialized_name="apiProfiles", ) properties.async_operation_resource_type_name = AAZStrType( serialized_name="asyncOperationResourceTypeName", ) properties.async_timeout_rules = AAZListType( serialized_name="asyncTimeoutRules", ) properties.authorization_action_mappings = AAZListType( serialized_name="authorizationActionMappings", ) properties.availability_zone_rule = AAZObjectType( serialized_name="availabilityZoneRule", ) properties.capacity_rule = AAZObjectType( serialized_name="capacityRule", ) properties.category = AAZStrType() properties.check_name_availability_specifications = AAZObjectType( serialized_name="checkNameAvailabilitySpecifications", ) properties.common_api_versions = AAZListType( serialized_name="commonApiVersions", ) properties.cross_tenant_token_validation = AAZStrType( serialized_name="crossTenantTokenValidation", ) properties.default_api_version = AAZStrType( serialized_name="defaultApiVersion", ) properties.disallowed_action_verbs = AAZListType( serialized_name="disallowedActionVerbs", ) properties.disallowed_end_user_operations = AAZListType( serialized_name="disallowedEndUserOperations", ) properties.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) properties.enable_async_operation = AAZBoolType( serialized_name="enableAsyncOperation", ) properties.enable_third_party_s2_s = AAZBoolType( serialized_name="enableThirdPartyS2S", ) properties.endpoints = AAZListType() properties.extended_locations = AAZListType( serialized_name="extendedLocations", ) properties.extension_options = AAZObjectType( serialized_name="extensionOptions", ) properties.features_rule = AAZObjectType( serialized_name="featuresRule", ) properties.frontdoor_request_mode = AAZStrType( serialized_name="frontdoorRequestMode", ) properties.grouping_tag = AAZStrType( serialized_name="groupingTag", ) properties.identity_management = AAZObjectType( serialized_name="identityManagement", ) properties.is_pure_proxy = AAZBoolType( serialized_name="isPureProxy", ) properties.legacy_name = AAZStrType( serialized_name="legacyName", ) properties.legacy_names = AAZListType( serialized_name="legacyNames", ) properties.legacy_policy = AAZObjectType( serialized_name="legacyPolicy", ) properties.linked_access_checks = AAZListType( serialized_name="linkedAccessChecks", ) properties.linked_notification_rules = AAZListType( serialized_name="linkedNotificationRules", ) properties.linked_operation_rules = AAZListType( serialized_name="linkedOperationRules", ) properties.logging_rules = AAZListType( serialized_name="loggingRules", ) properties.managed_resource_group_configuration = AAZObjectType( serialized_name="managedResourceGroupConfiguration", ) properties.management = AAZObjectType() properties.manifest_link = AAZStrType( serialized_name="manifestLink", ) properties.marketplace_options = AAZObjectType( serialized_name="marketplaceOptions", ) properties.marketplace_type = AAZStrType( serialized_name="marketplaceType", ) properties.metadata = AAZDictType() properties.notifications = AAZListType() _CreateHelper._build_schema_notifications_read( properties.notifications) properties.on_behalf_of_tokens = AAZObjectType( serialized_name="onBehalfOfTokens", ) properties.open_api_configuration = AAZObjectType( serialized_name="openApiConfiguration", ) properties.policy_execution_type = AAZStrType( serialized_name="policyExecutionType", ) properties.private_endpoint_configuration = AAZObjectType( serialized_name="privateEndpointConfiguration", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.quota_rule = AAZObjectType( serialized_name="quotaRule", ) properties.regionality = AAZStrType() properties.request_header_options = AAZObjectType( serialized_name="requestHeaderOptions", ) properties.required_features = AAZListType( serialized_name="requiredFeatures", ) properties.resource_cache = AAZObjectType( serialized_name="resourceCache", ) properties.resource_concurrency_control_options = AAZDictType( serialized_name="resourceConcurrencyControlOptions", ) properties.resource_deletion_policy = AAZStrType( serialized_name="resourceDeletionPolicy", ) properties.resource_graph_configuration = AAZObjectType( serialized_name="resourceGraphConfiguration", ) properties.resource_management_options = AAZObjectType( serialized_name="resourceManagementOptions", ) properties.resource_move_policy = AAZObjectType( serialized_name="resourceMovePolicy", ) properties.resource_provider_authorization_rules = AAZObjectType( serialized_name="resourceProviderAuthorizationRules", ) _CreateHelper._build_schema_resource_provider_authorization_rules_read( properties.resource_provider_authorization_rules) properties.resource_query_management = AAZObjectType( serialized_name="resourceQueryManagement", ) properties.resource_sub_type = AAZStrType( serialized_name="resourceSubType", ) properties.resource_type_common_attribute_management = AAZObjectType( serialized_name="resourceTypeCommonAttributeManagement", ) properties.resource_validation = AAZStrType( serialized_name="resourceValidation", ) properties.routing_rule = AAZObjectType( serialized_name="routingRule", ) properties.routing_type = AAZStrType( serialized_name="routingType", ) properties.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) properties.sku_link = AAZStrType( serialized_name="skuLink", ) properties.subscription_lifecycle_notification_specifications = AAZObjectType( serialized_name="subscriptionLifecycleNotificationSpecifications", ) properties.subscription_state_rules = AAZListType( serialized_name="subscriptionStateRules", ) properties.supports_tags = AAZBoolType( serialized_name="supportsTags", ) properties.swagger_specifications = AAZListType( serialized_name="swaggerSpecifications", ) properties.template_deployment_options = AAZObjectType( serialized_name="templateDeploymentOptions", ) properties.template_deployment_policy = AAZObjectType( serialized_name="templateDeploymentPolicy", ) properties.throttling_rules = AAZListType( serialized_name="throttlingRules", ) properties.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( properties.token_auth_configuration) allowed_resource_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names allowed_resource_names.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element _element.get_action_verb = AAZStrType( serialized_name="getActionVerb", ) _element.name = AAZStrType() allowed_template_deployment_reference_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions allowed_template_deployment_reference_actions.Element = AAZStrType() allowed_unauthorized_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions allowed_unauthorized_actions.Element = AAZStrType() api_profiles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles api_profiles.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.profile_version = AAZStrType( serialized_name="profileVersion", ) async_timeout_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules async_timeout_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.timeout = AAZStrType() authorization_action_mappings = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings authorization_action_mappings.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element _element.desired = AAZStrType() _element.original = AAZStrType() availability_zone_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule availability_zone_rule.availability_zone_policy = AAZStrType( serialized_name="availabilityZonePolicy", ) capacity_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.capacity_rule capacity_rule.capacity_policy = AAZStrType( serialized_name="capacityPolicy", ) capacity_rule.sku_alias = AAZStrType( serialized_name="skuAlias", ) check_name_availability_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications check_name_availability_specifications.enable_default_validation = AAZBoolType( serialized_name="enableDefaultValidation", ) check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( serialized_name="resourceTypesWithCustomValidation", ) resource_types_with_custom_validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation resource_types_with_custom_validation.Element = AAZStrType() common_api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.common_api_versions common_api_versions.Element = AAZStrType() disallowed_action_verbs = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs disallowed_action_verbs.Element = AAZStrType() disallowed_end_user_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations disallowed_end_user_operations.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) endpoints = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints endpoints.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element _element.api_version = AAZStrType( serialized_name="apiVersion", ) _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.data_boundary = AAZStrType( serialized_name="dataBoundary", ) _element.dsts_configuration = AAZObjectType( serialized_name="dstsConfiguration", ) _element.enabled = AAZBoolType() _element.endpoint_type = AAZStrType( serialized_name="endpointType", ) _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extensions = AAZListType() _element.features_rule = AAZObjectType( serialized_name="featuresRule", ) _element.kind = AAZStrType() _element.locations = AAZListType() _element.required_features = AAZListType( serialized_name="requiredFeatures", ) _element.sku_link = AAZStrType( serialized_name="skuLink", ) _element.timeout = AAZStrType() _element.token_auth_configuration = AAZObjectType( serialized_name="tokenAuthConfiguration", ) _CreateHelper._build_schema_token_auth_configuration_read( _element.token_auth_configuration) _element.zones = AAZListType() api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions api_versions.Element = AAZStrType() dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration dsts_configuration.service_dns_name = AAZStrType( serialized_name="serviceDnsName", ) dsts_configuration.service_name = AAZStrType( serialized_name="serviceName", flags={"required": True}, ) extensions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions extensions.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element _element.endpoint_uri = AAZStrType( serialized_name="endpointUri", ) _element.extension_categories = AAZListType( serialized_name="extensionCategories", ) _element.timeout = AAZStrType() extension_categories = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories extension_categories.Element = AAZStrType() features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations locations.Element = AAZStrType() required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features required_features.Element = AAZStrType() zones = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones zones.Element = AAZStrType() extended_locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations extended_locations.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element _element.supported_policy = AAZStrType( serialized_name="supportedPolicy", ) _element.type = AAZStrType() extension_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options extension_options.resource_creation_begin = AAZObjectType( serialized_name="resourceCreationBegin", ) resource_creation_begin = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin resource_creation_begin.request = AAZListType() resource_creation_begin.response = AAZListType() request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request request.Element = AAZStrType() response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response response.Element = AAZStrType() features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.features_rule features_rule.required_features_policy = AAZStrType( serialized_name="requiredFeaturesPolicy", flags={"required": True}, ) identity_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management identity_management.application_id = AAZStrType( serialized_name="applicationId", ) identity_management.application_ids = AAZListType( serialized_name="applicationIds", ) identity_management.delegation_app_ids = AAZListType( serialized_name="delegationAppIds", ) identity_management.type = AAZStrType() application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids application_ids.Element = AAZStrType() delegation_app_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids delegation_app_ids.Element = AAZStrType() legacy_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_names legacy_names.Element = AAZStrType() legacy_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy legacy_policy.disallowed_conditions = AAZListType( serialized_name="disallowedConditions", ) legacy_policy.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) disallowed_conditions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions disallowed_conditions.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element _element.disallowed_legacy_operations = AAZListType( serialized_name="disallowedLegacyOperations", ) _element.feature = AAZStrType() disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations disallowed_legacy_operations.Element = AAZStrType() linked_access_checks = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks linked_access_checks.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element _element.action_name = AAZStrType( serialized_name="actionName", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", ) _element.linked_action_verb = AAZStrType( serialized_name="linkedActionVerb", ) _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) linked_notification_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules linked_notification_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element _element.actions = AAZListType() _element.actions_on_failed_operation = AAZListType( serialized_name="actionsOnFailedOperation", ) _element.fast_path_actions = AAZListType( serialized_name="fastPathActions", ) _element.fast_path_actions_on_failed_operation = AAZListType( serialized_name="fastPathActionsOnFailedOperation", ) _element.linked_notification_timeout = AAZStrType( serialized_name="linkedNotificationTimeout", ) actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions actions.Element = AAZStrType() actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation actions_on_failed_operation.Element = AAZStrType() fast_path_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions fast_path_actions.Element = AAZStrType() fast_path_actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation fast_path_actions_on_failed_operation.Element = AAZStrType() linked_operation_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules linked_operation_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element _element.depends_on_types = AAZListType( serialized_name="dependsOnTypes", ) _element.linked_action = AAZStrType( serialized_name="linkedAction", flags={"required": True}, ) _element.linked_operation = AAZStrType( serialized_name="linkedOperation", flags={"required": True}, ) depends_on_types = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types depends_on_types.Element = AAZStrType() logging_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules logging_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.detail_level = AAZStrType( serialized_name="detailLevel", flags={"required": True}, ) _element.direction = AAZStrType( flags={"required": True}, ) _element.hidden_property_paths = AAZObjectType( serialized_name="hiddenPropertyPaths", ) hidden_property_paths = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths hidden_property_paths.hidden_paths_on_request = AAZListType( serialized_name="hiddenPathsOnRequest", ) hidden_property_paths.hidden_paths_on_response = AAZListType( serialized_name="hiddenPathsOnResponse", ) hidden_paths_on_request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request hidden_paths_on_request.Element = AAZStrType() hidden_paths_on_response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response hidden_paths_on_response.Element = AAZStrType() managed_resource_group_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration managed_resource_group_configuration.application_ids = AAZListType( serialized_name="applicationIds", ) managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( serialized_name="denyAssignmentConfiguration", ) managed_resource_group_configuration.enabled = AAZBoolType() managed_resource_group_configuration.resource_group_location_override = AAZStrType( serialized_name="resourceGroupLocationOverride", ) application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids application_ids.Element = AAZStrType() deny_assignment_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration deny_assignment_configuration.enabled = AAZBoolType() deny_assignment_configuration.not_actions = AAZListType( serialized_name="notActions", ) not_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions not_actions.Element = AAZStrType() management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management management.authorization_owners = AAZListType( serialized_name="authorizationOwners", ) management.canary_manifest_owners = AAZListType( serialized_name="canaryManifestOwners", ) management.error_response_message_options = AAZObjectType( serialized_name="errorResponseMessageOptions", ) management.expedited_rollout_metadata = AAZObjectType( serialized_name="expeditedRolloutMetadata", ) management.expedited_rollout_submitters = AAZListType( serialized_name="expeditedRolloutSubmitters", ) management.incident_contact_email = AAZStrType( serialized_name="incidentContactEmail", ) management.incident_routing_service = AAZStrType( serialized_name="incidentRoutingService", ) management.incident_routing_team = AAZStrType( serialized_name="incidentRoutingTeam", ) management.manifest_owners = AAZListType( serialized_name="manifestOwners", ) management.pc_code = AAZStrType( serialized_name="pcCode", ) management.profit_center_program_id = AAZStrType( serialized_name="profitCenterProgramId", ) management.resource_access_policy = AAZStrType( serialized_name="resourceAccessPolicy", ) management.resource_access_roles = AAZListType( serialized_name="resourceAccessRoles", ) management.schema_owners = AAZListType( serialized_name="schemaOwners", ) management.service_tree_infos = AAZListType( serialized_name="serviceTreeInfos", ) authorization_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners authorization_owners.Element = AAZStrType() canary_manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners canary_manifest_owners.Element = AAZStrType() error_response_message_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options error_response_message_options.server_failure_response_message_type = AAZStrType( serialized_name="serverFailureResponseMessageType", ) expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata expedited_rollout_metadata.enabled = AAZBoolType() expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( serialized_name="expeditedRolloutIntent", ) expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters expedited_rollout_submitters.Element = AAZStrType() manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners manifest_owners.Element = AAZStrType() resource_access_roles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles resource_access_roles.Element = AAZObjectType() _CreateHelper._build_schema_resource_access_role_read( resource_access_roles.Element) schema_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.schema_owners schema_owners.Element = AAZStrType() service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos service_tree_infos.Element = AAZObjectType() _CreateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) marketplace_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.marketplace_options marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( serialized_name="addOnPlanConversionAllowed", ) metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.metadata metadata.Element = AAZFreeFormDictType() on_behalf_of_tokens = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens on_behalf_of_tokens.action_name = AAZStrType( serialized_name="actionName", ) on_behalf_of_tokens.life_time = AAZStrType( serialized_name="lifeTime", ) open_api_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration open_api_configuration.validation = AAZObjectType() validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation validation.allow_noncompliant_collection_response = AAZBoolType( serialized_name="allowNoncompliantCollectionResponse", ) private_endpoint_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration private_endpoint_configuration.group_connectivity_information = AAZListType( serialized_name="groupConnectivityInformation", flags={"required": True}, ) private_endpoint_configuration.min_api_version = AAZStrType( serialized_name="minApiVersion", flags={"required": True}, ) group_connectivity_information = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information group_connectivity_information.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element _element.group_id = AAZStrType( serialized_name="groupId", flags={"required": True}, ) _element.redirect_map_id = AAZStrType( serialized_name="redirectMapId", ) _element.required_members = AAZListType( serialized_name="requiredMembers", flags={"required": True}, ) _element.required_zone_names = AAZListType( serialized_name="requiredZoneNames", flags={"required": True}, ) required_members = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members required_members.Element = AAZStrType() required_zone_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names required_zone_names.Element = AAZStrType() quota_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule quota_rule.location_rules = AAZListType( serialized_name="locationRules", ) quota_rule.quota_policy = AAZStrType( serialized_name="quotaPolicy", ) quota_rule.required_features = AAZListType( serialized_name="requiredFeatures", ) location_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules location_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element _element.location = AAZStrType() _element.policy = AAZStrType() _element.quota_id = AAZStrType( serialized_name="quotaId", ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features required_features.Element = AAZStrType() request_header_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.request_header_options request_header_options.opt_in_headers = AAZStrType( serialized_name="optInHeaders", ) request_header_options.opt_out_headers = AAZStrType( serialized_name="optOutHeaders", ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.required_features required_features.Element = AAZStrType() resource_cache = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_cache resource_cache.enable_resource_cache = AAZBoolType( serialized_name="enableResourceCache", ) resource_cache.resource_cache_expiration_timespan = AAZStrType( serialized_name="resourceCacheExpirationTimespan", ) resource_concurrency_control_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options resource_concurrency_control_options.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element _element.policy = AAZStrType() resource_graph_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration resource_graph_configuration.api_version = AAZStrType( serialized_name="apiVersion", ) resource_graph_configuration.enabled = AAZBoolType() resource_management_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options resource_management_options.batch_provisioning_support = AAZObjectType( serialized_name="batchProvisioningSupport", ) resource_management_options.delete_dependencies = AAZListType( serialized_name="deleteDependencies", ) resource_management_options.nested_provisioning_support = AAZObjectType( serialized_name="nestedProvisioningSupport", ) batch_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support batch_provisioning_support.supported_operations = AAZStrType( serialized_name="supportedOperations", ) delete_dependencies = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies delete_dependencies.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element _element.linked_property = AAZStrType( serialized_name="linkedProperty", ) _element.linked_type = AAZStrType( serialized_name="linkedType", ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features required_features.Element = AAZStrType() nested_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support nested_provisioning_support.minimum_api_version = AAZStrType( serialized_name="minimumApiVersion", ) resource_move_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_move_policy resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( serialized_name="crossResourceGroupMoveEnabled", ) resource_move_policy.cross_subscription_move_enabled = AAZBoolType( serialized_name="crossSubscriptionMoveEnabled", ) resource_move_policy.validation_required = AAZBoolType( serialized_name="validationRequired", ) resource_query_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_query_management resource_query_management.filter_option = AAZStrType( serialized_name="filterOption", ) resource_type_common_attribute_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( serialized_name="commonApiVersionsMergeMode", ) routing_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.routing_rule routing_rule.host_resource_type = AAZStrType( serialized_name="hostResourceType", ) service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.service_tree_infos service_tree_infos.Element = AAZObjectType() _CreateHelper._build_schema_service_tree_info_read( service_tree_infos.Element) subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( serialized_name="softDeleteTTL", ) subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( serialized_name="subscriptionStateOverrideActions", ) subscription_state_override_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions subscription_state_override_actions.Element = AAZObjectType() _CreateHelper._build_schema_subscription_state_override_action_read( subscription_state_override_actions.Element) subscription_state_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules subscription_state_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element _element.allowed_actions = AAZListType( serialized_name="allowedActions", ) _element.state = AAZStrType() allowed_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions allowed_actions.Element = AAZStrType() swagger_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications swagger_specifications.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element _element.api_versions = AAZListType( serialized_name="apiVersions", ) _element.swagger_spec_folder_uri = AAZStrType( serialized_name="swaggerSpecFolderUri", ) api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions api_versions.Element = AAZStrType() template_deployment_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options template_deployment_options.preflight_options = AAZListType( serialized_name="preflightOptions", ) template_deployment_options.preflight_supported = AAZBoolType( serialized_name="preflightSupported", ) preflight_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options preflight_options.Element = AAZStrType() template_deployment_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy template_deployment_policy.capabilities = AAZStrType( flags={"required": True}, ) template_deployment_policy.preflight_notifications = AAZStrType( serialized_name="preflightNotifications", ) template_deployment_policy.preflight_options = AAZStrType( serialized_name="preflightOptions", flags={"required": True}, ) throttling_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules throttling_rules.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element _element.action = AAZStrType( flags={"required": True}, ) _element.application_id = AAZListType( serialized_name="applicationId", ) _element.metrics = AAZListType( flags={"required": True}, ) _element.required_features = AAZListType( serialized_name="requiredFeatures", ) application_id = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id application_id.Element = AAZStrType() metrics = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics metrics.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element _element.interval = AAZStrType() _element.limit = AAZIntType( flags={"required": True}, ) _element.type = AAZStrType( flags={"required": True}, ) required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features required_features.Element = AAZStrType() rest_of_the_world_group_one = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_one rest_of_the_world_group_one.regions = AAZListType() rest_of_the_world_group_one.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_one.regions regions.Element = AAZStrType() rest_of_the_world_group_two = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_two rest_of_the_world_group_two.regions = AAZListType() rest_of_the_world_group_two.wait_duration = AAZStrType( serialized_name="waitDuration", ) regions = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_two.regions regions.Element = AAZStrType() status = cls._schema_on_200_201.properties.status status.completed_regions = AAZListType( serialized_name="completedRegions", ) status.failed_or_skipped_regions = AAZDictType( serialized_name="failedOrSkippedRegions", ) status.manifest_checkin_status = AAZObjectType( serialized_name="manifestCheckinStatus", ) status.next_traffic_region = AAZStrType( serialized_name="nextTrafficRegion", ) status.next_traffic_region_scheduled_time = AAZStrType( serialized_name="nextTrafficRegionScheduledTime", ) status.subscription_reregistration_result = AAZStrType( serialized_name="subscriptionReregistrationResult", ) completed_regions = cls._schema_on_200_201.properties.status.completed_regions completed_regions.Element = AAZStrType() failed_or_skipped_regions = cls._schema_on_200_201.properties.status.failed_or_skipped_regions failed_or_skipped_regions.Element = AAZObjectType() _CreateHelper._build_schema_extended_error_info_read( failed_or_skipped_regions.Element) manifest_checkin_status = cls._schema_on_200_201.properties.status.manifest_checkin_status manifest_checkin_status.commit_id = AAZStrType( serialized_name="commitId", ) manifest_checkin_status.is_checked_in = AAZBoolType( serialized_name="isCheckedIn", flags={"required": True}, ) manifest_checkin_status.pull_request = AAZStrType( serialized_name="pullRequest", ) manifest_checkin_status.status_message = AAZStrType( serialized_name="statusMessage", flags={"required": True}, ) return cls._schema_on_200_201
class DefaultRolloutsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
280
42
239
0
22
0
1
1
1
0
9
1
10
10
2,826
430
2,396
300
2,377
0
1,657
291
1,646
209
1
1
221
10,197
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_list.py
azext_providerhub.aaz.latest.providerhub.authorized_application._list.List.AuthorizedApplicationsList
class AuthorizedApplicationsList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.data_authorizations = AAZListType( serialized_name="dataAuthorizations", ) properties.provider_authorization = AAZObjectType( serialized_name="providerAuthorization", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) data_authorizations = cls._schema_on_200.value.Element.properties.data_authorizations data_authorizations.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.data_authorizations.Element _element.resource_types = AAZListType( serialized_name="resourceTypes", ) _element.role = AAZStrType( flags={"required": True}, ) resource_types = cls._schema_on_200.value.Element.properties.data_authorizations.Element.resource_types resource_types.Element = AAZStrType() provider_authorization = cls._schema_on_200.value.Element.properties.provider_authorization provider_authorization.managed_by_role_definition_id = AAZStrType( serialized_name="managedByRoleDefinitionId", ) provider_authorization.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class AuthorizedApplicationsList(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
15
1
14
0
1
0
1
0
0
0
8
0
9
9
156
22
134
33
117
0
64
26
54
2
1
1
11
10,198
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_delete.py
azext_providerhub.aaz.latest.providerhub.authorized_application._delete.Delete.AuthorizedApplicationsDelete
class AuthorizedApplicationsDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) if session.http_response.status_code in [204]: return self.on_204(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", **self.url_parameters ) @property def method(self): return "DELETE" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "applicationId", self.ctx.args.application_id, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class AuthorizedApplicationsDelete(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass def on_200(self, session): pass def on_204(self, session): pass
14
0
6
0
6
0
1
0
1
0
0
0
8
0
8
8
61
9
52
19
38
0
26
14
17
3
1
1
10
10,199
Azure/azure-cli-extensions
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/data/git_repos_for_analysis/Azure_azure-cli-extensions/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_create.py
azext_providerhub.aaz.latest.providerhub.authorized_application._create.Create.AuthorizedApplicationsCreateOrUpdate
class AuthorizedApplicationsCreateOrUpdate(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200_201, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", **self.url_parameters ) @property def method(self): return "PUT" @property def error_format(self): return "MgmtErrorFormat" @property def url_parameters(self): parameters = { **self.serialize_url_param( "applicationId", self.ctx.args.application_id, required=True, ), **self.serialize_url_param( "providerNamespace", self.ctx.args.provider_namespace, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-04-01-preview", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType) properties = _builder.get(".properties") if properties is not None: properties.set_prop("dataAuthorizations", AAZListType, ".data_authorizations") properties.set_prop("providerAuthorization", AAZObjectType, ".provider_authorization") data_authorizations = _builder.get( ".properties.dataAuthorizations") if data_authorizations is not None: data_authorizations.set_elements(AAZObjectType, ".") _elements = _builder.get(".properties.dataAuthorizations[]") if _elements is not None: _elements.set_prop( "resourceTypes", AAZListType, ".resource_types") _elements.set_prop("role", AAZStrType, ".role", typ_kwargs={ "flags": {"required": True}}) resource_types = _builder.get( ".properties.dataAuthorizations[].resourceTypes") if resource_types is not None: resource_types.set_elements(AAZStrType, ".") provider_authorization = _builder.get( ".properties.providerAuthorization") if provider_authorization is not None: provider_authorization.set_prop( "managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") provider_authorization.set_prop( "roleDefinitionId", AAZStrType, ".role_definition_id") return self.serialize_content(_content_value) def on_200_201(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200_201 ) _schema_on_200_201 = None @classmethod def _build_schema_on_200_201(cls): if cls._schema_on_200_201 is not None: return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() _schema_on_200_201 = cls._schema_on_200_201 _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType() _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.data_authorizations = AAZListType( serialized_name="dataAuthorizations", ) properties.provider_authorization = AAZObjectType( serialized_name="providerAuthorization", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) data_authorizations = cls._schema_on_200_201.properties.data_authorizations data_authorizations.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.data_authorizations.Element _element.resource_types = AAZListType( serialized_name="resourceTypes", ) _element.role = AAZStrType( flags={"required": True}, ) resource_types = cls._schema_on_200_201.properties.data_authorizations.Element.resource_types resource_types.Element = AAZStrType() provider_authorization = cls._schema_on_200_201.properties.provider_authorization provider_authorization.managed_by_role_definition_id = AAZStrType( serialized_name="managedByRoleDefinitionId", ) provider_authorization.role_definition_id = AAZStrType( serialized_name="roleDefinitionId", ) system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200_201
class AuthorizedApplicationsCreateOrUpdate(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200_201(self, session): pass @classmethod def _build_schema_on_200_201(cls): pass
19
0
18
2
17
0
2
0
1
0
0
0
9
1
10
10
204
27
177
41
158
0
83
32
72
6
1
1
18