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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,800 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.Dim_separatorContext
|
class Dim_separatorContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def AND(self):
return self.getToken(ScheduleQueryConditionParser.AND, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_dim_separator
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterDim_separator"):
listener.enterDim_separator(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitDim_separator"):
listener.exitDim_separator(self)
|
class Dim_separatorContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def WHITESPACE(self):
pass
def AND(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 6 | 1 | 6 | 6 | 23 | 6 | 17 | 9 | 10 | 0 | 17 | 9 | 10 | 2 | 1 | 1 | 8 |
9,801 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.Dim_operatorContext
|
class Dim_operatorContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def INCLUDES(self):
return self.getToken(ScheduleQueryConditionParser.INCLUDES, 0)
def EXCLUDES(self):
return self.getToken(ScheduleQueryConditionParser.EXCLUDES, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_dim_operator
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterDim_operator"):
listener.enterDim_operator(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitDim_operator"):
listener.exitDim_operator(self)
|
class Dim_operatorContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def WHITESPACE(self):
pass
def INCLUDES(self):
pass
def EXCLUDES(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 8 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 7 | 1 | 7 | 7 | 26 | 7 | 19 | 10 | 11 | 0 | 19 | 10 | 11 | 2 | 1 | 1 | 9 |
9,802 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.Dim_nameContext
|
class Dim_nameContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def WORD(self):
return self.getToken(ScheduleQueryConditionParser.WORD, 0)
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_dim_name
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterDim_name"):
listener.enterDim_name(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitDim_name"):
listener.exitDim_name(self)
|
class Dim_nameContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def WORD(self):
pass
def WHITESPACE(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 6 | 1 | 6 | 6 | 23 | 6 | 17 | 9 | 10 | 0 | 17 | 9 | 10 | 2 | 1 | 1 | 8 |
9,803 |
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/reservation/azext_reservation/aaz/latest/reservations/reservation_order/_show.py
|
azext_reservation.aaz.latest.reservations.reservation_order._show.Show.ReservationOrderGet
|
class ReservationOrderGet(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(
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}",
**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(
"reservationOrderId", self.ctx.args.reservation_order_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"$expand", self.ctx.args.expand,
),
**self.serialize_query_param(
"api-version", "2022-11-01",
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 = AAZIntType()
_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},
)
_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.benefit_start_time = AAZStrType(
serialized_name="benefitStartTime",
)
properties.billing_plan = AAZStrType(
serialized_name="billingPlan",
)
properties.created_date_time = AAZStrType(
serialized_name="createdDateTime",
)
properties.display_name = AAZStrType(
serialized_name="displayName",
)
properties.expiry_date = AAZStrType(
serialized_name="expiryDate",
)
properties.expiry_date_time = AAZStrType(
serialized_name="expiryDateTime",
)
properties.original_quantity = AAZIntType(
serialized_name="originalQuantity",
)
properties.plan_information = AAZObjectType(
serialized_name="planInformation",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
)
properties.request_date_time = AAZStrType(
serialized_name="requestDateTime",
)
properties.reservations = AAZListType()
properties.review_date_time = AAZStrType(
serialized_name="reviewDateTime",
)
properties.term = AAZStrType()
plan_information = cls._schema_on_200.properties.plan_information
plan_information.next_payment_due_date = AAZStrType(
serialized_name="nextPaymentDueDate",
)
plan_information.pricing_currency_total = AAZObjectType(
serialized_name="pricingCurrencyTotal",
)
_ShowHelper._build_schema_price_read(
plan_information.pricing_currency_total)
plan_information.start_date = AAZStrType(
serialized_name="startDate",
)
plan_information.transactions = AAZListType()
transactions = cls._schema_on_200.properties.plan_information.transactions
transactions.Element = AAZObjectType()
_element = cls._schema_on_200.properties.plan_information.transactions.Element
_element.billing_account = AAZStrType(
serialized_name="billingAccount",
)
_element.billing_currency_total = AAZObjectType(
serialized_name="billingCurrencyTotal",
)
_ShowHelper._build_schema_price_read(
_element.billing_currency_total)
_element.due_date = AAZStrType(
serialized_name="dueDate",
)
_element.extended_status_info = AAZObjectType(
serialized_name="extendedStatusInfo",
)
_ShowHelper._build_schema_extended_status_info_read(
_element.extended_status_info)
_element.payment_date = AAZStrType(
serialized_name="paymentDate",
)
_element.pricing_currency_total = AAZObjectType(
serialized_name="pricingCurrencyTotal",
)
_ShowHelper._build_schema_price_read(
_element.pricing_currency_total)
_element.status = AAZStrType()
reservations = cls._schema_on_200.properties.reservations
reservations.Element = AAZObjectType()
_element = cls._schema_on_200.properties.reservations.Element
_element.etag = AAZIntType()
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.kind = AAZStrType()
_element.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.sku = AAZObjectType()
_ShowHelper._build_schema_sku_name_read(_element.sku)
_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.reservations.Element.properties
properties.applied_scope_properties = AAZObjectType(
serialized_name="appliedScopeProperties",
)
_ShowHelper._build_schema_applied_scope_properties_read(
properties.applied_scope_properties)
properties.applied_scope_type = AAZStrType(
serialized_name="appliedScopeType",
)
properties.applied_scopes = AAZListType(
serialized_name="appliedScopes",
)
_ShowHelper._build_schema_applied_scopes_read(
properties.applied_scopes)
properties.archived = AAZBoolType()
properties.benefit_start_time = AAZStrType(
serialized_name="benefitStartTime",
)
properties.billing_plan = AAZStrType(
serialized_name="billingPlan",
)
properties.billing_scope_id = AAZStrType(
serialized_name="billingScopeId",
)
properties.capabilities = AAZStrType()
properties.display_name = AAZStrType(
serialized_name="displayName",
)
properties.display_provisioning_state = AAZStrType(
serialized_name="displayProvisioningState",
flags={"read_only": True},
)
properties.effective_date_time = AAZStrType(
serialized_name="effectiveDateTime",
)
properties.expiry_date = AAZStrType(
serialized_name="expiryDate",
)
properties.expiry_date_time = AAZStrType(
serialized_name="expiryDateTime",
)
properties.extended_status_info = AAZObjectType(
serialized_name="extendedStatusInfo",
)
_ShowHelper._build_schema_extended_status_info_read(
properties.extended_status_info)
properties.instance_flexibility = AAZStrType(
serialized_name="instanceFlexibility",
)
properties.last_updated_date_time = AAZStrType(
serialized_name="lastUpdatedDateTime",
flags={"read_only": True},
)
properties.merge_properties = AAZObjectType(
serialized_name="mergeProperties",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
)
properties.provisioning_sub_state = AAZStrType(
serialized_name="provisioningSubState",
flags={"read_only": True},
)
properties.purchase_date = AAZStrType(
serialized_name="purchaseDate",
)
properties.purchase_date_time = AAZStrType(
serialized_name="purchaseDateTime",
)
properties.quantity = AAZIntType()
properties.renew = AAZBoolType()
properties.renew_destination = AAZStrType(
serialized_name="renewDestination",
)
properties.renew_properties = AAZObjectType(
serialized_name="renewProperties",
)
properties.renew_source = AAZStrType(
serialized_name="renewSource",
)
properties.reserved_resource_type = AAZStrType(
serialized_name="reservedResourceType",
)
properties.review_date_time = AAZStrType(
serialized_name="reviewDateTime",
)
properties.sku_description = AAZStrType(
serialized_name="skuDescription",
)
properties.split_properties = AAZObjectType(
serialized_name="splitProperties",
)
properties.swap_properties = AAZObjectType(
serialized_name="swapProperties",
)
properties.term = AAZStrType()
properties.user_friendly_applied_scope_type = AAZStrType(
serialized_name="userFriendlyAppliedScopeType",
flags={"read_only": True},
)
properties.user_friendly_renew_state = AAZStrType(
serialized_name="userFriendlyRenewState",
flags={"read_only": True},
)
properties.utilization = AAZObjectType(
flags={"read_only": True},
)
merge_properties = cls._schema_on_200.properties.reservations.Element.properties.merge_properties
merge_properties.merge_destination = AAZStrType(
serialized_name="mergeDestination",
)
merge_properties.merge_sources = AAZListType(
serialized_name="mergeSources",
)
merge_sources = cls._schema_on_200.properties.reservations.Element.properties.merge_properties.merge_sources
merge_sources.Element = AAZStrType()
renew_properties = cls._schema_on_200.properties.reservations.Element.properties.renew_properties
renew_properties.billing_currency_total = AAZObjectType(
serialized_name="billingCurrencyTotal",
)
renew_properties.pricing_currency_total = AAZObjectType(
serialized_name="pricingCurrencyTotal",
)
renew_properties.purchase_properties = AAZObjectType(
serialized_name="purchaseProperties",
)
billing_currency_total = cls._schema_on_200.properties.reservations.Element.properties.renew_properties.billing_currency_total
billing_currency_total.amount = AAZFloatType()
billing_currency_total.currency_code = AAZStrType(
serialized_name="currencyCode",
)
pricing_currency_total = cls._schema_on_200.properties.reservations.Element.properties.renew_properties.pricing_currency_total
pricing_currency_total.amount = AAZFloatType()
pricing_currency_total.currency_code = AAZStrType(
serialized_name="currencyCode",
)
purchase_properties = cls._schema_on_200.properties.reservations.Element.properties.renew_properties.purchase_properties
purchase_properties.location = AAZStrType()
purchase_properties.properties = AAZObjectType(
flags={"client_flatten": True},
)
purchase_properties.sku = AAZObjectType()
_ShowHelper._build_schema_sku_name_read(purchase_properties.sku)
properties = cls._schema_on_200.properties.reservations.Element.properties.renew_properties.purchase_properties.properties
properties.applied_scope_properties = AAZObjectType(
serialized_name="appliedScopeProperties",
)
_ShowHelper._build_schema_applied_scope_properties_read(
properties.applied_scope_properties)
properties.applied_scope_type = AAZStrType(
serialized_name="appliedScopeType",
)
properties.applied_scopes = AAZListType(
serialized_name="appliedScopes",
)
_ShowHelper._build_schema_applied_scopes_read(
properties.applied_scopes)
properties.billing_plan = AAZStrType(
serialized_name="billingPlan",
)
properties.billing_scope_id = AAZStrType(
serialized_name="billingScopeId",
)
properties.display_name = AAZStrType(
serialized_name="displayName",
)
properties.quantity = AAZIntType()
properties.renew = AAZBoolType()
properties.reserved_resource_properties = AAZObjectType(
serialized_name="reservedResourceProperties",
)
properties.reserved_resource_type = AAZStrType(
serialized_name="reservedResourceType",
)
properties.review_date_time = AAZStrType(
serialized_name="reviewDateTime",
)
properties.term = AAZStrType()
reserved_resource_properties = cls._schema_on_200.properties.reservations.Element.properties.renew_properties.purchase_properties.properties.reserved_resource_properties
reserved_resource_properties.instance_flexibility = AAZStrType(
serialized_name="instanceFlexibility",
)
split_properties = cls._schema_on_200.properties.reservations.Element.properties.split_properties
split_properties.split_destinations = AAZListType(
serialized_name="splitDestinations",
)
split_properties.split_source = AAZStrType(
serialized_name="splitSource",
)
split_destinations = cls._schema_on_200.properties.reservations.Element.properties.split_properties.split_destinations
split_destinations.Element = AAZStrType()
swap_properties = cls._schema_on_200.properties.reservations.Element.properties.swap_properties
swap_properties.swap_destination = AAZStrType(
serialized_name="swapDestination",
)
swap_properties.swap_source = AAZStrType(
serialized_name="swapSource",
)
utilization = cls._schema_on_200.properties.reservations.Element.properties.utilization
utilization.aggregates = AAZListType()
utilization.trend = AAZStrType(
flags={"read_only": True},
)
aggregates = cls._schema_on_200.properties.reservations.Element.properties.utilization.aggregates
aggregates.Element = AAZObjectType()
_element = cls._schema_on_200.properties.reservations.Element.properties.utilization.aggregates.Element
_element.grain = AAZFloatType(
flags={"read_only": True},
)
_element.grain_unit = AAZStrType(
serialized_name="grainUnit",
flags={"read_only": True},
)
_element.value = AAZFloatType(
flags={"read_only": True},
)
_element.value_unit = AAZStrType(
serialized_name="valueUnit",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReservationOrderGet(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 | 45 | 3 | 43 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 428 | 35 | 393 | 43 | 376 | 0 | 181 | 36 | 171 | 2 | 1 | 1 | 11 |
9,804 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.Comes_fromContext
|
class Comes_fromContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def COMESFROM(self):
return self.getToken(ScheduleQueryConditionParser.COMESFROM, 0)
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_comes_from
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterComes_from"):
listener.enterComes_from(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitComes_from"):
listener.exitComes_from(self)
|
class Comes_fromContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def COMESFROM(self):
pass
def WHITESPACE(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 6 | 1 | 6 | 6 | 23 | 6 | 17 | 9 | 10 | 0 | 17 | 9 | 10 | 2 | 1 | 1 | 8 |
9,805 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.AtContext
|
class AtContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def AT(self):
return self.getToken(ScheduleQueryConditionParser.AT, 0)
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_at
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterAt"):
listener.enterAt(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitAt"):
listener.exitAt(self)
|
class AtContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def AT(self):
pass
def WHITESPACE(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 6 | 1 | 6 | 6 | 23 | 6 | 17 | 9 | 10 | 0 | 17 | 9 | 10 | 2 | 1 | 1 | 8 |
9,806 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.AggregationContext
|
class AggregationContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def WORD(self):
return self.getToken(ScheduleQueryConditionParser.WORD, 0)
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_aggregation
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterAggregation"):
listener.enterAggregation(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitAggregation"):
listener.exitAggregation(self)
|
class AggregationContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def WORD(self):
pass
def WHITESPACE(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 6 | 1 | 6 | 6 | 23 | 6 | 17 | 9 | 10 | 0 | 17 | 9 | 10 | 2 | 1 | 1 | 8 |
9,807 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.AggregatedContext
|
class AggregatedContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def AGGREGATED(self):
return self.getToken(ScheduleQueryConditionParser.AGGREGATED, 0)
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_aggregated
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterAggregated"):
listener.enterAggregated(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitAggregated"):
listener.exitAggregated(self)
|
class AggregatedContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def AGGREGATED(self):
pass
def WHITESPACE(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 6 | 1 | 6 | 6 | 23 | 6 | 17 | 9 | 10 | 0 | 17 | 9 | 10 | 2 | 1 | 1 | 8 |
9,808 |
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/resource-graph/azext_resourcegraph/tests/latest/test_resourcegraph_commands.py
|
azext_resourcegraph.tests.latest.test_resourcegraph_commands.ResourceGraphTests
|
class ResourceGraphTests(ScenarioTest):
def test_query(self):
command = 'az graph query -q "project id, tags, properties | limit 2"'
response = self.cmd(command).get_output_in_json()
self.assertIsInstance(response, dict)
# first element is data, second element is skip_token (or None)
self.assertTrue(len(response) == 4)
data = response['data']
skip_token = response['skip_token']
self.assertTrue(data is not None)
self.assertTrue(skip_token is None)
self.assertTrue(response['count'] == 2)
self.assertTrue(response['total_records'] == 2)
self.assertIsInstance(data, list)
# resourceGroup is auto-added after output
self.assertTrue(len(data[0]) == 4)
self.assertIsInstance(data[0], dict)
self.assertIsInstance(data[0]['id'], string_types)
self.assertIsInstance(data[0]['tags'], dict)
self.assertIsInstance(data[0]['properties'], dict)
self.assertTrue(len(data[0]['properties']) > 0)
self.assertTrue(len(data[1]) == 4)
self.assertIsInstance(data[1], dict)
self.assertIsInstance(data[1]['id'], string_types)
self.assertIsInstance(data[1]['tags'], dict)
self.assertIsInstance(data[1]['properties'], dict)
def test_paged_query(self):
# Page size was artificially set to 2 rows
command = 'az graph query -q "project id" --first 3 --skip 2'
response = self.cmd(command).get_output_in_json()
self.assertIsInstance(response, dict)
# first element is data, second element is skip_token (or None)
self.assertTrue(len(response) == 4)
data = response['data']
skip_token = response['skip_token']
self.assertTrue(data is not None)
self.assertTrue(skip_token is not None)
self.assertIsInstance(data, list)
self.assertTrue(len(data) == 3)
self.assertIsInstance(data[0], dict)
self.assertIsInstance(data[1], dict)
self.assertIsInstance(data[2], dict)
# resourceGroup is auto-added after output
self.assertTrue(len(data[0]) == 2)
self.assertTrue(len(data[1]) == 2)
self.assertTrue(len(data[2]) == 2)
self.assertIsInstance(data[0]['id'], string_types)
self.assertIsInstance(data[1]['id'], string_types)
self.assertIsInstance(data[2]['id'], string_types)
self.assertTrue(len(data[0]['id']) > 0)
self.assertTrue(len(data[1]['id']) > 0)
self.assertTrue(len(data[2]['id']) > 0)
def test_management_groups_query(self):
command = 'az graph query -q "ResourceContainers | where type contains \'management\' | project id, name, type | limit 2" -m 72f988bf-86f1-41af-91ab-2d7cd011db47 AzGovTest5 -a'
response = self.cmd(command).get_output_in_json()
self.assertIsInstance(response, dict)
# first element is data, second element is skip_token (or None)
self.assertTrue(len(response) == 4)
data = response['data']
skip_token = response['skip_token']
self.assertTrue(data is not None)
self.assertTrue(skip_token is None)
self.assertIsInstance(data, list)
self.assertIsInstance(data[0], dict)
self.assertIsInstance(data[0]['id'], string_types)
self.assertIsInstance(data[0]['name'], string_types)
self.assertIsInstance(data[0]['type'], string_types)
self.assertTrue(len(data[1]) == 3)
self.assertIsInstance(data[1], dict)
self.assertIsInstance(data[1]['id'], string_types)
self.assertIsInstance(data[1]['name'], string_types)
self.assertIsInstance(data[1]['type'], string_types)
self.assertTrue(len(data[0]['id']) > 0)
self.assertTrue(len(data[1]['id']) > 0)
self.assertTrue("management" in data[0]['type'])
self.assertTrue("management" in data[1]['type'])
def test_skip_token_query(self):
command = 'az graph query -q "project id" --skip-token ew0KICAiJGlkIjogIjEiLA0KICAiTWF4Um93cyI6IDMsDQogICJSb3dzVG9Ta2lwIjogNSwNCiAgIkt1c3RvQ2x1c3RlclVybCI6ICJodHRwczovL2FyZy13ZXUtZm91ci1zZi5hcmcuY29yZS53aW5kb3dzLm5ldCINCn0='
response = self.cmd(command).get_output_in_json()
self.assertIsInstance(response, dict)
# first element is data, second element is skip_token (or None)
self.assertTrue(len(response) == 4)
data = response['data']
skip_token = response['skip_token']
self.assertTrue(data is not None)
self.assertTrue(skip_token is not None)
self.assertIsInstance(data, list)
self.assertTrue(len(data) == 3)
self.assertIsInstance(data[0], dict)
self.assertIsInstance(data[1], dict)
self.assertIsInstance(data[2], dict)
# resourceGroup is auto-added after output
self.assertTrue(len(data[0]) == 2)
self.assertTrue(len(data[1]) == 2)
self.assertTrue(len(data[2]) == 2)
self.assertIsInstance(data[0]['id'], string_types)
self.assertIsInstance(data[1]['id'], string_types)
self.assertIsInstance(data[2]['id'], string_types)
self.assertTrue(len(data[0]['id']) > 0)
self.assertTrue(len(data[1]['id']) > 0)
self.assertTrue(len(data[2]['id']) > 0)
def test_query_error(self):
command = 'az graph query -q "where where"'
with self.assertRaises(CLIError) as error:
self.cmd(command)
error_response = json.loads(error.exception.args[0])
print(error_response)
self.assertIsInstance(error_response, dict)
self.assertTrue(len(error_response) == 3)
self.assertIsInstance(error_response['code'], string_types)
self.assertIsInstance(error_response['message'], string_types)
self.assertIsInstance(error_response['details'], list)
self.assertTrue(len(error_response['code']) > 0)
self.assertTrue(len(error_response['message']) > 0)
self.assertTrue(len(error_response['details']) == 2)
self.assertIsInstance(error_response['details'][0], dict)
self.assertTrue(len(error_response['details'][0]) == 2)
self.assertIsInstance(
error_response['details'][0]['code'], string_types)
self.assertIsInstance(
error_response['details'][0]['message'], string_types)
self.assertIsInstance(
error_response['details'][1]['additionalProperties'], dict)
self.assertTrue(len(error_response['details'][0]['code']) > 0)
self.assertTrue(len(error_response['details'][0]['message']) > 0)
self.assertTrue(
len(error_response['details'][1]['additionalProperties']) == 4)
@ResourceGroupPreparer(location='eastus')
def test_shared_query_scenario(self, resource_group):
self.kwargs.update({
'name': self.create_random_name('clitest', 20),
'query': "project id, name, type, location, tags",
'description': "AzureCliTest",
'rg': resource_group
})
self.cmd('graph shared-query create -g {rg} -n {name} -q "{query}" -d {description} --tags a=b', checks=[
self.check('location', 'global'),
self.check('name', '{name}'),
self.check('description', '{description}'),
self.check('query', '{query}')
])
self.cmd('graph shared-query show -g {rg} -n {name}', checks=[
self.check('location', 'global'),
self.check('name', '{name}'),
self.check('description', '{description}'),
self.check('query', '{query}')
])
self.cmd('graph shared-query list -g {rg}', checks=[
self.check('length(@)', 1)
])
self.cmd('graph shared-query delete -g {rg} -n {name}')
with self.assertRaises(SystemExit):
self.cmd('graph shared-query show -g {rg} -n {name}')
|
class ResourceGraphTests(ScenarioTest):
def test_query(self):
pass
def test_paged_query(self):
pass
def test_management_groups_query(self):
pass
def test_skip_token_query(self):
pass
def test_query_error(self):
pass
@ResourceGroupPreparer(location='eastus')
def test_shared_query_scenario(self, resource_group):
pass
| 8 | 0 | 29 | 6 | 23 | 1 | 1 | 0.06 | 1 | 3 | 0 | 0 | 6 | 0 | 6 | 6 | 180 | 38 | 141 | 27 | 133 | 8 | 123 | 25 | 116 | 1 | 1 | 1 | 6 |
9,809 |
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/resource-mover/azext_resource_mover/tests/latest/test_resourcemover_scenarios.py
|
azext_resource_mover.tests.latest.test_resourcemover_scenarios.ResourceMoverMoveResourceScenarioTest
|
class ResourceMoverMoveResourceScenarioTest(ScenarioTest):
def __init__(self, method_name):
super(ResourceMoverMoveResourceScenarioTest, self).__init__(
method_name,
recording_processors=[RoleAssignmentReplacer()],
replay_processors=[RoleAssignmentReplacer()]
)
@ResourceGroupPreparer(name_prefix="clitest_resourcemover_collection_", location="eastus2")
def test_resourcemover_moveresource_basic(self):
self.kwargs.update({
'collection_name': 'clitest-movecollection-test95',
'location': 'eastus2',
'source_region': 'eastus',
'target_region': 'westus',
'source_vnet': 'vnet-in-source-region',
'target_vnet': 'vnet-in-target-region',
'move_resource_vnet': 'vnet-as-move-resource',
'source_rg': 'clitest_resourcemover_source_rg',
'target_rg': 'clitest_resourcemover_target_rg'
})
# create a move-collection
move_collection = self.cmd('az resource-mover move-collection create --location {location} --source-region {source_region} '
'--target-region {target_region} --name {collection_name} --resource-group {rg} '
'--identity type=SystemAssigned').get_output_in_json()
# keep the collection principal id for role assignment
# keep the subscription ARM id as role assignment scope
self.kwargs.update({
'collection_principal_id': move_collection['identity']['principalId'],
'role_assignment_scope': '/'.join(move_collection['id'].split('/')[1:3])})
# create a resource group and a vNet as the target resource to move
self.cmd(
'az group create -n {source_rg} -l {source_region}').get_output_in_json().get('id', None)
source_vnet = self.cmd('az network vnet create --resource-group {source_rg} --name {source_vnet} '
'--location {source_region}', checks=[
self.check(
'newVNet.resourceGroup', '{source_rg}'),
self.check(
'newVNet.type', 'Microsoft.Network/virtualNetworks'),
self.check('newVNet.name', '{source_vnet}'),
self.check('newVNet.location', '{source_region}')]).get_output_in_json()
# keep the vNet ARM id to add move-resource
self.kwargs.update({
'source_vnet_id': source_vnet['newVNet']['id']})
# prepare the --resource-settings json file
resource_settings = {
'resourceType': 'Microsoft.Network/virtualNetworks',
'targetResourceName': self.kwargs.get('target_vnet', None)
}
_, temp_file = tempfile.mkstemp()
with open(temp_file, 'w') as f:
json.dump(resource_settings, f)
self.kwargs.update({
'resource_settings': temp_file.replace('\\', '\\\\'),
})
time.sleep(15)
# role assignments for the move-collection
self.cmd('az role assignment create --assignee-object-id {collection_principal_id} --role Contributor '
'--scope {role_assignment_scope}')
self.cmd('az role assignment create --assignee-object-id {collection_principal_id} --role "User Access Administrator" '
'--scope {role_assignment_scope}')
time.sleep(15)
# add the vNet as a move-resource to the move-collection
self.cmd('az resource-mover move-resource add --resource-group {rg} --move-collection-name '
'{collection_name} --name {move_resource_vnet} --source-id {source_vnet_id} --resource-settings {resource_settings}')
# list all the move-resources in move-collection
self.cmd('az resource-mover move-resource list --resource-group {rg} '
'--move-collection-name {collection_name}', checks=[
self.check('length(@)', 1)])
# test showing the move-resource in move-collection
self.cmd('az resource-mover move-resource show --resource-group {rg} --move-collection-name {collection_name} '
'--name {move_resource_vnet}', checks=[
self.check('name', '{move_resource_vnet}'),
self.check('properties.sourceId', '{source_vnet_id}'),
self.check('properties.moveStatus.moveState', 'PreparePending')])
# test deleting the move-resource in the move-collection
self.cmd('az resource-mover move-resource delete --resource-group {rg} --move-collection-name {collection_name} '
'--name {move_resource_vnet} --yes')
# delete the move-collection
self.cmd(
'az resource-mover move-collection delete --name {collection_name} --resource-group {rg} --yes')
# delete the vNet and resource group
self.cmd('az network vnet delete -g {source_rg} -n {source_vnet}')
self.cmd('az group delete -n {source_rg} --yes')
|
class ResourceMoverMoveResourceScenarioTest(ScenarioTest):
def __init__(self, method_name):
pass
@ResourceGroupPreparer(name_prefix="clitest_resourcemover_collection_", location="eastus2")
def test_resourcemover_moveresource_basic(self):
pass
| 4 | 0 | 45 | 6 | 32 | 7 | 1 | 0.2 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 2 | 93 | 14 | 66 | 9 | 62 | 13 | 26 | 7 | 23 | 1 | 1 | 1 | 2 |
9,810 |
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/resource-mover/azext_resource_mover/tests/latest/test_resourcemover_scenarios.py
|
azext_resource_mover.tests.latest.test_resourcemover_scenarios.ResourceMoverMoveCollectionScenarioTest
|
class ResourceMoverMoveCollectionScenarioTest(ScenarioTest):
def __init__(self, method_name):
super(ResourceMoverMoveCollectionScenarioTest, self).__init__(
method_name,
recording_processors=[RoleAssignmentReplacer()],
replay_processors=[RoleAssignmentReplacer()]
)
# We don't use the ResourceGroupPrepare here for the reason that
# move-collection is difficult to delete
@ResourceGroupPreparer(name_prefix="clitest_resourcemover_collection_", location="eastus2")
def test_resourcemover_movecollection_basic(self):
self.kwargs.update({
'collection_name': 'clitest-movecollection-10',
'location': 'eastus2',
'source_region': 'eastus',
'target_region': 'westus'
})
# check basic properties of the move-collection
basic_checks = [
self.check('name', '{collection_name}'),
self.check('location', '{location}'),
self.check('type', 'Microsoft.Migrate/moveCollections'),
self.check('properties.sourceRegion', '{source_region}'),
self.check('properties.targetRegion', '{target_region}'),
self.check('systemData.createdByType', 'User')
]
# check creating a move-collection
self.cmd('az resource-mover move-collection create --location {location} --source-region {source_region} '
'--target-region {target_region} --name {collection_name} --resource-group {rg}', checks=basic_checks)
# check updating a move-collection
self.cmd('az resource-mover move-collection update --name {collection_name} '
'--resource-group {rg} --identity type=SystemAssigned --tags key=collection', checks=basic_checks + [
self.check('identity.type', 'SystemAssigned'),
self.check('tags.key', 'collection')])
# check showing a move-collection
self.cmd('az resource-mover move-collection show --resource-group {rg} --name {collection_name}',
checks=basic_checks)
# check listing a move-collection by subscription
# Service has some issues when there are multiple move-collections in a subscription, skip the step here
# self.cmd('az resource-mover move-collection list',checks=[
# self.check('length(@)', 1)
# ])
# check deleting a move-collection
self.cmd(
'az resource-mover move-collection delete --resource-group {rg} --name {collection_name} --yes')
# check listing a move-collection by resource group
self.cmd('az resource-mover move-collection list --resource-group {rg}', checks=[
self.check('length(@)', 0)])
@ResourceGroupPreparer(name_prefix="clitest_resourcemover_collection_", location="eastus2")
def test_resourcemover_movecollection_e2e(self):
self.kwargs.update({
'collection_name': 'clitest-movecollection-test98',
'location': 'eastus2',
'source_region': 'eastus',
'target_region': 'westus',
'source_vnet': 'vnet-in-source-region',
'target_vnet': 'vnet-in-target-region',
'move_resource_vnet': 'vnet-as-move-resource',
'source_rg': 'clitest_resourcemover_source_rg',
'target_rg': 'clitest_resourcemover_target_rg',
'move_resource_rg': 'rg-as-move-resource'
})
# create a move-collection
move_collection = self.cmd('az resource-mover move-collection create --location {location} --source-region {source_region} '
'--target-region {target_region} --name {collection_name} --resource-group {rg} '
'--identity type=SystemAssigned').get_output_in_json()
# keep the collection principal id for role assignment
# keep the subscription ARM id as role assignment scope
self.kwargs.update({
'collection_principal_id': move_collection['identity']['principalId'],
'role_assignment_scope': '/'.join(move_collection['id'].split('/')[1:3])
})
# create a resource group and a vNet as the target resource to move
source_rg_id = self.cmd(
'az group create -n {source_rg} -l {source_region}').get_output_in_json().get('id', None)
source_vnet = self.cmd('az network vnet create --resource-group {source_rg} --name {source_vnet} '
'--location {source_region}', checks=[
self.check(
'newVNet.resourceGroup', '{source_rg}'),
self.check(
'newVNet.type', 'Microsoft.Network/virtualNetworks'),
self.check('newVNet.name', '{source_vnet}'),
self.check('newVNet.location', '{source_region}')]).get_output_in_json()
# keep the vNet ARM id to add move-resource
self.kwargs.update({
'source_vnet_id': source_vnet['newVNet']['id'],
'source_rg_id': source_rg_id
})
# prepare the --resource-settings json file
vnet_resource_settings = {
'resourceType': 'Microsoft.Network/virtualNetworks',
'targetResourceName': self.kwargs.get('target_vnet', None)
}
_, vnet_temp_file = tempfile.mkstemp()
with open(vnet_temp_file, 'w') as f:
json.dump(vnet_resource_settings, f)
self.kwargs.update({
'vnet_resource_settings': vnet_temp_file.replace('\\', '\\\\')
})
time.sleep(15)
# role assignments for the move-collection
self.cmd('az role assignment create --assignee-object-id {collection_principal_id} --role Contributor '
'--scope {role_assignment_scope}')
self.cmd('az role assignment create --assignee-object-id {collection_principal_id} --role "User Access Administrator" '
'--scope {role_assignment_scope}')
time.sleep(15)
# add the vNet as a move-resource to the move-collection
self.cmd('az resource-mover move-resource add --resource-group {rg} --move-collection-name {collection_name} '
'--name {move_resource_vnet} --source-id {source_vnet_id} --resource-settings {vnet_resource_settings}')
# list-unresolved-dependency
self.cmd('az resource-mover move-collection list-unresolved-dependency --resource-group {rg} '
'--move-collection-name {collection_name}', checks=[
self.check('length(@)', 0)])
# resolve-dependency
self.cmd('az resource-mover move-collection resolve-dependency --resource-group {rg} '
'--move-collection-name {collection_name}', checks=[
self.check('resourceGroup', '{rg}'),
self.check('status', 'Succeeded')])
# list all the move-resources in move-collection
move_resources = self.cmd('az resource-mover move-resource list --resource-group {rg} '
'--move-collection-name {collection_name}', checks=[
self.check('length(@)', 1)]).get_output_in_json()
# update move resource id of vNet and the resource group
for move_resource in move_resources:
resource_id = move_resource['id']
if move_resource['properties']['resourceSettings']['resourceType'] == 'Microsoft.Network/virtualNetworks':
self.kwargs.update({
'move_resource_vnet_id': resource_id
})
def check_move_state(target_state):
# showing the move-resource in move-collection, check the move-resource's moveState
self.cmd('az resource-mover move-resource show --resource-group {rg} '
'--move-collection-name {collection_name} --name {move_resource_vnet}', checks=[
self.check('name', '{move_resource_vnet}'),
self.check('properties.sourceId', '{source_vnet_id}'),
self.check('properties.moveStatus.moveState', target_state)])
check_move_state('PreparePending')
# prepare
self.cmd('az resource-mover move-collection prepare --move-resources {move_resource_vnet_id} '
'--name {collection_name} --resource-group {rg}', checks=[
self.check('resourceGroup', '{rg}'),
self.check('status', 'Succeeded')])
check_move_state('MovePending')
# initiate-move
self.cmd('az resource-mover move-collection initiate-move --move-resources {move_resource_vnet_id} '
'--name {collection_name} --resource-group {rg}', checks=[
self.check('resourceGroup', '{rg}'),
self.check('status', 'Succeeded')])
check_move_state('CommitPending')
# commit
self.cmd('az resource-mover move-collection commit --move-resources {move_resource_vnet_id} '
'--name {collection_name} --resource-group {rg}', checks=[
self.check('resourceGroup', '{rg}'),
self.check('status', 'Succeeded')])
check_move_state('DeleteSourcePending')
# delete the source resources
self.cmd('az network vnet delete -g {source_rg} -n {source_vnet}')
self.cmd('az group delete -g {source_rg} --yes')
# check the move-resources are deployed in target region
self.cmd('az group show -n {target_rg}', checks=[
self.check('location', '{target_region}')])
self.cmd('az network vnet show -g {target_rg} -n {target_vnet}', checks=[
self.check('location', '{target_region}')])
# delete the move-resources and the move collection
self.cmd('az resource-mover move-collection bulk-remove --move-resources {move_resource_vnet_id} '
'--name {collection_name} --resource-group {rg}', checks=[
self.check('resourceGroup', '{rg}'),
self.check('status', 'Succeeded')])
self.cmd('az resource-mover move-collection delete --name {collection_name} --resource-group '
'{rg} --yes')
|
class ResourceMoverMoveCollectionScenarioTest(ScenarioTest):
def __init__(self, method_name):
pass
@ResourceGroupPreparer(name_prefix="clitest_resourcemover_collection_", location="eastus2")
def test_resourcemover_movecollection_basic(self):
pass
@ResourceGroupPreparer(name_prefix="clitest_resourcemover_collection_", location="eastus2")
def test_resourcemover_movecollection_e2e(self):
pass
def check_move_state(target_state):
pass
| 7 | 0 | 49 | 7 | 34 | 8 | 2 | 0.24 | 1 | 2 | 1 | 0 | 3 | 0 | 3 | 3 | 197 | 31 | 134 | 17 | 127 | 32 | 50 | 14 | 45 | 3 | 1 | 2 | 6 |
9,811 |
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/resource-mover/azext_resource_mover/aaz/latest/resource_mover/move_resource/_wait.py
|
azext_resource_mover.aaz.latest.resource_mover.move_resource._wait.Wait.MoveResourcesGet
|
class MoveResourcesGet(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.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
**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(
"moveCollectionName", self.ctx.args.move_collection_name,
required=True,
),
**self.serialize_url_param(
"moveResourceName", self.ctx.args.move_resource_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,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-08-01",
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.depends_on = AAZListType(
serialized_name="dependsOn",
flags={"read_only": True},
)
properties.depends_on_overrides = AAZListType(
serialized_name="dependsOnOverrides",
)
properties.errors = AAZObjectType(
flags={"read_only": True},
)
properties.existing_target_id = AAZStrType(
serialized_name="existingTargetId",
)
properties.is_resolve_required = AAZBoolType(
serialized_name="isResolveRequired",
flags={"read_only": True},
)
properties.move_status = AAZObjectType(
serialized_name="moveStatus",
flags={"read_only": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.resource_settings = AAZObjectType(
serialized_name="resourceSettings",
)
_WaitHelper._build_schema_resource_settings_read(
properties.resource_settings)
properties.source_id = AAZStrType(
serialized_name="sourceId",
flags={"required": True},
)
properties.source_resource_settings = AAZObjectType(
serialized_name="sourceResourceSettings",
)
_WaitHelper._build_schema_resource_settings_read(
properties.source_resource_settings)
properties.target_id = AAZStrType(
serialized_name="targetId",
flags={"read_only": True},
)
depends_on = cls._schema_on_200.properties.depends_on
depends_on.Element = AAZObjectType()
_element = cls._schema_on_200.properties.depends_on.Element
_element.automatic_resolution = AAZObjectType(
serialized_name="automaticResolution",
)
_element.dependency_type = AAZStrType(
serialized_name="dependencyType",
)
_element.id = AAZStrType()
_element.is_optional = AAZStrType(
serialized_name="isOptional",
)
_element.manual_resolution = AAZObjectType(
serialized_name="manualResolution",
)
_element.resolution_status = AAZStrType(
serialized_name="resolutionStatus",
)
_element.resolution_type = AAZStrType(
serialized_name="resolutionType",
)
automatic_resolution = cls._schema_on_200.properties.depends_on.Element.automatic_resolution
automatic_resolution.move_resource_id = AAZStrType(
serialized_name="moveResourceId",
)
manual_resolution = cls._schema_on_200.properties.depends_on.Element.manual_resolution
manual_resolution.target_id = AAZStrType(
serialized_name="targetId",
)
depends_on_overrides = cls._schema_on_200.properties.depends_on_overrides
depends_on_overrides.Element = AAZObjectType()
_element = cls._schema_on_200.properties.depends_on_overrides.Element
_element.id = AAZStrType()
_element.target_id = AAZStrType(
serialized_name="targetId",
)
errors = cls._schema_on_200.properties.errors
errors.properties = AAZObjectType()
_WaitHelper._build_schema_move_resource_error_body_read(
errors.properties)
move_status = cls._schema_on_200.properties.move_status
move_status.errors = AAZObjectType()
move_status.job_status = AAZObjectType(
serialized_name="jobStatus",
)
move_status.move_state = AAZStrType(
serialized_name="moveState",
flags={"read_only": True},
)
errors = cls._schema_on_200.properties.move_status.errors
errors.properties = AAZObjectType()
_WaitHelper._build_schema_move_resource_error_body_read(
errors.properties)
job_status = cls._schema_on_200.properties.move_status.job_status
job_status.job_name = AAZStrType(
serialized_name="jobName",
flags={"read_only": True},
)
job_status.job_progress = AAZStrType(
serialized_name="jobProgress",
flags={"read_only": 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 MoveResourcesGet(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 | 24 | 2 | 22 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 235 | 26 | 209 | 36 | 192 | 0 | 91 | 29 | 81 | 2 | 1 | 1 | 11 |
9,812 |
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/resource-mover/azext_resource_mover/aaz/latest/resource_mover/move_resource/_show.py
|
azext_resource_mover.aaz.latest.resource_mover.move_resource._show.Show.MoveResourcesGet
|
class MoveResourcesGet(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.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
**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(
"moveCollectionName", self.ctx.args.move_collection_name,
required=True,
),
**self.serialize_url_param(
"moveResourceName", self.ctx.args.move_resource_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,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-08-01",
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.depends_on = AAZListType(
serialized_name="dependsOn",
flags={"read_only": True},
)
properties.depends_on_overrides = AAZListType(
serialized_name="dependsOnOverrides",
)
properties.errors = AAZObjectType(
flags={"read_only": True},
)
properties.existing_target_id = AAZStrType(
serialized_name="existingTargetId",
)
properties.is_resolve_required = AAZBoolType(
serialized_name="isResolveRequired",
flags={"read_only": True},
)
properties.move_status = AAZObjectType(
serialized_name="moveStatus",
flags={"read_only": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.resource_settings = AAZObjectType(
serialized_name="resourceSettings",
)
_ShowHelper._build_schema_resource_settings_read(
properties.resource_settings)
properties.source_id = AAZStrType(
serialized_name="sourceId",
flags={"required": True},
)
properties.source_resource_settings = AAZObjectType(
serialized_name="sourceResourceSettings",
)
_ShowHelper._build_schema_resource_settings_read(
properties.source_resource_settings)
properties.target_id = AAZStrType(
serialized_name="targetId",
flags={"read_only": True},
)
depends_on = cls._schema_on_200.properties.depends_on
depends_on.Element = AAZObjectType()
_element = cls._schema_on_200.properties.depends_on.Element
_element.automatic_resolution = AAZObjectType(
serialized_name="automaticResolution",
)
_element.dependency_type = AAZStrType(
serialized_name="dependencyType",
)
_element.id = AAZStrType()
_element.is_optional = AAZStrType(
serialized_name="isOptional",
)
_element.manual_resolution = AAZObjectType(
serialized_name="manualResolution",
)
_element.resolution_status = AAZStrType(
serialized_name="resolutionStatus",
)
_element.resolution_type = AAZStrType(
serialized_name="resolutionType",
)
automatic_resolution = cls._schema_on_200.properties.depends_on.Element.automatic_resolution
automatic_resolution.move_resource_id = AAZStrType(
serialized_name="moveResourceId",
)
manual_resolution = cls._schema_on_200.properties.depends_on.Element.manual_resolution
manual_resolution.target_id = AAZStrType(
serialized_name="targetId",
)
depends_on_overrides = cls._schema_on_200.properties.depends_on_overrides
depends_on_overrides.Element = AAZObjectType()
_element = cls._schema_on_200.properties.depends_on_overrides.Element
_element.id = AAZStrType()
_element.target_id = AAZStrType(
serialized_name="targetId",
)
errors = cls._schema_on_200.properties.errors
errors.properties = AAZObjectType()
_ShowHelper._build_schema_move_resource_error_body_read(
errors.properties)
move_status = cls._schema_on_200.properties.move_status
move_status.errors = AAZObjectType()
move_status.job_status = AAZObjectType(
serialized_name="jobStatus",
)
move_status.move_state = AAZStrType(
serialized_name="moveState",
flags={"read_only": True},
)
errors = cls._schema_on_200.properties.move_status.errors
errors.properties = AAZObjectType()
_ShowHelper._build_schema_move_resource_error_body_read(
errors.properties)
job_status = cls._schema_on_200.properties.move_status.job_status
job_status.job_name = AAZStrType(
serialized_name="jobName",
flags={"read_only": True},
)
job_status.job_progress = AAZStrType(
serialized_name="jobProgress",
flags={"read_only": 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 MoveResourcesGet(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 | 24 | 2 | 22 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 235 | 26 | 209 | 36 | 192 | 0 | 91 | 29 | 81 | 2 | 1 | 1 | 11 |
9,813 |
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/scheduled-query/azext_scheduled_query/grammar/scheduled_query/ScheduleQueryConditionParser.py
|
azext_scheduled_query.grammar.scheduled_query.ScheduleQueryConditionParser.ScheduleQueryConditionParser.ColumnContext
|
class ColumnContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
super().__init__(parent, invokingState)
self.parser = parser
def COLUMN(self):
return self.getToken(ScheduleQueryConditionParser.COLUMN, 0)
def WHITESPACE(self):
return self.getToken(ScheduleQueryConditionParser.WHITESPACE, 0)
def getRuleIndex(self):
return ScheduleQueryConditionParser.RULE_column
def enterRule(self, listener: ParseTreeListener):
if hasattr(listener, "enterColumn"):
listener.enterColumn(self)
def exitRule(self, listener: ParseTreeListener):
if hasattr(listener, "exitColumn"):
listener.exitColumn(self)
|
class ColumnContext(ParserRuleContext):
def __init__(self, parser, parent: ParserRuleContext = None, invokingState: int = -1):
pass
def COLUMN(self):
pass
def WHITESPACE(self):
pass
def getRuleIndex(self):
pass
def enterRule(self, listener: ParseTreeListener):
pass
def exitRule(self, listener: ParseTreeListener):
pass
| 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 6 | 1 | 6 | 6 | 23 | 6 | 17 | 9 | 10 | 0 | 17 | 9 | 10 | 2 | 1 | 1 | 8 |
9,814 |
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.ContinuousBackupInformation
|
class ContinuousBackupInformation(_serialization.Model):
"""Information about the status of continuous backups.
:ivar latest_restorable_timestamp: The latest restorable timestamp for a resource.
:vartype latest_restorable_timestamp: str
"""
_attribute_map = {
"latest_restorable_timestamp": {"key": "latestRestorableTimestamp", "type": "str"},
}
def __init__(self, *, latest_restorable_timestamp: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword latest_restorable_timestamp: The latest restorable timestamp for a resource.
:paramtype latest_restorable_timestamp: str
"""
super().__init__(**kwargs)
self.latest_restorable_timestamp = latest_restorable_timestamp
|
class ContinuousBackupInformation(_serialization.Model):
'''Information about the status of continuous backups.
:ivar latest_restorable_timestamp: The latest restorable timestamp for a resource.
:vartype latest_restorable_timestamp: str
'''
def __init__(self, *, latest_restorable_timestamp: Optional[str] = None, **kwargs: Any) -> None:
'''
:keyword latest_restorable_timestamp: The latest restorable timestamp for a resource.
:paramtype latest_restorable_timestamp: str
'''
pass
| 2 | 2 | 7 | 0 | 3 | 4 | 1 | 1.14 | 1 | 3 | 0 | 0 | 1 | 1 | 1 | 16 | 18 | 3 | 7 | 4 | 5 | 8 | 5 | 4 | 3 | 1 | 2 | 0 | 1 |
9,815 |
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.ContainerPartitionKey
|
class ContainerPartitionKey(_serialization.Model):
"""The configuration of the partition key to be used for partitioning data into multiple
partitions.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar paths: List of paths using which data within the container can be partitioned.
:vartype paths: list[str]
:ivar kind: Indicates the kind of algorithm used for partitioning. For MultiHash, multiple
partition keys (upto three maximum) are supported for container create. Known values are:
"Hash", "Range", and "MultiHash".
:vartype kind: str or ~azure.mgmt.cosmosdb.models.PartitionKind
:ivar version: Indicates the version of the partition key definition.
:vartype version: int
:ivar system_key: Indicates if the container is using a system generated partition key.
:vartype system_key: bool
"""
_validation = {
"version": {"maximum": 2, "minimum": 1},
"system_key": {"readonly": True},
}
_attribute_map = {
"paths": {"key": "paths", "type": "[str]"},
"kind": {"key": "kind", "type": "str"},
"version": {"key": "version", "type": "int"},
"system_key": {"key": "systemKey", "type": "bool"},
}
def __init__(
self,
*,
paths: Optional[List[str]] = None,
kind: Union[str, "_models.PartitionKind"] = "Hash",
version: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword paths: List of paths using which data within the container can be partitioned.
:paramtype paths: list[str]
:keyword kind: Indicates the kind of algorithm used for partitioning. For MultiHash, multiple
partition keys (upto three maximum) are supported for container create. Known values are:
"Hash", "Range", and "MultiHash".
:paramtype kind: str or ~azure.mgmt.cosmosdb.models.PartitionKind
:keyword version: Indicates the version of the partition key definition.
:paramtype version: int
"""
super().__init__(**kwargs)
self.paths = paths
self.kind = kind
self.version = version
self.system_key = None
|
class ContainerPartitionKey(_serialization.Model):
'''The configuration of the partition key to be used for partitioning data into multiple
partitions.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar paths: List of paths using which data within the container can be partitioned.
:vartype paths: list[str]
:ivar kind: Indicates the kind of algorithm used for partitioning. For MultiHash, multiple
partition keys (upto three maximum) are supported for container create. Known values are:
"Hash", "Range", and "MultiHash".
:vartype kind: str or ~azure.mgmt.cosmosdb.models.PartitionKind
:ivar version: Indicates the version of the partition key definition.
:vartype version: int
:ivar system_key: Indicates if the container is using a system generated partition key.
:vartype system_key: bool
'''
def __init__(
self,
*,
paths: Optional[List[str]] = None,
kind: Union[str, "_models.PartitionKind"] = "Hash",
version: Optional[int] = None,
**kwargs: Any
) -> None:
'''
:keyword paths: List of paths using which data within the container can be partitioned.
:paramtype paths: list[str]
:keyword kind: Indicates the kind of algorithm used for partitioning. For MultiHash, multiple
partition keys (upto three maximum) are supported for container create. Known values are:
"Hash", "Range", and "MultiHash".
:paramtype kind: str or ~azure.mgmt.cosmosdb.models.PartitionKind
:keyword version: Indicates the version of the partition key definition.
:paramtype version: int
'''
pass
| 2 | 2 | 23 | 0 | 13 | 10 | 1 | 1 | 1 | 4 | 0 | 0 | 1 | 4 | 1 | 16 | 53 | 5 | 24 | 15 | 15 | 24 | 9 | 8 | 7 | 1 | 2 | 0 | 1 |
9,816 |
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.ConsistencyPolicy
|
class ConsistencyPolicy(_serialization.Model):
"""The consistency policy for the Cosmos DB database account.
All required parameters must be populated in order to send to server.
:ivar default_consistency_level: The default consistency level and configuration settings of
the Cosmos DB account. Required. Known values are: "Eventual", "Session", "BoundedStaleness",
"Strong", and "ConsistentPrefix".
:vartype default_consistency_level: str or ~azure.mgmt.cosmosdb.models.DefaultConsistencyLevel
:ivar max_staleness_prefix: When used with the Bounded Staleness consistency level, this value
represents the number of stale requests tolerated. Accepted range for this value is 1 –
2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:vartype max_staleness_prefix: int
:ivar max_interval_in_seconds: When used with the Bounded Staleness consistency level, this
value represents the time amount of staleness (in seconds) tolerated. Accepted range for this
value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:vartype max_interval_in_seconds: int
"""
_validation = {
"default_consistency_level": {"required": True},
"max_staleness_prefix": {"maximum": 2147483647, "minimum": 1},
"max_interval_in_seconds": {"maximum": 86400, "minimum": 5},
}
_attribute_map = {
"default_consistency_level": {"key": "defaultConsistencyLevel", "type": "str"},
"max_staleness_prefix": {"key": "maxStalenessPrefix", "type": "int"},
"max_interval_in_seconds": {"key": "maxIntervalInSeconds", "type": "int"},
}
def __init__(
self,
*,
default_consistency_level: Union[str, "_models.DefaultConsistencyLevel"],
max_staleness_prefix: Optional[int] = None,
max_interval_in_seconds: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword default_consistency_level: The default consistency level and configuration settings of
the Cosmos DB account. Required. Known values are: "Eventual", "Session", "BoundedStaleness",
"Strong", and "ConsistentPrefix".
:paramtype default_consistency_level: str or
~azure.mgmt.cosmosdb.models.DefaultConsistencyLevel
:keyword max_staleness_prefix: When used with the Bounded Staleness consistency level, this
value represents the number of stale requests tolerated. Accepted range for this value is 1 –
2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:paramtype max_staleness_prefix: int
:keyword max_interval_in_seconds: When used with the Bounded Staleness consistency level, this
value represents the time amount of staleness (in seconds) tolerated. Accepted range for this
value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:paramtype max_interval_in_seconds: int
"""
super().__init__(**kwargs)
self.default_consistency_level = default_consistency_level
self.max_staleness_prefix = max_staleness_prefix
self.max_interval_in_seconds = max_interval_in_seconds
|
class ConsistencyPolicy(_serialization.Model):
'''The consistency policy for the Cosmos DB database account.
All required parameters must be populated in order to send to server.
:ivar default_consistency_level: The default consistency level and configuration settings of
the Cosmos DB account. Required. Known values are: "Eventual", "Session", "BoundedStaleness",
"Strong", and "ConsistentPrefix".
:vartype default_consistency_level: str or ~azure.mgmt.cosmosdb.models.DefaultConsistencyLevel
:ivar max_staleness_prefix: When used with the Bounded Staleness consistency level, this value
represents the number of stale requests tolerated. Accepted range for this value is 1 –
2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:vartype max_staleness_prefix: int
:ivar max_interval_in_seconds: When used with the Bounded Staleness consistency level, this
value represents the time amount of staleness (in seconds) tolerated. Accepted range for this
value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:vartype max_interval_in_seconds: int
'''
def __init__(
self,
*,
default_consistency_level: Union[str, "_models.DefaultConsistencyLevel"],
max_staleness_prefix: Optional[int] = None,
max_interval_in_seconds: Optional[int] = None,
**kwargs: Any
) -> None:
'''
:keyword default_consistency_level: The default consistency level and configuration settings of
the Cosmos DB account. Required. Known values are: "Eventual", "Session", "BoundedStaleness",
"Strong", and "ConsistentPrefix".
:paramtype default_consistency_level: str or
~azure.mgmt.cosmosdb.models.DefaultConsistencyLevel
:keyword max_staleness_prefix: When used with the Bounded Staleness consistency level, this
value represents the number of stale requests tolerated. Accepted range for this value is 1 –
2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:paramtype max_staleness_prefix: int
:keyword max_interval_in_seconds: When used with the Bounded Staleness consistency level, this
value represents the time amount of staleness (in seconds) tolerated. Accepted range for this
value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
:paramtype max_interval_in_seconds: int
'''
pass
| 2 | 2 | 27 | 0 | 12 | 15 | 1 | 1.3 | 1 | 4 | 0 | 0 | 1 | 3 | 1 | 16 | 58 | 5 | 23 | 14 | 14 | 30 | 8 | 7 | 6 | 1 | 2 | 0 | 1 |
9,817 |
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.RestoreMode
|
class RestoreMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Describes the mode of the restore."""
POINT_IN_TIME = "PointInTime"
|
class RestoreMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Describes the mode of the restore.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 4 | 1 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
9,818 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._update.Update.ReplicationProtectionContainersGet
|
class ReplicationProtectionContainersGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_protection_container_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationProtectionContainersGet(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 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 90 | 13 | 77 | 25 | 60 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,819 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._update.Update.ReplicationProtectionContainersCreate
|
class ReplicationProtectionContainersCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_protection_container_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationProtectionContainersCreate(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 | 10 | 0 | 9 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 118 | 15 | 103 | 29 | 84 | 0 | 38 | 20 | 27 | 3 | 1 | 1 | 13 |
9,820 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._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("providerSpecificInput",
AAZListType, ".provider_specific_input")
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_elements(AAZObjectType, ".")
_elements = _builder.get(".properties.providerSpecificInput[]")
if _elements is not None:
_elements.set_prop("instanceType", AAZStrType, ".instance_type", 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 | 12 | 2 | 10 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 26 | 6 | 20 | 7 | 17 | 0 | 16 | 7 | 13 | 4 | 1 | 1 | 5 |
9,821 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_switch_protection.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._switch_protection.SwitchProtection.ReplicationProtectionContainersSwitchProtection
|
class ReplicationProtectionContainersSwitchProtection(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("providerSpecificDetails",
AAZObjectType, ".provider_specific_details")
properties.set_prop(
"replicationProtectedItemName", AAZStrType, ".replication_protected_item_name")
provider_specific_details = _builder.get(
".properties.providerSpecificDetails")
if provider_specific_details is not None:
provider_specific_details.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
provider_specific_details.discriminate_by(
"instanceType", "A2A")
disc_a2_a = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}")
if disc_a2_a is not None:
_SwitchProtectionHelper._build_schema_disk_encryption_info_create(
disc_a2_a.set_prop("diskEncryptionInfo", AAZObjectType, ".a2a.disk_encryption_info"))
disc_a2_a.set_prop("policyId", AAZStrType, ".a2a.policy_id")
disc_a2_a.set_prop("recoveryAvailabilitySetId",
AAZStrType, ".a2a.recovery_availability_set_id")
disc_a2_a.set_prop("recoveryAvailabilityZone",
AAZStrType, ".a2a.recovery_availability_zone")
disc_a2_a.set_prop("recoveryBootDiagStorageAccountId",
AAZStrType, ".a2a.recovery_boot_diag_storage_account_id")
disc_a2_a.set_prop("recoveryCapacityReservationGroupId",
AAZStrType, ".a2a.recovery_capacity_reservation_group_id")
disc_a2_a.set_prop("recoveryCloudServiceId",
AAZStrType, ".a2a.recovery_cloud_service_id")
disc_a2_a.set_prop("recoveryContainerId",
AAZStrType, ".a2a.recovery_container_id")
disc_a2_a.set_prop("recoveryProximityPlacementGroupId",
AAZStrType, ".a2a.recovery_proximity_placement_group_id")
disc_a2_a.set_prop("recoveryResourceGroupId",
AAZStrType, ".a2a.recovery_resource_group_id")
disc_a2_a.set_prop("recoveryVirtualMachineScaleSetId",
AAZStrType, ".a2a.recovery_virtual_machine_scale_set_id")
disc_a2_a.set_prop("vmDisks", AAZListType, ".a2a.vm_disks")
disc_a2_a.set_prop(
"vmManagedDisks", AAZListType, ".a2a.vm_managed_disks")
vm_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks")
if vm_disks is not None:
vm_disks.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks[]")
if _elements is not None:
_elements.set_prop("diskUri", AAZStrType, ".disk_uri", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("primaryStagingAzureStorageAccountId", AAZStrType,
".primary_staging_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("recoveryAzureStorageAccountId", AAZStrType,
".recovery_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
vm_managed_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmManagedDisks")
if vm_managed_disks is not None:
vm_managed_disks.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmManagedDisks[]")
if _elements is not None:
_SwitchProtectionHelper._build_schema_disk_encryption_info_create(
_elements.set_prop("diskEncryptionInfo", AAZObjectType, ".disk_encryption_info"))
_elements.set_prop("diskId", AAZStrType, ".disk_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("primaryStagingAzureStorageAccountId", AAZStrType,
".primary_staging_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("recoveryDiskEncryptionSetId",
AAZStrType, ".recovery_disk_encryption_set_id")
_elements.set_prop("recoveryReplicaDiskAccountType",
AAZStrType, ".recovery_replica_disk_account_type")
_elements.set_prop("recoveryResourceGroupId", AAZStrType, ".recovery_resource_group_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("recoveryTargetDiskAccountType",
AAZStrType, ".recovery_target_disk_account_type")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.fabric_friendly_name = AAZStrType(
serialized_name="fabricFriendlyName",
)
properties.fabric_specific_details = AAZObjectType(
serialized_name="fabricSpecificDetails",
)
properties.fabric_type = AAZStrType(
serialized_name="fabricType",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.pairing_status = AAZStrType(
serialized_name="pairingStatus",
)
properties.protected_item_count = AAZIntType(
serialized_name="protectedItemCount",
)
properties.role = AAZStrType()
fabric_specific_details = cls._schema_on_200.properties.fabric_specific_details
fabric_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectionContainersSwitchProtection(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 | 19 | 1 | 17 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 209 | 25 | 184 | 38 | 165 | 0 | 97 | 29 | 86 | 8 | 1 | 1 | 20 |
9,822 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._show.Show.ReplicationProtectionContainersGet
|
class ReplicationProtectionContainersGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.fabric_friendly_name = AAZStrType(
serialized_name="fabricFriendlyName",
)
properties.fabric_specific_details = AAZObjectType(
serialized_name="fabricSpecificDetails",
)
properties.fabric_type = AAZStrType(
serialized_name="fabricType",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.pairing_status = AAZStrType(
serialized_name="pairingStatus",
)
properties.protected_item_count = AAZIntType(
serialized_name="protectedItemCount",
)
properties.role = AAZStrType()
fabric_specific_details = cls._schema_on_200.properties.fabric_specific_details
fabric_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectionContainersGet(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 | 12 | 1 | 11 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 129 | 16 | 113 | 28 | 96 | 0 | 48 | 21 | 38 | 2 | 1 | 1 | 11 |
9,823 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_remove.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._remove.Remove.ReplicationProtectionContainersDelete
|
class ReplicationProtectionContainersDelete(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationProtectionContainersDelete(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 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 92 | 9 | 83 | 20 | 69 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,824 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._list.List.ReplicationProtectionContainersListByReplicationFabrics
|
class ReplicationProtectionContainersListByReplicationFabrics(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.fabric_friendly_name = AAZStrType(
serialized_name="fabricFriendlyName",
)
properties.fabric_specific_details = AAZObjectType(
serialized_name="fabricSpecificDetails",
)
properties.fabric_type = AAZStrType(
serialized_name="fabricType",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.pairing_status = AAZStrType(
serialized_name="pairingStatus",
)
properties.protected_item_count = AAZIntType(
serialized_name="protectedItemCount",
)
properties.role = AAZStrType()
fabric_specific_details = cls._schema_on_200.value.Element.properties.fabric_specific_details
fabric_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectionContainersListByReplicationFabrics(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 | 134 | 18 | 116 | 30 | 99 | 0 | 53 | 23 | 43 | 2 | 1 | 1 | 11 |
9,825 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/_create.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container._create.Create.ReplicationProtectionContainersCreate
|
class ReplicationProtectionContainersCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("providerSpecificInput",
AAZListType, ".provider_specific_input")
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_elements(AAZObjectType, ".")
_elements = _builder.get(".properties.providerSpecificInput[]")
if _elements is not None:
_elements.set_prop("instanceType", AAZStrType, ".instance_type", 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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.fabric_friendly_name = AAZStrType(
serialized_name="fabricFriendlyName",
)
properties.fabric_specific_details = AAZObjectType(
serialized_name="fabricSpecificDetails",
)
properties.fabric_type = AAZStrType(
serialized_name="fabricType",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.pairing_status = AAZStrType(
serialized_name="pairingStatus",
)
properties.protected_item_count = AAZIntType(
serialized_name="protectedItemCount",
)
properties.role = AAZStrType()
fabric_specific_details = cls._schema_on_200.properties.fabric_specific_details
fabric_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectionContainersCreate(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 | 15 | 1 | 14 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 9 | 1 | 10 | 10 | 171 | 21 | 150 | 35 | 131 | 0 | 63 | 26 | 52 | 4 | 1 | 1 | 16 |
9,826 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._update.Update.ReplicationProtectedItemsGet
|
class ReplicationProtectedItemsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_replication_protected_item_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationProtectedItemsGet(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 | 8 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 94 | 13 | 81 | 25 | 64 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,827 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._update.Update.ReplicationProtectedItemsCreate
|
class ReplicationProtectedItemsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_replication_protected_item_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationProtectedItemsCreate(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 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 122 | 15 | 107 | 29 | 88 | 0 | 38 | 20 | 27 | 3 | 1 | 1 | 13 |
9,828 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._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("policyId", AAZStrType, ".policy_id")
properties.set_prop("protectableItemId",
AAZStrType, ".protectable_item_id")
properties.set_prop("providerSpecificDetails",
AAZObjectType, ".provider_specific_details")
provider_specific_details = _builder.get(
".properties.providerSpecificDetails")
if provider_specific_details is not None:
provider_specific_details.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const("instanceType", "A2ACrossClusterMigration",
AAZStrType, ".a2a_cross_cluster_migration", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
provider_specific_details.discriminate_by(
"instanceType", "A2A")
provider_specific_details.discriminate_by(
"instanceType", "A2ACrossClusterMigration")
provider_specific_details.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_details.discriminate_by(
"instanceType", "InMage")
provider_specific_details.discriminate_by(
"instanceType", "InMageAzureV2")
provider_specific_details.discriminate_by(
"instanceType", "InMageRcm")
disc_a2_a = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}")
if disc_a2_a is not None:
_UpdateHelper._build_schema_disk_encryption_info_update(disc_a2_a.set_prop(
"diskEncryptionInfo", AAZObjectType, ".a2a.disk_encryption_info"))
disc_a2_a.set_prop("fabricObjectId", AAZStrType, ".a2a.fabric_object_id", typ_kwargs={
"flags": {"required": True}})
disc_a2_a.set_prop(
"multiVmGroupId", AAZStrType, ".a2a.multi_vm_group_id")
disc_a2_a.set_prop("multiVmGroupName",
AAZStrType, ".a2a.multi_vm_group_name")
disc_a2_a.set_prop("recoveryAvailabilitySetId",
AAZStrType, ".a2a.recovery_availability_set_id")
disc_a2_a.set_prop("recoveryAvailabilityZone",
AAZStrType, ".a2a.recovery_availability_zone")
disc_a2_a.set_prop("recoveryAzureNetworkId",
AAZStrType, ".a2a.recovery_azure_network_id")
disc_a2_a.set_prop("recoveryBootDiagStorageAccountId",
AAZStrType, ".a2a.recovery_boot_diag_storage_account_id")
disc_a2_a.set_prop("recoveryCapacityReservationGroupId",
AAZStrType, ".a2a.recovery_capacity_reservation_group_id")
disc_a2_a.set_prop("recoveryCloudServiceId",
AAZStrType, ".a2a.recovery_cloud_service_id")
disc_a2_a.set_prop("recoveryContainerId",
AAZStrType, ".a2a.recovery_container_id")
disc_a2_a.set_prop(
"recoveryExtendedLocation", AAZObjectType, ".a2a.recovery_extended_location")
disc_a2_a.set_prop("recoveryProximityPlacementGroupId",
AAZStrType, ".a2a.recovery_proximity_placement_group_id")
disc_a2_a.set_prop("recoveryResourceGroupId",
AAZStrType, ".a2a.recovery_resource_group_id")
disc_a2_a.set_prop("recoverySubnetName",
AAZStrType, ".a2a.recovery_subnet_name")
disc_a2_a.set_prop("recoveryVirtualMachineScaleSetId",
AAZStrType, ".a2a.recovery_virtual_machine_scale_set_id")
disc_a2_a.set_prop("vmDisks", AAZListType, ".a2a.vm_disks")
disc_a2_a.set_prop(
"vmManagedDisks", AAZListType, ".a2a.vm_managed_disks")
recovery_extended_location = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.recoveryExtendedLocation")
if recovery_extended_location is not None:
recovery_extended_location.set_prop("name", AAZStrType, ".name", typ_kwargs={
"flags": {"required": True}})
recovery_extended_location.set_prop("type", AAZStrType, ".type", typ_kwargs={
"flags": {"required": True}})
vm_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks")
if vm_disks is not None:
vm_disks.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks[]")
if _elements is not None:
_elements.set_prop("diskUri", AAZStrType, ".disk_uri", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("primaryStagingAzureStorageAccountId", AAZStrType,
".primary_staging_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("recoveryAzureStorageAccountId", AAZStrType,
".recovery_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
vm_managed_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmManagedDisks")
if vm_managed_disks is not None:
vm_managed_disks.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmManagedDisks[]")
if _elements is not None:
_UpdateHelper._build_schema_disk_encryption_info_update(_elements.set_prop(
"diskEncryptionInfo", AAZObjectType, ".disk_encryption_info"))
_elements.set_prop("diskId", AAZStrType, ".disk_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("primaryStagingAzureStorageAccountId", AAZStrType,
".primary_staging_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("recoveryDiskEncryptionSetId",
AAZStrType, ".recovery_disk_encryption_set_id")
_elements.set_prop("recoveryReplicaDiskAccountType",
AAZStrType, ".recovery_replica_disk_account_type")
_elements.set_prop("recoveryResourceGroupId", AAZStrType, ".recovery_resource_group_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("recoveryTargetDiskAccountType",
AAZStrType, ".recovery_target_disk_account_type")
disc_a2_a_cross_cluster_migration = _builder.get(
".properties.providerSpecificDetails{instanceType:A2ACrossClusterMigration}")
if disc_a2_a_cross_cluster_migration is not None:
disc_a2_a_cross_cluster_migration.set_prop(
"fabricObjectId", AAZStrType, ".a2a_cross_cluster_migration.fabric_object_id")
disc_a2_a_cross_cluster_migration.set_prop(
"recoveryContainerId", AAZStrType, ".a2a_cross_cluster_migration.recovery_container_id")
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop(
"diskEncryptionSetId", AAZStrType, ".hyper_v_replica_azure.disk_encryption_set_id")
disc_hyper_v_replica_azure.set_prop(
"diskType", AAZStrType, ".hyper_v_replica_azure.disk_type")
disc_hyper_v_replica_azure.set_prop(
"disksToInclude", AAZListType, ".hyper_v_replica_azure.disks_to_include")
disc_hyper_v_replica_azure.set_prop(
"disksToIncludeForManagedDisks", AAZListType, ".hyper_v_replica_azure.disks_to_include_for_managed_disks")
disc_hyper_v_replica_azure.set_prop(
"enableRdpOnTargetOption", AAZStrType, ".hyper_v_replica_azure.enable_rdp_on_target_option")
disc_hyper_v_replica_azure.set_prop(
"hvHostVmId", AAZStrType, ".hyper_v_replica_azure.hv_host_vm_id")
disc_hyper_v_replica_azure.set_prop(
"licenseType", AAZStrType, ".hyper_v_replica_azure.license_type")
disc_hyper_v_replica_azure.set_prop(
"logStorageAccountId", AAZStrType, ".hyper_v_replica_azure.log_storage_account_id")
disc_hyper_v_replica_azure.set_prop(
"osType", AAZStrType, ".hyper_v_replica_azure.os_type")
disc_hyper_v_replica_azure.set_prop(
"seedManagedDiskTags", AAZDictType, ".hyper_v_replica_azure.seed_managed_disk_tags")
disc_hyper_v_replica_azure.set_prop(
"sqlServerLicenseType", AAZStrType, ".hyper_v_replica_azure.sql_server_license_type")
disc_hyper_v_replica_azure.set_prop(
"targetAvailabilitySetId", AAZStrType, ".hyper_v_replica_azure.target_availability_set_id")
disc_hyper_v_replica_azure.set_prop(
"targetAvailabilityZone", AAZStrType, ".hyper_v_replica_azure.target_availability_zone")
disc_hyper_v_replica_azure.set_prop(
"targetAzureNetworkId", AAZStrType, ".hyper_v_replica_azure.target_azure_network_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureSubnetId", AAZStrType, ".hyper_v_replica_azure.target_azure_subnet_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureV1ResourceGroupId", AAZStrType, ".hyper_v_replica_azure.target_azure_v1_resource_group_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureV2ResourceGroupId", AAZStrType, ".hyper_v_replica_azure.target_azure_v2_resource_group_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureVmName", AAZStrType, ".hyper_v_replica_azure.target_azure_vm_name")
disc_hyper_v_replica_azure.set_prop(
"targetManagedDiskTags", AAZDictType, ".hyper_v_replica_azure.target_managed_disk_tags")
disc_hyper_v_replica_azure.set_prop(
"targetNicTags", AAZDictType, ".hyper_v_replica_azure.target_nic_tags")
disc_hyper_v_replica_azure.set_prop(
"targetProximityPlacementGroupId", AAZStrType, ".hyper_v_replica_azure.target_proximity_placement_group_id")
disc_hyper_v_replica_azure.set_prop(
"targetStorageAccountId", AAZStrType, ".hyper_v_replica_azure.target_storage_account_id")
disc_hyper_v_replica_azure.set_prop(
"targetVmSize", AAZStrType, ".hyper_v_replica_azure.target_vm_size")
disc_hyper_v_replica_azure.set_prop(
"targetVmTags", AAZDictType, ".hyper_v_replica_azure.target_vm_tags")
disc_hyper_v_replica_azure.set_prop(
"useManagedDisks", AAZStrType, ".hyper_v_replica_azure.use_managed_disks")
disc_hyper_v_replica_azure.set_prop(
"useManagedDisksForReplication", AAZStrType, ".hyper_v_replica_azure.use_managed_disks_for_replication")
disc_hyper_v_replica_azure.set_prop(
"vhdId", AAZStrType, ".hyper_v_replica_azure.vhd_id")
disc_hyper_v_replica_azure.set_prop(
"vmName", AAZStrType, ".hyper_v_replica_azure.vm_name")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZStrType, ".")
disks_to_include_for_managed_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.disksToIncludeForManagedDisks")
if disks_to_include_for_managed_disks is not None:
disks_to_include_for_managed_disks.set_elements(
AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.disksToIncludeForManagedDisks[]")
if _elements is not None:
_elements.set_prop("diskEncryptionSetId",
AAZStrType, ".disk_encryption_set_id")
_elements.set_prop("diskId", AAZStrType, ".disk_id")
_elements.set_prop("diskType", AAZStrType, ".disk_type")
_elements.set_prop("logStorageAccountId",
AAZStrType, ".log_storage_account_id")
seed_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.seedManagedDiskTags")
if seed_managed_disk_tags is not None:
seed_managed_disk_tags.set_elements(AAZStrType, ".")
target_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.targetManagedDiskTags")
if target_managed_disk_tags is not None:
target_managed_disk_tags.set_elements(AAZStrType, ".")
target_nic_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.targetNicTags")
if target_nic_tags is not None:
target_nic_tags.set_elements(AAZStrType, ".")
target_vm_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.targetVmTags")
if target_vm_tags is not None:
target_vm_tags.set_elements(AAZStrType, ".")
disc_in_mage = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}")
if disc_in_mage is not None:
disc_in_mage.set_prop(
"datastoreName", AAZStrType, ".in_mage.datastore_name")
disc_in_mage.set_prop(
"diskExclusionInput", AAZObjectType, ".in_mage.disk_exclusion_input")
disc_in_mage.set_prop(
"disksToInclude", AAZListType, ".in_mage.disks_to_include")
disc_in_mage.set_prop("masterTargetId", AAZStrType, ".in_mage.master_target_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("multiVmGroupId", AAZStrType, ".in_mage.multi_vm_group_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("multiVmGroupName", AAZStrType, ".in_mage.multi_vm_group_name", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("processServerId", AAZStrType, ".in_mage.process_server_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("retentionDrive", AAZStrType, ".in_mage.retention_drive", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop(
"runAsAccountId", AAZStrType, ".in_mage.run_as_account_id")
disc_in_mage.set_prop(
"vmFriendlyName", AAZStrType, ".in_mage.vm_friendly_name")
disk_exclusion_input = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput")
if disk_exclusion_input is not None:
disk_exclusion_input.set_prop(
"diskSignatureOptions", AAZListType, ".disk_signature_options")
disk_exclusion_input.set_prop(
"volumeOptions", AAZListType, ".volume_options")
disk_signature_options = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.diskSignatureOptions")
if disk_signature_options is not None:
disk_signature_options.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.diskSignatureOptions[]")
if _elements is not None:
_elements.set_prop(
"diskSignature", AAZStrType, ".disk_signature")
volume_options = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.volumeOptions")
if volume_options is not None:
volume_options.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.volumeOptions[]")
if _elements is not None:
_elements.set_prop("onlyExcludeIfSingleVolume",
AAZStrType, ".only_exclude_if_single_volume")
_elements.set_prop("volumeLabel", AAZStrType, ".volume_label")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZStrType, ".")
disc_in_mage_azure_v2 = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}")
if disc_in_mage_azure_v2 is not None:
disc_in_mage_azure_v2.set_prop(
"diskEncryptionSetId", AAZStrType, ".in_mage_azure_v2.disk_encryption_set_id")
disc_in_mage_azure_v2.set_prop(
"diskType", AAZStrType, ".in_mage_azure_v2.disk_type")
disc_in_mage_azure_v2.set_prop(
"disksToInclude", AAZListType, ".in_mage_azure_v2.disks_to_include")
disc_in_mage_azure_v2.set_prop(
"enableRdpOnTargetOption", AAZStrType, ".in_mage_azure_v2.enable_rdp_on_target_option")
disc_in_mage_azure_v2.set_prop(
"licenseType", AAZStrType, ".in_mage_azure_v2.license_type")
disc_in_mage_azure_v2.set_prop(
"logStorageAccountId", AAZStrType, ".in_mage_azure_v2.log_storage_account_id")
disc_in_mage_azure_v2.set_prop(
"masterTargetId", AAZStrType, ".in_mage_azure_v2.master_target_id")
disc_in_mage_azure_v2.set_prop(
"multiVmGroupId", AAZStrType, ".in_mage_azure_v2.multi_vm_group_id")
disc_in_mage_azure_v2.set_prop(
"multiVmGroupName", AAZStrType, ".in_mage_azure_v2.multi_vm_group_name")
disc_in_mage_azure_v2.set_prop(
"processServerId", AAZStrType, ".in_mage_azure_v2.process_server_id")
disc_in_mage_azure_v2.set_prop(
"runAsAccountId", AAZStrType, ".in_mage_azure_v2.run_as_account_id")
disc_in_mage_azure_v2.set_prop(
"seedManagedDiskTags", AAZDictType, ".in_mage_azure_v2.seed_managed_disk_tags")
disc_in_mage_azure_v2.set_prop(
"sqlServerLicenseType", AAZStrType, ".in_mage_azure_v2.sql_server_license_type")
disc_in_mage_azure_v2.set_prop(
"storageAccountId", AAZStrType, ".in_mage_azure_v2.storage_account_id")
disc_in_mage_azure_v2.set_prop(
"targetAvailabilitySetId", AAZStrType, ".in_mage_azure_v2.target_availability_set_id")
disc_in_mage_azure_v2.set_prop(
"targetAvailabilityZone", AAZStrType, ".in_mage_azure_v2.target_availability_zone")
disc_in_mage_azure_v2.set_prop(
"targetAzureNetworkId", AAZStrType, ".in_mage_azure_v2.target_azure_network_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureSubnetId", AAZStrType, ".in_mage_azure_v2.target_azure_subnet_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureV1ResourceGroupId", AAZStrType, ".in_mage_azure_v2.target_azure_v1_resource_group_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureV2ResourceGroupId", AAZStrType, ".in_mage_azure_v2.target_azure_v2_resource_group_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureVmName", AAZStrType, ".in_mage_azure_v2.target_azure_vm_name")
disc_in_mage_azure_v2.set_prop(
"targetManagedDiskTags", AAZDictType, ".in_mage_azure_v2.target_managed_disk_tags")
disc_in_mage_azure_v2.set_prop(
"targetNicTags", AAZDictType, ".in_mage_azure_v2.target_nic_tags")
disc_in_mage_azure_v2.set_prop(
"targetProximityPlacementGroupId", AAZStrType, ".in_mage_azure_v2.target_proximity_placement_group_id")
disc_in_mage_azure_v2.set_prop(
"targetVmSize", AAZStrType, ".in_mage_azure_v2.target_vm_size")
disc_in_mage_azure_v2.set_prop(
"targetVmTags", AAZDictType, ".in_mage_azure_v2.target_vm_tags")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.disksToInclude[]")
if _elements is not None:
_elements.set_prop("diskEncryptionSetId",
AAZStrType, ".disk_encryption_set_id")
_elements.set_prop("diskId", AAZStrType, ".disk_id")
_elements.set_prop("diskType", AAZStrType, ".disk_type")
_elements.set_prop("logStorageAccountId",
AAZStrType, ".log_storage_account_id")
seed_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.seedManagedDiskTags")
if seed_managed_disk_tags is not None:
seed_managed_disk_tags.set_elements(AAZStrType, ".")
target_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.targetManagedDiskTags")
if target_managed_disk_tags is not None:
target_managed_disk_tags.set_elements(AAZStrType, ".")
target_nic_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.targetNicTags")
if target_nic_tags is not None:
target_nic_tags.set_elements(AAZStrType, ".")
target_vm_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.targetVmTags")
if target_vm_tags is not None:
target_vm_tags.set_elements(AAZStrType, ".")
disc_in_mage_rcm = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop(
"disksDefault", AAZObjectType, ".in_mage_rcm.disks_default")
disc_in_mage_rcm.set_prop(
"disksToInclude", AAZListType, ".in_mage_rcm.disks_to_include")
disc_in_mage_rcm.set_prop("fabricDiscoveryMachineId", AAZStrType,
".in_mage_rcm.fabric_discovery_machine_id", typ_kwargs={"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"licenseType", AAZStrType, ".in_mage_rcm.license_type")
disc_in_mage_rcm.set_prop(
"multiVmGroupName", AAZStrType, ".in_mage_rcm.multi_vm_group_name")
disc_in_mage_rcm.set_prop("processServerId", AAZStrType, ".in_mage_rcm.process_server_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"runAsAccountId", AAZStrType, ".in_mage_rcm.run_as_account_id")
disc_in_mage_rcm.set_prop(
"targetAvailabilitySetId", AAZStrType, ".in_mage_rcm.target_availability_set_id")
disc_in_mage_rcm.set_prop(
"targetAvailabilityZone", AAZStrType, ".in_mage_rcm.target_availability_zone")
disc_in_mage_rcm.set_prop("targetBootDiagnosticsStorageAccountId",
AAZStrType, ".in_mage_rcm.target_boot_diagnostics_storage_account_id")
disc_in_mage_rcm.set_prop(
"targetNetworkId", AAZStrType, ".in_mage_rcm.target_network_id")
disc_in_mage_rcm.set_prop(
"targetProximityPlacementGroupId", AAZStrType, ".in_mage_rcm.target_proximity_placement_group_id")
disc_in_mage_rcm.set_prop("targetResourceGroupId", AAZStrType, ".in_mage_rcm.target_resource_group_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"targetSubnetName", AAZStrType, ".in_mage_rcm.target_subnet_name")
disc_in_mage_rcm.set_prop(
"targetVmName", AAZStrType, ".in_mage_rcm.target_vm_name")
disc_in_mage_rcm.set_prop(
"targetVmSize", AAZStrType, ".in_mage_rcm.target_vm_size")
disc_in_mage_rcm.set_prop(
"testNetworkId", AAZStrType, ".in_mage_rcm.test_network_id")
disc_in_mage_rcm.set_prop(
"testSubnetName", AAZStrType, ".in_mage_rcm.test_subnet_name")
disks_default = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}.disksDefault")
if disks_default is not None:
disks_default.set_prop(
"diskEncryptionSetId", AAZStrType, ".disk_encryption_set_id")
disks_default.set_prop("diskType", AAZStrType, ".disk_type", typ_kwargs={
"flags": {"required": True}})
disks_default.set_prop("logStorageAccountId", AAZStrType, ".log_storage_account_id", typ_kwargs={
"flags": {"required": True}})
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}.disksToInclude[]")
if _elements is not None:
_elements.set_prop("diskEncryptionSetId",
AAZStrType, ".disk_encryption_set_id")
_elements.set_prop("diskId", AAZStrType, ".disk_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("diskType", AAZStrType, ".disk_type", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("logStorageAccountId", AAZStrType, ".log_storage_account_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 | 140 | 18 | 122 | 0 | 19 | 0 | 1 | 1 | 1 | 0 | 2 | 0 | 2 | 2 | 283 | 38 | 245 | 26 | 242 | 0 | 241 | 26 | 238 | 36 | 1 | 1 | 37 |
9,829 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_unplanned_failover.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._unplanned_failover.UnplannedFailover.ReplicationProtectedItemsUnplannedFailover
|
class ReplicationProtectedItemsUnplannedFailover(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("failoverDirection",
AAZStrType, ".failover_direction")
properties.set_prop("providerSpecificDetails",
AAZObjectType, ".provider_specific_details")
properties.set_prop("sourceSiteOperations",
AAZStrType, ".source_site_operations")
provider_specific_details = _builder.get(
".properties.providerSpecificDetails")
if provider_specific_details is not None:
provider_specific_details.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMage", AAZStrType, ".in_mage", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageAzureV2", AAZStrType, ".in_mage_azure_v2", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
provider_specific_details.discriminate_by(
"instanceType", "A2A")
provider_specific_details.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_details.discriminate_by(
"instanceType", "InMage")
provider_specific_details.discriminate_by(
"instanceType", "InMageAzureV2")
provider_specific_details.discriminate_by(
"instanceType", "InMageRcm")
disc_a2_a = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}")
if disc_a2_a is not None:
disc_a2_a.set_prop("cloudServiceCreationOption",
AAZStrType, ".a2a.cloud_service_creation_option")
disc_a2_a.set_prop("recoveryPointId",
AAZStrType, ".a2a.recovery_point_id")
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop(
"primaryKekCertificatePfx", AAZStrType, ".hyper_v_replica_azure.primary_kek_certificate_pfx")
disc_hyper_v_replica_azure.set_prop(
"recoveryPointId", AAZStrType, ".hyper_v_replica_azure.recovery_point_id")
disc_hyper_v_replica_azure.set_prop(
"secondaryKekCertificatePfx", AAZStrType, ".hyper_v_replica_azure.secondary_kek_certificate_pfx")
disc_in_mage = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}")
if disc_in_mage is not None:
disc_in_mage.set_prop(
"recoveryPointId", AAZStrType, ".in_mage.recovery_point_id")
disc_in_mage.set_prop(
"recoveryPointType", AAZStrType, ".in_mage.recovery_point_type")
disc_in_mage_azure_v2 = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}")
if disc_in_mage_azure_v2 is not None:
disc_in_mage_azure_v2.set_prop(
"recoveryPointId", AAZStrType, ".in_mage_azure_v2.recovery_point_id")
disc_in_mage_rcm = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop("performShutdown", AAZStrType, ".in_mage_rcm.perform_shutdown", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"recoveryPointId", AAZStrType, ".in_mage_rcm.recovery_point_id")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.active_location = AAZStrType(
serialized_name="activeLocation",
)
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.event_correlation_id = AAZStrType(
serialized_name="eventCorrelationId",
)
properties.failover_health = AAZStrType(
serialized_name="failoverHealth",
)
properties.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.last_successful_failover_time = AAZStrType(
serialized_name="lastSuccessfulFailoverTime",
)
properties.last_successful_test_failover_time = AAZStrType(
serialized_name="lastSuccessfulTestFailoverTime",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_provider = AAZStrType(
serialized_name="primaryFabricProvider",
)
properties.primary_protection_container_friendly_name = AAZStrType(
serialized_name="primaryProtectionContainerFriendlyName",
)
properties.protectable_item_id = AAZStrType(
serialized_name="protectableItemId",
)
properties.protected_item_type = AAZStrType(
serialized_name="protectedItemType",
)
properties.protection_state = AAZStrType(
serialized_name="protectionState",
)
properties.protection_state_description = AAZStrType(
serialized_name="protectionStateDescription",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.recovery_container_id = AAZStrType(
serialized_name="recoveryContainerId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.recovery_protection_container_friendly_name = AAZStrType(
serialized_name="recoveryProtectionContainerFriendlyName",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_health = AAZStrType(
serialized_name="replicationHealth",
)
properties.switch_provider_state = AAZStrType(
serialized_name="switchProviderState",
)
properties.switch_provider_state_description = AAZStrType(
serialized_name="switchProviderStateDescription",
)
properties.test_failover_state = AAZStrType(
serialized_name="testFailoverState",
)
properties.test_failover_state_description = AAZStrType(
serialized_name="testFailoverStateDescription",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
health_errors = cls._schema_on_200.properties.health_errors
health_errors.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_health_error_read(
health_errors.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_certificate_expiry_date = AAZStrType(
serialized_name="agentCertificateExpiryDate",
flags={"read_only": True},
)
disc_a2_a.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_a2_a.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_a2_a.auto_protection_of_data_disk = AAZStrType(
serialized_name="autoProtectionOfDataDisk",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.initial_primary_extended_location = AAZObjectType(
serialized_name="initialPrimaryExtendedLocation",
)
_UnplannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.initial_primary_extended_location)
disc_a2_a.initial_primary_fabric_location = AAZStrType(
serialized_name="initialPrimaryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_primary_zone = AAZStrType(
serialized_name="initialPrimaryZone",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_extended_location = AAZObjectType(
serialized_name="initialRecoveryExtendedLocation",
)
_UnplannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.initial_recovery_extended_location)
disc_a2_a.initial_recovery_fabric_location = AAZStrType(
serialized_name="initialRecoveryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_zone = AAZStrType(
serialized_name="initialRecoveryZone",
flags={"read_only": True},
)
disc_a2_a.is_replication_agent_certificate_update_required = AAZBoolType(
serialized_name="isReplicationAgentCertificateUpdateRequired",
)
disc_a2_a.is_replication_agent_update_required = AAZBoolType(
serialized_name="isReplicationAgentUpdateRequired",
)
disc_a2_a.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_a2_a.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_a2_a.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a.management_id = AAZStrType(
serialized_name="managementId",
)
disc_a2_a.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
disc_a2_a.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
disc_a2_a.multi_vm_group_create_option = AAZStrType(
serialized_name="multiVmGroupCreateOption",
)
disc_a2_a.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_a2_a.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_a2_a.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a.primary_availability_zone = AAZStrType(
serialized_name="primaryAvailabilityZone",
)
disc_a2_a.primary_extended_location = AAZObjectType(
serialized_name="primaryExtendedLocation",
)
_UnplannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.primary_extended_location)
disc_a2_a.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_a2_a.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_a2_a.recovery_availability_set = AAZStrType(
serialized_name="recoveryAvailabilitySet",
)
disc_a2_a.recovery_availability_zone = AAZStrType(
serialized_name="recoveryAvailabilityZone",
)
disc_a2_a.recovery_azure_generation = AAZStrType(
serialized_name="recoveryAzureGeneration",
flags={"read_only": True},
)
disc_a2_a.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_a2_a.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_a2_a.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_a2_a.recovery_boot_diag_storage_account_id = AAZStrType(
serialized_name="recoveryBootDiagStorageAccountId",
)
disc_a2_a.recovery_capacity_reservation_group_id = AAZStrType(
serialized_name="recoveryCapacityReservationGroupId",
)
disc_a2_a.recovery_cloud_service = AAZStrType(
serialized_name="recoveryCloudService",
)
disc_a2_a.recovery_extended_location = AAZObjectType(
serialized_name="recoveryExtendedLocation",
)
_UnplannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.recovery_extended_location)
disc_a2_a.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_a2_a.recovery_fabric_object_id = AAZStrType(
serialized_name="recoveryFabricObjectId",
)
disc_a2_a.recovery_proximity_placement_group_id = AAZStrType(
serialized_name="recoveryProximityPlacementGroupId",
)
disc_a2_a.recovery_virtual_machine_scale_set_id = AAZStrType(
serialized_name="recoveryVirtualMachineScaleSetId",
)
disc_a2_a.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_a2_a.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_a2_a.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_a2_a.test_failover_recovery_fabric_object_id = AAZStrType(
serialized_name="testFailoverRecoveryFabricObjectId",
)
disc_a2_a.tfo_azure_vm_name = AAZStrType(
serialized_name="tfoAzureVMName",
)
disc_a2_a.unprotected_disks = AAZListType(
serialized_name="unprotectedDisks",
)
disc_a2_a.vm_encryption_type = AAZStrType(
serialized_name="vmEncryptionType",
flags={"read_only": True},
)
disc_a2_a.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_a2_a.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_a2_a.vm_synced_config_details = AAZObjectType(
serialized_name="vmSyncedConfigDetails",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.disk_uri = AAZStrType(
serialized_name="diskUri",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_azure_storage_account_id = AAZStrType(
serialized_name="primaryDiskAzureStorageAccountId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_azure_storage_account_id = AAZStrType(
serialized_name="recoveryAzureStorageAccountId",
)
_element.recovery_disk_uri = AAZStrType(
serialized_name="recoveryDiskUri",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_encryption_set_id = AAZStrType(
serialized_name="primaryDiskEncryptionSetId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_disk_encryption_set_id = AAZStrType(
serialized_name="recoveryDiskEncryptionSetId",
)
_element.recovery_orignal_target_disk_id = AAZStrType(
serialized_name="recoveryOrignalTargetDiskId",
)
_element.recovery_replica_disk_account_type = AAZStrType(
serialized_name="recoveryReplicaDiskAccountType",
)
_element.recovery_replica_disk_id = AAZStrType(
serialized_name="recoveryReplicaDiskId",
)
_element.recovery_resource_group_id = AAZStrType(
serialized_name="recoveryResourceGroupId",
)
_element.recovery_target_disk_account_type = AAZStrType(
serialized_name="recoveryTargetDiskAccountType",
)
_element.recovery_target_disk_id = AAZStrType(
serialized_name="recoveryTargetDiskId",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
unprotected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks
unprotected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks.Element
_element.disk_auto_protection_status = AAZStrType(
serialized_name="diskAutoProtectionStatus",
)
_element.disk_lun_id = AAZIntType(
serialized_name="diskLunId",
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_nics
vm_nics.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
vm_synced_config_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details
vm_synced_config_details.input_endpoints = AAZListType(
serialized_name="inputEndpoints",
)
vm_synced_config_details.tags = AAZDictType()
input_endpoints = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints
input_endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints.Element
_element.endpoint_name = AAZStrType(
serialized_name="endpointName",
)
_element.private_port = AAZIntType(
serialized_name="privatePort",
)
_element.protocol = AAZStrType()
_element.public_port = AAZIntType(
serialized_name="publicPort",
)
tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.tags
tags.Element = AAZStrType()
disc_a2_a_cross_cluster_migration = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2ACrossClusterMigration")
disc_a2_a_cross_cluster_migration.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a_cross_cluster_migration.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a_cross_cluster_migration.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a_cross_cluster_migration.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a_cross_cluster_migration.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a_cross_cluster_migration.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_UnplannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012.initial_replication_details)
disc_hyper_v_replica2012.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").vm_nics
vm_nics.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_UnplannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012_r2.initial_replication_details)
disc_hyper_v_replica2012_r2.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012_r2.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012_r2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012_r2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012_r2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012_r2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").vm_nics
vm_nics.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.azure_vm_disk_details = AAZListType(
serialized_name="azureVmDiskDetails",
)
disc_hyper_v_replica_azure.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_UnplannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_azure.initial_replication_details)
disc_hyper_v_replica_azure.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_hyper_v_replica_azure.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_azure.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_hyper_v_replica_azure.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_hyper_v_replica_azure.o_s_details = AAZObjectType(
serialized_name="oSDetails",
)
disc_hyper_v_replica_azure.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_hyper_v_replica_azure.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_hyper_v_replica_azure.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_hyper_v_replica_azure.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_hyper_v_replica_azure.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_hyper_v_replica_azure.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_hyper_v_replica_azure.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVmName",
)
disc_hyper_v_replica_azure.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_hyper_v_replica_azure.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_hyper_v_replica_azure.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_hyper_v_replica_azure.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_hyper_v_replica_azure.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_hyper_v_replica_azure.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_hyper_v_replica_azure.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_hyper_v_replica_azure.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_hyper_v_replica_azure.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_hyper_v_replica_azure.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_hyper_v_replica_azure.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_hyper_v_replica_azure.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_hyper_v_replica_azure.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_hyper_v_replica_azure.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_azure.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_azure.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_azure.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
o_s_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").o_s_details
o_s_details.o_s_major_version = AAZStrType(
serialized_name="oSMajorVersion",
)
o_s_details.o_s_minor_version = AAZStrType(
serialized_name="oSMinorVersion",
)
o_s_details.o_s_version = AAZStrType(
serialized_name="oSVersion",
)
o_s_details.os_edition = AAZStrType(
serialized_name="osEdition",
)
o_s_details.os_type = AAZStrType(
serialized_name="osType",
)
o_s_details.product_type = AAZStrType(
serialized_name="productType",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_vm_tags
target_vm_tags.Element = AAZStrType()
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").vm_nics
vm_nics.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica_base_replication_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails")
disc_hyper_v_replica_base_replication_details.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_UnplannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_base_replication_details.initial_replication_details)
disc_hyper_v_replica_base_replication_details.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_base_replication_details.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica_base_replication_details.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_base_replication_details.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").vm_nics
vm_nics.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.active_site_type = AAZStrType(
serialized_name="activeSiteType",
)
disc_in_mage.agent_details = AAZObjectType(
serialized_name="agentDetails",
)
disc_in_mage.azure_storage_account_id = AAZStrType(
serialized_name="azureStorageAccountId",
)
disc_in_mage.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage.consistency_points = AAZDictType(
serialized_name="consistencyPoints",
)
disc_in_mage.datastores = AAZListType()
disc_in_mage.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.os_details = AAZObjectType(
serialized_name="osDetails",
)
disc_in_mage.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage.reboot_after_update_status = AAZStrType(
serialized_name="rebootAfterUpdateStatus",
)
disc_in_mage.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_UnplannedFailoverHelper._build_schema_initial_replication_details_read(
disc_in_mage.resync_details)
disc_in_mage.retention_window_end = AAZStrType(
serialized_name="retentionWindowEnd",
)
disc_in_mage.retention_window_start = AAZStrType(
serialized_name="retentionWindowStart",
)
disc_in_mage.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").agent_details
agent_details.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
agent_details.agent_update_status = AAZStrType(
serialized_name="agentUpdateStatus",
)
agent_details.agent_version = AAZStrType(
serialized_name="agentVersion",
)
agent_details.post_update_reboot_status = AAZStrType(
serialized_name="postUpdateRebootStatus",
)
consistency_points = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").consistency_points
consistency_points.Element = AAZStrType()
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").datastores
datastores.Element = AAZStrType()
os_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").os_details
os_details.os_type = AAZStrType(
serialized_name="osType",
)
os_details.os_vhd_id = AAZStrType(
serialized_name="osVhdId",
)
os_details.vhd_name = AAZStrType(
serialized_name="vhdName",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mb = AAZFloatType(
serialized_name="psDataInMB",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.source_data_in_mb = AAZFloatType(
serialized_name="sourceDataInMB",
)
_element.target_data_in_mb = AAZFloatType(
serialized_name="targetDataInMB",
)
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").validation_errors
validation_errors.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").vm_nics
vm_nics.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_in_mage_azure_v2.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_in_mage_azure_v2.azure_vm_disk_details = AAZListType(
serialized_name="azureVMDiskDetails",
)
disc_in_mage_azure_v2.azure_vm_generation = AAZStrType(
serialized_name="azureVmGeneration",
)
disc_in_mage_azure_v2.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage_azure_v2.datastores = AAZListType()
disc_in_mage_azure_v2.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage_azure_v2.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage_azure_v2.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_in_mage_azure_v2.firmware_type = AAZStrType(
serialized_name="firmwareType",
)
disc_in_mage_azure_v2.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage_azure_v2.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage_azure_v2.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage_azure_v2.is_agent_update_required = AAZStrType(
serialized_name="isAgentUpdateRequired",
)
disc_in_mage_azure_v2.is_reboot_after_update_required = AAZStrType(
serialized_name="isRebootAfterUpdateRequired",
)
disc_in_mage_azure_v2.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage_azure_v2.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_azure_v2.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage_azure_v2.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage_azure_v2.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_azure_v2.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage_azure_v2.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage_azure_v2.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.os_disk_id = AAZStrType(
serialized_name="osDiskId",
)
disc_in_mage_azure_v2.os_type = AAZStrType(
serialized_name="osType",
)
disc_in_mage_azure_v2.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage_azure_v2.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage_azure_v2.process_server_name = AAZStrType(
serialized_name="processServerName",
)
disc_in_mage_azure_v2.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_azure_v2.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_in_mage_azure_v2.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage_azure_v2.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_in_mage_azure_v2.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_in_mage_azure_v2.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_in_mage_azure_v2.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_in_mage_azure_v2.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_in_mage_azure_v2.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_in_mage_azure_v2.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage_azure_v2.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
disc_in_mage_azure_v2.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage_azure_v2.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_in_mage_azure_v2.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_in_mage_azure_v2.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_in_mage_azure_v2.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_in_mage_azure_v2.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage_azure_v2.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage_azure_v2.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_in_mage_azure_v2.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_in_mage_azure_v2.switch_provider_details = AAZObjectType(
serialized_name="switchProviderDetails",
)
disc_in_mage_azure_v2.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_azure_v2.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_in_mage_azure_v2.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_in_mage_azure_v2.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_azure_v2.target_vm_id = AAZStrType(
serialized_name="targetVmId",
)
disc_in_mage_azure_v2.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_in_mage_azure_v2.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage_azure_v2.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage_azure_v2.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage_azure_v2.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_in_mage_azure_v2.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage_azure_v2.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage_azure_v2.vhd_name = AAZStrType(
serialized_name="vhdName",
)
disc_in_mage_azure_v2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage_azure_v2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage_azure_v2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage_azure_v2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").datastores
datastores.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mega_bytes = AAZFloatType(
serialized_name="psDataInMegaBytes",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.seconds_to_take_switch_provider = AAZIntType(
serialized_name="secondsToTakeSwitchProvider",
)
_element.source_data_in_mega_bytes = AAZFloatType(
serialized_name="sourceDataInMegaBytes",
)
_element.target_data_in_mega_bytes = AAZFloatType(
serialized_name="targetDataInMegaBytes",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
_element.target_disk_name = AAZStrType(
serialized_name="targetDiskName",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
switch_provider_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
switch_provider_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_details
switch_provider_details.target_appliance_id = AAZStrType(
serialized_name="targetApplianceId",
flags={"read_only": True},
)
switch_provider_details.target_fabric_id = AAZStrType(
serialized_name="targetFabricId",
flags={"read_only": True},
)
switch_provider_details.target_resource_id = AAZStrType(
serialized_name="targetResourceId",
flags={"read_only": True},
)
switch_provider_details.target_vault_id = AAZStrType(
serialized_name="targetVaultId",
flags={"read_only": True},
)
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_vm_tags
target_vm_tags.Element = AAZStrType()
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").validation_errors
validation_errors.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").vm_nics
vm_nics.Element = AAZObjectType()
_UnplannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_upgrade_attempt_to_version = AAZStrType(
serialized_name="agentUpgradeAttemptToVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_blocking_error_details = AAZListType(
serialized_name="agentUpgradeBlockingErrorDetails",
)
disc_in_mage_rcm.agent_upgrade_job_id = AAZStrType(
serialized_name="agentUpgradeJobId",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_state = AAZStrType(
serialized_name="agentUpgradeState",
flags={"read_only": True},
)
disc_in_mage_rcm.allocated_memory_in_mb = AAZFloatType(
serialized_name="allocatedMemoryInMB",
flags={"read_only": True},
)
disc_in_mage_rcm.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm.discovery_type = AAZStrType(
serialized_name="discoveryType",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_discovery_machine_id = AAZStrType(
serialized_name="fabricDiscoveryMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.firmware_type = AAZStrType(
serialized_name="firmwareType",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm.is_last_upgrade_successful = AAZStrType(
serialized_name="isLastUpgradeSuccessful",
flags={"read_only": True},
)
disc_in_mage_rcm.last_agent_upgrade_error_details = AAZListType(
serialized_name="lastAgentUpgradeErrorDetails",
)
disc_in_mage_rcm.last_agent_upgrade_type = AAZStrType(
serialized_name="lastAgentUpgradeType",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_id = AAZStrType(
serialized_name="lastRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_in_seconds = AAZIntType(
serialized_name="lastRpoInSeconds",
flags={"read_only": True},
)
disc_in_mage_rcm.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_rcm.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm.primary_nic_ip_address = AAZStrType(
serialized_name="primaryNicIpAddress",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_id = AAZStrType(
serialized_name="processServerId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_name = AAZStrType(
serialized_name="processServerName",
flags={"read_only": True},
)
disc_in_mage_rcm.processor_core_count = AAZIntType(
serialized_name="processorCoreCount",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.run_as_account_id = AAZStrType(
serialized_name="runAsAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.target_availability_set_id = AAZStrType(
serialized_name="targetAvailabilitySetId",
)
disc_in_mage_rcm.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_rcm.target_boot_diagnostics_storage_account_id = AAZStrType(
serialized_name="targetBootDiagnosticsStorageAccountId",
)
disc_in_mage_rcm.target_generation = AAZStrType(
serialized_name="targetGeneration",
flags={"read_only": True},
)
disc_in_mage_rcm.target_location = AAZStrType(
serialized_name="targetLocation",
)
disc_in_mage_rcm.target_network_id = AAZStrType(
serialized_name="targetNetworkId",
)
disc_in_mage_rcm.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_rcm.target_resource_group_id = AAZStrType(
serialized_name="targetResourceGroupId",
)
disc_in_mage_rcm.target_vm_name = AAZStrType(
serialized_name="targetVmName",
)
disc_in_mage_rcm.target_vm_size = AAZStrType(
serialized_name="targetVmSize",
)
disc_in_mage_rcm.test_network_id = AAZStrType(
serialized_name="testNetworkId",
)
disc_in_mage_rcm.vm_nics = AAZListType(
serialized_name="vmNics",
)
agent_upgrade_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details
agent_upgrade_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
last_agent_upgrade_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details
last_agent_upgrade_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_tags
error_tags.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_agent_release_date = AAZStrType(
serialized_name="latestAgentReleaseDate",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_UnplannedFailoverHelper._build_schema_in_mage_rcm_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_UnplannedFailoverHelper._build_schema_in_mage_rcm_sync_details_read(
_element.resync_details)
_element.seed_blob_uri = AAZStrType(
serialized_name="seedBlobUri",
flags={"read_only": True},
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
flags={"read_only": True},
)
_element.target_managed_disk_id = AAZStrType(
serialized_name="targetManagedDiskId",
flags={"read_only": True},
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics.Element
_element.is_primary_nic = AAZStrType(
serialized_name="isPrimaryNic",
)
_element.is_selected_for_failover = AAZStrType(
serialized_name="isSelectedForFailover",
)
_element.nic_id = AAZStrType(
serialized_name="nicId",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIPAddress",
flags={"read_only": True},
)
_element.source_ip_address_type = AAZStrType(
serialized_name="sourceIPAddressType",
flags={"read_only": True},
)
_element.source_network_id = AAZStrType(
serialized_name="sourceNetworkId",
flags={"read_only": True},
)
_element.source_subnet_name = AAZStrType(
serialized_name="sourceSubnetName",
flags={"read_only": True},
)
_element.target_ip_address = AAZStrType(
serialized_name="targetIPAddress",
)
_element.target_ip_address_type = AAZStrType(
serialized_name="targetIPAddressType",
)
_element.target_subnet_name = AAZStrType(
serialized_name="targetSubnetName",
)
_element.test_ip_address = AAZStrType(
serialized_name="testIPAddress",
)
_element.test_ip_address_type = AAZStrType(
serialized_name="testIPAddressType",
)
_element.test_subnet_name = AAZStrType(
serialized_name="testSubnetName",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.azure_virtual_machine_id = AAZStrType(
serialized_name="azureVirtualMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm_failback.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_start_time = AAZStrType(
serialized_name="lastPlannedFailoverStartTime",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_status = AAZStrType(
serialized_name="lastPlannedFailoverStatus",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_friendly_name = AAZStrType(
serialized_name="lastUsedPolicyFriendlyName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_id = AAZStrType(
serialized_name="lastUsedPolicyId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm_failback.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm_failback.reprotect_agent_id = AAZStrType(
serialized_name="reprotectAgentId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.reprotect_agent_name = AAZStrType(
serialized_name="reprotectAgentName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_data_store_name = AAZStrType(
serialized_name="targetDataStoreName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_vm_name = AAZStrType(
serialized_name="targetVmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.targetv_center_id = AAZStrType(
serialized_name="targetvCenterId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_nics = AAZListType(
serialized_name="vmNics",
)
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_uuid = AAZStrType(
serialized_name="diskUuid",
flags={"read_only": True},
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_UnplannedFailoverHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.last_sync_time = AAZStrType(
serialized_name="lastSyncTime",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_UnplannedFailoverHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.resync_details)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics.Element
_element.adapter_type = AAZStrType(
serialized_name="adapterType",
flags={"read_only": True},
)
_element.mac_address = AAZStrType(
serialized_name="macAddress",
flags={"read_only": True},
)
_element.network_name = AAZStrType(
serialized_name="networkName",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIpAddress",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectedItemsUnplannedFailover(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 | 229 | 11 | 218 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 2,311 | 117 | 2,194 | 83 | 2,175 | 0 | 829 | 74 | 818 | 8 | 1 | 1 | 20 |
9,830 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._show.Show.ReplicationProtectedItemsGet
|
class ReplicationProtectedItemsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.active_location = AAZStrType(
serialized_name="activeLocation",
)
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.event_correlation_id = AAZStrType(
serialized_name="eventCorrelationId",
)
properties.failover_health = AAZStrType(
serialized_name="failoverHealth",
)
properties.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.last_successful_failover_time = AAZStrType(
serialized_name="lastSuccessfulFailoverTime",
)
properties.last_successful_test_failover_time = AAZStrType(
serialized_name="lastSuccessfulTestFailoverTime",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_provider = AAZStrType(
serialized_name="primaryFabricProvider",
)
properties.primary_protection_container_friendly_name = AAZStrType(
serialized_name="primaryProtectionContainerFriendlyName",
)
properties.protectable_item_id = AAZStrType(
serialized_name="protectableItemId",
)
properties.protected_item_type = AAZStrType(
serialized_name="protectedItemType",
)
properties.protection_state = AAZStrType(
serialized_name="protectionState",
)
properties.protection_state_description = AAZStrType(
serialized_name="protectionStateDescription",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.recovery_container_id = AAZStrType(
serialized_name="recoveryContainerId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.recovery_protection_container_friendly_name = AAZStrType(
serialized_name="recoveryProtectionContainerFriendlyName",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_health = AAZStrType(
serialized_name="replicationHealth",
)
properties.switch_provider_state = AAZStrType(
serialized_name="switchProviderState",
)
properties.switch_provider_state_description = AAZStrType(
serialized_name="switchProviderStateDescription",
)
properties.test_failover_state = AAZStrType(
serialized_name="testFailoverState",
)
properties.test_failover_state_description = AAZStrType(
serialized_name="testFailoverStateDescription",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
health_errors = cls._schema_on_200.properties.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_certificate_expiry_date = AAZStrType(
serialized_name="agentCertificateExpiryDate",
flags={"read_only": True},
)
disc_a2_a.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_a2_a.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_a2_a.auto_protection_of_data_disk = AAZStrType(
serialized_name="autoProtectionOfDataDisk",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.initial_primary_extended_location = AAZObjectType(
serialized_name="initialPrimaryExtendedLocation",
)
_ShowHelper._build_schema_extended_location_read(
disc_a2_a.initial_primary_extended_location)
disc_a2_a.initial_primary_fabric_location = AAZStrType(
serialized_name="initialPrimaryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_primary_zone = AAZStrType(
serialized_name="initialPrimaryZone",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_extended_location = AAZObjectType(
serialized_name="initialRecoveryExtendedLocation",
)
_ShowHelper._build_schema_extended_location_read(
disc_a2_a.initial_recovery_extended_location)
disc_a2_a.initial_recovery_fabric_location = AAZStrType(
serialized_name="initialRecoveryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_zone = AAZStrType(
serialized_name="initialRecoveryZone",
flags={"read_only": True},
)
disc_a2_a.is_replication_agent_certificate_update_required = AAZBoolType(
serialized_name="isReplicationAgentCertificateUpdateRequired",
)
disc_a2_a.is_replication_agent_update_required = AAZBoolType(
serialized_name="isReplicationAgentUpdateRequired",
)
disc_a2_a.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_a2_a.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_a2_a.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a.management_id = AAZStrType(
serialized_name="managementId",
)
disc_a2_a.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
disc_a2_a.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
disc_a2_a.multi_vm_group_create_option = AAZStrType(
serialized_name="multiVmGroupCreateOption",
)
disc_a2_a.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_a2_a.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_a2_a.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a.primary_availability_zone = AAZStrType(
serialized_name="primaryAvailabilityZone",
)
disc_a2_a.primary_extended_location = AAZObjectType(
serialized_name="primaryExtendedLocation",
)
_ShowHelper._build_schema_extended_location_read(
disc_a2_a.primary_extended_location)
disc_a2_a.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_a2_a.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_a2_a.recovery_availability_set = AAZStrType(
serialized_name="recoveryAvailabilitySet",
)
disc_a2_a.recovery_availability_zone = AAZStrType(
serialized_name="recoveryAvailabilityZone",
)
disc_a2_a.recovery_azure_generation = AAZStrType(
serialized_name="recoveryAzureGeneration",
flags={"read_only": True},
)
disc_a2_a.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_a2_a.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_a2_a.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_a2_a.recovery_boot_diag_storage_account_id = AAZStrType(
serialized_name="recoveryBootDiagStorageAccountId",
)
disc_a2_a.recovery_capacity_reservation_group_id = AAZStrType(
serialized_name="recoveryCapacityReservationGroupId",
)
disc_a2_a.recovery_cloud_service = AAZStrType(
serialized_name="recoveryCloudService",
)
disc_a2_a.recovery_extended_location = AAZObjectType(
serialized_name="recoveryExtendedLocation",
)
_ShowHelper._build_schema_extended_location_read(
disc_a2_a.recovery_extended_location)
disc_a2_a.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_a2_a.recovery_fabric_object_id = AAZStrType(
serialized_name="recoveryFabricObjectId",
)
disc_a2_a.recovery_proximity_placement_group_id = AAZStrType(
serialized_name="recoveryProximityPlacementGroupId",
)
disc_a2_a.recovery_virtual_machine_scale_set_id = AAZStrType(
serialized_name="recoveryVirtualMachineScaleSetId",
)
disc_a2_a.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_a2_a.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_a2_a.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_a2_a.test_failover_recovery_fabric_object_id = AAZStrType(
serialized_name="testFailoverRecoveryFabricObjectId",
)
disc_a2_a.tfo_azure_vm_name = AAZStrType(
serialized_name="tfoAzureVMName",
)
disc_a2_a.unprotected_disks = AAZListType(
serialized_name="unprotectedDisks",
)
disc_a2_a.vm_encryption_type = AAZStrType(
serialized_name="vmEncryptionType",
flags={"read_only": True},
)
disc_a2_a.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_a2_a.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_a2_a.vm_synced_config_details = AAZObjectType(
serialized_name="vmSyncedConfigDetails",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.disk_uri = AAZStrType(
serialized_name="diskUri",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_azure_storage_account_id = AAZStrType(
serialized_name="primaryDiskAzureStorageAccountId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_azure_storage_account_id = AAZStrType(
serialized_name="recoveryAzureStorageAccountId",
)
_element.recovery_disk_uri = AAZStrType(
serialized_name="recoveryDiskUri",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_encryption_set_id = AAZStrType(
serialized_name="primaryDiskEncryptionSetId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_disk_encryption_set_id = AAZStrType(
serialized_name="recoveryDiskEncryptionSetId",
)
_element.recovery_orignal_target_disk_id = AAZStrType(
serialized_name="recoveryOrignalTargetDiskId",
)
_element.recovery_replica_disk_account_type = AAZStrType(
serialized_name="recoveryReplicaDiskAccountType",
)
_element.recovery_replica_disk_id = AAZStrType(
serialized_name="recoveryReplicaDiskId",
)
_element.recovery_resource_group_id = AAZStrType(
serialized_name="recoveryResourceGroupId",
)
_element.recovery_target_disk_account_type = AAZStrType(
serialized_name="recoveryTargetDiskAccountType",
)
_element.recovery_target_disk_id = AAZStrType(
serialized_name="recoveryTargetDiskId",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
unprotected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks
unprotected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks.Element
_element.disk_auto_protection_status = AAZStrType(
serialized_name="diskAutoProtectionStatus",
)
_element.disk_lun_id = AAZIntType(
serialized_name="diskLunId",
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_nics
vm_nics.Element = AAZObjectType()
_ShowHelper._build_schema_vm_nic_details_read(vm_nics.Element)
vm_synced_config_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details
vm_synced_config_details.input_endpoints = AAZListType(
serialized_name="inputEndpoints",
)
vm_synced_config_details.tags = AAZDictType()
input_endpoints = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints
input_endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints.Element
_element.endpoint_name = AAZStrType(
serialized_name="endpointName",
)
_element.private_port = AAZIntType(
serialized_name="privatePort",
)
_element.protocol = AAZStrType()
_element.public_port = AAZIntType(
serialized_name="publicPort",
)
tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.tags
tags.Element = AAZStrType()
disc_a2_a_cross_cluster_migration = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2ACrossClusterMigration")
disc_a2_a_cross_cluster_migration.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a_cross_cluster_migration.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a_cross_cluster_migration.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a_cross_cluster_migration.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a_cross_cluster_migration.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a_cross_cluster_migration.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ShowHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012.initial_replication_details)
disc_hyper_v_replica2012.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ShowHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").vm_nics
vm_nics.Element = AAZObjectType()
_ShowHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ShowHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012_r2.initial_replication_details)
disc_hyper_v_replica2012_r2.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012_r2.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012_r2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012_r2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012_r2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012_r2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ShowHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").vm_nics
vm_nics.Element = AAZObjectType()
_ShowHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.azure_vm_disk_details = AAZListType(
serialized_name="azureVmDiskDetails",
)
disc_hyper_v_replica_azure.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ShowHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_azure.initial_replication_details)
disc_hyper_v_replica_azure.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_hyper_v_replica_azure.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_azure.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_hyper_v_replica_azure.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_hyper_v_replica_azure.o_s_details = AAZObjectType(
serialized_name="oSDetails",
)
disc_hyper_v_replica_azure.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_hyper_v_replica_azure.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_hyper_v_replica_azure.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_hyper_v_replica_azure.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_hyper_v_replica_azure.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_hyper_v_replica_azure.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_hyper_v_replica_azure.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVmName",
)
disc_hyper_v_replica_azure.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_hyper_v_replica_azure.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_hyper_v_replica_azure.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_hyper_v_replica_azure.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_hyper_v_replica_azure.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_hyper_v_replica_azure.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_hyper_v_replica_azure.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_hyper_v_replica_azure.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_hyper_v_replica_azure.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_hyper_v_replica_azure.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_hyper_v_replica_azure.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_hyper_v_replica_azure.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_hyper_v_replica_azure.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_hyper_v_replica_azure.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_azure.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_azure.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_azure.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_ShowHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
o_s_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").o_s_details
o_s_details.o_s_major_version = AAZStrType(
serialized_name="oSMajorVersion",
)
o_s_details.o_s_minor_version = AAZStrType(
serialized_name="oSMinorVersion",
)
o_s_details.o_s_version = AAZStrType(
serialized_name="oSVersion",
)
o_s_details.os_edition = AAZStrType(
serialized_name="osEdition",
)
o_s_details.os_type = AAZStrType(
serialized_name="osType",
)
o_s_details.product_type = AAZStrType(
serialized_name="productType",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_vm_tags
target_vm_tags.Element = AAZStrType()
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").vm_nics
vm_nics.Element = AAZObjectType()
_ShowHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_base_replication_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails")
disc_hyper_v_replica_base_replication_details.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ShowHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_base_replication_details.initial_replication_details)
disc_hyper_v_replica_base_replication_details.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_base_replication_details.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica_base_replication_details.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_base_replication_details.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ShowHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").vm_nics
vm_nics.Element = AAZObjectType()
_ShowHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.active_site_type = AAZStrType(
serialized_name="activeSiteType",
)
disc_in_mage.agent_details = AAZObjectType(
serialized_name="agentDetails",
)
disc_in_mage.azure_storage_account_id = AAZStrType(
serialized_name="azureStorageAccountId",
)
disc_in_mage.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage.consistency_points = AAZDictType(
serialized_name="consistencyPoints",
)
disc_in_mage.datastores = AAZListType()
disc_in_mage.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.os_details = AAZObjectType(
serialized_name="osDetails",
)
disc_in_mage.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage.reboot_after_update_status = AAZStrType(
serialized_name="rebootAfterUpdateStatus",
)
disc_in_mage.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ShowHelper._build_schema_initial_replication_details_read(
disc_in_mage.resync_details)
disc_in_mage.retention_window_end = AAZStrType(
serialized_name="retentionWindowEnd",
)
disc_in_mage.retention_window_start = AAZStrType(
serialized_name="retentionWindowStart",
)
disc_in_mage.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").agent_details
agent_details.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
agent_details.agent_update_status = AAZStrType(
serialized_name="agentUpdateStatus",
)
agent_details.agent_version = AAZStrType(
serialized_name="agentVersion",
)
agent_details.post_update_reboot_status = AAZStrType(
serialized_name="postUpdateRebootStatus",
)
consistency_points = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").consistency_points
consistency_points.Element = AAZStrType()
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").datastores
datastores.Element = AAZStrType()
os_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").os_details
os_details.os_type = AAZStrType(
serialized_name="osType",
)
os_details.os_vhd_id = AAZStrType(
serialized_name="osVhdId",
)
os_details.vhd_name = AAZStrType(
serialized_name="vhdName",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mb = AAZFloatType(
serialized_name="psDataInMB",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.source_data_in_mb = AAZFloatType(
serialized_name="sourceDataInMB",
)
_element.target_data_in_mb = AAZFloatType(
serialized_name="targetDataInMB",
)
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").validation_errors
validation_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").vm_nics
vm_nics.Element = AAZObjectType()
_ShowHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_in_mage_azure_v2.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_in_mage_azure_v2.azure_vm_disk_details = AAZListType(
serialized_name="azureVMDiskDetails",
)
disc_in_mage_azure_v2.azure_vm_generation = AAZStrType(
serialized_name="azureVmGeneration",
)
disc_in_mage_azure_v2.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage_azure_v2.datastores = AAZListType()
disc_in_mage_azure_v2.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage_azure_v2.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage_azure_v2.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_in_mage_azure_v2.firmware_type = AAZStrType(
serialized_name="firmwareType",
)
disc_in_mage_azure_v2.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage_azure_v2.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage_azure_v2.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage_azure_v2.is_agent_update_required = AAZStrType(
serialized_name="isAgentUpdateRequired",
)
disc_in_mage_azure_v2.is_reboot_after_update_required = AAZStrType(
serialized_name="isRebootAfterUpdateRequired",
)
disc_in_mage_azure_v2.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage_azure_v2.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_azure_v2.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage_azure_v2.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage_azure_v2.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_azure_v2.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage_azure_v2.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage_azure_v2.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.os_disk_id = AAZStrType(
serialized_name="osDiskId",
)
disc_in_mage_azure_v2.os_type = AAZStrType(
serialized_name="osType",
)
disc_in_mage_azure_v2.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage_azure_v2.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage_azure_v2.process_server_name = AAZStrType(
serialized_name="processServerName",
)
disc_in_mage_azure_v2.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_azure_v2.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_in_mage_azure_v2.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage_azure_v2.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_in_mage_azure_v2.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_in_mage_azure_v2.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_in_mage_azure_v2.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_in_mage_azure_v2.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_in_mage_azure_v2.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_in_mage_azure_v2.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage_azure_v2.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
disc_in_mage_azure_v2.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage_azure_v2.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_in_mage_azure_v2.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_in_mage_azure_v2.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_in_mage_azure_v2.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_in_mage_azure_v2.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage_azure_v2.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage_azure_v2.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_in_mage_azure_v2.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_in_mage_azure_v2.switch_provider_details = AAZObjectType(
serialized_name="switchProviderDetails",
)
disc_in_mage_azure_v2.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_azure_v2.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_in_mage_azure_v2.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_in_mage_azure_v2.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_azure_v2.target_vm_id = AAZStrType(
serialized_name="targetVmId",
)
disc_in_mage_azure_v2.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_in_mage_azure_v2.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage_azure_v2.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage_azure_v2.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage_azure_v2.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_in_mage_azure_v2.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage_azure_v2.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage_azure_v2.vhd_name = AAZStrType(
serialized_name="vhdName",
)
disc_in_mage_azure_v2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage_azure_v2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage_azure_v2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage_azure_v2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_ShowHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").datastores
datastores.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mega_bytes = AAZFloatType(
serialized_name="psDataInMegaBytes",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.seconds_to_take_switch_provider = AAZIntType(
serialized_name="secondsToTakeSwitchProvider",
)
_element.source_data_in_mega_bytes = AAZFloatType(
serialized_name="sourceDataInMegaBytes",
)
_element.target_data_in_mega_bytes = AAZFloatType(
serialized_name="targetDataInMegaBytes",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
_element.target_disk_name = AAZStrType(
serialized_name="targetDiskName",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
switch_provider_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
switch_provider_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_details
switch_provider_details.target_appliance_id = AAZStrType(
serialized_name="targetApplianceId",
flags={"read_only": True},
)
switch_provider_details.target_fabric_id = AAZStrType(
serialized_name="targetFabricId",
flags={"read_only": True},
)
switch_provider_details.target_resource_id = AAZStrType(
serialized_name="targetResourceId",
flags={"read_only": True},
)
switch_provider_details.target_vault_id = AAZStrType(
serialized_name="targetVaultId",
flags={"read_only": True},
)
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_vm_tags
target_vm_tags.Element = AAZStrType()
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").validation_errors
validation_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").vm_nics
vm_nics.Element = AAZObjectType()
_ShowHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_upgrade_attempt_to_version = AAZStrType(
serialized_name="agentUpgradeAttemptToVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_blocking_error_details = AAZListType(
serialized_name="agentUpgradeBlockingErrorDetails",
)
disc_in_mage_rcm.agent_upgrade_job_id = AAZStrType(
serialized_name="agentUpgradeJobId",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_state = AAZStrType(
serialized_name="agentUpgradeState",
flags={"read_only": True},
)
disc_in_mage_rcm.allocated_memory_in_mb = AAZFloatType(
serialized_name="allocatedMemoryInMB",
flags={"read_only": True},
)
disc_in_mage_rcm.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm.discovery_type = AAZStrType(
serialized_name="discoveryType",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_discovery_machine_id = AAZStrType(
serialized_name="fabricDiscoveryMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.firmware_type = AAZStrType(
serialized_name="firmwareType",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm.is_last_upgrade_successful = AAZStrType(
serialized_name="isLastUpgradeSuccessful",
flags={"read_only": True},
)
disc_in_mage_rcm.last_agent_upgrade_error_details = AAZListType(
serialized_name="lastAgentUpgradeErrorDetails",
)
disc_in_mage_rcm.last_agent_upgrade_type = AAZStrType(
serialized_name="lastAgentUpgradeType",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_id = AAZStrType(
serialized_name="lastRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_in_seconds = AAZIntType(
serialized_name="lastRpoInSeconds",
flags={"read_only": True},
)
disc_in_mage_rcm.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_rcm.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm.primary_nic_ip_address = AAZStrType(
serialized_name="primaryNicIpAddress",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_id = AAZStrType(
serialized_name="processServerId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_name = AAZStrType(
serialized_name="processServerName",
flags={"read_only": True},
)
disc_in_mage_rcm.processor_core_count = AAZIntType(
serialized_name="processorCoreCount",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.run_as_account_id = AAZStrType(
serialized_name="runAsAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.target_availability_set_id = AAZStrType(
serialized_name="targetAvailabilitySetId",
)
disc_in_mage_rcm.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_rcm.target_boot_diagnostics_storage_account_id = AAZStrType(
serialized_name="targetBootDiagnosticsStorageAccountId",
)
disc_in_mage_rcm.target_generation = AAZStrType(
serialized_name="targetGeneration",
flags={"read_only": True},
)
disc_in_mage_rcm.target_location = AAZStrType(
serialized_name="targetLocation",
)
disc_in_mage_rcm.target_network_id = AAZStrType(
serialized_name="targetNetworkId",
)
disc_in_mage_rcm.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_rcm.target_resource_group_id = AAZStrType(
serialized_name="targetResourceGroupId",
)
disc_in_mage_rcm.target_vm_name = AAZStrType(
serialized_name="targetVmName",
)
disc_in_mage_rcm.target_vm_size = AAZStrType(
serialized_name="targetVmSize",
)
disc_in_mage_rcm.test_network_id = AAZStrType(
serialized_name="testNetworkId",
)
disc_in_mage_rcm.vm_nics = AAZListType(
serialized_name="vmNics",
)
agent_upgrade_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details
agent_upgrade_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
last_agent_upgrade_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details
last_agent_upgrade_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_tags
error_tags.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_agent_release_date = AAZStrType(
serialized_name="latestAgentReleaseDate",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_ShowHelper._build_schema_in_mage_rcm_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ShowHelper._build_schema_in_mage_rcm_sync_details_read(
_element.resync_details)
_element.seed_blob_uri = AAZStrType(
serialized_name="seedBlobUri",
flags={"read_only": True},
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
flags={"read_only": True},
)
_element.target_managed_disk_id = AAZStrType(
serialized_name="targetManagedDiskId",
flags={"read_only": True},
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics.Element
_element.is_primary_nic = AAZStrType(
serialized_name="isPrimaryNic",
)
_element.is_selected_for_failover = AAZStrType(
serialized_name="isSelectedForFailover",
)
_element.nic_id = AAZStrType(
serialized_name="nicId",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIPAddress",
flags={"read_only": True},
)
_element.source_ip_address_type = AAZStrType(
serialized_name="sourceIPAddressType",
flags={"read_only": True},
)
_element.source_network_id = AAZStrType(
serialized_name="sourceNetworkId",
flags={"read_only": True},
)
_element.source_subnet_name = AAZStrType(
serialized_name="sourceSubnetName",
flags={"read_only": True},
)
_element.target_ip_address = AAZStrType(
serialized_name="targetIPAddress",
)
_element.target_ip_address_type = AAZStrType(
serialized_name="targetIPAddressType",
)
_element.target_subnet_name = AAZStrType(
serialized_name="targetSubnetName",
)
_element.test_ip_address = AAZStrType(
serialized_name="testIPAddress",
)
_element.test_ip_address_type = AAZStrType(
serialized_name="testIPAddressType",
)
_element.test_subnet_name = AAZStrType(
serialized_name="testSubnetName",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.azure_virtual_machine_id = AAZStrType(
serialized_name="azureVirtualMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm_failback.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_start_time = AAZStrType(
serialized_name="lastPlannedFailoverStartTime",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_status = AAZStrType(
serialized_name="lastPlannedFailoverStatus",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_friendly_name = AAZStrType(
serialized_name="lastUsedPolicyFriendlyName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_id = AAZStrType(
serialized_name="lastUsedPolicyId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm_failback.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm_failback.reprotect_agent_id = AAZStrType(
serialized_name="reprotectAgentId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.reprotect_agent_name = AAZStrType(
serialized_name="reprotectAgentName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_data_store_name = AAZStrType(
serialized_name="targetDataStoreName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_vm_name = AAZStrType(
serialized_name="targetVmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.targetv_center_id = AAZStrType(
serialized_name="targetvCenterId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_nics = AAZListType(
serialized_name="vmNics",
)
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_uuid = AAZStrType(
serialized_name="diskUuid",
flags={"read_only": True},
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_ShowHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.last_sync_time = AAZStrType(
serialized_name="lastSyncTime",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ShowHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.resync_details)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics.Element
_element.adapter_type = AAZStrType(
serialized_name="adapterType",
flags={"read_only": True},
)
_element.mac_address = AAZStrType(
serialized_name="macAddress",
flags={"read_only": True},
)
_element.network_name = AAZStrType(
serialized_name="networkName",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIpAddress",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectedItemsGet(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 | 246 | 11 | 235 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 2,237 | 108 | 2,129 | 72 | 2,112 | 0 | 786 | 65 | 776 | 2 | 1 | 1 | 11 |
9,831 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_reprotect.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._reprotect.Reprotect.ReplicationProtectedItemsReprotect
|
class ReplicationProtectedItemsReprotect(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("failoverDirection",
AAZStrType, ".failover_direction")
properties.set_prop("providerSpecificDetails",
AAZObjectType, ".provider_specific_details")
provider_specific_details = _builder.get(
".properties.providerSpecificDetails")
if provider_specific_details is not None:
provider_specific_details.set_const(
"instanceType", "A2A", AAZStrType, ".a2_a", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMage", AAZStrType, ".in_mage", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageAzureV2", AAZStrType, ".in_mage_azure_v2", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageRcmFailback", AAZStrType, ".in_mage_rcm_failback", typ_kwargs={"flags": {"required": True}})
provider_specific_details.discriminate_by(
"instanceType", "A2A")
provider_specific_details.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_details.discriminate_by(
"instanceType", "InMage")
provider_specific_details.discriminate_by(
"instanceType", "InMageAzureV2")
provider_specific_details.discriminate_by(
"instanceType", "InMageRcm")
provider_specific_details.discriminate_by(
"instanceType", "InMageRcmFailback")
disc_a2_a = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}")
if disc_a2_a is not None:
disc_a2_a.set_prop("policyId", AAZStrType, ".a2_a.policy_id")
disc_a2_a.set_prop("recoveryAvailabilitySetId",
AAZStrType, ".a2_a.recovery_availability_set_id")
disc_a2_a.set_prop("recoveryCloudServiceId",
AAZStrType, ".a2_a.recovery_cloud_service_id")
disc_a2_a.set_prop("recoveryContainerId",
AAZStrType, ".a2_a.recovery_container_id")
disc_a2_a.set_prop("recoveryResourceGroupId",
AAZStrType, ".a2_a.recovery_resource_group_id")
disc_a2_a.set_prop("vmDisks", AAZListType, ".a2_a.vm_disks")
vm_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks")
if vm_disks is not None:
vm_disks.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks[]")
if _elements is not None:
_elements.set_prop("diskUri", AAZStrType, ".disk_uri", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("primaryStagingAzureStorageAccountId", AAZStrType,
".primary_staging_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("recoveryAzureStorageAccountId", AAZStrType,
".recovery_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop(
"hvHostVmId", AAZStrType, ".hyper_v_replica_azure.hv_host_vm_id")
disc_hyper_v_replica_azure.set_prop(
"logStorageAccountId", AAZStrType, ".hyper_v_replica_azure.log_storage_account_id")
disc_hyper_v_replica_azure.set_prop(
"osType", AAZStrType, ".hyper_v_replica_azure.os_type")
disc_hyper_v_replica_azure.set_prop(
"storageAccountId", AAZStrType, ".hyper_v_replica_azure.storage_account_id")
disc_hyper_v_replica_azure.set_prop(
"vHDId", AAZStrType, ".hyper_v_replica_azure.v_hd_id")
disc_hyper_v_replica_azure.set_prop(
"vmName", AAZStrType, ".hyper_v_replica_azure.vm_name")
disc_in_mage = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}")
if disc_in_mage is not None:
disc_in_mage.set_prop(
"datastoreName", AAZStrType, ".in_mage.datastore_name")
disc_in_mage.set_prop(
"diskExclusionInput", AAZObjectType, ".in_mage.disk_exclusion_input")
disc_in_mage.set_prop(
"disksToInclude", AAZListType, ".in_mage.disks_to_include")
disc_in_mage.set_prop("masterTargetId", AAZStrType, ".in_mage.master_target_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("processServerId", AAZStrType, ".in_mage.process_server_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("profileId", AAZStrType, ".in_mage.profile_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("retentionDrive", AAZStrType, ".in_mage.retention_drive", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop(
"runAsAccountId", AAZStrType, ".in_mage.run_as_account_id")
disk_exclusion_input = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput")
if disk_exclusion_input is not None:
disk_exclusion_input.set_prop(
"diskSignatureOptions", AAZListType, ".disk_signature_options")
disk_exclusion_input.set_prop(
"volumeOptions", AAZListType, ".volume_options")
disk_signature_options = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.diskSignatureOptions")
if disk_signature_options is not None:
disk_signature_options.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.diskSignatureOptions[]")
if _elements is not None:
_elements.set_prop(
"diskSignature", AAZStrType, ".disk_signature")
volume_options = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.volumeOptions")
if volume_options is not None:
volume_options.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.volumeOptions[]")
if _elements is not None:
_elements.set_prop("onlyExcludeIfSingleVolume",
AAZStrType, ".only_exclude_if_single_volume")
_elements.set_prop("volumeLabel", AAZStrType, ".volume_label")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZStrType, ".")
disc_in_mage_azure_v2 = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}")
if disc_in_mage_azure_v2 is not None:
disc_in_mage_azure_v2.set_prop(
"disksToInclude", AAZListType, ".in_mage_azure_v2.disks_to_include")
disc_in_mage_azure_v2.set_prop(
"logStorageAccountId", AAZStrType, ".in_mage_azure_v2.log_storage_account_id")
disc_in_mage_azure_v2.set_prop(
"masterTargetId", AAZStrType, ".in_mage_azure_v2.master_target_id")
disc_in_mage_azure_v2.set_prop(
"policyId", AAZStrType, ".in_mage_azure_v2.policy_id")
disc_in_mage_azure_v2.set_prop(
"processServerId", AAZStrType, ".in_mage_azure_v2.process_server_id")
disc_in_mage_azure_v2.set_prop(
"runAsAccountId", AAZStrType, ".in_mage_azure_v2.run_as_account_id")
disc_in_mage_azure_v2.set_prop(
"storageAccountId", AAZStrType, ".in_mage_azure_v2.storage_account_id")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZStrType, ".")
disc_in_mage_rcm = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop("datastoreName", AAZStrType, ".in_mage_rcm.datastore_name", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop("logStorageAccountId", AAZStrType, ".in_mage_rcm.log_storage_account_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"policyId", AAZStrType, ".in_mage_rcm.policy_id")
disc_in_mage_rcm.set_prop("reprotectAgentId", AAZStrType, ".in_mage_rcm.reprotect_agent_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm_failback = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcmFailback}")
if disc_in_mage_rcm_failback is not None:
disc_in_mage_rcm_failback.set_prop(
"policyId", AAZStrType, ".in_mage_rcm_failback.policy_id", typ_kwargs={"flags": {"required": True}})
disc_in_mage_rcm_failback.set_prop(
"processServerId", AAZStrType, ".in_mage_rcm_failback.process_server_id", typ_kwargs={"flags": {"required": True}})
disc_in_mage_rcm_failback.set_prop(
"runAsAccountId", AAZStrType, ".in_mage_rcm_failback.run_as_account_id")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.active_location = AAZStrType(
serialized_name="activeLocation",
)
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.event_correlation_id = AAZStrType(
serialized_name="eventCorrelationId",
)
properties.failover_health = AAZStrType(
serialized_name="failoverHealth",
)
properties.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.last_successful_failover_time = AAZStrType(
serialized_name="lastSuccessfulFailoverTime",
)
properties.last_successful_test_failover_time = AAZStrType(
serialized_name="lastSuccessfulTestFailoverTime",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_provider = AAZStrType(
serialized_name="primaryFabricProvider",
)
properties.primary_protection_container_friendly_name = AAZStrType(
serialized_name="primaryProtectionContainerFriendlyName",
)
properties.protectable_item_id = AAZStrType(
serialized_name="protectableItemId",
)
properties.protected_item_type = AAZStrType(
serialized_name="protectedItemType",
)
properties.protection_state = AAZStrType(
serialized_name="protectionState",
)
properties.protection_state_description = AAZStrType(
serialized_name="protectionStateDescription",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.recovery_container_id = AAZStrType(
serialized_name="recoveryContainerId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.recovery_protection_container_friendly_name = AAZStrType(
serialized_name="recoveryProtectionContainerFriendlyName",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_health = AAZStrType(
serialized_name="replicationHealth",
)
properties.switch_provider_state = AAZStrType(
serialized_name="switchProviderState",
)
properties.switch_provider_state_description = AAZStrType(
serialized_name="switchProviderStateDescription",
)
properties.test_failover_state = AAZStrType(
serialized_name="testFailoverState",
)
properties.test_failover_state_description = AAZStrType(
serialized_name="testFailoverStateDescription",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
health_errors = cls._schema_on_200.properties.health_errors
health_errors.Element = AAZObjectType()
_ReprotectHelper._build_schema_health_error_read(
health_errors.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_certificate_expiry_date = AAZStrType(
serialized_name="agentCertificateExpiryDate",
flags={"read_only": True},
)
disc_a2_a.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_a2_a.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_a2_a.auto_protection_of_data_disk = AAZStrType(
serialized_name="autoProtectionOfDataDisk",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.initial_primary_extended_location = AAZObjectType(
serialized_name="initialPrimaryExtendedLocation",
)
_ReprotectHelper._build_schema_extended_location_read(
disc_a2_a.initial_primary_extended_location)
disc_a2_a.initial_primary_fabric_location = AAZStrType(
serialized_name="initialPrimaryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_primary_zone = AAZStrType(
serialized_name="initialPrimaryZone",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_extended_location = AAZObjectType(
serialized_name="initialRecoveryExtendedLocation",
)
_ReprotectHelper._build_schema_extended_location_read(
disc_a2_a.initial_recovery_extended_location)
disc_a2_a.initial_recovery_fabric_location = AAZStrType(
serialized_name="initialRecoveryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_zone = AAZStrType(
serialized_name="initialRecoveryZone",
flags={"read_only": True},
)
disc_a2_a.is_replication_agent_certificate_update_required = AAZBoolType(
serialized_name="isReplicationAgentCertificateUpdateRequired",
)
disc_a2_a.is_replication_agent_update_required = AAZBoolType(
serialized_name="isReplicationAgentUpdateRequired",
)
disc_a2_a.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_a2_a.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_a2_a.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a.management_id = AAZStrType(
serialized_name="managementId",
)
disc_a2_a.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
disc_a2_a.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
disc_a2_a.multi_vm_group_create_option = AAZStrType(
serialized_name="multiVmGroupCreateOption",
)
disc_a2_a.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_a2_a.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_a2_a.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a.primary_availability_zone = AAZStrType(
serialized_name="primaryAvailabilityZone",
)
disc_a2_a.primary_extended_location = AAZObjectType(
serialized_name="primaryExtendedLocation",
)
_ReprotectHelper._build_schema_extended_location_read(
disc_a2_a.primary_extended_location)
disc_a2_a.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_a2_a.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_a2_a.recovery_availability_set = AAZStrType(
serialized_name="recoveryAvailabilitySet",
)
disc_a2_a.recovery_availability_zone = AAZStrType(
serialized_name="recoveryAvailabilityZone",
)
disc_a2_a.recovery_azure_generation = AAZStrType(
serialized_name="recoveryAzureGeneration",
flags={"read_only": True},
)
disc_a2_a.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_a2_a.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_a2_a.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_a2_a.recovery_boot_diag_storage_account_id = AAZStrType(
serialized_name="recoveryBootDiagStorageAccountId",
)
disc_a2_a.recovery_capacity_reservation_group_id = AAZStrType(
serialized_name="recoveryCapacityReservationGroupId",
)
disc_a2_a.recovery_cloud_service = AAZStrType(
serialized_name="recoveryCloudService",
)
disc_a2_a.recovery_extended_location = AAZObjectType(
serialized_name="recoveryExtendedLocation",
)
_ReprotectHelper._build_schema_extended_location_read(
disc_a2_a.recovery_extended_location)
disc_a2_a.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_a2_a.recovery_fabric_object_id = AAZStrType(
serialized_name="recoveryFabricObjectId",
)
disc_a2_a.recovery_proximity_placement_group_id = AAZStrType(
serialized_name="recoveryProximityPlacementGroupId",
)
disc_a2_a.recovery_virtual_machine_scale_set_id = AAZStrType(
serialized_name="recoveryVirtualMachineScaleSetId",
)
disc_a2_a.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_a2_a.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_a2_a.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_a2_a.test_failover_recovery_fabric_object_id = AAZStrType(
serialized_name="testFailoverRecoveryFabricObjectId",
)
disc_a2_a.tfo_azure_vm_name = AAZStrType(
serialized_name="tfoAzureVMName",
)
disc_a2_a.unprotected_disks = AAZListType(
serialized_name="unprotectedDisks",
)
disc_a2_a.vm_encryption_type = AAZStrType(
serialized_name="vmEncryptionType",
flags={"read_only": True},
)
disc_a2_a.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_a2_a.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_a2_a.vm_synced_config_details = AAZObjectType(
serialized_name="vmSyncedConfigDetails",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.disk_uri = AAZStrType(
serialized_name="diskUri",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_azure_storage_account_id = AAZStrType(
serialized_name="primaryDiskAzureStorageAccountId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_azure_storage_account_id = AAZStrType(
serialized_name="recoveryAzureStorageAccountId",
)
_element.recovery_disk_uri = AAZStrType(
serialized_name="recoveryDiskUri",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_encryption_set_id = AAZStrType(
serialized_name="primaryDiskEncryptionSetId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_disk_encryption_set_id = AAZStrType(
serialized_name="recoveryDiskEncryptionSetId",
)
_element.recovery_orignal_target_disk_id = AAZStrType(
serialized_name="recoveryOrignalTargetDiskId",
)
_element.recovery_replica_disk_account_type = AAZStrType(
serialized_name="recoveryReplicaDiskAccountType",
)
_element.recovery_replica_disk_id = AAZStrType(
serialized_name="recoveryReplicaDiskId",
)
_element.recovery_resource_group_id = AAZStrType(
serialized_name="recoveryResourceGroupId",
)
_element.recovery_target_disk_account_type = AAZStrType(
serialized_name="recoveryTargetDiskAccountType",
)
_element.recovery_target_disk_id = AAZStrType(
serialized_name="recoveryTargetDiskId",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
unprotected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks
unprotected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks.Element
_element.disk_auto_protection_status = AAZStrType(
serialized_name="diskAutoProtectionStatus",
)
_element.disk_lun_id = AAZIntType(
serialized_name="diskLunId",
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_nics
vm_nics.Element = AAZObjectType()
_ReprotectHelper._build_schema_vm_nic_details_read(vm_nics.Element)
vm_synced_config_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details
vm_synced_config_details.input_endpoints = AAZListType(
serialized_name="inputEndpoints",
)
vm_synced_config_details.tags = AAZDictType()
input_endpoints = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints
input_endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints.Element
_element.endpoint_name = AAZStrType(
serialized_name="endpointName",
)
_element.private_port = AAZIntType(
serialized_name="privatePort",
)
_element.protocol = AAZStrType()
_element.public_port = AAZIntType(
serialized_name="publicPort",
)
tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.tags
tags.Element = AAZStrType()
disc_a2_a_cross_cluster_migration = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2ACrossClusterMigration")
disc_a2_a_cross_cluster_migration.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a_cross_cluster_migration.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a_cross_cluster_migration.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a_cross_cluster_migration.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a_cross_cluster_migration.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a_cross_cluster_migration.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ReprotectHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012.initial_replication_details)
disc_hyper_v_replica2012.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ReprotectHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").vm_nics
vm_nics.Element = AAZObjectType()
_ReprotectHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ReprotectHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012_r2.initial_replication_details)
disc_hyper_v_replica2012_r2.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012_r2.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012_r2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012_r2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012_r2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012_r2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ReprotectHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").vm_nics
vm_nics.Element = AAZObjectType()
_ReprotectHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.azure_vm_disk_details = AAZListType(
serialized_name="azureVmDiskDetails",
)
disc_hyper_v_replica_azure.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ReprotectHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_azure.initial_replication_details)
disc_hyper_v_replica_azure.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_hyper_v_replica_azure.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_azure.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_hyper_v_replica_azure.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_hyper_v_replica_azure.o_s_details = AAZObjectType(
serialized_name="oSDetails",
)
disc_hyper_v_replica_azure.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_hyper_v_replica_azure.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_hyper_v_replica_azure.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_hyper_v_replica_azure.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_hyper_v_replica_azure.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_hyper_v_replica_azure.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_hyper_v_replica_azure.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVmName",
)
disc_hyper_v_replica_azure.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_hyper_v_replica_azure.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_hyper_v_replica_azure.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_hyper_v_replica_azure.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_hyper_v_replica_azure.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_hyper_v_replica_azure.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_hyper_v_replica_azure.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_hyper_v_replica_azure.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_hyper_v_replica_azure.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_hyper_v_replica_azure.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_hyper_v_replica_azure.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_hyper_v_replica_azure.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_hyper_v_replica_azure.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_hyper_v_replica_azure.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_azure.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_azure.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_azure.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_ReprotectHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
o_s_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").o_s_details
o_s_details.o_s_major_version = AAZStrType(
serialized_name="oSMajorVersion",
)
o_s_details.o_s_minor_version = AAZStrType(
serialized_name="oSMinorVersion",
)
o_s_details.o_s_version = AAZStrType(
serialized_name="oSVersion",
)
o_s_details.os_edition = AAZStrType(
serialized_name="osEdition",
)
o_s_details.os_type = AAZStrType(
serialized_name="osType",
)
o_s_details.product_type = AAZStrType(
serialized_name="productType",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_vm_tags
target_vm_tags.Element = AAZStrType()
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").vm_nics
vm_nics.Element = AAZObjectType()
_ReprotectHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_base_replication_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails")
disc_hyper_v_replica_base_replication_details.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ReprotectHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_base_replication_details.initial_replication_details)
disc_hyper_v_replica_base_replication_details.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_base_replication_details.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica_base_replication_details.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_base_replication_details.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ReprotectHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").vm_nics
vm_nics.Element = AAZObjectType()
_ReprotectHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.active_site_type = AAZStrType(
serialized_name="activeSiteType",
)
disc_in_mage.agent_details = AAZObjectType(
serialized_name="agentDetails",
)
disc_in_mage.azure_storage_account_id = AAZStrType(
serialized_name="azureStorageAccountId",
)
disc_in_mage.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage.consistency_points = AAZDictType(
serialized_name="consistencyPoints",
)
disc_in_mage.datastores = AAZListType()
disc_in_mage.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.os_details = AAZObjectType(
serialized_name="osDetails",
)
disc_in_mage.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage.reboot_after_update_status = AAZStrType(
serialized_name="rebootAfterUpdateStatus",
)
disc_in_mage.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ReprotectHelper._build_schema_initial_replication_details_read(
disc_in_mage.resync_details)
disc_in_mage.retention_window_end = AAZStrType(
serialized_name="retentionWindowEnd",
)
disc_in_mage.retention_window_start = AAZStrType(
serialized_name="retentionWindowStart",
)
disc_in_mage.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").agent_details
agent_details.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
agent_details.agent_update_status = AAZStrType(
serialized_name="agentUpdateStatus",
)
agent_details.agent_version = AAZStrType(
serialized_name="agentVersion",
)
agent_details.post_update_reboot_status = AAZStrType(
serialized_name="postUpdateRebootStatus",
)
consistency_points = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").consistency_points
consistency_points.Element = AAZStrType()
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").datastores
datastores.Element = AAZStrType()
os_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").os_details
os_details.os_type = AAZStrType(
serialized_name="osType",
)
os_details.os_vhd_id = AAZStrType(
serialized_name="osVhdId",
)
os_details.vhd_name = AAZStrType(
serialized_name="vhdName",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mb = AAZFloatType(
serialized_name="psDataInMB",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.source_data_in_mb = AAZFloatType(
serialized_name="sourceDataInMB",
)
_element.target_data_in_mb = AAZFloatType(
serialized_name="targetDataInMB",
)
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").validation_errors
validation_errors.Element = AAZObjectType()
_ReprotectHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").vm_nics
vm_nics.Element = AAZObjectType()
_ReprotectHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_in_mage_azure_v2.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_in_mage_azure_v2.azure_vm_disk_details = AAZListType(
serialized_name="azureVMDiskDetails",
)
disc_in_mage_azure_v2.azure_vm_generation = AAZStrType(
serialized_name="azureVmGeneration",
)
disc_in_mage_azure_v2.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage_azure_v2.datastores = AAZListType()
disc_in_mage_azure_v2.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage_azure_v2.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage_azure_v2.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_in_mage_azure_v2.firmware_type = AAZStrType(
serialized_name="firmwareType",
)
disc_in_mage_azure_v2.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage_azure_v2.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage_azure_v2.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage_azure_v2.is_agent_update_required = AAZStrType(
serialized_name="isAgentUpdateRequired",
)
disc_in_mage_azure_v2.is_reboot_after_update_required = AAZStrType(
serialized_name="isRebootAfterUpdateRequired",
)
disc_in_mage_azure_v2.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage_azure_v2.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_azure_v2.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage_azure_v2.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage_azure_v2.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_azure_v2.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage_azure_v2.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage_azure_v2.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.os_disk_id = AAZStrType(
serialized_name="osDiskId",
)
disc_in_mage_azure_v2.os_type = AAZStrType(
serialized_name="osType",
)
disc_in_mage_azure_v2.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage_azure_v2.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage_azure_v2.process_server_name = AAZStrType(
serialized_name="processServerName",
)
disc_in_mage_azure_v2.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_azure_v2.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_in_mage_azure_v2.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage_azure_v2.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_in_mage_azure_v2.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_in_mage_azure_v2.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_in_mage_azure_v2.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_in_mage_azure_v2.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_in_mage_azure_v2.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_in_mage_azure_v2.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage_azure_v2.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
disc_in_mage_azure_v2.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage_azure_v2.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_in_mage_azure_v2.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_in_mage_azure_v2.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_in_mage_azure_v2.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_in_mage_azure_v2.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage_azure_v2.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage_azure_v2.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_in_mage_azure_v2.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_in_mage_azure_v2.switch_provider_details = AAZObjectType(
serialized_name="switchProviderDetails",
)
disc_in_mage_azure_v2.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_azure_v2.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_in_mage_azure_v2.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_in_mage_azure_v2.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_azure_v2.target_vm_id = AAZStrType(
serialized_name="targetVmId",
)
disc_in_mage_azure_v2.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_in_mage_azure_v2.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage_azure_v2.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage_azure_v2.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage_azure_v2.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_in_mage_azure_v2.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage_azure_v2.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage_azure_v2.vhd_name = AAZStrType(
serialized_name="vhdName",
)
disc_in_mage_azure_v2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage_azure_v2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage_azure_v2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage_azure_v2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_ReprotectHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").datastores
datastores.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mega_bytes = AAZFloatType(
serialized_name="psDataInMegaBytes",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.seconds_to_take_switch_provider = AAZIntType(
serialized_name="secondsToTakeSwitchProvider",
)
_element.source_data_in_mega_bytes = AAZFloatType(
serialized_name="sourceDataInMegaBytes",
)
_element.target_data_in_mega_bytes = AAZFloatType(
serialized_name="targetDataInMegaBytes",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
_element.target_disk_name = AAZStrType(
serialized_name="targetDiskName",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
switch_provider_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
switch_provider_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_details
switch_provider_details.target_appliance_id = AAZStrType(
serialized_name="targetApplianceId",
flags={"read_only": True},
)
switch_provider_details.target_fabric_id = AAZStrType(
serialized_name="targetFabricId",
flags={"read_only": True},
)
switch_provider_details.target_resource_id = AAZStrType(
serialized_name="targetResourceId",
flags={"read_only": True},
)
switch_provider_details.target_vault_id = AAZStrType(
serialized_name="targetVaultId",
flags={"read_only": True},
)
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_vm_tags
target_vm_tags.Element = AAZStrType()
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").validation_errors
validation_errors.Element = AAZObjectType()
_ReprotectHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").vm_nics
vm_nics.Element = AAZObjectType()
_ReprotectHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_upgrade_attempt_to_version = AAZStrType(
serialized_name="agentUpgradeAttemptToVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_blocking_error_details = AAZListType(
serialized_name="agentUpgradeBlockingErrorDetails",
)
disc_in_mage_rcm.agent_upgrade_job_id = AAZStrType(
serialized_name="agentUpgradeJobId",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_state = AAZStrType(
serialized_name="agentUpgradeState",
flags={"read_only": True},
)
disc_in_mage_rcm.allocated_memory_in_mb = AAZFloatType(
serialized_name="allocatedMemoryInMB",
flags={"read_only": True},
)
disc_in_mage_rcm.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm.discovery_type = AAZStrType(
serialized_name="discoveryType",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_discovery_machine_id = AAZStrType(
serialized_name="fabricDiscoveryMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.firmware_type = AAZStrType(
serialized_name="firmwareType",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm.is_last_upgrade_successful = AAZStrType(
serialized_name="isLastUpgradeSuccessful",
flags={"read_only": True},
)
disc_in_mage_rcm.last_agent_upgrade_error_details = AAZListType(
serialized_name="lastAgentUpgradeErrorDetails",
)
disc_in_mage_rcm.last_agent_upgrade_type = AAZStrType(
serialized_name="lastAgentUpgradeType",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_id = AAZStrType(
serialized_name="lastRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_in_seconds = AAZIntType(
serialized_name="lastRpoInSeconds",
flags={"read_only": True},
)
disc_in_mage_rcm.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_rcm.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm.primary_nic_ip_address = AAZStrType(
serialized_name="primaryNicIpAddress",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_id = AAZStrType(
serialized_name="processServerId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_name = AAZStrType(
serialized_name="processServerName",
flags={"read_only": True},
)
disc_in_mage_rcm.processor_core_count = AAZIntType(
serialized_name="processorCoreCount",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.run_as_account_id = AAZStrType(
serialized_name="runAsAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.target_availability_set_id = AAZStrType(
serialized_name="targetAvailabilitySetId",
)
disc_in_mage_rcm.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_rcm.target_boot_diagnostics_storage_account_id = AAZStrType(
serialized_name="targetBootDiagnosticsStorageAccountId",
)
disc_in_mage_rcm.target_generation = AAZStrType(
serialized_name="targetGeneration",
flags={"read_only": True},
)
disc_in_mage_rcm.target_location = AAZStrType(
serialized_name="targetLocation",
)
disc_in_mage_rcm.target_network_id = AAZStrType(
serialized_name="targetNetworkId",
)
disc_in_mage_rcm.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_rcm.target_resource_group_id = AAZStrType(
serialized_name="targetResourceGroupId",
)
disc_in_mage_rcm.target_vm_name = AAZStrType(
serialized_name="targetVmName",
)
disc_in_mage_rcm.target_vm_size = AAZStrType(
serialized_name="targetVmSize",
)
disc_in_mage_rcm.test_network_id = AAZStrType(
serialized_name="testNetworkId",
)
disc_in_mage_rcm.vm_nics = AAZListType(
serialized_name="vmNics",
)
agent_upgrade_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details
agent_upgrade_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
last_agent_upgrade_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details
last_agent_upgrade_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_tags
error_tags.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_agent_release_date = AAZStrType(
serialized_name="latestAgentReleaseDate",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_ReprotectHelper._build_schema_in_mage_rcm_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ReprotectHelper._build_schema_in_mage_rcm_sync_details_read(
_element.resync_details)
_element.seed_blob_uri = AAZStrType(
serialized_name="seedBlobUri",
flags={"read_only": True},
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
flags={"read_only": True},
)
_element.target_managed_disk_id = AAZStrType(
serialized_name="targetManagedDiskId",
flags={"read_only": True},
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics.Element
_element.is_primary_nic = AAZStrType(
serialized_name="isPrimaryNic",
)
_element.is_selected_for_failover = AAZStrType(
serialized_name="isSelectedForFailover",
)
_element.nic_id = AAZStrType(
serialized_name="nicId",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIPAddress",
flags={"read_only": True},
)
_element.source_ip_address_type = AAZStrType(
serialized_name="sourceIPAddressType",
flags={"read_only": True},
)
_element.source_network_id = AAZStrType(
serialized_name="sourceNetworkId",
flags={"read_only": True},
)
_element.source_subnet_name = AAZStrType(
serialized_name="sourceSubnetName",
flags={"read_only": True},
)
_element.target_ip_address = AAZStrType(
serialized_name="targetIPAddress",
)
_element.target_ip_address_type = AAZStrType(
serialized_name="targetIPAddressType",
)
_element.target_subnet_name = AAZStrType(
serialized_name="targetSubnetName",
)
_element.test_ip_address = AAZStrType(
serialized_name="testIPAddress",
)
_element.test_ip_address_type = AAZStrType(
serialized_name="testIPAddressType",
)
_element.test_subnet_name = AAZStrType(
serialized_name="testSubnetName",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.azure_virtual_machine_id = AAZStrType(
serialized_name="azureVirtualMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm_failback.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_start_time = AAZStrType(
serialized_name="lastPlannedFailoverStartTime",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_status = AAZStrType(
serialized_name="lastPlannedFailoverStatus",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_friendly_name = AAZStrType(
serialized_name="lastUsedPolicyFriendlyName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_id = AAZStrType(
serialized_name="lastUsedPolicyId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm_failback.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm_failback.reprotect_agent_id = AAZStrType(
serialized_name="reprotectAgentId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.reprotect_agent_name = AAZStrType(
serialized_name="reprotectAgentName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_data_store_name = AAZStrType(
serialized_name="targetDataStoreName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_vm_name = AAZStrType(
serialized_name="targetVmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.targetv_center_id = AAZStrType(
serialized_name="targetvCenterId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_nics = AAZListType(
serialized_name="vmNics",
)
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_uuid = AAZStrType(
serialized_name="diskUuid",
flags={"read_only": True},
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_ReprotectHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.last_sync_time = AAZStrType(
serialized_name="lastSyncTime",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ReprotectHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.resync_details)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics.Element
_element.adapter_type = AAZStrType(
serialized_name="adapterType",
flags={"read_only": True},
)
_element.mac_address = AAZStrType(
serialized_name="macAddress",
flags={"read_only": True},
)
_element.network_name = AAZStrType(
serialized_name="networkName",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIpAddress",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectedItemsReprotect(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 | 236 | 12 | 224 | 0 | 3 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 2,379 | 127 | 2,252 | 90 | 2,233 | 0 | 887 | 81 | 876 | 18 | 1 | 1 | 30 |
9,832 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_remove.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._remove.Remove.ReplicationProtectedItemsDelete
|
class ReplicationProtectedItemsDelete(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("properties", AAZObjectType, ".",
typ_kwargs={"flags": {"required": True}})
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("disableProtectionReason",
AAZStrType, ".disable_protection_reason")
properties.set_prop("replicationProviderInput",
AAZObjectType, ".replication_provider_input")
replication_provider_input = _builder.get(
".properties.replicationProviderInput")
if replication_provider_input is not None:
replication_provider_input.set_const(
"instanceType", "InMage", AAZStrType, ".in_mage", typ_kwargs={"flags": {"required": True}})
replication_provider_input.discriminate_by(
"instanceType", "InMage")
disc_in_mage = _builder.get(
".properties.replicationProviderInput{instanceType:InMage}")
if disc_in_mage is not None:
disc_in_mage.set_prop(
"replicaVmDeletionStatus", AAZStrType, ".in_mage.replica_vm_deletion_status")
return self.serialize_content(_content_value)
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationProtectedItemsDelete(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
def on_204(self, session):
pass
| 18 | 0 | 11 | 1 | 11 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 10 | 1 | 10 | 10 | 130 | 15 | 115 | 29 | 97 | 0 | 46 | 21 | 35 | 4 | 1 | 1 | 16 |
9,833 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_planned_failover.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._planned_failover.PlannedFailover.ReplicationProtectedItemsPlannedFailover
|
class ReplicationProtectedItemsPlannedFailover(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("failoverDirection",
AAZStrType, ".failover_direction")
properties.set_prop("providerSpecificDetails",
AAZObjectType, ".provider_specific_details")
provider_specific_details = _builder.get(
".properties.providerSpecificDetails")
if provider_specific_details is not None:
provider_specific_details.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const("instanceType", "HyperVReplicaAzureFailback", AAZStrType,
".hyper_v_replica_azure_failback", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageRcmFailback", AAZStrType, ".in_mage_rcm_failback", typ_kwargs={"flags": {"required": True}})
provider_specific_details.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_details.discriminate_by(
"instanceType", "HyperVReplicaAzureFailback")
provider_specific_details.discriminate_by(
"instanceType", "InMageRcmFailback")
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop(
"primaryKekCertificatePfx", AAZStrType, ".hyper_v_replica_azure.primary_kek_certificate_pfx")
disc_hyper_v_replica_azure.set_prop(
"recoveryPointId", AAZStrType, ".hyper_v_replica_azure.recovery_point_id")
disc_hyper_v_replica_azure.set_prop(
"secondaryKekCertificatePfx", AAZStrType, ".hyper_v_replica_azure.secondary_kek_certificate_pfx")
disc_hyper_v_replica_azure_failback = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzureFailback}")
if disc_hyper_v_replica_azure_failback is not None:
disc_hyper_v_replica_azure_failback.set_prop(
"dataSyncOption", AAZStrType, ".hyper_v_replica_azure_failback.data_sync_option")
disc_hyper_v_replica_azure_failback.set_prop(
"providerIdForAlternateRecovery", AAZStrType, ".hyper_v_replica_azure_failback.provider_id_for_alternate_recovery")
disc_hyper_v_replica_azure_failback.set_prop(
"recoveryVmCreationOption", AAZStrType, ".hyper_v_replica_azure_failback.recovery_vm_creation_option")
disc_in_mage_rcm_failback = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcmFailback}")
if disc_in_mage_rcm_failback is not None:
disc_in_mage_rcm_failback.set_prop(
"recoveryPointType", AAZStrType, ".in_mage_rcm_failback.recovery_point_type", 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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.active_location = AAZStrType(
serialized_name="activeLocation",
)
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.event_correlation_id = AAZStrType(
serialized_name="eventCorrelationId",
)
properties.failover_health = AAZStrType(
serialized_name="failoverHealth",
)
properties.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.last_successful_failover_time = AAZStrType(
serialized_name="lastSuccessfulFailoverTime",
)
properties.last_successful_test_failover_time = AAZStrType(
serialized_name="lastSuccessfulTestFailoverTime",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_provider = AAZStrType(
serialized_name="primaryFabricProvider",
)
properties.primary_protection_container_friendly_name = AAZStrType(
serialized_name="primaryProtectionContainerFriendlyName",
)
properties.protectable_item_id = AAZStrType(
serialized_name="protectableItemId",
)
properties.protected_item_type = AAZStrType(
serialized_name="protectedItemType",
)
properties.protection_state = AAZStrType(
serialized_name="protectionState",
)
properties.protection_state_description = AAZStrType(
serialized_name="protectionStateDescription",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.recovery_container_id = AAZStrType(
serialized_name="recoveryContainerId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.recovery_protection_container_friendly_name = AAZStrType(
serialized_name="recoveryProtectionContainerFriendlyName",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_health = AAZStrType(
serialized_name="replicationHealth",
)
properties.switch_provider_state = AAZStrType(
serialized_name="switchProviderState",
)
properties.switch_provider_state_description = AAZStrType(
serialized_name="switchProviderStateDescription",
)
properties.test_failover_state = AAZStrType(
serialized_name="testFailoverState",
)
properties.test_failover_state_description = AAZStrType(
serialized_name="testFailoverStateDescription",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
health_errors = cls._schema_on_200.properties.health_errors
health_errors.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_health_error_read(
health_errors.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_certificate_expiry_date = AAZStrType(
serialized_name="agentCertificateExpiryDate",
flags={"read_only": True},
)
disc_a2_a.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_a2_a.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_a2_a.auto_protection_of_data_disk = AAZStrType(
serialized_name="autoProtectionOfDataDisk",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.initial_primary_extended_location = AAZObjectType(
serialized_name="initialPrimaryExtendedLocation",
)
_PlannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.initial_primary_extended_location)
disc_a2_a.initial_primary_fabric_location = AAZStrType(
serialized_name="initialPrimaryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_primary_zone = AAZStrType(
serialized_name="initialPrimaryZone",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_extended_location = AAZObjectType(
serialized_name="initialRecoveryExtendedLocation",
)
_PlannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.initial_recovery_extended_location)
disc_a2_a.initial_recovery_fabric_location = AAZStrType(
serialized_name="initialRecoveryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_zone = AAZStrType(
serialized_name="initialRecoveryZone",
flags={"read_only": True},
)
disc_a2_a.is_replication_agent_certificate_update_required = AAZBoolType(
serialized_name="isReplicationAgentCertificateUpdateRequired",
)
disc_a2_a.is_replication_agent_update_required = AAZBoolType(
serialized_name="isReplicationAgentUpdateRequired",
)
disc_a2_a.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_a2_a.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_a2_a.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a.management_id = AAZStrType(
serialized_name="managementId",
)
disc_a2_a.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
disc_a2_a.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
disc_a2_a.multi_vm_group_create_option = AAZStrType(
serialized_name="multiVmGroupCreateOption",
)
disc_a2_a.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_a2_a.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_a2_a.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a.primary_availability_zone = AAZStrType(
serialized_name="primaryAvailabilityZone",
)
disc_a2_a.primary_extended_location = AAZObjectType(
serialized_name="primaryExtendedLocation",
)
_PlannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.primary_extended_location)
disc_a2_a.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_a2_a.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_a2_a.recovery_availability_set = AAZStrType(
serialized_name="recoveryAvailabilitySet",
)
disc_a2_a.recovery_availability_zone = AAZStrType(
serialized_name="recoveryAvailabilityZone",
)
disc_a2_a.recovery_azure_generation = AAZStrType(
serialized_name="recoveryAzureGeneration",
flags={"read_only": True},
)
disc_a2_a.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_a2_a.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_a2_a.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_a2_a.recovery_boot_diag_storage_account_id = AAZStrType(
serialized_name="recoveryBootDiagStorageAccountId",
)
disc_a2_a.recovery_capacity_reservation_group_id = AAZStrType(
serialized_name="recoveryCapacityReservationGroupId",
)
disc_a2_a.recovery_cloud_service = AAZStrType(
serialized_name="recoveryCloudService",
)
disc_a2_a.recovery_extended_location = AAZObjectType(
serialized_name="recoveryExtendedLocation",
)
_PlannedFailoverHelper._build_schema_extended_location_read(
disc_a2_a.recovery_extended_location)
disc_a2_a.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_a2_a.recovery_fabric_object_id = AAZStrType(
serialized_name="recoveryFabricObjectId",
)
disc_a2_a.recovery_proximity_placement_group_id = AAZStrType(
serialized_name="recoveryProximityPlacementGroupId",
)
disc_a2_a.recovery_virtual_machine_scale_set_id = AAZStrType(
serialized_name="recoveryVirtualMachineScaleSetId",
)
disc_a2_a.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_a2_a.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_a2_a.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_a2_a.test_failover_recovery_fabric_object_id = AAZStrType(
serialized_name="testFailoverRecoveryFabricObjectId",
)
disc_a2_a.tfo_azure_vm_name = AAZStrType(
serialized_name="tfoAzureVMName",
)
disc_a2_a.unprotected_disks = AAZListType(
serialized_name="unprotectedDisks",
)
disc_a2_a.vm_encryption_type = AAZStrType(
serialized_name="vmEncryptionType",
flags={"read_only": True},
)
disc_a2_a.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_a2_a.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_a2_a.vm_synced_config_details = AAZObjectType(
serialized_name="vmSyncedConfigDetails",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.disk_uri = AAZStrType(
serialized_name="diskUri",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_azure_storage_account_id = AAZStrType(
serialized_name="primaryDiskAzureStorageAccountId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_azure_storage_account_id = AAZStrType(
serialized_name="recoveryAzureStorageAccountId",
)
_element.recovery_disk_uri = AAZStrType(
serialized_name="recoveryDiskUri",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_encryption_set_id = AAZStrType(
serialized_name="primaryDiskEncryptionSetId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_disk_encryption_set_id = AAZStrType(
serialized_name="recoveryDiskEncryptionSetId",
)
_element.recovery_orignal_target_disk_id = AAZStrType(
serialized_name="recoveryOrignalTargetDiskId",
)
_element.recovery_replica_disk_account_type = AAZStrType(
serialized_name="recoveryReplicaDiskAccountType",
)
_element.recovery_replica_disk_id = AAZStrType(
serialized_name="recoveryReplicaDiskId",
)
_element.recovery_resource_group_id = AAZStrType(
serialized_name="recoveryResourceGroupId",
)
_element.recovery_target_disk_account_type = AAZStrType(
serialized_name="recoveryTargetDiskAccountType",
)
_element.recovery_target_disk_id = AAZStrType(
serialized_name="recoveryTargetDiskId",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
unprotected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks
unprotected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks.Element
_element.disk_auto_protection_status = AAZStrType(
serialized_name="diskAutoProtectionStatus",
)
_element.disk_lun_id = AAZIntType(
serialized_name="diskLunId",
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_nics
vm_nics.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
vm_synced_config_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details
vm_synced_config_details.input_endpoints = AAZListType(
serialized_name="inputEndpoints",
)
vm_synced_config_details.tags = AAZDictType()
input_endpoints = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints
input_endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints.Element
_element.endpoint_name = AAZStrType(
serialized_name="endpointName",
)
_element.private_port = AAZIntType(
serialized_name="privatePort",
)
_element.protocol = AAZStrType()
_element.public_port = AAZIntType(
serialized_name="publicPort",
)
tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.tags
tags.Element = AAZStrType()
disc_a2_a_cross_cluster_migration = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2ACrossClusterMigration")
disc_a2_a_cross_cluster_migration.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a_cross_cluster_migration.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a_cross_cluster_migration.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a_cross_cluster_migration.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a_cross_cluster_migration.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a_cross_cluster_migration.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_PlannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012.initial_replication_details)
disc_hyper_v_replica2012.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").vm_nics
vm_nics.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_PlannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012_r2.initial_replication_details)
disc_hyper_v_replica2012_r2.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012_r2.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012_r2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012_r2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012_r2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012_r2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").vm_nics
vm_nics.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.azure_vm_disk_details = AAZListType(
serialized_name="azureVmDiskDetails",
)
disc_hyper_v_replica_azure.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_PlannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_azure.initial_replication_details)
disc_hyper_v_replica_azure.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_hyper_v_replica_azure.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_azure.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_hyper_v_replica_azure.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_hyper_v_replica_azure.o_s_details = AAZObjectType(
serialized_name="oSDetails",
)
disc_hyper_v_replica_azure.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_hyper_v_replica_azure.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_hyper_v_replica_azure.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_hyper_v_replica_azure.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_hyper_v_replica_azure.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_hyper_v_replica_azure.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_hyper_v_replica_azure.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVmName",
)
disc_hyper_v_replica_azure.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_hyper_v_replica_azure.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_hyper_v_replica_azure.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_hyper_v_replica_azure.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_hyper_v_replica_azure.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_hyper_v_replica_azure.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_hyper_v_replica_azure.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_hyper_v_replica_azure.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_hyper_v_replica_azure.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_hyper_v_replica_azure.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_hyper_v_replica_azure.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_hyper_v_replica_azure.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_hyper_v_replica_azure.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_hyper_v_replica_azure.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_azure.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_azure.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_azure.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
o_s_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").o_s_details
o_s_details.o_s_major_version = AAZStrType(
serialized_name="oSMajorVersion",
)
o_s_details.o_s_minor_version = AAZStrType(
serialized_name="oSMinorVersion",
)
o_s_details.o_s_version = AAZStrType(
serialized_name="oSVersion",
)
o_s_details.os_edition = AAZStrType(
serialized_name="osEdition",
)
o_s_details.os_type = AAZStrType(
serialized_name="osType",
)
o_s_details.product_type = AAZStrType(
serialized_name="productType",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_vm_tags
target_vm_tags.Element = AAZStrType()
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").vm_nics
vm_nics.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica_base_replication_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails")
disc_hyper_v_replica_base_replication_details.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_PlannedFailoverHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_base_replication_details.initial_replication_details)
disc_hyper_v_replica_base_replication_details.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_base_replication_details.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica_base_replication_details.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_base_replication_details.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").vm_nics
vm_nics.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.active_site_type = AAZStrType(
serialized_name="activeSiteType",
)
disc_in_mage.agent_details = AAZObjectType(
serialized_name="agentDetails",
)
disc_in_mage.azure_storage_account_id = AAZStrType(
serialized_name="azureStorageAccountId",
)
disc_in_mage.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage.consistency_points = AAZDictType(
serialized_name="consistencyPoints",
)
disc_in_mage.datastores = AAZListType()
disc_in_mage.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.os_details = AAZObjectType(
serialized_name="osDetails",
)
disc_in_mage.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage.reboot_after_update_status = AAZStrType(
serialized_name="rebootAfterUpdateStatus",
)
disc_in_mage.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_PlannedFailoverHelper._build_schema_initial_replication_details_read(
disc_in_mage.resync_details)
disc_in_mage.retention_window_end = AAZStrType(
serialized_name="retentionWindowEnd",
)
disc_in_mage.retention_window_start = AAZStrType(
serialized_name="retentionWindowStart",
)
disc_in_mage.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").agent_details
agent_details.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
agent_details.agent_update_status = AAZStrType(
serialized_name="agentUpdateStatus",
)
agent_details.agent_version = AAZStrType(
serialized_name="agentVersion",
)
agent_details.post_update_reboot_status = AAZStrType(
serialized_name="postUpdateRebootStatus",
)
consistency_points = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").consistency_points
consistency_points.Element = AAZStrType()
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").datastores
datastores.Element = AAZStrType()
os_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").os_details
os_details.os_type = AAZStrType(
serialized_name="osType",
)
os_details.os_vhd_id = AAZStrType(
serialized_name="osVhdId",
)
os_details.vhd_name = AAZStrType(
serialized_name="vhdName",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mb = AAZFloatType(
serialized_name="psDataInMB",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.source_data_in_mb = AAZFloatType(
serialized_name="sourceDataInMB",
)
_element.target_data_in_mb = AAZFloatType(
serialized_name="targetDataInMB",
)
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").validation_errors
validation_errors.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").vm_nics
vm_nics.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_in_mage_azure_v2.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_in_mage_azure_v2.azure_vm_disk_details = AAZListType(
serialized_name="azureVMDiskDetails",
)
disc_in_mage_azure_v2.azure_vm_generation = AAZStrType(
serialized_name="azureVmGeneration",
)
disc_in_mage_azure_v2.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage_azure_v2.datastores = AAZListType()
disc_in_mage_azure_v2.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage_azure_v2.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage_azure_v2.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_in_mage_azure_v2.firmware_type = AAZStrType(
serialized_name="firmwareType",
)
disc_in_mage_azure_v2.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage_azure_v2.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage_azure_v2.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage_azure_v2.is_agent_update_required = AAZStrType(
serialized_name="isAgentUpdateRequired",
)
disc_in_mage_azure_v2.is_reboot_after_update_required = AAZStrType(
serialized_name="isRebootAfterUpdateRequired",
)
disc_in_mage_azure_v2.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage_azure_v2.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_azure_v2.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage_azure_v2.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage_azure_v2.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_azure_v2.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage_azure_v2.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage_azure_v2.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.os_disk_id = AAZStrType(
serialized_name="osDiskId",
)
disc_in_mage_azure_v2.os_type = AAZStrType(
serialized_name="osType",
)
disc_in_mage_azure_v2.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage_azure_v2.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage_azure_v2.process_server_name = AAZStrType(
serialized_name="processServerName",
)
disc_in_mage_azure_v2.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_azure_v2.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_in_mage_azure_v2.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage_azure_v2.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_in_mage_azure_v2.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_in_mage_azure_v2.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_in_mage_azure_v2.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_in_mage_azure_v2.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_in_mage_azure_v2.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_in_mage_azure_v2.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage_azure_v2.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
disc_in_mage_azure_v2.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage_azure_v2.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_in_mage_azure_v2.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_in_mage_azure_v2.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_in_mage_azure_v2.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_in_mage_azure_v2.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage_azure_v2.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage_azure_v2.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_in_mage_azure_v2.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_in_mage_azure_v2.switch_provider_details = AAZObjectType(
serialized_name="switchProviderDetails",
)
disc_in_mage_azure_v2.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_azure_v2.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_in_mage_azure_v2.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_in_mage_azure_v2.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_azure_v2.target_vm_id = AAZStrType(
serialized_name="targetVmId",
)
disc_in_mage_azure_v2.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_in_mage_azure_v2.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage_azure_v2.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage_azure_v2.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage_azure_v2.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_in_mage_azure_v2.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage_azure_v2.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage_azure_v2.vhd_name = AAZStrType(
serialized_name="vhdName",
)
disc_in_mage_azure_v2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage_azure_v2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage_azure_v2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage_azure_v2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").datastores
datastores.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mega_bytes = AAZFloatType(
serialized_name="psDataInMegaBytes",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.seconds_to_take_switch_provider = AAZIntType(
serialized_name="secondsToTakeSwitchProvider",
)
_element.source_data_in_mega_bytes = AAZFloatType(
serialized_name="sourceDataInMegaBytes",
)
_element.target_data_in_mega_bytes = AAZFloatType(
serialized_name="targetDataInMegaBytes",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
_element.target_disk_name = AAZStrType(
serialized_name="targetDiskName",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
switch_provider_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
switch_provider_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_details
switch_provider_details.target_appliance_id = AAZStrType(
serialized_name="targetApplianceId",
flags={"read_only": True},
)
switch_provider_details.target_fabric_id = AAZStrType(
serialized_name="targetFabricId",
flags={"read_only": True},
)
switch_provider_details.target_resource_id = AAZStrType(
serialized_name="targetResourceId",
flags={"read_only": True},
)
switch_provider_details.target_vault_id = AAZStrType(
serialized_name="targetVaultId",
flags={"read_only": True},
)
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_vm_tags
target_vm_tags.Element = AAZStrType()
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").validation_errors
validation_errors.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").vm_nics
vm_nics.Element = AAZObjectType()
_PlannedFailoverHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_upgrade_attempt_to_version = AAZStrType(
serialized_name="agentUpgradeAttemptToVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_blocking_error_details = AAZListType(
serialized_name="agentUpgradeBlockingErrorDetails",
)
disc_in_mage_rcm.agent_upgrade_job_id = AAZStrType(
serialized_name="agentUpgradeJobId",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_state = AAZStrType(
serialized_name="agentUpgradeState",
flags={"read_only": True},
)
disc_in_mage_rcm.allocated_memory_in_mb = AAZFloatType(
serialized_name="allocatedMemoryInMB",
flags={"read_only": True},
)
disc_in_mage_rcm.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm.discovery_type = AAZStrType(
serialized_name="discoveryType",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_discovery_machine_id = AAZStrType(
serialized_name="fabricDiscoveryMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.firmware_type = AAZStrType(
serialized_name="firmwareType",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm.is_last_upgrade_successful = AAZStrType(
serialized_name="isLastUpgradeSuccessful",
flags={"read_only": True},
)
disc_in_mage_rcm.last_agent_upgrade_error_details = AAZListType(
serialized_name="lastAgentUpgradeErrorDetails",
)
disc_in_mage_rcm.last_agent_upgrade_type = AAZStrType(
serialized_name="lastAgentUpgradeType",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_id = AAZStrType(
serialized_name="lastRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_in_seconds = AAZIntType(
serialized_name="lastRpoInSeconds",
flags={"read_only": True},
)
disc_in_mage_rcm.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_rcm.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm.primary_nic_ip_address = AAZStrType(
serialized_name="primaryNicIpAddress",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_id = AAZStrType(
serialized_name="processServerId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_name = AAZStrType(
serialized_name="processServerName",
flags={"read_only": True},
)
disc_in_mage_rcm.processor_core_count = AAZIntType(
serialized_name="processorCoreCount",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.run_as_account_id = AAZStrType(
serialized_name="runAsAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.target_availability_set_id = AAZStrType(
serialized_name="targetAvailabilitySetId",
)
disc_in_mage_rcm.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_rcm.target_boot_diagnostics_storage_account_id = AAZStrType(
serialized_name="targetBootDiagnosticsStorageAccountId",
)
disc_in_mage_rcm.target_generation = AAZStrType(
serialized_name="targetGeneration",
flags={"read_only": True},
)
disc_in_mage_rcm.target_location = AAZStrType(
serialized_name="targetLocation",
)
disc_in_mage_rcm.target_network_id = AAZStrType(
serialized_name="targetNetworkId",
)
disc_in_mage_rcm.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_rcm.target_resource_group_id = AAZStrType(
serialized_name="targetResourceGroupId",
)
disc_in_mage_rcm.target_vm_name = AAZStrType(
serialized_name="targetVmName",
)
disc_in_mage_rcm.target_vm_size = AAZStrType(
serialized_name="targetVmSize",
)
disc_in_mage_rcm.test_network_id = AAZStrType(
serialized_name="testNetworkId",
)
disc_in_mage_rcm.vm_nics = AAZListType(
serialized_name="vmNics",
)
agent_upgrade_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details
agent_upgrade_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
last_agent_upgrade_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details
last_agent_upgrade_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_tags
error_tags.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_agent_release_date = AAZStrType(
serialized_name="latestAgentReleaseDate",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_PlannedFailoverHelper._build_schema_in_mage_rcm_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_PlannedFailoverHelper._build_schema_in_mage_rcm_sync_details_read(
_element.resync_details)
_element.seed_blob_uri = AAZStrType(
serialized_name="seedBlobUri",
flags={"read_only": True},
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
flags={"read_only": True},
)
_element.target_managed_disk_id = AAZStrType(
serialized_name="targetManagedDiskId",
flags={"read_only": True},
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics.Element
_element.is_primary_nic = AAZStrType(
serialized_name="isPrimaryNic",
)
_element.is_selected_for_failover = AAZStrType(
serialized_name="isSelectedForFailover",
)
_element.nic_id = AAZStrType(
serialized_name="nicId",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIPAddress",
flags={"read_only": True},
)
_element.source_ip_address_type = AAZStrType(
serialized_name="sourceIPAddressType",
flags={"read_only": True},
)
_element.source_network_id = AAZStrType(
serialized_name="sourceNetworkId",
flags={"read_only": True},
)
_element.source_subnet_name = AAZStrType(
serialized_name="sourceSubnetName",
flags={"read_only": True},
)
_element.target_ip_address = AAZStrType(
serialized_name="targetIPAddress",
)
_element.target_ip_address_type = AAZStrType(
serialized_name="targetIPAddressType",
)
_element.target_subnet_name = AAZStrType(
serialized_name="targetSubnetName",
)
_element.test_ip_address = AAZStrType(
serialized_name="testIPAddress",
)
_element.test_ip_address_type = AAZStrType(
serialized_name="testIPAddressType",
)
_element.test_subnet_name = AAZStrType(
serialized_name="testSubnetName",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.azure_virtual_machine_id = AAZStrType(
serialized_name="azureVirtualMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm_failback.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_start_time = AAZStrType(
serialized_name="lastPlannedFailoverStartTime",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_status = AAZStrType(
serialized_name="lastPlannedFailoverStatus",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_friendly_name = AAZStrType(
serialized_name="lastUsedPolicyFriendlyName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_id = AAZStrType(
serialized_name="lastUsedPolicyId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm_failback.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm_failback.reprotect_agent_id = AAZStrType(
serialized_name="reprotectAgentId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.reprotect_agent_name = AAZStrType(
serialized_name="reprotectAgentName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_data_store_name = AAZStrType(
serialized_name="targetDataStoreName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_vm_name = AAZStrType(
serialized_name="targetVmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.targetv_center_id = AAZStrType(
serialized_name="targetvCenterId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_nics = AAZListType(
serialized_name="vmNics",
)
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_uuid = AAZStrType(
serialized_name="diskUuid",
flags={"read_only": True},
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_PlannedFailoverHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.last_sync_time = AAZStrType(
serialized_name="lastSyncTime",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_PlannedFailoverHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.resync_details)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics.Element
_element.adapter_type = AAZStrType(
serialized_name="adapterType",
flags={"read_only": True},
)
_element.mac_address = AAZStrType(
serialized_name="macAddress",
flags={"read_only": True},
)
_element.network_name = AAZStrType(
serialized_name="networkName",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIpAddress",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectedItemsPlannedFailover(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 | 228 | 10 | 217 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 2,297 | 115 | 2,182 | 81 | 2,163 | 0 | 817 | 72 | 806 | 6 | 1 | 1 | 18 |
9,834 |
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.ResourceIdentityType
|
class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes
both an implicitly created identity and a set of user assigned identities. The type 'None' will
remove any identities from the service.
"""
SYSTEM_ASSIGNED = "SystemAssigned"
USER_ASSIGNED = "UserAssigned"
SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"
NONE = "None"
|
class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes
both an implicitly created identity and a set of user assigned identities. The type 'None' will
remove any identities from the service.
'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.8 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 10 | 1 | 5 | 5 | 4 | 4 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
9,835 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._list.List.ReplicationProtectedItemsListByReplicationProtectionContainers
|
class ReplicationProtectedItemsListByReplicationProtectionContainers(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.active_location = AAZStrType(
serialized_name="activeLocation",
)
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.event_correlation_id = AAZStrType(
serialized_name="eventCorrelationId",
)
properties.failover_health = AAZStrType(
serialized_name="failoverHealth",
)
properties.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.last_successful_failover_time = AAZStrType(
serialized_name="lastSuccessfulFailoverTime",
)
properties.last_successful_test_failover_time = AAZStrType(
serialized_name="lastSuccessfulTestFailoverTime",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_provider = AAZStrType(
serialized_name="primaryFabricProvider",
)
properties.primary_protection_container_friendly_name = AAZStrType(
serialized_name="primaryProtectionContainerFriendlyName",
)
properties.protectable_item_id = AAZStrType(
serialized_name="protectableItemId",
)
properties.protected_item_type = AAZStrType(
serialized_name="protectedItemType",
)
properties.protection_state = AAZStrType(
serialized_name="protectionState",
)
properties.protection_state_description = AAZStrType(
serialized_name="protectionStateDescription",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.recovery_container_id = AAZStrType(
serialized_name="recoveryContainerId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.recovery_protection_container_friendly_name = AAZStrType(
serialized_name="recoveryProtectionContainerFriendlyName",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_health = AAZStrType(
serialized_name="replicationHealth",
)
properties.switch_provider_state = AAZStrType(
serialized_name="switchProviderState",
)
properties.switch_provider_state_description = AAZStrType(
serialized_name="switchProviderStateDescription",
)
properties.test_failover_state = AAZStrType(
serialized_name="testFailoverState",
)
properties.test_failover_state_description = AAZStrType(
serialized_name="testFailoverStateDescription",
)
allowed_operations = cls._schema_on_200.value.Element.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.value.Element.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
health_errors = cls._schema_on_200.value.Element.properties.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
provider_specific_details = cls._schema_on_200.value.Element.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_certificate_expiry_date = AAZStrType(
serialized_name="agentCertificateExpiryDate",
flags={"read_only": True},
)
disc_a2_a.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_a2_a.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_a2_a.auto_protection_of_data_disk = AAZStrType(
serialized_name="autoProtectionOfDataDisk",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.initial_primary_extended_location = AAZObjectType(
serialized_name="initialPrimaryExtendedLocation",
)
_ListHelper._build_schema_extended_location_read(
disc_a2_a.initial_primary_extended_location)
disc_a2_a.initial_primary_fabric_location = AAZStrType(
serialized_name="initialPrimaryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_primary_zone = AAZStrType(
serialized_name="initialPrimaryZone",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_extended_location = AAZObjectType(
serialized_name="initialRecoveryExtendedLocation",
)
_ListHelper._build_schema_extended_location_read(
disc_a2_a.initial_recovery_extended_location)
disc_a2_a.initial_recovery_fabric_location = AAZStrType(
serialized_name="initialRecoveryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_zone = AAZStrType(
serialized_name="initialRecoveryZone",
flags={"read_only": True},
)
disc_a2_a.is_replication_agent_certificate_update_required = AAZBoolType(
serialized_name="isReplicationAgentCertificateUpdateRequired",
)
disc_a2_a.is_replication_agent_update_required = AAZBoolType(
serialized_name="isReplicationAgentUpdateRequired",
)
disc_a2_a.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_a2_a.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_a2_a.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a.management_id = AAZStrType(
serialized_name="managementId",
)
disc_a2_a.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
disc_a2_a.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
disc_a2_a.multi_vm_group_create_option = AAZStrType(
serialized_name="multiVmGroupCreateOption",
)
disc_a2_a.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_a2_a.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_a2_a.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a.primary_availability_zone = AAZStrType(
serialized_name="primaryAvailabilityZone",
)
disc_a2_a.primary_extended_location = AAZObjectType(
serialized_name="primaryExtendedLocation",
)
_ListHelper._build_schema_extended_location_read(
disc_a2_a.primary_extended_location)
disc_a2_a.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_a2_a.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_a2_a.recovery_availability_set = AAZStrType(
serialized_name="recoveryAvailabilitySet",
)
disc_a2_a.recovery_availability_zone = AAZStrType(
serialized_name="recoveryAvailabilityZone",
)
disc_a2_a.recovery_azure_generation = AAZStrType(
serialized_name="recoveryAzureGeneration",
flags={"read_only": True},
)
disc_a2_a.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_a2_a.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_a2_a.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_a2_a.recovery_boot_diag_storage_account_id = AAZStrType(
serialized_name="recoveryBootDiagStorageAccountId",
)
disc_a2_a.recovery_capacity_reservation_group_id = AAZStrType(
serialized_name="recoveryCapacityReservationGroupId",
)
disc_a2_a.recovery_cloud_service = AAZStrType(
serialized_name="recoveryCloudService",
)
disc_a2_a.recovery_extended_location = AAZObjectType(
serialized_name="recoveryExtendedLocation",
)
_ListHelper._build_schema_extended_location_read(
disc_a2_a.recovery_extended_location)
disc_a2_a.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_a2_a.recovery_fabric_object_id = AAZStrType(
serialized_name="recoveryFabricObjectId",
)
disc_a2_a.recovery_proximity_placement_group_id = AAZStrType(
serialized_name="recoveryProximityPlacementGroupId",
)
disc_a2_a.recovery_virtual_machine_scale_set_id = AAZStrType(
serialized_name="recoveryVirtualMachineScaleSetId",
)
disc_a2_a.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_a2_a.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_a2_a.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_a2_a.test_failover_recovery_fabric_object_id = AAZStrType(
serialized_name="testFailoverRecoveryFabricObjectId",
)
disc_a2_a.tfo_azure_vm_name = AAZStrType(
serialized_name="tfoAzureVMName",
)
disc_a2_a.unprotected_disks = AAZListType(
serialized_name="unprotectedDisks",
)
disc_a2_a.vm_encryption_type = AAZStrType(
serialized_name="vmEncryptionType",
flags={"read_only": True},
)
disc_a2_a.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_a2_a.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_a2_a.vm_synced_config_details = AAZObjectType(
serialized_name="vmSyncedConfigDetails",
)
protected_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.disk_uri = AAZStrType(
serialized_name="diskUri",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_azure_storage_account_id = AAZStrType(
serialized_name="primaryDiskAzureStorageAccountId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_azure_storage_account_id = AAZStrType(
serialized_name="recoveryAzureStorageAccountId",
)
_element.recovery_disk_uri = AAZStrType(
serialized_name="recoveryDiskUri",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
protected_managed_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_encryption_set_id = AAZStrType(
serialized_name="primaryDiskEncryptionSetId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_disk_encryption_set_id = AAZStrType(
serialized_name="recoveryDiskEncryptionSetId",
)
_element.recovery_orignal_target_disk_id = AAZStrType(
serialized_name="recoveryOrignalTargetDiskId",
)
_element.recovery_replica_disk_account_type = AAZStrType(
serialized_name="recoveryReplicaDiskAccountType",
)
_element.recovery_replica_disk_id = AAZStrType(
serialized_name="recoveryReplicaDiskId",
)
_element.recovery_resource_group_id = AAZStrType(
serialized_name="recoveryResourceGroupId",
)
_element.recovery_target_disk_account_type = AAZStrType(
serialized_name="recoveryTargetDiskAccountType",
)
_element.recovery_target_disk_id = AAZStrType(
serialized_name="recoveryTargetDiskId",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
unprotected_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks
unprotected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks.Element
_element.disk_auto_protection_status = AAZStrType(
serialized_name="diskAutoProtectionStatus",
)
_element.disk_lun_id = AAZIntType(
serialized_name="diskLunId",
)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_nics
vm_nics.Element = AAZObjectType()
_ListHelper._build_schema_vm_nic_details_read(vm_nics.Element)
vm_synced_config_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details
vm_synced_config_details.input_endpoints = AAZListType(
serialized_name="inputEndpoints",
)
vm_synced_config_details.tags = AAZDictType()
input_endpoints = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints
input_endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints.Element
_element.endpoint_name = AAZStrType(
serialized_name="endpointName",
)
_element.private_port = AAZIntType(
serialized_name="privatePort",
)
_element.protocol = AAZStrType()
_element.public_port = AAZIntType(
serialized_name="publicPort",
)
tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.tags
tags.Element = AAZStrType()
disc_a2_a_cross_cluster_migration = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2ACrossClusterMigration")
disc_a2_a_cross_cluster_migration.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a_cross_cluster_migration.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a_cross_cluster_migration.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a_cross_cluster_migration.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a_cross_cluster_migration.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a_cross_cluster_migration.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_hyper_v_replica2012 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ListHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012.initial_replication_details)
disc_hyper_v_replica2012.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ListHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").vm_nics
vm_nics.Element = AAZObjectType()
_ListHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ListHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012_r2.initial_replication_details)
disc_hyper_v_replica2012_r2.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012_r2.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012_r2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012_r2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012_r2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012_r2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ListHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").vm_nics
vm_nics.Element = AAZObjectType()
_ListHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_azure = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.azure_vm_disk_details = AAZListType(
serialized_name="azureVmDiskDetails",
)
disc_hyper_v_replica_azure.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ListHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_azure.initial_replication_details)
disc_hyper_v_replica_azure.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_hyper_v_replica_azure.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_azure.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_hyper_v_replica_azure.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_hyper_v_replica_azure.o_s_details = AAZObjectType(
serialized_name="oSDetails",
)
disc_hyper_v_replica_azure.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_hyper_v_replica_azure.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_hyper_v_replica_azure.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_hyper_v_replica_azure.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_hyper_v_replica_azure.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_hyper_v_replica_azure.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_hyper_v_replica_azure.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVmName",
)
disc_hyper_v_replica_azure.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_hyper_v_replica_azure.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_hyper_v_replica_azure.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_hyper_v_replica_azure.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_hyper_v_replica_azure.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_hyper_v_replica_azure.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_hyper_v_replica_azure.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_hyper_v_replica_azure.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_hyper_v_replica_azure.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_hyper_v_replica_azure.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_hyper_v_replica_azure.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_hyper_v_replica_azure.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_hyper_v_replica_azure.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_hyper_v_replica_azure.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_azure.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_azure.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_azure.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_ListHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
o_s_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").o_s_details
o_s_details.o_s_major_version = AAZStrType(
serialized_name="oSMajorVersion",
)
o_s_details.o_s_minor_version = AAZStrType(
serialized_name="oSMinorVersion",
)
o_s_details.o_s_version = AAZStrType(
serialized_name="oSVersion",
)
o_s_details.os_edition = AAZStrType(
serialized_name="osEdition",
)
o_s_details.os_type = AAZStrType(
serialized_name="osType",
)
o_s_details.product_type = AAZStrType(
serialized_name="productType",
)
protected_managed_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
seed_managed_disk_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
target_managed_disk_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_vm_tags
target_vm_tags.Element = AAZStrType()
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").vm_nics
vm_nics.Element = AAZObjectType()
_ListHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_base_replication_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails")
disc_hyper_v_replica_base_replication_details.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_ListHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_base_replication_details.initial_replication_details)
disc_hyper_v_replica_base_replication_details.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_base_replication_details.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica_base_replication_details.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_base_replication_details.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_ListHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").vm_nics
vm_nics.Element = AAZObjectType()
_ListHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.active_site_type = AAZStrType(
serialized_name="activeSiteType",
)
disc_in_mage.agent_details = AAZObjectType(
serialized_name="agentDetails",
)
disc_in_mage.azure_storage_account_id = AAZStrType(
serialized_name="azureStorageAccountId",
)
disc_in_mage.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage.consistency_points = AAZDictType(
serialized_name="consistencyPoints",
)
disc_in_mage.datastores = AAZListType()
disc_in_mage.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.os_details = AAZObjectType(
serialized_name="osDetails",
)
disc_in_mage.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage.reboot_after_update_status = AAZStrType(
serialized_name="rebootAfterUpdateStatus",
)
disc_in_mage.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ListHelper._build_schema_initial_replication_details_read(
disc_in_mage.resync_details)
disc_in_mage.retention_window_end = AAZStrType(
serialized_name="retentionWindowEnd",
)
disc_in_mage.retention_window_start = AAZStrType(
serialized_name="retentionWindowStart",
)
disc_in_mage.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
agent_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").agent_details
agent_details.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
agent_details.agent_update_status = AAZStrType(
serialized_name="agentUpdateStatus",
)
agent_details.agent_version = AAZStrType(
serialized_name="agentVersion",
)
agent_details.post_update_reboot_status = AAZStrType(
serialized_name="postUpdateRebootStatus",
)
consistency_points = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").consistency_points
consistency_points.Element = AAZStrType()
datastores = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").datastores
datastores.Element = AAZStrType()
os_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").os_details
os_details.os_type = AAZStrType(
serialized_name="osType",
)
os_details.os_vhd_id = AAZStrType(
serialized_name="osVhdId",
)
os_details.vhd_name = AAZStrType(
serialized_name="vhdName",
)
protected_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mb = AAZFloatType(
serialized_name="psDataInMB",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.source_data_in_mb = AAZFloatType(
serialized_name="sourceDataInMB",
)
_element.target_data_in_mb = AAZFloatType(
serialized_name="targetDataInMB",
)
validation_errors = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").validation_errors
validation_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").vm_nics
vm_nics.Element = AAZObjectType()
_ListHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_azure_v2 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_in_mage_azure_v2.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_in_mage_azure_v2.azure_vm_disk_details = AAZListType(
serialized_name="azureVMDiskDetails",
)
disc_in_mage_azure_v2.azure_vm_generation = AAZStrType(
serialized_name="azureVmGeneration",
)
disc_in_mage_azure_v2.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage_azure_v2.datastores = AAZListType()
disc_in_mage_azure_v2.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage_azure_v2.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage_azure_v2.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_in_mage_azure_v2.firmware_type = AAZStrType(
serialized_name="firmwareType",
)
disc_in_mage_azure_v2.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage_azure_v2.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage_azure_v2.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage_azure_v2.is_agent_update_required = AAZStrType(
serialized_name="isAgentUpdateRequired",
)
disc_in_mage_azure_v2.is_reboot_after_update_required = AAZStrType(
serialized_name="isRebootAfterUpdateRequired",
)
disc_in_mage_azure_v2.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage_azure_v2.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_azure_v2.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage_azure_v2.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage_azure_v2.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_azure_v2.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage_azure_v2.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage_azure_v2.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.os_disk_id = AAZStrType(
serialized_name="osDiskId",
)
disc_in_mage_azure_v2.os_type = AAZStrType(
serialized_name="osType",
)
disc_in_mage_azure_v2.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage_azure_v2.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage_azure_v2.process_server_name = AAZStrType(
serialized_name="processServerName",
)
disc_in_mage_azure_v2.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_azure_v2.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_in_mage_azure_v2.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage_azure_v2.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_in_mage_azure_v2.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_in_mage_azure_v2.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_in_mage_azure_v2.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_in_mage_azure_v2.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_in_mage_azure_v2.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_in_mage_azure_v2.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage_azure_v2.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
disc_in_mage_azure_v2.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage_azure_v2.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_in_mage_azure_v2.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_in_mage_azure_v2.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_in_mage_azure_v2.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_in_mage_azure_v2.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage_azure_v2.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage_azure_v2.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_in_mage_azure_v2.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_in_mage_azure_v2.switch_provider_details = AAZObjectType(
serialized_name="switchProviderDetails",
)
disc_in_mage_azure_v2.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_azure_v2.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_in_mage_azure_v2.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_in_mage_azure_v2.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_azure_v2.target_vm_id = AAZStrType(
serialized_name="targetVmId",
)
disc_in_mage_azure_v2.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_in_mage_azure_v2.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage_azure_v2.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage_azure_v2.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage_azure_v2.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_in_mage_azure_v2.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage_azure_v2.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage_azure_v2.vhd_name = AAZStrType(
serialized_name="vhdName",
)
disc_in_mage_azure_v2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage_azure_v2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage_azure_v2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage_azure_v2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_ListHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
datastores = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").datastores
datastores.Element = AAZStrType()
protected_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mega_bytes = AAZFloatType(
serialized_name="psDataInMegaBytes",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.seconds_to_take_switch_provider = AAZIntType(
serialized_name="secondsToTakeSwitchProvider",
)
_element.source_data_in_mega_bytes = AAZFloatType(
serialized_name="sourceDataInMegaBytes",
)
_element.target_data_in_mega_bytes = AAZFloatType(
serialized_name="targetDataInMegaBytes",
)
protected_managed_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
_element.target_disk_name = AAZStrType(
serialized_name="targetDiskName",
)
seed_managed_disk_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
switch_provider_blocking_error_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
switch_provider_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_details
switch_provider_details.target_appliance_id = AAZStrType(
serialized_name="targetApplianceId",
flags={"read_only": True},
)
switch_provider_details.target_fabric_id = AAZStrType(
serialized_name="targetFabricId",
flags={"read_only": True},
)
switch_provider_details.target_resource_id = AAZStrType(
serialized_name="targetResourceId",
flags={"read_only": True},
)
switch_provider_details.target_vault_id = AAZStrType(
serialized_name="targetVaultId",
flags={"read_only": True},
)
target_managed_disk_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_vm_tags
target_vm_tags.Element = AAZStrType()
validation_errors = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").validation_errors
validation_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").vm_nics
vm_nics.Element = AAZObjectType()
_ListHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_rcm = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_upgrade_attempt_to_version = AAZStrType(
serialized_name="agentUpgradeAttemptToVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_blocking_error_details = AAZListType(
serialized_name="agentUpgradeBlockingErrorDetails",
)
disc_in_mage_rcm.agent_upgrade_job_id = AAZStrType(
serialized_name="agentUpgradeJobId",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_state = AAZStrType(
serialized_name="agentUpgradeState",
flags={"read_only": True},
)
disc_in_mage_rcm.allocated_memory_in_mb = AAZFloatType(
serialized_name="allocatedMemoryInMB",
flags={"read_only": True},
)
disc_in_mage_rcm.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm.discovery_type = AAZStrType(
serialized_name="discoveryType",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_discovery_machine_id = AAZStrType(
serialized_name="fabricDiscoveryMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.firmware_type = AAZStrType(
serialized_name="firmwareType",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm.is_last_upgrade_successful = AAZStrType(
serialized_name="isLastUpgradeSuccessful",
flags={"read_only": True},
)
disc_in_mage_rcm.last_agent_upgrade_error_details = AAZListType(
serialized_name="lastAgentUpgradeErrorDetails",
)
disc_in_mage_rcm.last_agent_upgrade_type = AAZStrType(
serialized_name="lastAgentUpgradeType",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_id = AAZStrType(
serialized_name="lastRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_in_seconds = AAZIntType(
serialized_name="lastRpoInSeconds",
flags={"read_only": True},
)
disc_in_mage_rcm.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_rcm.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm.primary_nic_ip_address = AAZStrType(
serialized_name="primaryNicIpAddress",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_id = AAZStrType(
serialized_name="processServerId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_name = AAZStrType(
serialized_name="processServerName",
flags={"read_only": True},
)
disc_in_mage_rcm.processor_core_count = AAZIntType(
serialized_name="processorCoreCount",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.run_as_account_id = AAZStrType(
serialized_name="runAsAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.target_availability_set_id = AAZStrType(
serialized_name="targetAvailabilitySetId",
)
disc_in_mage_rcm.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_rcm.target_boot_diagnostics_storage_account_id = AAZStrType(
serialized_name="targetBootDiagnosticsStorageAccountId",
)
disc_in_mage_rcm.target_generation = AAZStrType(
serialized_name="targetGeneration",
flags={"read_only": True},
)
disc_in_mage_rcm.target_location = AAZStrType(
serialized_name="targetLocation",
)
disc_in_mage_rcm.target_network_id = AAZStrType(
serialized_name="targetNetworkId",
)
disc_in_mage_rcm.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_rcm.target_resource_group_id = AAZStrType(
serialized_name="targetResourceGroupId",
)
disc_in_mage_rcm.target_vm_name = AAZStrType(
serialized_name="targetVmName",
)
disc_in_mage_rcm.target_vm_size = AAZStrType(
serialized_name="targetVmSize",
)
disc_in_mage_rcm.test_network_id = AAZStrType(
serialized_name="testNetworkId",
)
disc_in_mage_rcm.vm_nics = AAZListType(
serialized_name="vmNics",
)
agent_upgrade_blocking_error_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details
agent_upgrade_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
discovered_vm_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
last_agent_upgrade_error_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details
last_agent_upgrade_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_tags
error_tags.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_agent_release_date = AAZStrType(
serialized_name="latestAgentReleaseDate",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_ListHelper._build_schema_in_mage_rcm_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ListHelper._build_schema_in_mage_rcm_sync_details_read(
_element.resync_details)
_element.seed_blob_uri = AAZStrType(
serialized_name="seedBlobUri",
flags={"read_only": True},
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
flags={"read_only": True},
)
_element.target_managed_disk_id = AAZStrType(
serialized_name="targetManagedDiskId",
flags={"read_only": True},
)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics.Element
_element.is_primary_nic = AAZStrType(
serialized_name="isPrimaryNic",
)
_element.is_selected_for_failover = AAZStrType(
serialized_name="isSelectedForFailover",
)
_element.nic_id = AAZStrType(
serialized_name="nicId",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIPAddress",
flags={"read_only": True},
)
_element.source_ip_address_type = AAZStrType(
serialized_name="sourceIPAddressType",
flags={"read_only": True},
)
_element.source_network_id = AAZStrType(
serialized_name="sourceNetworkId",
flags={"read_only": True},
)
_element.source_subnet_name = AAZStrType(
serialized_name="sourceSubnetName",
flags={"read_only": True},
)
_element.target_ip_address = AAZStrType(
serialized_name="targetIPAddress",
)
_element.target_ip_address_type = AAZStrType(
serialized_name="targetIPAddressType",
)
_element.target_subnet_name = AAZStrType(
serialized_name="targetSubnetName",
)
_element.test_ip_address = AAZStrType(
serialized_name="testIPAddress",
)
_element.test_ip_address_type = AAZStrType(
serialized_name="testIPAddressType",
)
_element.test_subnet_name = AAZStrType(
serialized_name="testSubnetName",
)
disc_in_mage_rcm_failback = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.azure_virtual_machine_id = AAZStrType(
serialized_name="azureVirtualMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm_failback.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_start_time = AAZStrType(
serialized_name="lastPlannedFailoverStartTime",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_status = AAZStrType(
serialized_name="lastPlannedFailoverStatus",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_friendly_name = AAZStrType(
serialized_name="lastUsedPolicyFriendlyName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_id = AAZStrType(
serialized_name="lastUsedPolicyId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm_failback.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm_failback.reprotect_agent_id = AAZStrType(
serialized_name="reprotectAgentId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.reprotect_agent_name = AAZStrType(
serialized_name="reprotectAgentName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_data_store_name = AAZStrType(
serialized_name="targetDataStoreName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_vm_name = AAZStrType(
serialized_name="targetVmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.targetv_center_id = AAZStrType(
serialized_name="targetvCenterId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_nics = AAZListType(
serialized_name="vmNics",
)
discovered_vm_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_uuid = AAZStrType(
serialized_name="diskUuid",
flags={"read_only": True},
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_ListHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.last_sync_time = AAZStrType(
serialized_name="lastSyncTime",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_ListHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.resync_details)
vm_nics = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics.Element
_element.adapter_type = AAZStrType(
serialized_name="adapterType",
flags={"read_only": True},
)
_element.mac_address = AAZStrType(
serialized_name="macAddress",
flags={"read_only": True},
)
_element.network_name = AAZStrType(
serialized_name="networkName",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIpAddress",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectedItemsListByReplicationProtectionContainers(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 | 247 | 11 | 236 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 2,242 | 110 | 2,132 | 73 | 2,115 | 0 | 791 | 66 | 781 | 2 | 1 | 1 | 11 |
9,836 |
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.ResourceAssociationAccessMode
|
class ResourceAssociationAccessMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Access mode of the resource association."""
ENFORCED = "Enforced"
"""Enforced access mode - traffic to the resource that failed access checks is blocked"""
LEARNING = "Learning"
"""Learning access mode - traffic to the resource is enabled for analysis but not blocked"""
AUDIT = "Audit"
"""Audit access mode - traffic to the resource that fails access checks is logged but not blocked"""
|
class ResourceAssociationAccessMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Access mode of the resource association.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 9 | 1 | 4 | 4 | 3 | 4 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
9,837 |
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.PrimaryAggregationType
|
class PrimaryAggregationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The primary aggregation type of the metric."""
NONE = "None"
AVERAGE = "Average"
TOTAL = "Total"
MINIMUM = "Minimum"
MAXIMUM = "Maximum"
LAST = "Last"
|
class PrimaryAggregationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The primary aggregation type of the metric.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 9 | 1 | 7 | 7 | 6 | 1 | 7 | 7 | 6 | 0 | 4 | 0 | 0 |
9,838 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/recovery_plan/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.recovery_plan._show.Show.ReplicationRecoveryPlansGet
|
class ReplicationRecoveryPlansGet(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.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
**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(
"recoveryPlanName", self.ctx.args.recovery_plan_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.current_scenario_status = AAZStrType(
serialized_name="currentScenarioStatus",
)
properties.current_scenario_status_description = AAZStrType(
serialized_name="currentScenarioStatusDescription",
)
properties.failover_deployment_model = AAZStrType(
serialized_name="failoverDeploymentModel",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.groups = AAZListType()
properties.last_planned_failover_time = AAZStrType(
serialized_name="lastPlannedFailoverTime",
)
properties.last_test_failover_time = AAZStrType(
serialized_name="lastTestFailoverTime",
)
properties.last_unplanned_failover_time = AAZStrType(
serialized_name="lastUnplannedFailoverTime",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_id = AAZStrType(
serialized_name="primaryFabricId",
)
properties.provider_specific_details = AAZListType(
serialized_name="providerSpecificDetails",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.replication_providers = AAZListType(
serialized_name="replicationProviders",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
groups = cls._schema_on_200.properties.groups
groups.Element = AAZObjectType()
_element = cls._schema_on_200.properties.groups.Element
_element.end_group_actions = AAZListType(
serialized_name="endGroupActions",
)
_element.group_type = AAZStrType(
serialized_name="groupType",
flags={"required": True},
)
_element.replication_protected_items = AAZListType(
serialized_name="replicationProtectedItems",
)
_element.start_group_actions = AAZListType(
serialized_name="startGroupActions",
)
end_group_actions = cls._schema_on_200.properties.groups.Element.end_group_actions
end_group_actions.Element = AAZObjectType()
_ShowHelper._build_schema_recovery_plan_action_read(
end_group_actions.Element)
replication_protected_items = cls._schema_on_200.properties.groups.Element.replication_protected_items
replication_protected_items.Element = AAZObjectType()
_element = cls._schema_on_200.properties.groups.Element.replication_protected_items.Element
_element.id = AAZStrType()
_element.virtual_machine_id = AAZStrType(
serialized_name="virtualMachineId",
)
start_group_actions = cls._schema_on_200.properties.groups.Element.start_group_actions
start_group_actions.Element = AAZObjectType()
_ShowHelper._build_schema_recovery_plan_action_read(
start_group_actions.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.Element
_element.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.Element.discriminate_by(
"instance_type", "A2A")
disc_a2_a.primary_zone = AAZStrType(
serialized_name="primaryZone",
)
disc_a2_a.recovery_zone = AAZStrType(
serialized_name="recoveryZone",
)
replication_providers = cls._schema_on_200.properties.replication_providers
replication_providers.Element = AAZStrType()
return cls._schema_on_200
|
class ReplicationRecoveryPlansGet(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 | 20 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 215 | 27 | 188 | 37 | 171 | 0 | 88 | 30 | 78 | 2 | 1 | 1 | 11 |
9,839 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/recovery_plan/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.recovery_plan._list.List.ReplicationRecoveryPlansList
|
class ReplicationRecoveryPlansList(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.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans",
**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(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.current_scenario_status = AAZStrType(
serialized_name="currentScenarioStatus",
)
properties.current_scenario_status_description = AAZStrType(
serialized_name="currentScenarioStatusDescription",
)
properties.failover_deployment_model = AAZStrType(
serialized_name="failoverDeploymentModel",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.groups = AAZListType()
properties.last_planned_failover_time = AAZStrType(
serialized_name="lastPlannedFailoverTime",
)
properties.last_test_failover_time = AAZStrType(
serialized_name="lastTestFailoverTime",
)
properties.last_unplanned_failover_time = AAZStrType(
serialized_name="lastUnplannedFailoverTime",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_id = AAZStrType(
serialized_name="primaryFabricId",
)
properties.provider_specific_details = AAZListType(
serialized_name="providerSpecificDetails",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.replication_providers = AAZListType(
serialized_name="replicationProviders",
)
allowed_operations = cls._schema_on_200.value.Element.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.value.Element.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
groups = cls._schema_on_200.value.Element.properties.groups
groups.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.groups.Element
_element.end_group_actions = AAZListType(
serialized_name="endGroupActions",
)
_element.group_type = AAZStrType(
serialized_name="groupType",
flags={"required": True},
)
_element.replication_protected_items = AAZListType(
serialized_name="replicationProtectedItems",
)
_element.start_group_actions = AAZListType(
serialized_name="startGroupActions",
)
end_group_actions = cls._schema_on_200.value.Element.properties.groups.Element.end_group_actions
end_group_actions.Element = AAZObjectType()
_ListHelper._build_schema_recovery_plan_action_read(
end_group_actions.Element)
replication_protected_items = cls._schema_on_200.value.Element.properties.groups.Element.replication_protected_items
replication_protected_items.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.groups.Element.replication_protected_items.Element
_element.id = AAZStrType()
_element.virtual_machine_id = AAZStrType(
serialized_name="virtualMachineId",
)
start_group_actions = cls._schema_on_200.value.Element.properties.groups.Element.start_group_actions
start_group_actions.Element = AAZObjectType()
_ListHelper._build_schema_recovery_plan_action_read(
start_group_actions.Element)
provider_specific_details = cls._schema_on_200.value.Element.properties.provider_specific_details
provider_specific_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.provider_specific_details.Element
_element.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.value.Element.properties.provider_specific_details.Element.discriminate_by(
"instance_type", "A2A")
disc_a2_a.primary_zone = AAZStrType(
serialized_name="primaryZone",
)
disc_a2_a.recovery_zone = AAZStrType(
serialized_name="recoveryZone",
)
replication_providers = cls._schema_on_200.value.Element.properties.replication_providers
replication_providers.Element = AAZStrType()
return cls._schema_on_200
|
class ReplicationRecoveryPlansList(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 | 20 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 220 | 29 | 191 | 38 | 174 | 0 | 93 | 31 | 83 | 2 | 1 | 1 | 11 |
9,840 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/recovery_plan/_delete.py
|
azext_site_recovery.aaz.latest.site_recovery.recovery_plan._delete.Delete.ReplicationRecoveryPlansDelete
|
class ReplicationRecoveryPlansDelete(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
**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(
"recoveryPlanName", self.ctx.args.recovery_plan_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationRecoveryPlansDelete(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 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 88 | 9 | 79 | 20 | 65 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,841 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/recovery_plan/_create.py
|
azext_site_recovery.aaz.latest.site_recovery.recovery_plan._create.Create.ReplicationRecoveryPlansCreate
|
class ReplicationRecoveryPlansCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
**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(
"recoveryPlanName", self.ctx.args.recovery_plan_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("failoverDeploymentModel",
AAZStrType, ".failover_deployment_model")
properties.set_prop("groups", AAZListType, ".groups", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("primaryFabricId", AAZStrType, ".primary_fabric_id", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("providerSpecificInput",
AAZListType, ".provider_specific_input")
properties.set_prop("recoveryFabricId", AAZStrType, ".recovery_fabric_id", typ_kwargs={
"flags": {"required": True}})
groups = _builder.get(".properties.groups")
if groups is not None:
groups.set_elements(AAZObjectType, ".")
_elements = _builder.get(".properties.groups[]")
if _elements is not None:
_elements.set_prop("endGroupActions",
AAZListType, ".end_group_actions")
_elements.set_prop("groupType", AAZStrType, ".group_type", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("replicationProtectedItems",
AAZListType, ".replication_protected_items")
_elements.set_prop("startGroupActions",
AAZListType, ".start_group_actions")
end_group_actions = _builder.get(
".properties.groups[].endGroupActions")
if end_group_actions is not None:
_CreateHelper._build_schema_recovery_plan_action_create(
end_group_actions.set_elements(AAZObjectType, "."))
replication_protected_items = _builder.get(
".properties.groups[].replicationProtectedItems")
if replication_protected_items is not None:
replication_protected_items.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.groups[].replicationProtectedItems[]")
if _elements is not None:
_elements.set_prop("id", AAZStrType, ".id")
_elements.set_prop("virtualMachineId",
AAZStrType, ".virtual_machine_id")
start_group_actions = _builder.get(
".properties.groups[].startGroupActions")
if start_group_actions is not None:
_CreateHelper._build_schema_recovery_plan_action_create(
start_group_actions.set_elements(AAZObjectType, "."))
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_elements(AAZObjectType, ".")
_elements = _builder.get(".properties.providerSpecificInput[]")
if _elements is not None:
_elements.set_const("instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={
"flags": {"required": True}})
_elements.discriminate_by("instanceType", "A2A")
disc_a2_a = _builder.get(
".properties.providerSpecificInput[]{instanceType:A2A}")
if disc_a2_a is not None:
_CreateHelper._build_schema_extended_location_create(disc_a2_a.set_prop(
"primaryExtendedLocation", AAZObjectType, ".a2a.primary_extended_location"))
disc_a2_a.set_prop("primaryZone", AAZStrType,
".a2a.primary_zone")
_CreateHelper._build_schema_extended_location_create(disc_a2_a.set_prop(
"recoveryExtendedLocation", AAZObjectType, ".a2a.recovery_extended_location"))
disc_a2_a.set_prop(
"recoveryZone", AAZStrType, ".a2a.recovery_zone")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.current_scenario_status = AAZStrType(
serialized_name="currentScenarioStatus",
)
properties.current_scenario_status_description = AAZStrType(
serialized_name="currentScenarioStatusDescription",
)
properties.failover_deployment_model = AAZStrType(
serialized_name="failoverDeploymentModel",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.groups = AAZListType()
properties.last_planned_failover_time = AAZStrType(
serialized_name="lastPlannedFailoverTime",
)
properties.last_test_failover_time = AAZStrType(
serialized_name="lastTestFailoverTime",
)
properties.last_unplanned_failover_time = AAZStrType(
serialized_name="lastUnplannedFailoverTime",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_id = AAZStrType(
serialized_name="primaryFabricId",
)
properties.provider_specific_details = AAZListType(
serialized_name="providerSpecificDetails",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.replication_providers = AAZListType(
serialized_name="replicationProviders",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
groups = cls._schema_on_200.properties.groups
groups.Element = AAZObjectType()
_element = cls._schema_on_200.properties.groups.Element
_element.end_group_actions = AAZListType(
serialized_name="endGroupActions",
)
_element.group_type = AAZStrType(
serialized_name="groupType",
flags={"required": True},
)
_element.replication_protected_items = AAZListType(
serialized_name="replicationProtectedItems",
)
_element.start_group_actions = AAZListType(
serialized_name="startGroupActions",
)
end_group_actions = cls._schema_on_200.properties.groups.Element.end_group_actions
end_group_actions.Element = AAZObjectType()
_CreateHelper._build_schema_recovery_plan_action_read(
end_group_actions.Element)
replication_protected_items = cls._schema_on_200.properties.groups.Element.replication_protected_items
replication_protected_items.Element = AAZObjectType()
_element = cls._schema_on_200.properties.groups.Element.replication_protected_items.Element
_element.id = AAZStrType()
_element.virtual_machine_id = AAZStrType(
serialized_name="virtualMachineId",
)
start_group_actions = cls._schema_on_200.properties.groups.Element.start_group_actions
start_group_actions.Element = AAZObjectType()
_CreateHelper._build_schema_recovery_plan_action_read(
start_group_actions.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.Element
_element.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.Element.discriminate_by(
"instance_type", "A2A")
disc_a2_a.primary_zone = AAZStrType(
serialized_name="primaryZone",
)
disc_a2_a.recovery_zone = AAZStrType(
serialized_name="recoveryZone",
)
replication_providers = cls._schema_on_200.properties.replication_providers
replication_providers.Element = AAZStrType()
return cls._schema_on_200
|
class ReplicationRecoveryPlansCreate(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 | 28 | 3 | 25 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 297 | 39 | 258 | 49 | 239 | 0 | 136 | 40 | 125 | 11 | 1 | 1 | 23 |
9,842 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._update.Update.ReplicationProtectionContainerMappingsGet
|
class ReplicationProtectionContainerMappingsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"mappingName", self.ctx.args.mapping_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_protection_container_mapping_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationProtectionContainerMappingsGet(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 | 8 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 94 | 13 | 81 | 25 | 64 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,843 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._update.Update.ReplicationProtectionContainerMappingsCreate
|
class ReplicationProtectionContainerMappingsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"mappingName", self.ctx.args.mapping_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_protection_container_mapping_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationProtectionContainerMappingsCreate(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 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 122 | 15 | 107 | 29 | 88 | 0 | 38 | 20 | 27 | 3 | 1 | 1 | 13 |
9,844 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._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("policyId", AAZStrType, ".policy_id")
properties.set_prop("providerSpecificInput",
AAZObjectType, ".provider_specific_input")
properties.set_prop(
"targetProtectionContainerId", AAZStrType, ".target_protection_container_id")
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "VMwareCbt", AAZStrType, ".vmware_cbt", typ_kwargs={"flags": {"required": True}})
provider_specific_input.discriminate_by("instanceType", "A2A")
provider_specific_input.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_input.discriminate_by(
"instanceType", "InMageRcm")
provider_specific_input.discriminate_by(
"instanceType", "VMwareCbt")
disc_a2_a = _builder.get(
".properties.providerSpecificInput{instanceType:A2A}")
if disc_a2_a is not None:
disc_a2_a.set_prop("agentAutoUpdateStatus",
AAZStrType, ".a2a.agent_auto_update_status")
disc_a2_a.set_prop("automationAccountArmId",
AAZStrType, ".a2a.automation_account_arm_id")
disc_a2_a.set_prop("automationAccountAuthenticationType",
AAZStrType, ".a2a.automation_account_authentication_type")
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificInput{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop(
"location", AAZStrType, ".hyper_v_replica_azure.location")
disc_in_mage_rcm = _builder.get(
".properties.providerSpecificInput{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop("enableAgentAutoUpgrade", AAZStrType, ".in_mage_rcm.enable_agent_auto_upgrade", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_cbt = _builder.get(
".properties.providerSpecificInput{instanceType:VMwareCbt}")
if disc_v_mware_cbt is not None:
disc_v_mware_cbt.set_prop(
"keyVaultId", AAZStrType, ".vmware_cbt.key_vault_id")
disc_v_mware_cbt.set_prop(
"keyVaultUri", AAZStrType, ".vmware_cbt.key_vault_uri")
disc_v_mware_cbt.set_prop("serviceBusConnectionStringSecretName",
AAZStrType, ".vmware_cbt.service_bus_connection_string_secret_name")
disc_v_mware_cbt.set_prop("storageAccountId", AAZStrType, ".vmware_cbt.storage_account_id", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_cbt.set_prop(
"storageAccountSasSecretName", AAZStrType, ".vmware_cbt.storage_account_sas_secret_name")
disc_v_mware_cbt.set_prop("targetLocation", AAZStrType, ".vmware_cbt.target_location", 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 | 26 | 4 | 22 | 0 | 4 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 54 | 9 | 45 | 10 | 42 | 0 | 41 | 10 | 38 | 7 | 1 | 1 | 8 |
9,845 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._show.Show.ReplicationProtectionContainerMappingsGet
|
class ReplicationProtectionContainerMappingsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"mappingName", self.ctx.args.mapping_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.health = AAZStrType()
properties.health_error_details = AAZListType(
serialized_name="healthErrorDetails",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.source_fabric_friendly_name = AAZStrType(
serialized_name="sourceFabricFriendlyName",
)
properties.source_protection_container_friendly_name = AAZStrType(
serialized_name="sourceProtectionContainerFriendlyName",
)
properties.state = AAZStrType()
properties.target_fabric_friendly_name = AAZStrType(
serialized_name="targetFabricFriendlyName",
)
properties.target_protection_container_friendly_name = AAZStrType(
serialized_name="targetProtectionContainerFriendlyName",
)
properties.target_protection_container_id = AAZStrType(
serialized_name="targetProtectionContainerId",
)
health_error_details = cls._schema_on_200.properties.health_error_details
health_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.health_error_details.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.inner_health_errors = AAZListType(
serialized_name="innerHealthErrors",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
inner_health_errors = cls._schema_on_200.properties.health_error_details.Element.inner_health_errors
inner_health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.properties.health_error_details.Element.inner_health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_auto_update_status = AAZStrType(
serialized_name="agentAutoUpdateStatus",
)
disc_a2_a.automation_account_arm_id = AAZStrType(
serialized_name="automationAccountArmId",
)
disc_a2_a.automation_account_authentication_type = AAZStrType(
serialized_name="automationAccountAuthenticationType",
)
disc_a2_a.job_schedule_name = AAZStrType(
serialized_name="jobScheduleName",
)
disc_a2_a.schedule_name = AAZStrType(
serialized_name="scheduleName",
)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.enable_agent_auto_upgrade = AAZStrType(
serialized_name="enableAgentAutoUpgrade",
flags={"read_only": True},
)
disc_v_mware_cbt = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.key_vault_id = AAZStrType(
serialized_name="keyVaultId",
flags={"read_only": True},
)
disc_v_mware_cbt.key_vault_uri = AAZStrType(
serialized_name="keyVaultUri",
flags={"read_only": True},
)
disc_v_mware_cbt.role_size_to_nic_count_map = AAZDictType(
serialized_name="roleSizeToNicCountMap",
flags={"read_only": True},
)
disc_v_mware_cbt.service_bus_connection_string_secret_name = AAZStrType(
serialized_name="serviceBusConnectionStringSecretName",
flags={"read_only": True},
)
disc_v_mware_cbt.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_v_mware_cbt.storage_account_sas_secret_name = AAZStrType(
serialized_name="storageAccountSasSecretName",
flags={"read_only": True},
)
disc_v_mware_cbt.target_location = AAZStrType(
serialized_name="targetLocation",
flags={"read_only": True},
)
role_size_to_nic_count_map = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt").role_size_to_nic_count_map
role_size_to_nic_count_map.Element = AAZIntType()
return cls._schema_on_200
|
class ReplicationProtectionContainerMappingsGet(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 | 2 | 29 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 296 | 24 | 272 | 35 | 255 | 0 | 105 | 28 | 95 | 2 | 1 | 1 | 11 |
9,846 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_remove.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._remove.Remove.ReplicationProtectionContainerMappingsDelete
|
class ReplicationProtectionContainerMappingsDelete(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}/remove",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"mappingName", self.ctx.args.mapping_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("properties", AAZObjectType)
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("providerSpecificInput",
AAZObjectType, ".provider_specific_input")
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_prop(
"instanceType", AAZStrType, ".instance_type")
return self.serialize_content(_content_value)
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationProtectionContainerMappingsDelete(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
def on_204(self, session):
pass
| 18 | 0 | 11 | 0 | 10 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 10 | 1 | 10 | 10 | 124 | 14 | 110 | 28 | 92 | 0 | 41 | 20 | 30 | 4 | 1 | 1 | 15 |
9,847 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._list.List.ReplicationProtectionContainerMappingsListByReplicationProtectionContainers
|
class ReplicationProtectionContainerMappingsListByReplicationProtectionContainers(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.health = AAZStrType()
properties.health_error_details = AAZListType(
serialized_name="healthErrorDetails",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.source_fabric_friendly_name = AAZStrType(
serialized_name="sourceFabricFriendlyName",
)
properties.source_protection_container_friendly_name = AAZStrType(
serialized_name="sourceProtectionContainerFriendlyName",
)
properties.state = AAZStrType()
properties.target_fabric_friendly_name = AAZStrType(
serialized_name="targetFabricFriendlyName",
)
properties.target_protection_container_friendly_name = AAZStrType(
serialized_name="targetProtectionContainerFriendlyName",
)
properties.target_protection_container_id = AAZStrType(
serialized_name="targetProtectionContainerId",
)
health_error_details = cls._schema_on_200.value.Element.properties.health_error_details
health_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.health_error_details.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.inner_health_errors = AAZListType(
serialized_name="innerHealthErrors",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
inner_health_errors = cls._schema_on_200.value.Element.properties.health_error_details.Element.inner_health_errors
inner_health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.health_error_details.Element.inner_health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
provider_specific_details = cls._schema_on_200.value.Element.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_auto_update_status = AAZStrType(
serialized_name="agentAutoUpdateStatus",
)
disc_a2_a.automation_account_arm_id = AAZStrType(
serialized_name="automationAccountArmId",
)
disc_a2_a.automation_account_authentication_type = AAZStrType(
serialized_name="automationAccountAuthenticationType",
)
disc_a2_a.job_schedule_name = AAZStrType(
serialized_name="jobScheduleName",
)
disc_a2_a.schedule_name = AAZStrType(
serialized_name="scheduleName",
)
disc_in_mage_rcm = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.enable_agent_auto_upgrade = AAZStrType(
serialized_name="enableAgentAutoUpgrade",
flags={"read_only": True},
)
disc_v_mware_cbt = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.key_vault_id = AAZStrType(
serialized_name="keyVaultId",
flags={"read_only": True},
)
disc_v_mware_cbt.key_vault_uri = AAZStrType(
serialized_name="keyVaultUri",
flags={"read_only": True},
)
disc_v_mware_cbt.role_size_to_nic_count_map = AAZDictType(
serialized_name="roleSizeToNicCountMap",
flags={"read_only": True},
)
disc_v_mware_cbt.service_bus_connection_string_secret_name = AAZStrType(
serialized_name="serviceBusConnectionStringSecretName",
flags={"read_only": True},
)
disc_v_mware_cbt.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_v_mware_cbt.storage_account_sas_secret_name = AAZStrType(
serialized_name="storageAccountSasSecretName",
flags={"read_only": True},
)
disc_v_mware_cbt.target_location = AAZStrType(
serialized_name="targetLocation",
flags={"read_only": True},
)
role_size_to_nic_count_map = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt").role_size_to_nic_count_map
role_size_to_nic_count_map.Element = AAZIntType()
return cls._schema_on_200
|
class ReplicationProtectionContainerMappingsListByReplicationProtectionContainers(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 | 2 | 29 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 301 | 26 | 275 | 36 | 258 | 0 | 110 | 29 | 100 | 2 | 1 | 1 | 11 |
9,848 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_delete.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._delete.Delete.ReplicationProtectionContainerMappingsPurge
|
class ReplicationProtectionContainerMappingsPurge(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"mappingName", self.ctx.args.mapping_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationProtectionContainerMappingsPurge(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 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 96 | 9 | 87 | 20 | 73 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,849 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protection_container/mapping/_create.py
|
azext_site_recovery.aaz.latest.site_recovery.protection_container.mapping._create.Create.ReplicationProtectionContainerMappingsCreate
|
class ReplicationProtectionContainerMappingsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"mappingName", self.ctx.args.mapping_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("policyId", AAZStrType, ".policy_id")
properties.set_prop("providerSpecificInput",
AAZObjectType, ".provider_specific_input")
properties.set_prop(
"targetProtectionContainerId", AAZStrType, ".target_protection_container_id")
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "VMwareCbt", AAZStrType, ".vmware_cbt", typ_kwargs={"flags": {"required": True}})
provider_specific_input.discriminate_by("instanceType", "A2A")
provider_specific_input.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_input.discriminate_by(
"instanceType", "InMageRcm")
provider_specific_input.discriminate_by(
"instanceType", "VMwareCbt")
disc_a2_a = _builder.get(
".properties.providerSpecificInput{instanceType:A2A}")
if disc_a2_a is not None:
disc_a2_a.set_prop("agentAutoUpdateStatus",
AAZStrType, ".a2a.agent_auto_update_status")
disc_a2_a.set_prop("automationAccountArmId",
AAZStrType, ".a2a.automation_account_arm_id")
disc_a2_a.set_prop("automationAccountAuthenticationType",
AAZStrType, ".a2a.automation_account_authentication_type")
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificInput{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop(
"location", AAZStrType, ".hyper_v_replica_azure.location")
disc_in_mage_rcm = _builder.get(
".properties.providerSpecificInput{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop("enableAgentAutoUpgrade", AAZStrType, ".in_mage_rcm.enable_agent_auto_upgrade", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_cbt = _builder.get(
".properties.providerSpecificInput{instanceType:VMwareCbt}")
if disc_v_mware_cbt is not None:
disc_v_mware_cbt.set_prop(
"keyVaultId", AAZStrType, ".vmware_cbt.key_vault_id")
disc_v_mware_cbt.set_prop(
"keyVaultUri", AAZStrType, ".vmware_cbt.key_vault_uri")
disc_v_mware_cbt.set_prop("serviceBusConnectionStringSecretName",
AAZStrType, ".vmware_cbt.service_bus_connection_string_secret_name")
disc_v_mware_cbt.set_prop("storageAccountId", AAZStrType, ".vmware_cbt.storage_account_id", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_cbt.set_prop(
"storageAccountSasSecretName", AAZStrType, ".vmware_cbt.storage_account_sas_secret_name")
disc_v_mware_cbt.set_prop("targetLocation", AAZStrType, ".vmware_cbt.target_location", 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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.health = AAZStrType()
properties.health_error_details = AAZListType(
serialized_name="healthErrorDetails",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.source_fabric_friendly_name = AAZStrType(
serialized_name="sourceFabricFriendlyName",
)
properties.source_protection_container_friendly_name = AAZStrType(
serialized_name="sourceProtectionContainerFriendlyName",
)
properties.state = AAZStrType()
properties.target_fabric_friendly_name = AAZStrType(
serialized_name="targetFabricFriendlyName",
)
properties.target_protection_container_friendly_name = AAZStrType(
serialized_name="targetProtectionContainerFriendlyName",
)
properties.target_protection_container_id = AAZStrType(
serialized_name="targetProtectionContainerId",
)
health_error_details = cls._schema_on_200.properties.health_error_details
health_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.health_error_details.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.inner_health_errors = AAZListType(
serialized_name="innerHealthErrors",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
inner_health_errors = cls._schema_on_200.properties.health_error_details.Element.inner_health_errors
inner_health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.properties.health_error_details.Element.inner_health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_auto_update_status = AAZStrType(
serialized_name="agentAutoUpdateStatus",
)
disc_a2_a.automation_account_arm_id = AAZStrType(
serialized_name="automationAccountArmId",
)
disc_a2_a.automation_account_authentication_type = AAZStrType(
serialized_name="automationAccountAuthenticationType",
)
disc_a2_a.job_schedule_name = AAZStrType(
serialized_name="jobScheduleName",
)
disc_a2_a.schedule_name = AAZStrType(
serialized_name="scheduleName",
)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.enable_agent_auto_upgrade = AAZStrType(
serialized_name="enableAgentAutoUpgrade",
flags={"read_only": True},
)
disc_v_mware_cbt = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.key_vault_id = AAZStrType(
serialized_name="keyVaultId",
flags={"read_only": True},
)
disc_v_mware_cbt.key_vault_uri = AAZStrType(
serialized_name="keyVaultUri",
flags={"read_only": True},
)
disc_v_mware_cbt.role_size_to_nic_count_map = AAZDictType(
serialized_name="roleSizeToNicCountMap",
flags={"read_only": True},
)
disc_v_mware_cbt.service_bus_connection_string_secret_name = AAZStrType(
serialized_name="serviceBusConnectionStringSecretName",
flags={"read_only": True},
)
disc_v_mware_cbt.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_v_mware_cbt.storage_account_sas_secret_name = AAZStrType(
serialized_name="storageAccountSasSecretName",
flags={"read_only": True},
)
disc_v_mware_cbt.target_location = AAZStrType(
serialized_name="targetLocation",
flags={"read_only": True},
)
role_size_to_nic_count_map = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt").role_size_to_nic_count_map
role_size_to_nic_count_map.Element = AAZIntType()
return cls._schema_on_200
|
class ReplicationProtectionContainerMappingsCreate(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 | 34 | 2 | 32 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 9 | 1 | 10 | 10 | 366 | 32 | 334 | 45 | 315 | 0 | 145 | 36 | 134 | 7 | 1 | 1 | 19 |
9,850 |
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.NodeState
|
class NodeState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The state of the node in Cassandra ring."""
NORMAL = "Normal"
LEAVING = "Leaving"
JOINING = "Joining"
MOVING = "Moving"
STOPPED = "Stopped"
|
class NodeState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The state of the node in Cassandra ring.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 8 | 1 | 6 | 6 | 5 | 1 | 6 | 6 | 5 | 0 | 4 | 0 | 0 |
9,851 |
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.NodeStatus
|
class NodeStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Indicates whether the node is functioning or not."""
UP = "Up"
DOWN = "Down"
|
class NodeStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Indicates whether the node is functioning or not.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
9,852 |
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.NotebookWorkspaceName
|
class NotebookWorkspaceName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""NotebookWorkspaceName."""
DEFAULT = "default"
|
class NotebookWorkspaceName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''NotebookWorkspaceName.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 4 | 1 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
9,853 |
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.OperationType
|
class OperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Enum to indicate the operation type of the event."""
CREATE = "Create"
REPLACE = "Replace"
DELETE = "Delete"
RECREATE = "Recreate"
SYSTEM_OPERATION = "SystemOperation"
|
class OperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Enum to indicate the operation type of the event.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 8 | 1 | 6 | 6 | 5 | 1 | 6 | 6 | 5 | 0 | 4 | 0 | 0 |
9,854 |
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.PartitionKind
|
class PartitionKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys
(upto three maximum) are supported for container create.
"""
HASH = "Hash"
RANGE = "Range"
MULTI_HASH = "MultiHash"
|
class PartitionKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys
(upto three maximum) are supported for container create.
'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.75 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 8 | 1 | 4 | 4 | 3 | 3 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
9,855 |
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.PublicNetworkAccess
|
class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Whether requests from Public Network are allowed."""
ENABLED = "Enabled"
DISABLED = "Disabled"
SECURED_BY_PERIMETER = "SecuredByPerimeter"
|
class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Whether requests from Public Network are allowed.'''
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 |
9,856 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_failover_commit.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._failover_commit.FailoverCommit.ReplicationProtectedItemsFailoverCommit
|
class ReplicationProtectedItemsFailoverCommit(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.active_location = AAZStrType(
serialized_name="activeLocation",
)
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.event_correlation_id = AAZStrType(
serialized_name="eventCorrelationId",
)
properties.failover_health = AAZStrType(
serialized_name="failoverHealth",
)
properties.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.last_successful_failover_time = AAZStrType(
serialized_name="lastSuccessfulFailoverTime",
)
properties.last_successful_test_failover_time = AAZStrType(
serialized_name="lastSuccessfulTestFailoverTime",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_provider = AAZStrType(
serialized_name="primaryFabricProvider",
)
properties.primary_protection_container_friendly_name = AAZStrType(
serialized_name="primaryProtectionContainerFriendlyName",
)
properties.protectable_item_id = AAZStrType(
serialized_name="protectableItemId",
)
properties.protected_item_type = AAZStrType(
serialized_name="protectedItemType",
)
properties.protection_state = AAZStrType(
serialized_name="protectionState",
)
properties.protection_state_description = AAZStrType(
serialized_name="protectionStateDescription",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.recovery_container_id = AAZStrType(
serialized_name="recoveryContainerId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.recovery_protection_container_friendly_name = AAZStrType(
serialized_name="recoveryProtectionContainerFriendlyName",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_health = AAZStrType(
serialized_name="replicationHealth",
)
properties.switch_provider_state = AAZStrType(
serialized_name="switchProviderState",
)
properties.switch_provider_state_description = AAZStrType(
serialized_name="switchProviderStateDescription",
)
properties.test_failover_state = AAZStrType(
serialized_name="testFailoverState",
)
properties.test_failover_state_description = AAZStrType(
serialized_name="testFailoverStateDescription",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
health_errors = cls._schema_on_200.properties.health_errors
health_errors.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_health_error_read(
health_errors.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_certificate_expiry_date = AAZStrType(
serialized_name="agentCertificateExpiryDate",
flags={"read_only": True},
)
disc_a2_a.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_a2_a.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_a2_a.auto_protection_of_data_disk = AAZStrType(
serialized_name="autoProtectionOfDataDisk",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.initial_primary_extended_location = AAZObjectType(
serialized_name="initialPrimaryExtendedLocation",
)
_FailoverCommitHelper._build_schema_extended_location_read(
disc_a2_a.initial_primary_extended_location)
disc_a2_a.initial_primary_fabric_location = AAZStrType(
serialized_name="initialPrimaryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_primary_zone = AAZStrType(
serialized_name="initialPrimaryZone",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_extended_location = AAZObjectType(
serialized_name="initialRecoveryExtendedLocation",
)
_FailoverCommitHelper._build_schema_extended_location_read(
disc_a2_a.initial_recovery_extended_location)
disc_a2_a.initial_recovery_fabric_location = AAZStrType(
serialized_name="initialRecoveryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_zone = AAZStrType(
serialized_name="initialRecoveryZone",
flags={"read_only": True},
)
disc_a2_a.is_replication_agent_certificate_update_required = AAZBoolType(
serialized_name="isReplicationAgentCertificateUpdateRequired",
)
disc_a2_a.is_replication_agent_update_required = AAZBoolType(
serialized_name="isReplicationAgentUpdateRequired",
)
disc_a2_a.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_a2_a.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_a2_a.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a.management_id = AAZStrType(
serialized_name="managementId",
)
disc_a2_a.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
disc_a2_a.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
disc_a2_a.multi_vm_group_create_option = AAZStrType(
serialized_name="multiVmGroupCreateOption",
)
disc_a2_a.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_a2_a.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_a2_a.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a.primary_availability_zone = AAZStrType(
serialized_name="primaryAvailabilityZone",
)
disc_a2_a.primary_extended_location = AAZObjectType(
serialized_name="primaryExtendedLocation",
)
_FailoverCommitHelper._build_schema_extended_location_read(
disc_a2_a.primary_extended_location)
disc_a2_a.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_a2_a.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_a2_a.recovery_availability_set = AAZStrType(
serialized_name="recoveryAvailabilitySet",
)
disc_a2_a.recovery_availability_zone = AAZStrType(
serialized_name="recoveryAvailabilityZone",
)
disc_a2_a.recovery_azure_generation = AAZStrType(
serialized_name="recoveryAzureGeneration",
flags={"read_only": True},
)
disc_a2_a.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_a2_a.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_a2_a.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_a2_a.recovery_boot_diag_storage_account_id = AAZStrType(
serialized_name="recoveryBootDiagStorageAccountId",
)
disc_a2_a.recovery_capacity_reservation_group_id = AAZStrType(
serialized_name="recoveryCapacityReservationGroupId",
)
disc_a2_a.recovery_cloud_service = AAZStrType(
serialized_name="recoveryCloudService",
)
disc_a2_a.recovery_extended_location = AAZObjectType(
serialized_name="recoveryExtendedLocation",
)
_FailoverCommitHelper._build_schema_extended_location_read(
disc_a2_a.recovery_extended_location)
disc_a2_a.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_a2_a.recovery_fabric_object_id = AAZStrType(
serialized_name="recoveryFabricObjectId",
)
disc_a2_a.recovery_proximity_placement_group_id = AAZStrType(
serialized_name="recoveryProximityPlacementGroupId",
)
disc_a2_a.recovery_virtual_machine_scale_set_id = AAZStrType(
serialized_name="recoveryVirtualMachineScaleSetId",
)
disc_a2_a.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_a2_a.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_a2_a.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_a2_a.test_failover_recovery_fabric_object_id = AAZStrType(
serialized_name="testFailoverRecoveryFabricObjectId",
)
disc_a2_a.tfo_azure_vm_name = AAZStrType(
serialized_name="tfoAzureVMName",
)
disc_a2_a.unprotected_disks = AAZListType(
serialized_name="unprotectedDisks",
)
disc_a2_a.vm_encryption_type = AAZStrType(
serialized_name="vmEncryptionType",
flags={"read_only": True},
)
disc_a2_a.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_a2_a.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_a2_a.vm_synced_config_details = AAZObjectType(
serialized_name="vmSyncedConfigDetails",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.disk_uri = AAZStrType(
serialized_name="diskUri",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_azure_storage_account_id = AAZStrType(
serialized_name="primaryDiskAzureStorageAccountId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_azure_storage_account_id = AAZStrType(
serialized_name="recoveryAzureStorageAccountId",
)
_element.recovery_disk_uri = AAZStrType(
serialized_name="recoveryDiskUri",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_encryption_set_id = AAZStrType(
serialized_name="primaryDiskEncryptionSetId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_disk_encryption_set_id = AAZStrType(
serialized_name="recoveryDiskEncryptionSetId",
)
_element.recovery_orignal_target_disk_id = AAZStrType(
serialized_name="recoveryOrignalTargetDiskId",
)
_element.recovery_replica_disk_account_type = AAZStrType(
serialized_name="recoveryReplicaDiskAccountType",
)
_element.recovery_replica_disk_id = AAZStrType(
serialized_name="recoveryReplicaDiskId",
)
_element.recovery_resource_group_id = AAZStrType(
serialized_name="recoveryResourceGroupId",
)
_element.recovery_target_disk_account_type = AAZStrType(
serialized_name="recoveryTargetDiskAccountType",
)
_element.recovery_target_disk_id = AAZStrType(
serialized_name="recoveryTargetDiskId",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
unprotected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks
unprotected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks.Element
_element.disk_auto_protection_status = AAZStrType(
serialized_name="diskAutoProtectionStatus",
)
_element.disk_lun_id = AAZIntType(
serialized_name="diskLunId",
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_nics
vm_nics.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
vm_synced_config_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details
vm_synced_config_details.input_endpoints = AAZListType(
serialized_name="inputEndpoints",
)
vm_synced_config_details.tags = AAZDictType()
input_endpoints = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints
input_endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints.Element
_element.endpoint_name = AAZStrType(
serialized_name="endpointName",
)
_element.private_port = AAZIntType(
serialized_name="privatePort",
)
_element.protocol = AAZStrType()
_element.public_port = AAZIntType(
serialized_name="publicPort",
)
tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.tags
tags.Element = AAZStrType()
disc_a2_a_cross_cluster_migration = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2ACrossClusterMigration")
disc_a2_a_cross_cluster_migration.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a_cross_cluster_migration.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a_cross_cluster_migration.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a_cross_cluster_migration.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a_cross_cluster_migration.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a_cross_cluster_migration.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_FailoverCommitHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012.initial_replication_details)
disc_hyper_v_replica2012.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").vm_nics
vm_nics.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_FailoverCommitHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012_r2.initial_replication_details)
disc_hyper_v_replica2012_r2.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012_r2.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012_r2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012_r2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012_r2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012_r2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").vm_nics
vm_nics.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.azure_vm_disk_details = AAZListType(
serialized_name="azureVmDiskDetails",
)
disc_hyper_v_replica_azure.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_FailoverCommitHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_azure.initial_replication_details)
disc_hyper_v_replica_azure.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_hyper_v_replica_azure.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_azure.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_hyper_v_replica_azure.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_hyper_v_replica_azure.o_s_details = AAZObjectType(
serialized_name="oSDetails",
)
disc_hyper_v_replica_azure.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_hyper_v_replica_azure.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_hyper_v_replica_azure.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_hyper_v_replica_azure.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_hyper_v_replica_azure.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_hyper_v_replica_azure.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_hyper_v_replica_azure.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVmName",
)
disc_hyper_v_replica_azure.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_hyper_v_replica_azure.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_hyper_v_replica_azure.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_hyper_v_replica_azure.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_hyper_v_replica_azure.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_hyper_v_replica_azure.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_hyper_v_replica_azure.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_hyper_v_replica_azure.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_hyper_v_replica_azure.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_hyper_v_replica_azure.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_hyper_v_replica_azure.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_hyper_v_replica_azure.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_hyper_v_replica_azure.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_hyper_v_replica_azure.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_azure.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_azure.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_azure.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
o_s_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").o_s_details
o_s_details.o_s_major_version = AAZStrType(
serialized_name="oSMajorVersion",
)
o_s_details.o_s_minor_version = AAZStrType(
serialized_name="oSMinorVersion",
)
o_s_details.o_s_version = AAZStrType(
serialized_name="oSVersion",
)
o_s_details.os_edition = AAZStrType(
serialized_name="osEdition",
)
o_s_details.os_type = AAZStrType(
serialized_name="osType",
)
o_s_details.product_type = AAZStrType(
serialized_name="productType",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_vm_tags
target_vm_tags.Element = AAZStrType()
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").vm_nics
vm_nics.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_hyper_v_replica_base_replication_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails")
disc_hyper_v_replica_base_replication_details.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_FailoverCommitHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_base_replication_details.initial_replication_details)
disc_hyper_v_replica_base_replication_details.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_base_replication_details.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica_base_replication_details.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_base_replication_details.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").vm_nics
vm_nics.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.active_site_type = AAZStrType(
serialized_name="activeSiteType",
)
disc_in_mage.agent_details = AAZObjectType(
serialized_name="agentDetails",
)
disc_in_mage.azure_storage_account_id = AAZStrType(
serialized_name="azureStorageAccountId",
)
disc_in_mage.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage.consistency_points = AAZDictType(
serialized_name="consistencyPoints",
)
disc_in_mage.datastores = AAZListType()
disc_in_mage.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.os_details = AAZObjectType(
serialized_name="osDetails",
)
disc_in_mage.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage.reboot_after_update_status = AAZStrType(
serialized_name="rebootAfterUpdateStatus",
)
disc_in_mage.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_FailoverCommitHelper._build_schema_initial_replication_details_read(
disc_in_mage.resync_details)
disc_in_mage.retention_window_end = AAZStrType(
serialized_name="retentionWindowEnd",
)
disc_in_mage.retention_window_start = AAZStrType(
serialized_name="retentionWindowStart",
)
disc_in_mage.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").agent_details
agent_details.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
agent_details.agent_update_status = AAZStrType(
serialized_name="agentUpdateStatus",
)
agent_details.agent_version = AAZStrType(
serialized_name="agentVersion",
)
agent_details.post_update_reboot_status = AAZStrType(
serialized_name="postUpdateRebootStatus",
)
consistency_points = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").consistency_points
consistency_points.Element = AAZStrType()
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").datastores
datastores.Element = AAZStrType()
os_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").os_details
os_details.os_type = AAZStrType(
serialized_name="osType",
)
os_details.os_vhd_id = AAZStrType(
serialized_name="osVhdId",
)
os_details.vhd_name = AAZStrType(
serialized_name="vhdName",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mb = AAZFloatType(
serialized_name="psDataInMB",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.source_data_in_mb = AAZFloatType(
serialized_name="sourceDataInMB",
)
_element.target_data_in_mb = AAZFloatType(
serialized_name="targetDataInMB",
)
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").validation_errors
validation_errors.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").vm_nics
vm_nics.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_in_mage_azure_v2.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_in_mage_azure_v2.azure_vm_disk_details = AAZListType(
serialized_name="azureVMDiskDetails",
)
disc_in_mage_azure_v2.azure_vm_generation = AAZStrType(
serialized_name="azureVmGeneration",
)
disc_in_mage_azure_v2.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage_azure_v2.datastores = AAZListType()
disc_in_mage_azure_v2.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage_azure_v2.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage_azure_v2.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_in_mage_azure_v2.firmware_type = AAZStrType(
serialized_name="firmwareType",
)
disc_in_mage_azure_v2.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage_azure_v2.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage_azure_v2.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage_azure_v2.is_agent_update_required = AAZStrType(
serialized_name="isAgentUpdateRequired",
)
disc_in_mage_azure_v2.is_reboot_after_update_required = AAZStrType(
serialized_name="isRebootAfterUpdateRequired",
)
disc_in_mage_azure_v2.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage_azure_v2.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_azure_v2.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage_azure_v2.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage_azure_v2.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_azure_v2.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage_azure_v2.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage_azure_v2.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.os_disk_id = AAZStrType(
serialized_name="osDiskId",
)
disc_in_mage_azure_v2.os_type = AAZStrType(
serialized_name="osType",
)
disc_in_mage_azure_v2.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage_azure_v2.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage_azure_v2.process_server_name = AAZStrType(
serialized_name="processServerName",
)
disc_in_mage_azure_v2.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_azure_v2.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_in_mage_azure_v2.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage_azure_v2.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_in_mage_azure_v2.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_in_mage_azure_v2.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_in_mage_azure_v2.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_in_mage_azure_v2.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_in_mage_azure_v2.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_in_mage_azure_v2.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage_azure_v2.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
disc_in_mage_azure_v2.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage_azure_v2.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_in_mage_azure_v2.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_in_mage_azure_v2.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_in_mage_azure_v2.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_in_mage_azure_v2.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage_azure_v2.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage_azure_v2.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_in_mage_azure_v2.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_in_mage_azure_v2.switch_provider_details = AAZObjectType(
serialized_name="switchProviderDetails",
)
disc_in_mage_azure_v2.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_azure_v2.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_in_mage_azure_v2.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_in_mage_azure_v2.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_azure_v2.target_vm_id = AAZStrType(
serialized_name="targetVmId",
)
disc_in_mage_azure_v2.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_in_mage_azure_v2.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage_azure_v2.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage_azure_v2.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage_azure_v2.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_in_mage_azure_v2.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage_azure_v2.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage_azure_v2.vhd_name = AAZStrType(
serialized_name="vhdName",
)
disc_in_mage_azure_v2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage_azure_v2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage_azure_v2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage_azure_v2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").datastores
datastores.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mega_bytes = AAZFloatType(
serialized_name="psDataInMegaBytes",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.seconds_to_take_switch_provider = AAZIntType(
serialized_name="secondsToTakeSwitchProvider",
)
_element.source_data_in_mega_bytes = AAZFloatType(
serialized_name="sourceDataInMegaBytes",
)
_element.target_data_in_mega_bytes = AAZFloatType(
serialized_name="targetDataInMegaBytes",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
_element.target_disk_name = AAZStrType(
serialized_name="targetDiskName",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
switch_provider_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
switch_provider_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_details
switch_provider_details.target_appliance_id = AAZStrType(
serialized_name="targetApplianceId",
flags={"read_only": True},
)
switch_provider_details.target_fabric_id = AAZStrType(
serialized_name="targetFabricId",
flags={"read_only": True},
)
switch_provider_details.target_resource_id = AAZStrType(
serialized_name="targetResourceId",
flags={"read_only": True},
)
switch_provider_details.target_vault_id = AAZStrType(
serialized_name="targetVaultId",
flags={"read_only": True},
)
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_vm_tags
target_vm_tags.Element = AAZStrType()
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").validation_errors
validation_errors.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").vm_nics
vm_nics.Element = AAZObjectType()
_FailoverCommitHelper._build_schema_vm_nic_details_read(
vm_nics.Element)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_upgrade_attempt_to_version = AAZStrType(
serialized_name="agentUpgradeAttemptToVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_blocking_error_details = AAZListType(
serialized_name="agentUpgradeBlockingErrorDetails",
)
disc_in_mage_rcm.agent_upgrade_job_id = AAZStrType(
serialized_name="agentUpgradeJobId",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_state = AAZStrType(
serialized_name="agentUpgradeState",
flags={"read_only": True},
)
disc_in_mage_rcm.allocated_memory_in_mb = AAZFloatType(
serialized_name="allocatedMemoryInMB",
flags={"read_only": True},
)
disc_in_mage_rcm.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm.discovery_type = AAZStrType(
serialized_name="discoveryType",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_discovery_machine_id = AAZStrType(
serialized_name="fabricDiscoveryMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.firmware_type = AAZStrType(
serialized_name="firmwareType",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm.is_last_upgrade_successful = AAZStrType(
serialized_name="isLastUpgradeSuccessful",
flags={"read_only": True},
)
disc_in_mage_rcm.last_agent_upgrade_error_details = AAZListType(
serialized_name="lastAgentUpgradeErrorDetails",
)
disc_in_mage_rcm.last_agent_upgrade_type = AAZStrType(
serialized_name="lastAgentUpgradeType",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_id = AAZStrType(
serialized_name="lastRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_in_seconds = AAZIntType(
serialized_name="lastRpoInSeconds",
flags={"read_only": True},
)
disc_in_mage_rcm.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_rcm.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm.primary_nic_ip_address = AAZStrType(
serialized_name="primaryNicIpAddress",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_id = AAZStrType(
serialized_name="processServerId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_name = AAZStrType(
serialized_name="processServerName",
flags={"read_only": True},
)
disc_in_mage_rcm.processor_core_count = AAZIntType(
serialized_name="processorCoreCount",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.run_as_account_id = AAZStrType(
serialized_name="runAsAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.target_availability_set_id = AAZStrType(
serialized_name="targetAvailabilitySetId",
)
disc_in_mage_rcm.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_rcm.target_boot_diagnostics_storage_account_id = AAZStrType(
serialized_name="targetBootDiagnosticsStorageAccountId",
)
disc_in_mage_rcm.target_generation = AAZStrType(
serialized_name="targetGeneration",
flags={"read_only": True},
)
disc_in_mage_rcm.target_location = AAZStrType(
serialized_name="targetLocation",
)
disc_in_mage_rcm.target_network_id = AAZStrType(
serialized_name="targetNetworkId",
)
disc_in_mage_rcm.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_rcm.target_resource_group_id = AAZStrType(
serialized_name="targetResourceGroupId",
)
disc_in_mage_rcm.target_vm_name = AAZStrType(
serialized_name="targetVmName",
)
disc_in_mage_rcm.target_vm_size = AAZStrType(
serialized_name="targetVmSize",
)
disc_in_mage_rcm.test_network_id = AAZStrType(
serialized_name="testNetworkId",
)
disc_in_mage_rcm.vm_nics = AAZListType(
serialized_name="vmNics",
)
agent_upgrade_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details
agent_upgrade_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
last_agent_upgrade_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details
last_agent_upgrade_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_tags
error_tags.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_agent_release_date = AAZStrType(
serialized_name="latestAgentReleaseDate",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_FailoverCommitHelper._build_schema_in_mage_rcm_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_FailoverCommitHelper._build_schema_in_mage_rcm_sync_details_read(
_element.resync_details)
_element.seed_blob_uri = AAZStrType(
serialized_name="seedBlobUri",
flags={"read_only": True},
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
flags={"read_only": True},
)
_element.target_managed_disk_id = AAZStrType(
serialized_name="targetManagedDiskId",
flags={"read_only": True},
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics.Element
_element.is_primary_nic = AAZStrType(
serialized_name="isPrimaryNic",
)
_element.is_selected_for_failover = AAZStrType(
serialized_name="isSelectedForFailover",
)
_element.nic_id = AAZStrType(
serialized_name="nicId",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIPAddress",
flags={"read_only": True},
)
_element.source_ip_address_type = AAZStrType(
serialized_name="sourceIPAddressType",
flags={"read_only": True},
)
_element.source_network_id = AAZStrType(
serialized_name="sourceNetworkId",
flags={"read_only": True},
)
_element.source_subnet_name = AAZStrType(
serialized_name="sourceSubnetName",
flags={"read_only": True},
)
_element.target_ip_address = AAZStrType(
serialized_name="targetIPAddress",
)
_element.target_ip_address_type = AAZStrType(
serialized_name="targetIPAddressType",
)
_element.target_subnet_name = AAZStrType(
serialized_name="targetSubnetName",
)
_element.test_ip_address = AAZStrType(
serialized_name="testIPAddress",
)
_element.test_ip_address_type = AAZStrType(
serialized_name="testIPAddressType",
)
_element.test_subnet_name = AAZStrType(
serialized_name="testSubnetName",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.azure_virtual_machine_id = AAZStrType(
serialized_name="azureVirtualMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm_failback.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_start_time = AAZStrType(
serialized_name="lastPlannedFailoverStartTime",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_status = AAZStrType(
serialized_name="lastPlannedFailoverStatus",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_friendly_name = AAZStrType(
serialized_name="lastUsedPolicyFriendlyName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_id = AAZStrType(
serialized_name="lastUsedPolicyId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm_failback.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm_failback.reprotect_agent_id = AAZStrType(
serialized_name="reprotectAgentId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.reprotect_agent_name = AAZStrType(
serialized_name="reprotectAgentName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_data_store_name = AAZStrType(
serialized_name="targetDataStoreName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_vm_name = AAZStrType(
serialized_name="targetVmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.targetv_center_id = AAZStrType(
serialized_name="targetvCenterId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_nics = AAZListType(
serialized_name="vmNics",
)
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_uuid = AAZStrType(
serialized_name="diskUuid",
flags={"read_only": True},
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_FailoverCommitHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.last_sync_time = AAZStrType(
serialized_name="lastSyncTime",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_FailoverCommitHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.resync_details)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics.Element
_element.adapter_type = AAZStrType(
serialized_name="adapterType",
flags={"read_only": True},
)
_element.mac_address = AAZStrType(
serialized_name="macAddress",
flags={"read_only": True},
)
_element.network_name = AAZStrType(
serialized_name="networkName",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIpAddress",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectedItemsFailoverCommit(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 | 248 | 11 | 237 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 1 | 9 | 9 | 2,253 | 108 | 2,145 | 73 | 2,128 | 0 | 788 | 65 | 778 | 3 | 1 | 1 | 12 |
9,857 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_delete.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._delete.Delete.ReplicationProtectedItemsPurge
|
class ReplicationProtectedItemsPurge(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationProtectedItemsPurge(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 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 96 | 9 | 87 | 20 | 73 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,858 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protected_item/_create.py
|
azext_site_recovery.aaz.latest.site_recovery.protected_item._create.Create.ReplicationProtectedItemsCreate
|
class ReplicationProtectedItemsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"replicatedProtectedItemName", self.ctx.args.replicated_protected_item_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("policyId", AAZStrType, ".policy_id")
properties.set_prop("protectableItemId",
AAZStrType, ".protectable_item_id")
properties.set_prop("providerSpecificDetails",
AAZObjectType, ".provider_specific_details")
provider_specific_details = _builder.get(
".properties.providerSpecificDetails")
if provider_specific_details is not None:
provider_specific_details.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const("instanceType", "A2ACrossClusterMigration",
AAZStrType, ".a2a_cross_cluster_migration", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_details.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
provider_specific_details.discriminate_by(
"instanceType", "A2A")
provider_specific_details.discriminate_by(
"instanceType", "A2ACrossClusterMigration")
provider_specific_details.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_details.discriminate_by(
"instanceType", "InMage")
provider_specific_details.discriminate_by(
"instanceType", "InMageAzureV2")
provider_specific_details.discriminate_by(
"instanceType", "InMageRcm")
disc_a2_a = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}")
if disc_a2_a is not None:
_CreateHelper._build_schema_disk_encryption_info_create(disc_a2_a.set_prop(
"diskEncryptionInfo", AAZObjectType, ".a2a.disk_encryption_info"))
disc_a2_a.set_prop("fabricObjectId", AAZStrType, ".a2a.fabric_object_id", typ_kwargs={
"flags": {"required": True}})
disc_a2_a.set_prop(
"multiVmGroupId", AAZStrType, ".a2a.multi_vm_group_id")
disc_a2_a.set_prop("multiVmGroupName",
AAZStrType, ".a2a.multi_vm_group_name")
disc_a2_a.set_prop("recoveryAvailabilitySetId",
AAZStrType, ".a2a.recovery_availability_set_id")
disc_a2_a.set_prop("recoveryAvailabilityZone",
AAZStrType, ".a2a.recovery_availability_zone")
disc_a2_a.set_prop("recoveryAzureNetworkId",
AAZStrType, ".a2a.recovery_azure_network_id")
disc_a2_a.set_prop("recoveryBootDiagStorageAccountId",
AAZStrType, ".a2a.recovery_boot_diag_storage_account_id")
disc_a2_a.set_prop("recoveryCapacityReservationGroupId",
AAZStrType, ".a2a.recovery_capacity_reservation_group_id")
disc_a2_a.set_prop("recoveryCloudServiceId",
AAZStrType, ".a2a.recovery_cloud_service_id")
disc_a2_a.set_prop("recoveryContainerId",
AAZStrType, ".a2a.recovery_container_id")
disc_a2_a.set_prop(
"recoveryExtendedLocation", AAZObjectType, ".a2a.recovery_extended_location")
disc_a2_a.set_prop("recoveryProximityPlacementGroupId",
AAZStrType, ".a2a.recovery_proximity_placement_group_id")
disc_a2_a.set_prop("recoveryResourceGroupId",
AAZStrType, ".a2a.recovery_resource_group_id")
disc_a2_a.set_prop("recoverySubnetName",
AAZStrType, ".a2a.recovery_subnet_name")
disc_a2_a.set_prop("recoveryVirtualMachineScaleSetId",
AAZStrType, ".a2a.recovery_virtual_machine_scale_set_id")
disc_a2_a.set_prop("vmDisks", AAZListType, ".a2a.vm_disks")
disc_a2_a.set_prop(
"vmManagedDisks", AAZListType, ".a2a.vm_managed_disks")
recovery_extended_location = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.recoveryExtendedLocation")
if recovery_extended_location is not None:
recovery_extended_location.set_prop("name", AAZStrType, ".name", typ_kwargs={
"flags": {"required": True}})
recovery_extended_location.set_prop("type", AAZStrType, ".type", typ_kwargs={
"flags": {"required": True}})
vm_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks")
if vm_disks is not None:
vm_disks.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmDisks[]")
if _elements is not None:
_elements.set_prop("diskUri", AAZStrType, ".disk_uri", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("primaryStagingAzureStorageAccountId", AAZStrType,
".primary_staging_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("recoveryAzureStorageAccountId", AAZStrType,
".recovery_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
vm_managed_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmManagedDisks")
if vm_managed_disks is not None:
vm_managed_disks.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:A2A}.vmManagedDisks[]")
if _elements is not None:
_CreateHelper._build_schema_disk_encryption_info_create(_elements.set_prop(
"diskEncryptionInfo", AAZObjectType, ".disk_encryption_info"))
_elements.set_prop("diskId", AAZStrType, ".disk_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("primaryStagingAzureStorageAccountId", AAZStrType,
".primary_staging_azure_storage_account_id", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("recoveryDiskEncryptionSetId",
AAZStrType, ".recovery_disk_encryption_set_id")
_elements.set_prop("recoveryReplicaDiskAccountType",
AAZStrType, ".recovery_replica_disk_account_type")
_elements.set_prop("recoveryResourceGroupId", AAZStrType, ".recovery_resource_group_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("recoveryTargetDiskAccountType",
AAZStrType, ".recovery_target_disk_account_type")
disc_a2_a_cross_cluster_migration = _builder.get(
".properties.providerSpecificDetails{instanceType:A2ACrossClusterMigration}")
if disc_a2_a_cross_cluster_migration is not None:
disc_a2_a_cross_cluster_migration.set_prop(
"fabricObjectId", AAZStrType, ".a2a_cross_cluster_migration.fabric_object_id")
disc_a2_a_cross_cluster_migration.set_prop(
"recoveryContainerId", AAZStrType, ".a2a_cross_cluster_migration.recovery_container_id")
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop(
"diskEncryptionSetId", AAZStrType, ".hyper_v_replica_azure.disk_encryption_set_id")
disc_hyper_v_replica_azure.set_prop(
"diskType", AAZStrType, ".hyper_v_replica_azure.disk_type")
disc_hyper_v_replica_azure.set_prop(
"disksToInclude", AAZListType, ".hyper_v_replica_azure.disks_to_include")
disc_hyper_v_replica_azure.set_prop(
"disksToIncludeForManagedDisks", AAZListType, ".hyper_v_replica_azure.disks_to_include_for_managed_disks")
disc_hyper_v_replica_azure.set_prop(
"enableRdpOnTargetOption", AAZStrType, ".hyper_v_replica_azure.enable_rdp_on_target_option")
disc_hyper_v_replica_azure.set_prop(
"hvHostVmId", AAZStrType, ".hyper_v_replica_azure.hv_host_vm_id")
disc_hyper_v_replica_azure.set_prop(
"licenseType", AAZStrType, ".hyper_v_replica_azure.license_type")
disc_hyper_v_replica_azure.set_prop(
"logStorageAccountId", AAZStrType, ".hyper_v_replica_azure.log_storage_account_id")
disc_hyper_v_replica_azure.set_prop(
"osType", AAZStrType, ".hyper_v_replica_azure.os_type")
disc_hyper_v_replica_azure.set_prop(
"seedManagedDiskTags", AAZDictType, ".hyper_v_replica_azure.seed_managed_disk_tags")
disc_hyper_v_replica_azure.set_prop(
"sqlServerLicenseType", AAZStrType, ".hyper_v_replica_azure.sql_server_license_type")
disc_hyper_v_replica_azure.set_prop(
"targetAvailabilitySetId", AAZStrType, ".hyper_v_replica_azure.target_availability_set_id")
disc_hyper_v_replica_azure.set_prop(
"targetAvailabilityZone", AAZStrType, ".hyper_v_replica_azure.target_availability_zone")
disc_hyper_v_replica_azure.set_prop(
"targetAzureNetworkId", AAZStrType, ".hyper_v_replica_azure.target_azure_network_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureSubnetId", AAZStrType, ".hyper_v_replica_azure.target_azure_subnet_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureV1ResourceGroupId", AAZStrType, ".hyper_v_replica_azure.target_azure_v1_resource_group_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureV2ResourceGroupId", AAZStrType, ".hyper_v_replica_azure.target_azure_v2_resource_group_id")
disc_hyper_v_replica_azure.set_prop(
"targetAzureVmName", AAZStrType, ".hyper_v_replica_azure.target_azure_vm_name")
disc_hyper_v_replica_azure.set_prop(
"targetManagedDiskTags", AAZDictType, ".hyper_v_replica_azure.target_managed_disk_tags")
disc_hyper_v_replica_azure.set_prop(
"targetNicTags", AAZDictType, ".hyper_v_replica_azure.target_nic_tags")
disc_hyper_v_replica_azure.set_prop(
"targetProximityPlacementGroupId", AAZStrType, ".hyper_v_replica_azure.target_proximity_placement_group_id")
disc_hyper_v_replica_azure.set_prop(
"targetStorageAccountId", AAZStrType, ".hyper_v_replica_azure.target_storage_account_id")
disc_hyper_v_replica_azure.set_prop(
"targetVmSize", AAZStrType, ".hyper_v_replica_azure.target_vm_size")
disc_hyper_v_replica_azure.set_prop(
"targetVmTags", AAZDictType, ".hyper_v_replica_azure.target_vm_tags")
disc_hyper_v_replica_azure.set_prop(
"useManagedDisks", AAZStrType, ".hyper_v_replica_azure.use_managed_disks")
disc_hyper_v_replica_azure.set_prop(
"useManagedDisksForReplication", AAZStrType, ".hyper_v_replica_azure.use_managed_disks_for_replication")
disc_hyper_v_replica_azure.set_prop(
"vhdId", AAZStrType, ".hyper_v_replica_azure.vhd_id")
disc_hyper_v_replica_azure.set_prop(
"vmName", AAZStrType, ".hyper_v_replica_azure.vm_name")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZStrType, ".")
disks_to_include_for_managed_disks = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.disksToIncludeForManagedDisks")
if disks_to_include_for_managed_disks is not None:
disks_to_include_for_managed_disks.set_elements(
AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.disksToIncludeForManagedDisks[]")
if _elements is not None:
_elements.set_prop("diskEncryptionSetId",
AAZStrType, ".disk_encryption_set_id")
_elements.set_prop("diskId", AAZStrType, ".disk_id")
_elements.set_prop("diskType", AAZStrType, ".disk_type")
_elements.set_prop("logStorageAccountId",
AAZStrType, ".log_storage_account_id")
seed_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.seedManagedDiskTags")
if seed_managed_disk_tags is not None:
seed_managed_disk_tags.set_elements(AAZStrType, ".")
target_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.targetManagedDiskTags")
if target_managed_disk_tags is not None:
target_managed_disk_tags.set_elements(AAZStrType, ".")
target_nic_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.targetNicTags")
if target_nic_tags is not None:
target_nic_tags.set_elements(AAZStrType, ".")
target_vm_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:HyperVReplicaAzure}.targetVmTags")
if target_vm_tags is not None:
target_vm_tags.set_elements(AAZStrType, ".")
disc_in_mage = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}")
if disc_in_mage is not None:
disc_in_mage.set_prop(
"datastoreName", AAZStrType, ".in_mage.datastore_name")
disc_in_mage.set_prop(
"diskExclusionInput", AAZObjectType, ".in_mage.disk_exclusion_input")
disc_in_mage.set_prop(
"disksToInclude", AAZListType, ".in_mage.disks_to_include")
disc_in_mage.set_prop("masterTargetId", AAZStrType, ".in_mage.master_target_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("multiVmGroupId", AAZStrType, ".in_mage.multi_vm_group_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("multiVmGroupName", AAZStrType, ".in_mage.multi_vm_group_name", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("processServerId", AAZStrType, ".in_mage.process_server_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop("retentionDrive", AAZStrType, ".in_mage.retention_drive", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop(
"runAsAccountId", AAZStrType, ".in_mage.run_as_account_id")
disc_in_mage.set_prop(
"vmFriendlyName", AAZStrType, ".in_mage.vm_friendly_name")
disk_exclusion_input = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput")
if disk_exclusion_input is not None:
disk_exclusion_input.set_prop(
"diskSignatureOptions", AAZListType, ".disk_signature_options")
disk_exclusion_input.set_prop(
"volumeOptions", AAZListType, ".volume_options")
disk_signature_options = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.diskSignatureOptions")
if disk_signature_options is not None:
disk_signature_options.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.diskSignatureOptions[]")
if _elements is not None:
_elements.set_prop(
"diskSignature", AAZStrType, ".disk_signature")
volume_options = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.volumeOptions")
if volume_options is not None:
volume_options.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.diskExclusionInput.volumeOptions[]")
if _elements is not None:
_elements.set_prop("onlyExcludeIfSingleVolume",
AAZStrType, ".only_exclude_if_single_volume")
_elements.set_prop("volumeLabel", AAZStrType, ".volume_label")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMage}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZStrType, ".")
disc_in_mage_azure_v2 = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}")
if disc_in_mage_azure_v2 is not None:
disc_in_mage_azure_v2.set_prop(
"diskEncryptionSetId", AAZStrType, ".in_mage_azure_v2.disk_encryption_set_id")
disc_in_mage_azure_v2.set_prop(
"diskType", AAZStrType, ".in_mage_azure_v2.disk_type")
disc_in_mage_azure_v2.set_prop(
"disksToInclude", AAZListType, ".in_mage_azure_v2.disks_to_include")
disc_in_mage_azure_v2.set_prop(
"enableRdpOnTargetOption", AAZStrType, ".in_mage_azure_v2.enable_rdp_on_target_option")
disc_in_mage_azure_v2.set_prop(
"licenseType", AAZStrType, ".in_mage_azure_v2.license_type")
disc_in_mage_azure_v2.set_prop(
"logStorageAccountId", AAZStrType, ".in_mage_azure_v2.log_storage_account_id")
disc_in_mage_azure_v2.set_prop(
"masterTargetId", AAZStrType, ".in_mage_azure_v2.master_target_id")
disc_in_mage_azure_v2.set_prop(
"multiVmGroupId", AAZStrType, ".in_mage_azure_v2.multi_vm_group_id")
disc_in_mage_azure_v2.set_prop(
"multiVmGroupName", AAZStrType, ".in_mage_azure_v2.multi_vm_group_name")
disc_in_mage_azure_v2.set_prop(
"processServerId", AAZStrType, ".in_mage_azure_v2.process_server_id")
disc_in_mage_azure_v2.set_prop(
"runAsAccountId", AAZStrType, ".in_mage_azure_v2.run_as_account_id")
disc_in_mage_azure_v2.set_prop(
"seedManagedDiskTags", AAZDictType, ".in_mage_azure_v2.seed_managed_disk_tags")
disc_in_mage_azure_v2.set_prop(
"sqlServerLicenseType", AAZStrType, ".in_mage_azure_v2.sql_server_license_type")
disc_in_mage_azure_v2.set_prop(
"storageAccountId", AAZStrType, ".in_mage_azure_v2.storage_account_id")
disc_in_mage_azure_v2.set_prop(
"targetAvailabilitySetId", AAZStrType, ".in_mage_azure_v2.target_availability_set_id")
disc_in_mage_azure_v2.set_prop(
"targetAvailabilityZone", AAZStrType, ".in_mage_azure_v2.target_availability_zone")
disc_in_mage_azure_v2.set_prop(
"targetAzureNetworkId", AAZStrType, ".in_mage_azure_v2.target_azure_network_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureSubnetId", AAZStrType, ".in_mage_azure_v2.target_azure_subnet_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureV1ResourceGroupId", AAZStrType, ".in_mage_azure_v2.target_azure_v1_resource_group_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureV2ResourceGroupId", AAZStrType, ".in_mage_azure_v2.target_azure_v2_resource_group_id")
disc_in_mage_azure_v2.set_prop(
"targetAzureVmName", AAZStrType, ".in_mage_azure_v2.target_azure_vm_name")
disc_in_mage_azure_v2.set_prop(
"targetManagedDiskTags", AAZDictType, ".in_mage_azure_v2.target_managed_disk_tags")
disc_in_mage_azure_v2.set_prop(
"targetNicTags", AAZDictType, ".in_mage_azure_v2.target_nic_tags")
disc_in_mage_azure_v2.set_prop(
"targetProximityPlacementGroupId", AAZStrType, ".in_mage_azure_v2.target_proximity_placement_group_id")
disc_in_mage_azure_v2.set_prop(
"targetVmSize", AAZStrType, ".in_mage_azure_v2.target_vm_size")
disc_in_mage_azure_v2.set_prop(
"targetVmTags", AAZDictType, ".in_mage_azure_v2.target_vm_tags")
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.disksToInclude[]")
if _elements is not None:
_elements.set_prop("diskEncryptionSetId",
AAZStrType, ".disk_encryption_set_id")
_elements.set_prop("diskId", AAZStrType, ".disk_id")
_elements.set_prop("diskType", AAZStrType, ".disk_type")
_elements.set_prop("logStorageAccountId",
AAZStrType, ".log_storage_account_id")
seed_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.seedManagedDiskTags")
if seed_managed_disk_tags is not None:
seed_managed_disk_tags.set_elements(AAZStrType, ".")
target_managed_disk_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.targetManagedDiskTags")
if target_managed_disk_tags is not None:
target_managed_disk_tags.set_elements(AAZStrType, ".")
target_nic_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.targetNicTags")
if target_nic_tags is not None:
target_nic_tags.set_elements(AAZStrType, ".")
target_vm_tags = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageAzureV2}.targetVmTags")
if target_vm_tags is not None:
target_vm_tags.set_elements(AAZStrType, ".")
disc_in_mage_rcm = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop(
"disksDefault", AAZObjectType, ".in_mage_rcm.disks_default")
disc_in_mage_rcm.set_prop(
"disksToInclude", AAZListType, ".in_mage_rcm.disks_to_include")
disc_in_mage_rcm.set_prop("fabricDiscoveryMachineId", AAZStrType,
".in_mage_rcm.fabric_discovery_machine_id", typ_kwargs={"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"licenseType", AAZStrType, ".in_mage_rcm.license_type")
disc_in_mage_rcm.set_prop(
"multiVmGroupName", AAZStrType, ".in_mage_rcm.multi_vm_group_name")
disc_in_mage_rcm.set_prop("processServerId", AAZStrType, ".in_mage_rcm.process_server_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"runAsAccountId", AAZStrType, ".in_mage_rcm.run_as_account_id")
disc_in_mage_rcm.set_prop(
"targetAvailabilitySetId", AAZStrType, ".in_mage_rcm.target_availability_set_id")
disc_in_mage_rcm.set_prop(
"targetAvailabilityZone", AAZStrType, ".in_mage_rcm.target_availability_zone")
disc_in_mage_rcm.set_prop("targetBootDiagnosticsStorageAccountId",
AAZStrType, ".in_mage_rcm.target_boot_diagnostics_storage_account_id")
disc_in_mage_rcm.set_prop(
"targetNetworkId", AAZStrType, ".in_mage_rcm.target_network_id")
disc_in_mage_rcm.set_prop(
"targetProximityPlacementGroupId", AAZStrType, ".in_mage_rcm.target_proximity_placement_group_id")
disc_in_mage_rcm.set_prop("targetResourceGroupId", AAZStrType, ".in_mage_rcm.target_resource_group_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop(
"targetSubnetName", AAZStrType, ".in_mage_rcm.target_subnet_name")
disc_in_mage_rcm.set_prop(
"targetVmName", AAZStrType, ".in_mage_rcm.target_vm_name")
disc_in_mage_rcm.set_prop(
"targetVmSize", AAZStrType, ".in_mage_rcm.target_vm_size")
disc_in_mage_rcm.set_prop(
"testNetworkId", AAZStrType, ".in_mage_rcm.test_network_id")
disc_in_mage_rcm.set_prop(
"testSubnetName", AAZStrType, ".in_mage_rcm.test_subnet_name")
disks_default = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}.disksDefault")
if disks_default is not None:
disks_default.set_prop(
"diskEncryptionSetId", AAZStrType, ".disk_encryption_set_id")
disks_default.set_prop("diskType", AAZStrType, ".disk_type", typ_kwargs={
"flags": {"required": True}})
disks_default.set_prop("logStorageAccountId", AAZStrType, ".log_storage_account_id", typ_kwargs={
"flags": {"required": True}})
disks_to_include = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}.disksToInclude")
if disks_to_include is not None:
disks_to_include.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.providerSpecificDetails{instanceType:InMageRcm}.disksToInclude[]")
if _elements is not None:
_elements.set_prop("diskEncryptionSetId",
AAZStrType, ".disk_encryption_set_id")
_elements.set_prop("diskId", AAZStrType, ".disk_id", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("diskType", AAZStrType, ".disk_type", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("logStorageAccountId", AAZStrType, ".log_storage_account_id", 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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.active_location = AAZStrType(
serialized_name="activeLocation",
)
properties.allowed_operations = AAZListType(
serialized_name="allowedOperations",
)
properties.current_scenario = AAZObjectType(
serialized_name="currentScenario",
)
properties.event_correlation_id = AAZStrType(
serialized_name="eventCorrelationId",
)
properties.failover_health = AAZStrType(
serialized_name="failoverHealth",
)
properties.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.last_successful_failover_time = AAZStrType(
serialized_name="lastSuccessfulFailoverTime",
)
properties.last_successful_test_failover_time = AAZStrType(
serialized_name="lastSuccessfulTestFailoverTime",
)
properties.policy_friendly_name = AAZStrType(
serialized_name="policyFriendlyName",
)
properties.policy_id = AAZStrType(
serialized_name="policyId",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_fabric_provider = AAZStrType(
serialized_name="primaryFabricProvider",
)
properties.primary_protection_container_friendly_name = AAZStrType(
serialized_name="primaryProtectionContainerFriendlyName",
)
properties.protectable_item_id = AAZStrType(
serialized_name="protectableItemId",
)
properties.protected_item_type = AAZStrType(
serialized_name="protectedItemType",
)
properties.protection_state = AAZStrType(
serialized_name="protectionState",
)
properties.protection_state_description = AAZStrType(
serialized_name="protectionStateDescription",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.recovery_container_id = AAZStrType(
serialized_name="recoveryContainerId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_fabric_id = AAZStrType(
serialized_name="recoveryFabricId",
)
properties.recovery_protection_container_friendly_name = AAZStrType(
serialized_name="recoveryProtectionContainerFriendlyName",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_health = AAZStrType(
serialized_name="replicationHealth",
)
properties.switch_provider_state = AAZStrType(
serialized_name="switchProviderState",
)
properties.switch_provider_state_description = AAZStrType(
serialized_name="switchProviderStateDescription",
)
properties.test_failover_state = AAZStrType(
serialized_name="testFailoverState",
)
properties.test_failover_state_description = AAZStrType(
serialized_name="testFailoverStateDescription",
)
allowed_operations = cls._schema_on_200.properties.allowed_operations
allowed_operations.Element = AAZStrType()
current_scenario = cls._schema_on_200.properties.current_scenario
current_scenario.job_id = AAZStrType(
serialized_name="jobId",
)
current_scenario.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
current_scenario.start_time = AAZStrType(
serialized_name="startTime",
)
health_errors = cls._schema_on_200.properties.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.agent_certificate_expiry_date = AAZStrType(
serialized_name="agentCertificateExpiryDate",
flags={"read_only": True},
)
disc_a2_a.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_a2_a.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_a2_a.auto_protection_of_data_disk = AAZStrType(
serialized_name="autoProtectionOfDataDisk",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.initial_primary_extended_location = AAZObjectType(
serialized_name="initialPrimaryExtendedLocation",
)
_CreateHelper._build_schema_extended_location_read(
disc_a2_a.initial_primary_extended_location)
disc_a2_a.initial_primary_fabric_location = AAZStrType(
serialized_name="initialPrimaryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_primary_zone = AAZStrType(
serialized_name="initialPrimaryZone",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_extended_location = AAZObjectType(
serialized_name="initialRecoveryExtendedLocation",
)
_CreateHelper._build_schema_extended_location_read(
disc_a2_a.initial_recovery_extended_location)
disc_a2_a.initial_recovery_fabric_location = AAZStrType(
serialized_name="initialRecoveryFabricLocation",
flags={"read_only": True},
)
disc_a2_a.initial_recovery_zone = AAZStrType(
serialized_name="initialRecoveryZone",
flags={"read_only": True},
)
disc_a2_a.is_replication_agent_certificate_update_required = AAZBoolType(
serialized_name="isReplicationAgentCertificateUpdateRequired",
)
disc_a2_a.is_replication_agent_update_required = AAZBoolType(
serialized_name="isReplicationAgentUpdateRequired",
)
disc_a2_a.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_a2_a.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_a2_a.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a.management_id = AAZStrType(
serialized_name="managementId",
)
disc_a2_a.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
disc_a2_a.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
disc_a2_a.multi_vm_group_create_option = AAZStrType(
serialized_name="multiVmGroupCreateOption",
)
disc_a2_a.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_a2_a.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_a2_a.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a.primary_availability_zone = AAZStrType(
serialized_name="primaryAvailabilityZone",
)
disc_a2_a.primary_extended_location = AAZObjectType(
serialized_name="primaryExtendedLocation",
)
_CreateHelper._build_schema_extended_location_read(
disc_a2_a.primary_extended_location)
disc_a2_a.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_a2_a.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_a2_a.recovery_availability_set = AAZStrType(
serialized_name="recoveryAvailabilitySet",
)
disc_a2_a.recovery_availability_zone = AAZStrType(
serialized_name="recoveryAvailabilityZone",
)
disc_a2_a.recovery_azure_generation = AAZStrType(
serialized_name="recoveryAzureGeneration",
flags={"read_only": True},
)
disc_a2_a.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_a2_a.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_a2_a.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_a2_a.recovery_boot_diag_storage_account_id = AAZStrType(
serialized_name="recoveryBootDiagStorageAccountId",
)
disc_a2_a.recovery_capacity_reservation_group_id = AAZStrType(
serialized_name="recoveryCapacityReservationGroupId",
)
disc_a2_a.recovery_cloud_service = AAZStrType(
serialized_name="recoveryCloudService",
)
disc_a2_a.recovery_extended_location = AAZObjectType(
serialized_name="recoveryExtendedLocation",
)
_CreateHelper._build_schema_extended_location_read(
disc_a2_a.recovery_extended_location)
disc_a2_a.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_a2_a.recovery_fabric_object_id = AAZStrType(
serialized_name="recoveryFabricObjectId",
)
disc_a2_a.recovery_proximity_placement_group_id = AAZStrType(
serialized_name="recoveryProximityPlacementGroupId",
)
disc_a2_a.recovery_virtual_machine_scale_set_id = AAZStrType(
serialized_name="recoveryVirtualMachineScaleSetId",
)
disc_a2_a.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_a2_a.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_a2_a.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_a2_a.test_failover_recovery_fabric_object_id = AAZStrType(
serialized_name="testFailoverRecoveryFabricObjectId",
)
disc_a2_a.tfo_azure_vm_name = AAZStrType(
serialized_name="tfoAzureVMName",
)
disc_a2_a.unprotected_disks = AAZListType(
serialized_name="unprotectedDisks",
)
disc_a2_a.vm_encryption_type = AAZStrType(
serialized_name="vmEncryptionType",
flags={"read_only": True},
)
disc_a2_a.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_a2_a.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_a2_a.vm_synced_config_details = AAZObjectType(
serialized_name="vmSyncedConfigDetails",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.disk_uri = AAZStrType(
serialized_name="diskUri",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_azure_storage_account_id = AAZStrType(
serialized_name="primaryDiskAzureStorageAccountId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_azure_storage_account_id = AAZStrType(
serialized_name="recoveryAzureStorageAccountId",
)
_element.recovery_disk_uri = AAZStrType(
serialized_name="recoveryDiskUri",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element
_element.allowed_disk_level_operation = AAZListType(
serialized_name="allowedDiskLevelOperation",
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
)
_element.data_pending_in_staging_storage_account_in_mb = AAZFloatType(
serialized_name="dataPendingInStagingStorageAccountInMB",
)
_element.dek_key_vault_arm_id = AAZStrType(
serialized_name="dekKeyVaultArmId",
)
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_state = AAZStrType(
serialized_name="diskState",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.failover_disk_name = AAZStrType(
serialized_name="failoverDiskName",
)
_element.is_disk_encrypted = AAZBoolType(
serialized_name="isDiskEncrypted",
)
_element.is_disk_key_encrypted = AAZBoolType(
serialized_name="isDiskKeyEncrypted",
)
_element.kek_key_vault_arm_id = AAZStrType(
serialized_name="kekKeyVaultArmId",
)
_element.key_identifier = AAZStrType(
serialized_name="keyIdentifier",
)
_element.monitoring_job_type = AAZStrType(
serialized_name="monitoringJobType",
)
_element.monitoring_percentage_completion = AAZIntType(
serialized_name="monitoringPercentageCompletion",
)
_element.primary_disk_encryption_set_id = AAZStrType(
serialized_name="primaryDiskEncryptionSetId",
)
_element.primary_staging_azure_storage_account_id = AAZStrType(
serialized_name="primaryStagingAzureStorageAccountId",
)
_element.recovery_disk_encryption_set_id = AAZStrType(
serialized_name="recoveryDiskEncryptionSetId",
)
_element.recovery_orignal_target_disk_id = AAZStrType(
serialized_name="recoveryOrignalTargetDiskId",
)
_element.recovery_replica_disk_account_type = AAZStrType(
serialized_name="recoveryReplicaDiskAccountType",
)
_element.recovery_replica_disk_id = AAZStrType(
serialized_name="recoveryReplicaDiskId",
)
_element.recovery_resource_group_id = AAZStrType(
serialized_name="recoveryResourceGroupId",
)
_element.recovery_target_disk_account_type = AAZStrType(
serialized_name="recoveryTargetDiskAccountType",
)
_element.recovery_target_disk_id = AAZStrType(
serialized_name="recoveryTargetDiskId",
)
_element.resync_required = AAZBoolType(
serialized_name="resyncRequired",
)
_element.secret_identifier = AAZStrType(
serialized_name="secretIdentifier",
)
_element.tfo_disk_name = AAZStrType(
serialized_name="tfoDiskName",
)
allowed_disk_level_operation = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").protected_managed_disks.Element.allowed_disk_level_operation
allowed_disk_level_operation.Element = AAZStrType()
unprotected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks
unprotected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").unprotected_disks.Element
_element.disk_auto_protection_status = AAZStrType(
serialized_name="diskAutoProtectionStatus",
)
_element.disk_lun_id = AAZIntType(
serialized_name="diskLunId",
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_nics
vm_nics.Element = AAZObjectType()
_CreateHelper._build_schema_vm_nic_details_read(vm_nics.Element)
vm_synced_config_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details
vm_synced_config_details.input_endpoints = AAZListType(
serialized_name="inputEndpoints",
)
vm_synced_config_details.tags = AAZDictType()
input_endpoints = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints
input_endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.input_endpoints.Element
_element.endpoint_name = AAZStrType(
serialized_name="endpointName",
)
_element.private_port = AAZIntType(
serialized_name="privatePort",
)
_element.protocol = AAZStrType()
_element.public_port = AAZIntType(
serialized_name="publicPort",
)
tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A").vm_synced_config_details.tags
tags.Element = AAZStrType()
disc_a2_a_cross_cluster_migration = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2ACrossClusterMigration")
disc_a2_a_cross_cluster_migration.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a_cross_cluster_migration.lifecycle_id = AAZStrType(
serialized_name="lifecycleId",
)
disc_a2_a_cross_cluster_migration.os_type = AAZStrType(
serialized_name="osType",
)
disc_a2_a_cross_cluster_migration.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_a2_a_cross_cluster_migration.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_a2_a_cross_cluster_migration.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_CreateHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012.initial_replication_details)
disc_hyper_v_replica2012.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_CreateHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012").vm_nics
vm_nics.Element = AAZObjectType()
_CreateHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_CreateHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica2012_r2.initial_replication_details)
disc_hyper_v_replica2012_r2.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica2012_r2.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica2012_r2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica2012_r2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica2012_r2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica2012_r2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_CreateHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2").vm_nics
vm_nics.Element = AAZObjectType()
_CreateHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.azure_vm_disk_details = AAZListType(
serialized_name="azureVmDiskDetails",
)
disc_hyper_v_replica_azure.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_CreateHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_azure.initial_replication_details)
disc_hyper_v_replica_azure.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_hyper_v_replica_azure.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_azure.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_hyper_v_replica_azure.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_hyper_v_replica_azure.o_s_details = AAZObjectType(
serialized_name="oSDetails",
)
disc_hyper_v_replica_azure.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_hyper_v_replica_azure.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_hyper_v_replica_azure.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_hyper_v_replica_azure.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_hyper_v_replica_azure.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_hyper_v_replica_azure.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_hyper_v_replica_azure.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVmName",
)
disc_hyper_v_replica_azure.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_hyper_v_replica_azure.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_hyper_v_replica_azure.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_hyper_v_replica_azure.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_hyper_v_replica_azure.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_hyper_v_replica_azure.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_hyper_v_replica_azure.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_hyper_v_replica_azure.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_hyper_v_replica_azure.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_hyper_v_replica_azure.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_hyper_v_replica_azure.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_hyper_v_replica_azure.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_hyper_v_replica_azure.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_hyper_v_replica_azure.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_azure.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_azure.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_azure.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_CreateHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
o_s_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").o_s_details
o_s_details.o_s_major_version = AAZStrType(
serialized_name="oSMajorVersion",
)
o_s_details.o_s_minor_version = AAZStrType(
serialized_name="oSMinorVersion",
)
o_s_details.o_s_version = AAZStrType(
serialized_name="oSVersion",
)
o_s_details.os_edition = AAZStrType(
serialized_name="osEdition",
)
o_s_details.os_type = AAZStrType(
serialized_name="osType",
)
o_s_details.product_type = AAZStrType(
serialized_name="productType",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").target_vm_tags
target_vm_tags.Element = AAZStrType()
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure").vm_nics
vm_nics.Element = AAZObjectType()
_CreateHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_hyper_v_replica_base_replication_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails")
disc_hyper_v_replica_base_replication_details.initial_replication_details = AAZObjectType(
serialized_name="initialReplicationDetails",
)
_CreateHelper._build_schema_initial_replication_details_read(
disc_hyper_v_replica_base_replication_details.initial_replication_details)
disc_hyper_v_replica_base_replication_details.last_replicated_time = AAZStrType(
serialized_name="lastReplicatedTime",
)
disc_hyper_v_replica_base_replication_details.v_m_disk_details = AAZListType(
serialized_name="vMDiskDetails",
)
disc_hyper_v_replica_base_replication_details.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_hyper_v_replica_base_replication_details.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_hyper_v_replica_base_replication_details.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
v_m_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").v_m_disk_details
v_m_disk_details.Element = AAZObjectType()
_CreateHelper._build_schema_disk_details_read(
v_m_disk_details.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseReplicationDetails").vm_nics
vm_nics.Element = AAZObjectType()
_CreateHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.active_site_type = AAZStrType(
serialized_name="activeSiteType",
)
disc_in_mage.agent_details = AAZObjectType(
serialized_name="agentDetails",
)
disc_in_mage.azure_storage_account_id = AAZStrType(
serialized_name="azureStorageAccountId",
)
disc_in_mage.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage.consistency_points = AAZDictType(
serialized_name="consistencyPoints",
)
disc_in_mage.datastores = AAZListType()
disc_in_mage.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.os_details = AAZObjectType(
serialized_name="osDetails",
)
disc_in_mage.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage.reboot_after_update_status = AAZStrType(
serialized_name="rebootAfterUpdateStatus",
)
disc_in_mage.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_CreateHelper._build_schema_initial_replication_details_read(
disc_in_mage.resync_details)
disc_in_mage.retention_window_end = AAZStrType(
serialized_name="retentionWindowEnd",
)
disc_in_mage.retention_window_start = AAZStrType(
serialized_name="retentionWindowStart",
)
disc_in_mage.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").agent_details
agent_details.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
agent_details.agent_update_status = AAZStrType(
serialized_name="agentUpdateStatus",
)
agent_details.agent_version = AAZStrType(
serialized_name="agentVersion",
)
agent_details.post_update_reboot_status = AAZStrType(
serialized_name="postUpdateRebootStatus",
)
consistency_points = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").consistency_points
consistency_points.Element = AAZStrType()
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").datastores
datastores.Element = AAZStrType()
os_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").os_details
os_details.os_type = AAZStrType(
serialized_name="osType",
)
os_details.os_vhd_id = AAZStrType(
serialized_name="osVhdId",
)
os_details.vhd_name = AAZStrType(
serialized_name="vhdName",
)
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mb = AAZFloatType(
serialized_name="psDataInMB",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.source_data_in_mb = AAZFloatType(
serialized_name="sourceDataInMB",
)
_element.target_data_in_mb = AAZFloatType(
serialized_name="targetDataInMB",
)
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").validation_errors
validation_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage").vm_nics
vm_nics.Element = AAZObjectType()
_CreateHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_in_mage_azure_v2.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_in_mage_azure_v2.azure_vm_disk_details = AAZListType(
serialized_name="azureVMDiskDetails",
)
disc_in_mage_azure_v2.azure_vm_generation = AAZStrType(
serialized_name="azureVmGeneration",
)
disc_in_mage_azure_v2.compressed_data_rate_in_mb = AAZFloatType(
serialized_name="compressedDataRateInMB",
)
disc_in_mage_azure_v2.datastores = AAZListType()
disc_in_mage_azure_v2.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_in_mage_azure_v2.disk_resized = AAZStrType(
serialized_name="diskResized",
)
disc_in_mage_azure_v2.enable_rdp_on_target_option = AAZStrType(
serialized_name="enableRdpOnTargetOption",
)
disc_in_mage_azure_v2.firmware_type = AAZStrType(
serialized_name="firmwareType",
)
disc_in_mage_azure_v2.infrastructure_vm_id = AAZStrType(
serialized_name="infrastructureVmId",
)
disc_in_mage_azure_v2.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_in_mage_azure_v2.is_additional_stats_available = AAZBoolType(
serialized_name="isAdditionalStatsAvailable",
)
disc_in_mage_azure_v2.is_agent_update_required = AAZStrType(
serialized_name="isAgentUpdateRequired",
)
disc_in_mage_azure_v2.is_reboot_after_update_required = AAZStrType(
serialized_name="isRebootAfterUpdateRequired",
)
disc_in_mage_azure_v2.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_in_mage_azure_v2.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_azure_v2.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
disc_in_mage_azure_v2.last_update_received_time = AAZStrType(
serialized_name="lastUpdateReceivedTime",
)
disc_in_mage_azure_v2.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_azure_v2.master_target_id = AAZStrType(
serialized_name="masterTargetId",
)
disc_in_mage_azure_v2.multi_vm_group_id = AAZStrType(
serialized_name="multiVmGroupId",
)
disc_in_mage_azure_v2.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.os_disk_id = AAZStrType(
serialized_name="osDiskId",
)
disc_in_mage_azure_v2.os_type = AAZStrType(
serialized_name="osType",
)
disc_in_mage_azure_v2.os_version = AAZStrType(
serialized_name="osVersion",
)
disc_in_mage_azure_v2.process_server_id = AAZStrType(
serialized_name="processServerId",
)
disc_in_mage_azure_v2.process_server_name = AAZStrType(
serialized_name="processServerName",
)
disc_in_mage_azure_v2.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_azure_v2.protected_managed_disks = AAZListType(
serialized_name="protectedManagedDisks",
)
disc_in_mage_azure_v2.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
disc_in_mage_azure_v2.recovery_availability_set_id = AAZStrType(
serialized_name="recoveryAvailabilitySetId",
)
disc_in_mage_azure_v2.recovery_azure_log_storage_account_id = AAZStrType(
serialized_name="recoveryAzureLogStorageAccountId",
)
disc_in_mage_azure_v2.recovery_azure_resource_group_id = AAZStrType(
serialized_name="recoveryAzureResourceGroupId",
)
disc_in_mage_azure_v2.recovery_azure_storage_account = AAZStrType(
serialized_name="recoveryAzureStorageAccount",
)
disc_in_mage_azure_v2.recovery_azure_vm_name = AAZStrType(
serialized_name="recoveryAzureVMName",
)
disc_in_mage_azure_v2.recovery_azure_vm_size = AAZStrType(
serialized_name="recoveryAzureVMSize",
)
disc_in_mage_azure_v2.replica_id = AAZStrType(
serialized_name="replicaId",
)
disc_in_mage_azure_v2.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
disc_in_mage_azure_v2.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
disc_in_mage_azure_v2.seed_managed_disk_tags = AAZDictType(
serialized_name="seedManagedDiskTags",
)
disc_in_mage_azure_v2.selected_recovery_azure_network_id = AAZStrType(
serialized_name="selectedRecoveryAzureNetworkId",
)
disc_in_mage_azure_v2.selected_source_nic_id = AAZStrType(
serialized_name="selectedSourceNicId",
)
disc_in_mage_azure_v2.selected_tfo_azure_network_id = AAZStrType(
serialized_name="selectedTfoAzureNetworkId",
)
disc_in_mage_azure_v2.source_vm_cpu_count = AAZIntType(
serialized_name="sourceVmCpuCount",
)
disc_in_mage_azure_v2.source_vm_ram_size_in_mb = AAZIntType(
serialized_name="sourceVmRamSizeInMB",
)
disc_in_mage_azure_v2.sql_server_license_type = AAZStrType(
serialized_name="sqlServerLicenseType",
)
disc_in_mage_azure_v2.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_in_mage_azure_v2.switch_provider_details = AAZObjectType(
serialized_name="switchProviderDetails",
)
disc_in_mage_azure_v2.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_azure_v2.target_managed_disk_tags = AAZDictType(
serialized_name="targetManagedDiskTags",
)
disc_in_mage_azure_v2.target_nic_tags = AAZDictType(
serialized_name="targetNicTags",
)
disc_in_mage_azure_v2.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_azure_v2.target_vm_id = AAZStrType(
serialized_name="targetVmId",
)
disc_in_mage_azure_v2.target_vm_tags = AAZDictType(
serialized_name="targetVmTags",
)
disc_in_mage_azure_v2.total_data_transferred = AAZIntType(
serialized_name="totalDataTransferred",
)
disc_in_mage_azure_v2.total_progress_health = AAZStrType(
serialized_name="totalProgressHealth",
)
disc_in_mage_azure_v2.uncompressed_data_rate_in_mb = AAZFloatType(
serialized_name="uncompressedDataRateInMB",
)
disc_in_mage_azure_v2.use_managed_disks = AAZStrType(
serialized_name="useManagedDisks",
)
disc_in_mage_azure_v2.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_in_mage_azure_v2.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disc_in_mage_azure_v2.vhd_name = AAZStrType(
serialized_name="vhdName",
)
disc_in_mage_azure_v2.vm_id = AAZStrType(
serialized_name="vmId",
)
disc_in_mage_azure_v2.vm_nics = AAZListType(
serialized_name="vmNics",
)
disc_in_mage_azure_v2.vm_protection_state = AAZStrType(
serialized_name="vmProtectionState",
)
disc_in_mage_azure_v2.vm_protection_state_description = AAZStrType(
serialized_name="vmProtectionStateDescription",
)
azure_vm_disk_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").azure_vm_disk_details
azure_vm_disk_details.Element = AAZObjectType()
_CreateHelper._build_schema_azure_vm_disk_details_read(
azure_vm_disk_details.Element)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").datastores
datastores.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_disks.Element
_element.disk_capacity_in_bytes = AAZIntType(
serialized_name="diskCapacityInBytes",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_resized = AAZStrType(
serialized_name="diskResized",
)
_element.file_system_capacity_in_bytes = AAZIntType(
serialized_name="fileSystemCapacityInBytes",
)
_element.health_error_code = AAZStrType(
serialized_name="healthErrorCode",
)
_element.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
)
_element.progress_health = AAZStrType(
serialized_name="progressHealth",
)
_element.progress_status = AAZStrType(
serialized_name="progressStatus",
)
_element.protection_stage = AAZStrType(
serialized_name="protectionStage",
)
_element.ps_data_in_mega_bytes = AAZFloatType(
serialized_name="psDataInMegaBytes",
)
_element.resync_duration_in_seconds = AAZIntType(
serialized_name="resyncDurationInSeconds",
)
_element.resync_last15_minutes_transferred_bytes = AAZIntType(
serialized_name="resyncLast15MinutesTransferredBytes",
)
_element.resync_last_data_transfer_time_utc = AAZStrType(
serialized_name="resyncLastDataTransferTimeUTC",
)
_element.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
)
_element.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
)
_element.resync_required = AAZStrType(
serialized_name="resyncRequired",
)
_element.resync_start_time = AAZStrType(
serialized_name="resyncStartTime",
)
_element.resync_total_transferred_bytes = AAZIntType(
serialized_name="resyncTotalTransferredBytes",
)
_element.rpo_in_seconds = AAZIntType(
serialized_name="rpoInSeconds",
)
_element.seconds_to_take_switch_provider = AAZIntType(
serialized_name="secondsToTakeSwitchProvider",
)
_element.source_data_in_mega_bytes = AAZFloatType(
serialized_name="sourceDataInMegaBytes",
)
_element.target_data_in_mega_bytes = AAZFloatType(
serialized_name="targetDataInMegaBytes",
)
protected_managed_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks
protected_managed_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").protected_managed_disks.Element
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.replica_disk_type = AAZStrType(
serialized_name="replicaDiskType",
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
)
_element.target_disk_name = AAZStrType(
serialized_name="targetDiskName",
)
seed_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").seed_managed_disk_tags
seed_managed_disk_tags.Element = AAZStrType()
switch_provider_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
switch_provider_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").switch_provider_details
switch_provider_details.target_appliance_id = AAZStrType(
serialized_name="targetApplianceId",
flags={"read_only": True},
)
switch_provider_details.target_fabric_id = AAZStrType(
serialized_name="targetFabricId",
flags={"read_only": True},
)
switch_provider_details.target_resource_id = AAZStrType(
serialized_name="targetResourceId",
flags={"read_only": True},
)
switch_provider_details.target_vault_id = AAZStrType(
serialized_name="targetVaultId",
flags={"read_only": True},
)
target_managed_disk_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_managed_disk_tags
target_managed_disk_tags.Element = AAZStrType()
target_nic_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_nic_tags
target_nic_tags.Element = AAZStrType()
target_vm_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").target_vm_tags
target_vm_tags.Element = AAZStrType()
validation_errors = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").validation_errors
validation_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
validation_errors.Element)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2").vm_nics
vm_nics.Element = AAZObjectType()
_CreateHelper._build_schema_vm_nic_details_read(vm_nics.Element)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_upgrade_attempt_to_version = AAZStrType(
serialized_name="agentUpgradeAttemptToVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_blocking_error_details = AAZListType(
serialized_name="agentUpgradeBlockingErrorDetails",
)
disc_in_mage_rcm.agent_upgrade_job_id = AAZStrType(
serialized_name="agentUpgradeJobId",
flags={"read_only": True},
)
disc_in_mage_rcm.agent_upgrade_state = AAZStrType(
serialized_name="agentUpgradeState",
flags={"read_only": True},
)
disc_in_mage_rcm.allocated_memory_in_mb = AAZFloatType(
serialized_name="allocatedMemoryInMB",
flags={"read_only": True},
)
disc_in_mage_rcm.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm.discovery_type = AAZStrType(
serialized_name="discoveryType",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_discovery_machine_id = AAZStrType(
serialized_name="fabricDiscoveryMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm.failover_recovery_point_id = AAZStrType(
serialized_name="failoverRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.firmware_type = AAZStrType(
serialized_name="firmwareType",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm.is_last_upgrade_successful = AAZStrType(
serialized_name="isLastUpgradeSuccessful",
flags={"read_only": True},
)
disc_in_mage_rcm.last_agent_upgrade_error_details = AAZListType(
serialized_name="lastAgentUpgradeErrorDetails",
)
disc_in_mage_rcm.last_agent_upgrade_type = AAZStrType(
serialized_name="lastAgentUpgradeType",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_id = AAZStrType(
serialized_name="lastRecoveryPointId",
flags={"read_only": True},
)
disc_in_mage_rcm.last_recovery_point_received = AAZStrType(
serialized_name="lastRecoveryPointReceived",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_calculated_time = AAZStrType(
serialized_name="lastRpoCalculatedTime",
flags={"read_only": True},
)
disc_in_mage_rcm.last_rpo_in_seconds = AAZIntType(
serialized_name="lastRpoInSeconds",
flags={"read_only": True},
)
disc_in_mage_rcm.license_type = AAZStrType(
serialized_name="licenseType",
)
disc_in_mage_rcm.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm.primary_nic_ip_address = AAZStrType(
serialized_name="primaryNicIpAddress",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_id = AAZStrType(
serialized_name="processServerId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_server_name = AAZStrType(
serialized_name="processServerName",
flags={"read_only": True},
)
disc_in_mage_rcm.processor_core_count = AAZIntType(
serialized_name="processorCoreCount",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm.run_as_account_id = AAZStrType(
serialized_name="runAsAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.storage_account_id = AAZStrType(
serialized_name="storageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm.target_availability_set_id = AAZStrType(
serialized_name="targetAvailabilitySetId",
)
disc_in_mage_rcm.target_availability_zone = AAZStrType(
serialized_name="targetAvailabilityZone",
)
disc_in_mage_rcm.target_boot_diagnostics_storage_account_id = AAZStrType(
serialized_name="targetBootDiagnosticsStorageAccountId",
)
disc_in_mage_rcm.target_generation = AAZStrType(
serialized_name="targetGeneration",
flags={"read_only": True},
)
disc_in_mage_rcm.target_location = AAZStrType(
serialized_name="targetLocation",
)
disc_in_mage_rcm.target_network_id = AAZStrType(
serialized_name="targetNetworkId",
)
disc_in_mage_rcm.target_proximity_placement_group_id = AAZStrType(
serialized_name="targetProximityPlacementGroupId",
)
disc_in_mage_rcm.target_resource_group_id = AAZStrType(
serialized_name="targetResourceGroupId",
)
disc_in_mage_rcm.target_vm_name = AAZStrType(
serialized_name="targetVmName",
)
disc_in_mage_rcm.target_vm_size = AAZStrType(
serialized_name="targetVmSize",
)
disc_in_mage_rcm.test_network_id = AAZStrType(
serialized_name="testNetworkId",
)
disc_in_mage_rcm.vm_nics = AAZListType(
serialized_name="vmNics",
)
agent_upgrade_blocking_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details
agent_upgrade_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").agent_upgrade_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
last_agent_upgrade_error_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details
last_agent_upgrade_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").last_agent_upgrade_error_details.Element.error_tags
error_tags.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_agent_release_date = AAZStrType(
serialized_name="latestAgentReleaseDate",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_encryption_set_id = AAZStrType(
serialized_name="diskEncryptionSetId",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_CreateHelper._build_schema_in_mage_rcm_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_CreateHelper._build_schema_in_mage_rcm_sync_details_read(
_element.resync_details)
_element.seed_blob_uri = AAZStrType(
serialized_name="seedBlobUri",
flags={"read_only": True},
)
_element.seed_managed_disk_id = AAZStrType(
serialized_name="seedManagedDiskId",
flags={"read_only": True},
)
_element.target_managed_disk_id = AAZStrType(
serialized_name="targetManagedDiskId",
flags={"read_only": True},
)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm").vm_nics.Element
_element.is_primary_nic = AAZStrType(
serialized_name="isPrimaryNic",
)
_element.is_selected_for_failover = AAZStrType(
serialized_name="isSelectedForFailover",
)
_element.nic_id = AAZStrType(
serialized_name="nicId",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIPAddress",
flags={"read_only": True},
)
_element.source_ip_address_type = AAZStrType(
serialized_name="sourceIPAddressType",
flags={"read_only": True},
)
_element.source_network_id = AAZStrType(
serialized_name="sourceNetworkId",
flags={"read_only": True},
)
_element.source_subnet_name = AAZStrType(
serialized_name="sourceSubnetName",
flags={"read_only": True},
)
_element.target_ip_address = AAZStrType(
serialized_name="targetIPAddress",
)
_element.target_ip_address_type = AAZStrType(
serialized_name="targetIPAddressType",
)
_element.target_subnet_name = AAZStrType(
serialized_name="targetSubnetName",
)
_element.test_ip_address = AAZStrType(
serialized_name="testIPAddress",
)
_element.test_ip_address_type = AAZStrType(
serialized_name="testIPAddressType",
)
_element.test_subnet_name = AAZStrType(
serialized_name="testSubnetName",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.azure_virtual_machine_id = AAZStrType(
serialized_name="azureVirtualMachineId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.discovered_vm_details = AAZObjectType(
serialized_name="discoveredVmDetails",
)
disc_in_mage_rcm_failback.initial_replication_processed_bytes = AAZIntType(
serialized_name="initialReplicationProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_health = AAZStrType(
serialized_name="initialReplicationProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_progress_percentage = AAZIntType(
serialized_name="initialReplicationProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.initial_replication_transferred_bytes = AAZIntType(
serialized_name="initialReplicationTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.is_agent_registration_successful_after_failover = AAZBoolType(
serialized_name="isAgentRegistrationSuccessfulAfterFailover",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_start_time = AAZStrType(
serialized_name="lastPlannedFailoverStartTime",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_planned_failover_status = AAZStrType(
serialized_name="lastPlannedFailoverStatus",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_friendly_name = AAZStrType(
serialized_name="lastUsedPolicyFriendlyName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.last_used_policy_id = AAZStrType(
serialized_name="lastUsedPolicyId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.log_storage_account_id = AAZStrType(
serialized_name="logStorageAccountId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.mobility_agent_details = AAZObjectType(
serialized_name="mobilityAgentDetails",
)
disc_in_mage_rcm_failback.multi_vm_group_name = AAZStrType(
serialized_name="multiVmGroupName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.os_type = AAZStrType(
serialized_name="osType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_disks = AAZListType(
serialized_name="protectedDisks",
)
disc_in_mage_rcm_failback.reprotect_agent_id = AAZStrType(
serialized_name="reprotectAgentId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.reprotect_agent_name = AAZStrType(
serialized_name="reprotectAgentName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_processed_bytes = AAZIntType(
serialized_name="resyncProcessedBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_health = AAZStrType(
serialized_name="resyncProgressHealth",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_progress_percentage = AAZIntType(
serialized_name="resyncProgressPercentage",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_required = AAZStrType(
serialized_name="resyncRequired",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_state = AAZStrType(
serialized_name="resyncState",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.resync_transferred_bytes = AAZIntType(
serialized_name="resyncTransferredBytes",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_data_store_name = AAZStrType(
serialized_name="targetDataStoreName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.target_vm_name = AAZStrType(
serialized_name="targetVmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.targetv_center_id = AAZStrType(
serialized_name="targetvCenterId",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_nics = AAZListType(
serialized_name="vmNics",
)
discovered_vm_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details
discovered_vm_details.created_timestamp = AAZStrType(
serialized_name="createdTimestamp",
flags={"read_only": True},
)
discovered_vm_details.datastores = AAZListType(
flags={"read_only": True},
)
discovered_vm_details.ip_addresses = AAZListType(
serialized_name="ipAddresses",
flags={"read_only": True},
)
discovered_vm_details.is_deleted = AAZBoolType(
serialized_name="isDeleted",
flags={"read_only": True},
)
discovered_vm_details.last_discovery_time_in_utc = AAZStrType(
serialized_name="lastDiscoveryTimeInUtc",
flags={"read_only": True},
)
discovered_vm_details.os_name = AAZStrType(
serialized_name="osName",
flags={"read_only": True},
)
discovered_vm_details.power_status = AAZStrType(
serialized_name="powerStatus",
flags={"read_only": True},
)
discovered_vm_details.updated_timestamp = AAZStrType(
serialized_name="updatedTimestamp",
flags={"read_only": True},
)
discovered_vm_details.v_center_fqdn = AAZStrType(
serialized_name="vCenterFqdn",
flags={"read_only": True},
)
discovered_vm_details.v_center_id = AAZStrType(
serialized_name="vCenterId",
flags={"read_only": True},
)
discovered_vm_details.vm_fqdn = AAZStrType(
serialized_name="vmFqdn",
flags={"read_only": True},
)
discovered_vm_details.vmware_tools_status = AAZStrType(
serialized_name="vmwareToolsStatus",
flags={"read_only": True},
)
datastores = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.datastores
datastores.Element = AAZStrType()
ip_addresses = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").discovered_vm_details.ip_addresses
ip_addresses.Element = AAZStrType()
mobility_agent_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details
mobility_agent_details.agent_version_expiry_date = AAZStrType(
serialized_name="agentVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.driver_version = AAZStrType(
serialized_name="driverVersion",
flags={"read_only": True},
)
mobility_agent_details.driver_version_expiry_date = AAZStrType(
serialized_name="driverVersionExpiryDate",
flags={"read_only": True},
)
mobility_agent_details.is_upgradeable = AAZStrType(
serialized_name="isUpgradeable",
flags={"read_only": True},
)
mobility_agent_details.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
mobility_agent_details.latest_upgradable_version_without_reboot = AAZStrType(
serialized_name="latestUpgradableVersionWithoutReboot",
flags={"read_only": True},
)
mobility_agent_details.latest_version = AAZStrType(
serialized_name="latestVersion",
flags={"read_only": True},
)
mobility_agent_details.reasons_blocking_upgrade = AAZListType(
serialized_name="reasonsBlockingUpgrade",
flags={"read_only": True},
)
mobility_agent_details.version = AAZStrType(
flags={"read_only": True},
)
reasons_blocking_upgrade = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").mobility_agent_details.reasons_blocking_upgrade
reasons_blocking_upgrade.Element = AAZStrType()
protected_disks = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks
protected_disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").protected_disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.data_pending_at_source_agent_in_mb = AAZFloatType(
serialized_name="dataPendingAtSourceAgentInMB",
flags={"read_only": True},
)
_element.data_pending_in_log_data_store_in_mb = AAZFloatType(
serialized_name="dataPendingInLogDataStoreInMB",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.disk_uuid = AAZStrType(
serialized_name="diskUuid",
flags={"read_only": True},
)
_element.ir_details = AAZObjectType(
serialized_name="irDetails",
)
_CreateHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.ir_details)
_element.is_initial_replication_complete = AAZStrType(
serialized_name="isInitialReplicationComplete",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.last_sync_time = AAZStrType(
serialized_name="lastSyncTime",
flags={"read_only": True},
)
_element.resync_details = AAZObjectType(
serialized_name="resyncDetails",
)
_CreateHelper._build_schema_in_mage_rcm_failback_sync_details_read(
_element.resync_details)
vm_nics = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics
vm_nics.Element = AAZObjectType()
_element = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback").vm_nics.Element
_element.adapter_type = AAZStrType(
serialized_name="adapterType",
flags={"read_only": True},
)
_element.mac_address = AAZStrType(
serialized_name="macAddress",
flags={"read_only": True},
)
_element.network_name = AAZStrType(
serialized_name="networkName",
flags={"read_only": True},
)
_element.source_ip_address = AAZStrType(
serialized_name="sourceIpAddress",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationProtectedItemsCreate(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 | 251 | 13 | 238 | 0 | 5 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 2,536 | 145 | 2,391 | 98 | 2,372 | 0 | 1,026 | 89 | 1,015 | 36 | 1 | 1 | 48 |
9,859 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/job/_export.py
|
azext_site_recovery.aaz.latest.site_recovery.job._export.Export.ReplicationJobsExport
|
class ReplicationJobsExport(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export",
**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(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("affectedObjectTypes",
AAZStrType, ".affected_object_types")
_builder.set_prop("endTime", AAZStrType, ".end_time")
_builder.set_prop("fabricId", AAZStrType, ".fabric_id")
_builder.set_prop("jobName", AAZStrType, ".job_name")
_builder.set_prop("jobOutputType", AAZStrType, ".job_output_type")
_builder.set_prop("jobStatus", AAZStrType, ".job_status")
_builder.set_prop("startTime", AAZStrType, ".start_time")
_builder.set_prop("timezoneOffset", AAZFloatType,
".timezone_offset")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.activity_id = AAZStrType(
serialized_name="activityId",
)
properties.allowed_actions = AAZListType(
serialized_name="allowedActions",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.end_time = AAZStrType(
serialized_name="endTime",
)
properties.errors = AAZListType()
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
properties.start_time = AAZStrType(
serialized_name="startTime",
)
properties.state = AAZStrType()
properties.state_description = AAZStrType(
serialized_name="stateDescription",
)
properties.target_instance_type = AAZStrType(
serialized_name="targetInstanceType",
)
properties.target_object_id = AAZStrType(
serialized_name="targetObjectId",
)
properties.target_object_name = AAZStrType(
serialized_name="targetObjectName",
)
properties.tasks = AAZListType()
allowed_actions = cls._schema_on_200.properties.allowed_actions
allowed_actions.Element = AAZStrType()
custom_details = cls._schema_on_200.properties.custom_details
custom_details.affected_object_details = AAZDictType(
serialized_name="affectedObjectDetails",
)
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
affected_object_details = cls._schema_on_200.properties.custom_details.affected_object_details
affected_object_details.Element = AAZStrType()
disc_export_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "ExportJobDetails")
disc_export_job_details.blob_uri = AAZStrType(
serialized_name="blobUri",
)
disc_export_job_details.sas_token = AAZStrType(
serialized_name="sasToken",
)
disc_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails")
disc_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ExportHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
disc_switch_protection_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "SwitchProtectionJobDetails")
disc_switch_protection_job_details.new_replication_protected_item_id = AAZStrType(
serialized_name="newReplicationProtectedItemId",
)
disc_test_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails")
disc_test_failover_job_details.comments = AAZStrType()
disc_test_failover_job_details.network_friendly_name = AAZStrType(
serialized_name="networkFriendlyName",
)
disc_test_failover_job_details.network_name = AAZStrType(
serialized_name="networkName",
)
disc_test_failover_job_details.network_type = AAZStrType(
serialized_name="networkType",
)
disc_test_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
disc_test_failover_job_details.test_failover_status = AAZStrType(
serialized_name="testFailoverStatus",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ExportHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
errors = cls._schema_on_200.properties.errors
errors.Element = AAZObjectType()
_ExportHelper._build_schema_job_error_details_read(errors.Element)
tasks = cls._schema_on_200.properties.tasks
tasks.Element = AAZObjectType()
_ExportHelper._build_schema_asr_task_read(tasks.Element)
return cls._schema_on_200
|
class ReplicationJobsExport(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 | 21 | 2 | 20 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 236 | 28 | 208 | 41 | 189 | 0 | 99 | 32 | 88 | 3 | 1 | 1 | 13 |
9,860 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/job/_cancel.py
|
azext_site_recovery.aaz.latest.site_recovery.job._cancel.Cancel.ReplicationJobsCancel
|
class ReplicationJobsCancel(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel",
**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(
"jobName", self.ctx.args.job_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.activity_id = AAZStrType(
serialized_name="activityId",
)
properties.allowed_actions = AAZListType(
serialized_name="allowedActions",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.end_time = AAZStrType(
serialized_name="endTime",
)
properties.errors = AAZListType()
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
properties.start_time = AAZStrType(
serialized_name="startTime",
)
properties.state = AAZStrType()
properties.state_description = AAZStrType(
serialized_name="stateDescription",
)
properties.target_instance_type = AAZStrType(
serialized_name="targetInstanceType",
)
properties.target_object_id = AAZStrType(
serialized_name="targetObjectId",
)
properties.target_object_name = AAZStrType(
serialized_name="targetObjectName",
)
properties.tasks = AAZListType()
allowed_actions = cls._schema_on_200.properties.allowed_actions
allowed_actions.Element = AAZStrType()
custom_details = cls._schema_on_200.properties.custom_details
custom_details.affected_object_details = AAZDictType(
serialized_name="affectedObjectDetails",
)
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
affected_object_details = cls._schema_on_200.properties.custom_details.affected_object_details
affected_object_details.Element = AAZStrType()
disc_export_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "ExportJobDetails")
disc_export_job_details.blob_uri = AAZStrType(
serialized_name="blobUri",
)
disc_export_job_details.sas_token = AAZStrType(
serialized_name="sasToken",
)
disc_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails")
disc_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_CancelHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
disc_switch_protection_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "SwitchProtectionJobDetails")
disc_switch_protection_job_details.new_replication_protected_item_id = AAZStrType(
serialized_name="newReplicationProtectedItemId",
)
disc_test_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails")
disc_test_failover_job_details.comments = AAZStrType()
disc_test_failover_job_details.network_friendly_name = AAZStrType(
serialized_name="networkFriendlyName",
)
disc_test_failover_job_details.network_name = AAZStrType(
serialized_name="networkName",
)
disc_test_failover_job_details.network_type = AAZStrType(
serialized_name="networkType",
)
disc_test_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
disc_test_failover_job_details.test_failover_status = AAZStrType(
serialized_name="testFailoverStatus",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_CancelHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
errors = cls._schema_on_200.properties.errors
errors.Element = AAZObjectType()
_CancelHelper._build_schema_job_error_details_read(errors.Element)
tasks = cls._schema_on_200.properties.tasks
tasks.Element = AAZObjectType()
_CancelHelper._build_schema_asr_task_read(tasks.Element)
return cls._schema_on_200
|
class ReplicationJobsCancel(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 | 20 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 1 | 9 | 9 | 219 | 26 | 193 | 38 | 176 | 0 | 88 | 30 | 78 | 3 | 1 | 1 | 12 |
9,861 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._update.Update.ReplicationFabricsGet
|
class ReplicationFabricsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_fabric_read(cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationFabricsGet(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 | 86 | 13 | 73 | 25 | 56 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,862 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._update.Update.ReplicationFabricsCreate
|
class ReplicationFabricsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_fabric_read(cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationFabricsCreate(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 | 0 | 9 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 114 | 15 | 99 | 29 | 80 | 0 | 38 | 20 | 27 | 3 | 1 | 1 | 13 |
9,863 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._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(
"customDetails", AAZObjectType, ".custom_details")
custom_details = _builder.get(".properties.customDetails")
if custom_details is not None:
custom_details.set_const("instanceType", "Azure", AAZStrType, ".azure", typ_kwargs={
"flags": {"required": True}})
custom_details.set_const("instanceType", "HyperVSite", AAZStrType, ".hyper_v_site", typ_kwargs={
"flags": {"required": True}})
custom_details.set_const("instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={
"flags": {"required": True}})
custom_details.discriminate_by("instanceType", "Azure")
custom_details.discriminate_by("instanceType", "HyperVSite")
custom_details.discriminate_by("instanceType", "InMageRcm")
custom_details.discriminate_by("instanceType", "VMwareV2")
disc_azure = _builder.get(
".properties.customDetails{instanceType:Azure}")
if disc_azure is not None:
disc_azure.set_prop("location", AAZStrType, ".azure.location")
disc_hyper_v_site = _builder.get(
".properties.customDetails{instanceType:HyperVSite}")
if disc_hyper_v_site is not None:
disc_hyper_v_site.set_prop(
"location", AAZStrType, ".hyper_v_site.location")
disc_in_mage_rcm = _builder.get(
".properties.customDetails{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop("physicalSiteId", AAZStrType, ".in_mage_rcm.physical_site_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop("sourceAgentIdentity", AAZObjectType, ".in_mage_rcm.source_agent_identity", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop("vmwareSiteId", AAZStrType, ".in_mage_rcm.vmware_site_id", typ_kwargs={
"flags": {"required": True}})
source_agent_identity = _builder.get(
".properties.customDetails{instanceType:InMageRcm}.sourceAgentIdentity")
if source_agent_identity is not None:
source_agent_identity.set_prop("aadAuthority", AAZStrType, ".aad_authority", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("applicationId", AAZStrType, ".application_id", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("audience", AAZStrType, ".audience", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("objectId", AAZStrType, ".object_id", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("tenantId", AAZStrType, ".tenant_id", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_v2 = _builder.get(
".properties.customDetails{instanceType:VMwareV2}")
if disc_v_mware_v2 is not None:
disc_v_mware_v2.set_prop("migrationSolutionId", AAZStrType, ".vmware_v2.migration_solution_id", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_v2.set_prop(
"physicalSiteId", AAZStrType, ".vmware_v2.physical_site_id")
disc_v_mware_v2.set_prop(
"vmwareSiteId", AAZStrType, ".vmware_v2.vmware_site_id")
return _instance_value
|
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation):
def __call__(self, *args, **kwargs):
pass
def _update_instance(self, instance):
pass
| 3 | 0 | 27 | 4 | 23 | 0 | 5 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 56 | 10 | 46 | 11 | 43 | 0 | 42 | 11 | 39 | 8 | 1 | 1 | 9 |
9,864 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._show.Show.ReplicationFabricsGet
|
class ReplicationFabricsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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(
"$filter", self.ctx.args.filter,
),
**self.serialize_query_param(
"api-version", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.bcdr_state = AAZStrType(
serialized_name="bcdrState",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.encryption_details = AAZObjectType(
serialized_name="encryptionDetails",
)
_ShowHelper._build_schema_encryption_details_read(
properties.encryption_details)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health = AAZStrType()
properties.health_error_details = AAZListType(
serialized_name="healthErrorDetails",
)
properties.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
)
properties.rollover_encryption_details = AAZObjectType(
serialized_name="rolloverEncryptionDetails",
)
_ShowHelper._build_schema_encryption_details_read(
properties.rollover_encryption_details)
custom_details = cls._schema_on_200.properties.custom_details
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_azure = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure")
disc_azure.container_ids = AAZListType(
serialized_name="containerIds",
)
disc_azure.location = AAZStrType()
disc_azure.zones = AAZListType()
container_ids = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure").container_ids
container_ids.Element = AAZStrType()
zones = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure").zones
zones.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure").zones.Element
_element.source = AAZStrType()
_element.target = AAZStrType()
disc_hyper_v_site = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite")
disc_hyper_v_site.hyper_v_hosts = AAZListType(
serialized_name="hyperVHosts",
)
hyper_v_hosts = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite").hyper_v_hosts
hyper_v_hosts.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite").hyper_v_hosts.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.mars_agent_version = AAZStrType(
serialized_name="marsAgentVersion",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
disc_in_mage_rcm = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_details = AAZListType(
serialized_name="agentDetails",
flags={"read_only": True},
)
disc_in_mage_rcm.control_plane_uri = AAZStrType(
serialized_name="controlPlaneUri",
flags={"read_only": True},
)
disc_in_mage_rcm.data_plane_uri = AAZStrType(
serialized_name="dataPlaneUri",
flags={"read_only": True},
)
disc_in_mage_rcm.dras = AAZListType(
flags={"read_only": True},
)
disc_in_mage_rcm.mars_agents = AAZListType(
serialized_name="marsAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.physical_site_id = AAZStrType(
serialized_name="physicalSiteId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_servers = AAZListType(
serialized_name="processServers",
flags={"read_only": True},
)
disc_in_mage_rcm.push_installers = AAZListType(
serialized_name="pushInstallers",
flags={"read_only": True},
)
disc_in_mage_rcm.rcm_proxies = AAZListType(
serialized_name="rcmProxies",
flags={"read_only": True},
)
disc_in_mage_rcm.replication_agents = AAZListType(
serialized_name="replicationAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.reprotect_agents = AAZListType(
serialized_name="reprotectAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.service_container_id = AAZStrType(
serialized_name="serviceContainerId",
flags={"read_only": True},
)
disc_in_mage_rcm.service_endpoint = AAZStrType(
serialized_name="serviceEndpoint",
flags={"read_only": True},
)
disc_in_mage_rcm.service_resource_id = AAZStrType(
serialized_name="serviceResourceId",
flags={"read_only": True},
)
disc_in_mage_rcm.source_agent_identity_details = AAZObjectType(
serialized_name="sourceAgentIdentityDetails",
)
disc_in_mage_rcm.vmware_site_id = AAZStrType(
serialized_name="vmwareSiteId",
flags={"read_only": True},
)
agent_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details
agent_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element
_element.agent_id = AAZStrType(
serialized_name="agentId",
flags={"read_only": True},
)
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.disks = AAZListType(
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.machine_id = AAZStrType(
serialized_name="machineId",
flags={"read_only": True},
)
disks = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element.disks
disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element.disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.lun_id = AAZIntType(
serialized_name="lunId",
flags={"read_only": True},
)
dras = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras
dras.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.forward_protected_item_count = AAZIntType(
serialized_name="forwardProtectedItemCount",
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.reverse_protected_item_count = AAZIntType(
serialized_name="reverseProtectedItemCount",
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
mars_agents = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents
mars_agents.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
process_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").process_servers
process_servers.Element = AAZObjectType()
_ShowHelper._build_schema_process_server_details_read(
process_servers.Element)
push_installers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers
push_installers.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
rcm_proxies = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies
rcm_proxies.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.client_authentication_type = AAZStrType(
serialized_name="clientAuthenticationType",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
replication_agents = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents
replication_agents.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
reprotect_agents = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents
reprotect_agents.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element
_element.accessible_datastores = AAZListType(
serialized_name="accessibleDatastores",
flags={"read_only": True},
)
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_discovery_in_utc = AAZStrType(
serialized_name="lastDiscoveryInUtc",
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.protected_item_count = AAZIntType(
serialized_name="protectedItemCount",
flags={"read_only": True},
)
_element.vcenter_id = AAZStrType(
serialized_name="vcenterId",
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
accessible_datastores = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element.accessible_datastores
accessible_datastores.Element = AAZStrType()
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
source_agent_identity_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").source_agent_identity_details
source_agent_identity_details.aad_authority = AAZStrType(
serialized_name="aadAuthority",
)
source_agent_identity_details.application_id = AAZStrType(
serialized_name="applicationId",
)
source_agent_identity_details.audience = AAZStrType()
source_agent_identity_details.object_id = AAZStrType(
serialized_name="objectId",
)
source_agent_identity_details.tenant_id = AAZStrType(
serialized_name="tenantId",
)
disc_v_mware = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware")
disc_v_mware.agent_count = AAZStrType(
serialized_name="agentCount",
)
disc_v_mware.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_v_mware.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_v_mware.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_ShowHelper._build_schema_version_details_read(
disc_v_mware.agent_version_details)
disc_v_mware.available_memory_in_bytes = AAZIntType(
serialized_name="availableMemoryInBytes",
)
disc_v_mware.available_space_in_bytes = AAZIntType(
serialized_name="availableSpaceInBytes",
)
disc_v_mware.cpu_load = AAZStrType(
serialized_name="cpuLoad",
)
disc_v_mware.cpu_load_status = AAZStrType(
serialized_name="cpuLoadStatus",
)
disc_v_mware.cs_service_status = AAZStrType(
serialized_name="csServiceStatus",
)
disc_v_mware.database_server_load = AAZStrType(
serialized_name="databaseServerLoad",
)
disc_v_mware.database_server_load_status = AAZStrType(
serialized_name="databaseServerLoadStatus",
)
disc_v_mware.host_name = AAZStrType(
serialized_name="hostName",
)
disc_v_mware.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_v_mware.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_v_mware.master_target_servers = AAZListType(
serialized_name="masterTargetServers",
)
disc_v_mware.memory_usage_status = AAZStrType(
serialized_name="memoryUsageStatus",
)
disc_v_mware.process_server_count = AAZStrType(
serialized_name="processServerCount",
)
disc_v_mware.process_servers = AAZListType(
serialized_name="processServers",
)
disc_v_mware.protected_servers = AAZStrType(
serialized_name="protectedServers",
)
disc_v_mware.ps_template_version = AAZStrType(
serialized_name="psTemplateVersion",
)
disc_v_mware.replication_pair_count = AAZStrType(
serialized_name="replicationPairCount",
)
disc_v_mware.run_as_accounts = AAZListType(
serialized_name="runAsAccounts",
)
disc_v_mware.space_usage_status = AAZStrType(
serialized_name="spaceUsageStatus",
)
disc_v_mware.ssl_cert_expiry_date = AAZStrType(
serialized_name="sslCertExpiryDate",
)
disc_v_mware.ssl_cert_expiry_remaining_days = AAZIntType(
serialized_name="sslCertExpiryRemainingDays",
)
disc_v_mware.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_v_mware.system_load = AAZStrType(
serialized_name="systemLoad",
)
disc_v_mware.system_load_status = AAZStrType(
serialized_name="systemLoadStatus",
)
disc_v_mware.total_memory_in_bytes = AAZIntType(
serialized_name="totalMemoryInBytes",
)
disc_v_mware.total_space_in_bytes = AAZIntType(
serialized_name="totalSpaceInBytes",
)
disc_v_mware.version_status = AAZStrType(
serialized_name="versionStatus",
)
disc_v_mware.web_load = AAZStrType(
serialized_name="webLoad",
)
disc_v_mware.web_load_status = AAZStrType(
serialized_name="webLoadStatus",
)
master_target_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers
master_target_servers.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element
_element.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
_element.agent_version = AAZStrType(
serialized_name="agentVersion",
)
_element.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_ShowHelper._build_schema_version_details_read(
_element.agent_version_details)
_element.data_stores = AAZListType(
serialized_name="dataStores",
)
_element.disk_count = AAZIntType(
serialized_name="diskCount",
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
)
_element.id = AAZStrType()
_element.ip_address = AAZStrType(
serialized_name="ipAddress",
)
_element.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
_element.mars_agent_expiry_date = AAZStrType(
serialized_name="marsAgentExpiryDate",
)
_element.mars_agent_version = AAZStrType(
serialized_name="marsAgentVersion",
)
_element.mars_agent_version_details = AAZObjectType(
serialized_name="marsAgentVersionDetails",
)
_ShowHelper._build_schema_version_details_read(
_element.mars_agent_version_details)
_element.name = AAZStrType()
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.os_version = AAZStrType(
serialized_name="osVersion",
)
_element.retention_volumes = AAZListType(
serialized_name="retentionVolumes",
)
_element.validation_errors = AAZListType(
serialized_name="validationErrors",
)
_element.version_status = AAZStrType(
serialized_name="versionStatus",
)
data_stores = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.data_stores
data_stores.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.data_stores.Element
_element.capacity = AAZStrType()
_element.free_space = AAZStrType(
serialized_name="freeSpace",
)
_element.symbolic_name = AAZStrType(
serialized_name="symbolicName",
)
_element.type = AAZStrType()
_element.uuid = AAZStrType()
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
retention_volumes = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.retention_volumes
retention_volumes.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.retention_volumes.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
)
_element.free_space_in_bytes = AAZIntType(
serialized_name="freeSpaceInBytes",
)
_element.threshold_percentage = AAZIntType(
serialized_name="thresholdPercentage",
)
_element.volume_name = AAZStrType(
serialized_name="volumeName",
)
validation_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.validation_errors
validation_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(
validation_errors.Element)
process_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers
process_servers.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element
_element.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
_element.agent_version = AAZStrType(
serialized_name="agentVersion",
)
_element.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_ShowHelper._build_schema_version_details_read(
_element.agent_version_details)
_element.available_memory_in_bytes = AAZIntType(
serialized_name="availableMemoryInBytes",
)
_element.available_space_in_bytes = AAZIntType(
serialized_name="availableSpaceInBytes",
)
_element.cpu_load = AAZStrType(
serialized_name="cpuLoad",
)
_element.cpu_load_status = AAZStrType(
serialized_name="cpuLoadStatus",
)
_element.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
)
_element.host_id = AAZStrType(
serialized_name="hostId",
)
_element.id = AAZStrType()
_element.ip_address = AAZStrType(
serialized_name="ipAddress",
)
_element.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
_element.machine_count = AAZStrType(
serialized_name="machineCount",
)
_element.mars_communication_status = AAZStrType(
serialized_name="marsCommunicationStatus",
flags={"read_only": True},
)
_element.mars_registration_status = AAZStrType(
serialized_name="marsRegistrationStatus",
flags={"read_only": True},
)
_element.memory_usage_status = AAZStrType(
serialized_name="memoryUsageStatus",
)
_element.mobility_service_updates = AAZListType(
serialized_name="mobilityServiceUpdates",
)
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.os_version = AAZStrType(
serialized_name="osVersion",
)
_element.ps_service_status = AAZStrType(
serialized_name="psServiceStatus",
)
_element.ps_stats_refresh_time = AAZStrType(
serialized_name="psStatsRefreshTime",
flags={"read_only": True},
)
_element.replication_pair_count = AAZStrType(
serialized_name="replicationPairCount",
)
_element.space_usage_status = AAZStrType(
serialized_name="spaceUsageStatus",
)
_element.ssl_cert_expiry_date = AAZStrType(
serialized_name="sslCertExpiryDate",
)
_element.ssl_cert_expiry_remaining_days = AAZIntType(
serialized_name="sslCertExpiryRemainingDays",
)
_element.system_load = AAZStrType(
serialized_name="systemLoad",
)
_element.system_load_status = AAZStrType(
serialized_name="systemLoadStatus",
)
_element.throughput_in_bytes = AAZIntType(
serialized_name="throughputInBytes",
flags={"read_only": True},
)
_element.throughput_in_m_bps = AAZIntType(
serialized_name="throughputInMBps",
flags={"read_only": True},
)
_element.throughput_status = AAZStrType(
serialized_name="throughputStatus",
flags={"read_only": True},
)
_element.throughput_upload_pending_data_in_bytes = AAZIntType(
serialized_name="throughputUploadPendingDataInBytes",
flags={"read_only": True},
)
_element.total_memory_in_bytes = AAZIntType(
serialized_name="totalMemoryInBytes",
)
_element.total_space_in_bytes = AAZIntType(
serialized_name="totalSpaceInBytes",
)
_element.version_status = AAZStrType(
serialized_name="versionStatus",
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.health_errors
health_errors.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(health_errors.Element)
mobility_service_updates = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.mobility_service_updates
mobility_service_updates.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.mobility_service_updates.Element
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.reboot_status = AAZStrType(
serialized_name="rebootStatus",
)
_element.version = AAZStrType()
run_as_accounts = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").run_as_accounts
run_as_accounts.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").run_as_accounts.Element
_element.account_id = AAZStrType(
serialized_name="accountId",
)
_element.account_name = AAZStrType(
serialized_name="accountName",
)
switch_provider_blocking_error_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
disc_v_mware_v2 = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareV2")
disc_v_mware_v2.migration_solution_id = AAZStrType(
serialized_name="migrationSolutionId",
flags={"read_only": True},
)
disc_v_mware_v2.physical_site_id = AAZStrType(
serialized_name="physicalSiteId",
flags={"read_only": True},
)
disc_v_mware_v2.process_servers = AAZListType(
serialized_name="processServers",
flags={"read_only": True},
)
disc_v_mware_v2.service_container_id = AAZStrType(
serialized_name="serviceContainerId",
flags={"read_only": True},
)
disc_v_mware_v2.service_endpoint = AAZStrType(
serialized_name="serviceEndpoint",
flags={"read_only": True},
)
disc_v_mware_v2.service_resource_id = AAZStrType(
serialized_name="serviceResourceId",
flags={"read_only": True},
)
disc_v_mware_v2.vmware_site_id = AAZStrType(
serialized_name="vmwareSiteId",
flags={"read_only": True},
)
process_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareV2").process_servers
process_servers.Element = AAZObjectType()
_ShowHelper._build_schema_process_server_details_read(
process_servers.Element)
health_error_details = cls._schema_on_200.properties.health_error_details
health_error_details.Element = AAZObjectType()
_ShowHelper._build_schema_health_error_read(
health_error_details.Element)
return cls._schema_on_200
|
class ReplicationFabricsGet(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 | 107 | 7 | 100 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 982 | 72 | 910 | 59 | 893 | 0 | 369 | 52 | 359 | 2 | 1 | 1 | 11 |
9,865 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_remove.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._remove.Remove.ReplicationFabricsDelete
|
class ReplicationFabricsDelete(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationFabricsDelete(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 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 88 | 9 | 79 | 20 | 65 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,866 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._list.List.ReplicationFabricsList
|
class ReplicationFabricsList(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.RecoveryServices/vaults/{resourceName}/replicationFabrics",
**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(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.bcdr_state = AAZStrType(
serialized_name="bcdrState",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.encryption_details = AAZObjectType(
serialized_name="encryptionDetails",
)
_ListHelper._build_schema_encryption_details_read(
properties.encryption_details)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health = AAZStrType()
properties.health_error_details = AAZListType(
serialized_name="healthErrorDetails",
)
properties.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
)
properties.rollover_encryption_details = AAZObjectType(
serialized_name="rolloverEncryptionDetails",
)
_ListHelper._build_schema_encryption_details_read(
properties.rollover_encryption_details)
custom_details = cls._schema_on_200.value.Element.properties.custom_details
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_azure = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "Azure")
disc_azure.container_ids = AAZListType(
serialized_name="containerIds",
)
disc_azure.location = AAZStrType()
disc_azure.zones = AAZListType()
container_ids = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "Azure").container_ids
container_ids.Element = AAZStrType()
zones = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "Azure").zones
zones.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "Azure").zones.Element
_element.source = AAZStrType()
_element.target = AAZStrType()
disc_hyper_v_site = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite")
disc_hyper_v_site.hyper_v_hosts = AAZListType(
serialized_name="hyperVHosts",
)
hyper_v_hosts = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite").hyper_v_hosts
hyper_v_hosts.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite").hyper_v_hosts.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.mars_agent_version = AAZStrType(
serialized_name="marsAgentVersion",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
disc_in_mage_rcm = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_details = AAZListType(
serialized_name="agentDetails",
flags={"read_only": True},
)
disc_in_mage_rcm.control_plane_uri = AAZStrType(
serialized_name="controlPlaneUri",
flags={"read_only": True},
)
disc_in_mage_rcm.data_plane_uri = AAZStrType(
serialized_name="dataPlaneUri",
flags={"read_only": True},
)
disc_in_mage_rcm.dras = AAZListType(
flags={"read_only": True},
)
disc_in_mage_rcm.mars_agents = AAZListType(
serialized_name="marsAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.physical_site_id = AAZStrType(
serialized_name="physicalSiteId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_servers = AAZListType(
serialized_name="processServers",
flags={"read_only": True},
)
disc_in_mage_rcm.push_installers = AAZListType(
serialized_name="pushInstallers",
flags={"read_only": True},
)
disc_in_mage_rcm.rcm_proxies = AAZListType(
serialized_name="rcmProxies",
flags={"read_only": True},
)
disc_in_mage_rcm.replication_agents = AAZListType(
serialized_name="replicationAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.reprotect_agents = AAZListType(
serialized_name="reprotectAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.service_container_id = AAZStrType(
serialized_name="serviceContainerId",
flags={"read_only": True},
)
disc_in_mage_rcm.service_endpoint = AAZStrType(
serialized_name="serviceEndpoint",
flags={"read_only": True},
)
disc_in_mage_rcm.service_resource_id = AAZStrType(
serialized_name="serviceResourceId",
flags={"read_only": True},
)
disc_in_mage_rcm.source_agent_identity_details = AAZObjectType(
serialized_name="sourceAgentIdentityDetails",
)
disc_in_mage_rcm.vmware_site_id = AAZStrType(
serialized_name="vmwareSiteId",
flags={"read_only": True},
)
agent_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details
agent_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element
_element.agent_id = AAZStrType(
serialized_name="agentId",
flags={"read_only": True},
)
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.disks = AAZListType(
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.machine_id = AAZStrType(
serialized_name="machineId",
flags={"read_only": True},
)
disks = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element.disks
disks.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element.disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.lun_id = AAZIntType(
serialized_name="lunId",
flags={"read_only": True},
)
dras = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras
dras.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.forward_protected_item_count = AAZIntType(
serialized_name="forwardProtectedItemCount",
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.reverse_protected_item_count = AAZIntType(
serialized_name="reverseProtectedItemCount",
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
mars_agents = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents
mars_agents.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
process_servers = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").process_servers
process_servers.Element = AAZObjectType()
_ListHelper._build_schema_process_server_details_read(
process_servers.Element)
push_installers = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers
push_installers.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
rcm_proxies = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies
rcm_proxies.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.client_authentication_type = AAZStrType(
serialized_name="clientAuthenticationType",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
replication_agents = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents
replication_agents.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
reprotect_agents = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents
reprotect_agents.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element
_element.accessible_datastores = AAZListType(
serialized_name="accessibleDatastores",
flags={"read_only": True},
)
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_discovery_in_utc = AAZStrType(
serialized_name="lastDiscoveryInUtc",
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.protected_item_count = AAZIntType(
serialized_name="protectedItemCount",
flags={"read_only": True},
)
_element.vcenter_id = AAZStrType(
serialized_name="vcenterId",
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
accessible_datastores = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element.accessible_datastores
accessible_datastores.Element = AAZStrType()
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
source_agent_identity_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").source_agent_identity_details
source_agent_identity_details.aad_authority = AAZStrType(
serialized_name="aadAuthority",
)
source_agent_identity_details.application_id = AAZStrType(
serialized_name="applicationId",
)
source_agent_identity_details.audience = AAZStrType()
source_agent_identity_details.object_id = AAZStrType(
serialized_name="objectId",
)
source_agent_identity_details.tenant_id = AAZStrType(
serialized_name="tenantId",
)
disc_v_mware = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware")
disc_v_mware.agent_count = AAZStrType(
serialized_name="agentCount",
)
disc_v_mware.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_v_mware.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_v_mware.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_ListHelper._build_schema_version_details_read(
disc_v_mware.agent_version_details)
disc_v_mware.available_memory_in_bytes = AAZIntType(
serialized_name="availableMemoryInBytes",
)
disc_v_mware.available_space_in_bytes = AAZIntType(
serialized_name="availableSpaceInBytes",
)
disc_v_mware.cpu_load = AAZStrType(
serialized_name="cpuLoad",
)
disc_v_mware.cpu_load_status = AAZStrType(
serialized_name="cpuLoadStatus",
)
disc_v_mware.cs_service_status = AAZStrType(
serialized_name="csServiceStatus",
)
disc_v_mware.database_server_load = AAZStrType(
serialized_name="databaseServerLoad",
)
disc_v_mware.database_server_load_status = AAZStrType(
serialized_name="databaseServerLoadStatus",
)
disc_v_mware.host_name = AAZStrType(
serialized_name="hostName",
)
disc_v_mware.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_v_mware.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_v_mware.master_target_servers = AAZListType(
serialized_name="masterTargetServers",
)
disc_v_mware.memory_usage_status = AAZStrType(
serialized_name="memoryUsageStatus",
)
disc_v_mware.process_server_count = AAZStrType(
serialized_name="processServerCount",
)
disc_v_mware.process_servers = AAZListType(
serialized_name="processServers",
)
disc_v_mware.protected_servers = AAZStrType(
serialized_name="protectedServers",
)
disc_v_mware.ps_template_version = AAZStrType(
serialized_name="psTemplateVersion",
)
disc_v_mware.replication_pair_count = AAZStrType(
serialized_name="replicationPairCount",
)
disc_v_mware.run_as_accounts = AAZListType(
serialized_name="runAsAccounts",
)
disc_v_mware.space_usage_status = AAZStrType(
serialized_name="spaceUsageStatus",
)
disc_v_mware.ssl_cert_expiry_date = AAZStrType(
serialized_name="sslCertExpiryDate",
)
disc_v_mware.ssl_cert_expiry_remaining_days = AAZIntType(
serialized_name="sslCertExpiryRemainingDays",
)
disc_v_mware.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_v_mware.system_load = AAZStrType(
serialized_name="systemLoad",
)
disc_v_mware.system_load_status = AAZStrType(
serialized_name="systemLoadStatus",
)
disc_v_mware.total_memory_in_bytes = AAZIntType(
serialized_name="totalMemoryInBytes",
)
disc_v_mware.total_space_in_bytes = AAZIntType(
serialized_name="totalSpaceInBytes",
)
disc_v_mware.version_status = AAZStrType(
serialized_name="versionStatus",
)
disc_v_mware.web_load = AAZStrType(
serialized_name="webLoad",
)
disc_v_mware.web_load_status = AAZStrType(
serialized_name="webLoadStatus",
)
master_target_servers = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers
master_target_servers.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element
_element.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
_element.agent_version = AAZStrType(
serialized_name="agentVersion",
)
_element.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_ListHelper._build_schema_version_details_read(
_element.agent_version_details)
_element.data_stores = AAZListType(
serialized_name="dataStores",
)
_element.disk_count = AAZIntType(
serialized_name="diskCount",
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
)
_element.id = AAZStrType()
_element.ip_address = AAZStrType(
serialized_name="ipAddress",
)
_element.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
_element.mars_agent_expiry_date = AAZStrType(
serialized_name="marsAgentExpiryDate",
)
_element.mars_agent_version = AAZStrType(
serialized_name="marsAgentVersion",
)
_element.mars_agent_version_details = AAZObjectType(
serialized_name="marsAgentVersionDetails",
)
_ListHelper._build_schema_version_details_read(
_element.mars_agent_version_details)
_element.name = AAZStrType()
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.os_version = AAZStrType(
serialized_name="osVersion",
)
_element.retention_volumes = AAZListType(
serialized_name="retentionVolumes",
)
_element.validation_errors = AAZListType(
serialized_name="validationErrors",
)
_element.version_status = AAZStrType(
serialized_name="versionStatus",
)
data_stores = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.data_stores
data_stores.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.data_stores.Element
_element.capacity = AAZStrType()
_element.free_space = AAZStrType(
serialized_name="freeSpace",
)
_element.symbolic_name = AAZStrType(
serialized_name="symbolicName",
)
_element.type = AAZStrType()
_element.uuid = AAZStrType()
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
retention_volumes = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.retention_volumes
retention_volumes.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.retention_volumes.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
)
_element.free_space_in_bytes = AAZIntType(
serialized_name="freeSpaceInBytes",
)
_element.threshold_percentage = AAZIntType(
serialized_name="thresholdPercentage",
)
_element.volume_name = AAZStrType(
serialized_name="volumeName",
)
validation_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.validation_errors
validation_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(
validation_errors.Element)
process_servers = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers
process_servers.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element
_element.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
_element.agent_version = AAZStrType(
serialized_name="agentVersion",
)
_element.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_ListHelper._build_schema_version_details_read(
_element.agent_version_details)
_element.available_memory_in_bytes = AAZIntType(
serialized_name="availableMemoryInBytes",
)
_element.available_space_in_bytes = AAZIntType(
serialized_name="availableSpaceInBytes",
)
_element.cpu_load = AAZStrType(
serialized_name="cpuLoad",
)
_element.cpu_load_status = AAZStrType(
serialized_name="cpuLoadStatus",
)
_element.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
)
_element.host_id = AAZStrType(
serialized_name="hostId",
)
_element.id = AAZStrType()
_element.ip_address = AAZStrType(
serialized_name="ipAddress",
)
_element.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
_element.machine_count = AAZStrType(
serialized_name="machineCount",
)
_element.mars_communication_status = AAZStrType(
serialized_name="marsCommunicationStatus",
flags={"read_only": True},
)
_element.mars_registration_status = AAZStrType(
serialized_name="marsRegistrationStatus",
flags={"read_only": True},
)
_element.memory_usage_status = AAZStrType(
serialized_name="memoryUsageStatus",
)
_element.mobility_service_updates = AAZListType(
serialized_name="mobilityServiceUpdates",
)
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.os_version = AAZStrType(
serialized_name="osVersion",
)
_element.ps_service_status = AAZStrType(
serialized_name="psServiceStatus",
)
_element.ps_stats_refresh_time = AAZStrType(
serialized_name="psStatsRefreshTime",
flags={"read_only": True},
)
_element.replication_pair_count = AAZStrType(
serialized_name="replicationPairCount",
)
_element.space_usage_status = AAZStrType(
serialized_name="spaceUsageStatus",
)
_element.ssl_cert_expiry_date = AAZStrType(
serialized_name="sslCertExpiryDate",
)
_element.ssl_cert_expiry_remaining_days = AAZIntType(
serialized_name="sslCertExpiryRemainingDays",
)
_element.system_load = AAZStrType(
serialized_name="systemLoad",
)
_element.system_load_status = AAZStrType(
serialized_name="systemLoadStatus",
)
_element.throughput_in_bytes = AAZIntType(
serialized_name="throughputInBytes",
flags={"read_only": True},
)
_element.throughput_in_m_bps = AAZIntType(
serialized_name="throughputInMBps",
flags={"read_only": True},
)
_element.throughput_status = AAZStrType(
serialized_name="throughputStatus",
flags={"read_only": True},
)
_element.throughput_upload_pending_data_in_bytes = AAZIntType(
serialized_name="throughputUploadPendingDataInBytes",
flags={"read_only": True},
)
_element.total_memory_in_bytes = AAZIntType(
serialized_name="totalMemoryInBytes",
)
_element.total_space_in_bytes = AAZIntType(
serialized_name="totalSpaceInBytes",
)
_element.version_status = AAZStrType(
serialized_name="versionStatus",
)
health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.health_errors
health_errors.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(health_errors.Element)
mobility_service_updates = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.mobility_service_updates
mobility_service_updates.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.mobility_service_updates.Element
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.reboot_status = AAZStrType(
serialized_name="rebootStatus",
)
_element.version = AAZStrType()
run_as_accounts = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").run_as_accounts
run_as_accounts.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").run_as_accounts.Element
_element.account_id = AAZStrType(
serialized_name="accountId",
)
_element.account_name = AAZStrType(
serialized_name="accountName",
)
switch_provider_blocking_error_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
disc_v_mware_v2 = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareV2")
disc_v_mware_v2.migration_solution_id = AAZStrType(
serialized_name="migrationSolutionId",
flags={"read_only": True},
)
disc_v_mware_v2.physical_site_id = AAZStrType(
serialized_name="physicalSiteId",
flags={"read_only": True},
)
disc_v_mware_v2.process_servers = AAZListType(
serialized_name="processServers",
flags={"read_only": True},
)
disc_v_mware_v2.service_container_id = AAZStrType(
serialized_name="serviceContainerId",
flags={"read_only": True},
)
disc_v_mware_v2.service_endpoint = AAZStrType(
serialized_name="serviceEndpoint",
flags={"read_only": True},
)
disc_v_mware_v2.service_resource_id = AAZStrType(
serialized_name="serviceResourceId",
flags={"read_only": True},
)
disc_v_mware_v2.vmware_site_id = AAZStrType(
serialized_name="vmwareSiteId",
flags={"read_only": True},
)
process_servers = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareV2").process_servers
process_servers.Element = AAZObjectType()
_ListHelper._build_schema_process_server_details_read(
process_servers.Element)
health_error_details = cls._schema_on_200.value.Element.properties.health_error_details
health_error_details.Element = AAZObjectType()
_ListHelper._build_schema_health_error_read(
health_error_details.Element)
return cls._schema_on_200
|
class ReplicationFabricsList(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 | 107 | 7 | 100 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 984 | 74 | 910 | 60 | 893 | 0 | 374 | 53 | 364 | 2 | 1 | 1 | 11 |
9,867 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_delete.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._delete.Delete.ReplicationFabricsPurge
|
class ReplicationFabricsPurge(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationFabricsPurge(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 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 88 | 9 | 79 | 20 | 65 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,868 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/fabric/_create.py
|
azext_site_recovery.aaz.latest.site_recovery.fabric._create.Create.ReplicationFabricsCreate
|
class ReplicationFabricsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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(
"customDetails", AAZObjectType, ".custom_details")
custom_details = _builder.get(".properties.customDetails")
if custom_details is not None:
custom_details.set_const("instanceType", "Azure", AAZStrType, ".azure", typ_kwargs={
"flags": {"required": True}})
custom_details.set_const("instanceType", "HyperVSite", AAZStrType, ".hyper_v_site", typ_kwargs={
"flags": {"required": True}})
custom_details.set_const("instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={
"flags": {"required": True}})
custom_details.discriminate_by("instanceType", "Azure")
custom_details.discriminate_by("instanceType", "HyperVSite")
custom_details.discriminate_by("instanceType", "InMageRcm")
custom_details.discriminate_by("instanceType", "VMwareV2")
disc_azure = _builder.get(
".properties.customDetails{instanceType:Azure}")
if disc_azure is not None:
disc_azure.set_prop("location", AAZStrType, ".azure.location")
disc_hyper_v_site = _builder.get(
".properties.customDetails{instanceType:HyperVSite}")
if disc_hyper_v_site is not None:
disc_hyper_v_site.set_prop(
"location", AAZStrType, ".hyper_v_site.location")
disc_in_mage_rcm = _builder.get(
".properties.customDetails{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop("physicalSiteId", AAZStrType, ".in_mage_rcm.physical_site_id", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop("sourceAgentIdentity", AAZObjectType, ".in_mage_rcm.source_agent_identity", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_rcm.set_prop("vmwareSiteId", AAZStrType, ".in_mage_rcm.vmware_site_id", typ_kwargs={
"flags": {"required": True}})
source_agent_identity = _builder.get(
".properties.customDetails{instanceType:InMageRcm}.sourceAgentIdentity")
if source_agent_identity is not None:
source_agent_identity.set_prop("aadAuthority", AAZStrType, ".aad_authority", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("applicationId", AAZStrType, ".application_id", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("audience", AAZStrType, ".audience", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("objectId", AAZStrType, ".object_id", typ_kwargs={
"flags": {"required": True}})
source_agent_identity.set_prop("tenantId", AAZStrType, ".tenant_id", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_v2 = _builder.get(
".properties.customDetails{instanceType:VMwareV2}")
if disc_v_mware_v2 is not None:
disc_v_mware_v2.set_prop("migrationSolutionId", AAZStrType, ".vmware_v2.migration_solution_id", typ_kwargs={
"flags": {"required": True}})
disc_v_mware_v2.set_prop(
"physicalSiteId", AAZStrType, ".vmware_v2.physical_site_id")
disc_v_mware_v2.set_prop(
"vmwareSiteId", AAZStrType, ".vmware_v2.vmware_site_id")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.bcdr_state = AAZStrType(
serialized_name="bcdrState",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.encryption_details = AAZObjectType(
serialized_name="encryptionDetails",
)
_CreateHelper._build_schema_encryption_details_read(
properties.encryption_details)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.health = AAZStrType()
properties.health_error_details = AAZListType(
serialized_name="healthErrorDetails",
)
properties.internal_identifier = AAZStrType(
serialized_name="internalIdentifier",
)
properties.rollover_encryption_details = AAZObjectType(
serialized_name="rolloverEncryptionDetails",
)
_CreateHelper._build_schema_encryption_details_read(
properties.rollover_encryption_details)
custom_details = cls._schema_on_200.properties.custom_details
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_azure = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure")
disc_azure.container_ids = AAZListType(
serialized_name="containerIds",
)
disc_azure.location = AAZStrType()
disc_azure.zones = AAZListType()
container_ids = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure").container_ids
container_ids.Element = AAZStrType()
zones = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure").zones
zones.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "Azure").zones.Element
_element.source = AAZStrType()
_element.target = AAZStrType()
disc_hyper_v_site = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite")
disc_hyper_v_site.hyper_v_hosts = AAZListType(
serialized_name="hyperVHosts",
)
hyper_v_hosts = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite").hyper_v_hosts
hyper_v_hosts.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVSite").hyper_v_hosts.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.mars_agent_version = AAZStrType(
serialized_name="marsAgentVersion",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
disc_in_mage_rcm = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.agent_details = AAZListType(
serialized_name="agentDetails",
flags={"read_only": True},
)
disc_in_mage_rcm.control_plane_uri = AAZStrType(
serialized_name="controlPlaneUri",
flags={"read_only": True},
)
disc_in_mage_rcm.data_plane_uri = AAZStrType(
serialized_name="dataPlaneUri",
flags={"read_only": True},
)
disc_in_mage_rcm.dras = AAZListType(
flags={"read_only": True},
)
disc_in_mage_rcm.mars_agents = AAZListType(
serialized_name="marsAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.physical_site_id = AAZStrType(
serialized_name="physicalSiteId",
flags={"read_only": True},
)
disc_in_mage_rcm.process_servers = AAZListType(
serialized_name="processServers",
flags={"read_only": True},
)
disc_in_mage_rcm.push_installers = AAZListType(
serialized_name="pushInstallers",
flags={"read_only": True},
)
disc_in_mage_rcm.rcm_proxies = AAZListType(
serialized_name="rcmProxies",
flags={"read_only": True},
)
disc_in_mage_rcm.replication_agents = AAZListType(
serialized_name="replicationAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.reprotect_agents = AAZListType(
serialized_name="reprotectAgents",
flags={"read_only": True},
)
disc_in_mage_rcm.service_container_id = AAZStrType(
serialized_name="serviceContainerId",
flags={"read_only": True},
)
disc_in_mage_rcm.service_endpoint = AAZStrType(
serialized_name="serviceEndpoint",
flags={"read_only": True},
)
disc_in_mage_rcm.service_resource_id = AAZStrType(
serialized_name="serviceResourceId",
flags={"read_only": True},
)
disc_in_mage_rcm.source_agent_identity_details = AAZObjectType(
serialized_name="sourceAgentIdentityDetails",
)
disc_in_mage_rcm.vmware_site_id = AAZStrType(
serialized_name="vmwareSiteId",
flags={"read_only": True},
)
agent_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details
agent_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element
_element.agent_id = AAZStrType(
serialized_name="agentId",
flags={"read_only": True},
)
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.disks = AAZListType(
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.machine_id = AAZStrType(
serialized_name="machineId",
flags={"read_only": True},
)
disks = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element.disks
disks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").agent_details.Element.disks.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
flags={"read_only": True},
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
flags={"read_only": True},
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
flags={"read_only": True},
)
_element.is_os_disk = AAZStrType(
serialized_name="isOSDisk",
flags={"read_only": True},
)
_element.lun_id = AAZIntType(
serialized_name="lunId",
flags={"read_only": True},
)
dras = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras
dras.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.forward_protected_item_count = AAZIntType(
serialized_name="forwardProtectedItemCount",
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.reverse_protected_item_count = AAZIntType(
serialized_name="reverseProtectedItemCount",
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").dras.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
mars_agents = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents
mars_agents.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").mars_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
process_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").process_servers
process_servers.Element = AAZObjectType()
_CreateHelper._build_schema_process_server_details_read(
process_servers.Element)
push_installers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers
push_installers.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").push_installers.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
rcm_proxies = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies
rcm_proxies.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.client_authentication_type = AAZStrType(
serialized_name="clientAuthenticationType",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").rcm_proxies.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
replication_agents = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents
replication_agents.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents.Element
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").replication_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
reprotect_agents = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents
reprotect_agents.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element
_element.accessible_datastores = AAZListType(
serialized_name="accessibleDatastores",
flags={"read_only": True},
)
_element.bios_id = AAZStrType(
serialized_name="biosId",
flags={"read_only": True},
)
_element.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
flags={"read_only": True},
)
_element.fqdn = AAZStrType(
flags={"read_only": True},
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.last_discovery_in_utc = AAZStrType(
serialized_name="lastDiscoveryInUtc",
flags={"read_only": True},
)
_element.last_heartbeat_utc = AAZStrType(
serialized_name="lastHeartbeatUtc",
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.protected_item_count = AAZIntType(
serialized_name="protectedItemCount",
flags={"read_only": True},
)
_element.vcenter_id = AAZStrType(
serialized_name="vcenterId",
flags={"read_only": True},
)
_element.version = AAZStrType(
flags={"read_only": True},
)
accessible_datastores = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element.accessible_datastores
accessible_datastores.Element = AAZStrType()
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").reprotect_agents.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
source_agent_identity_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "InMageRcm").source_agent_identity_details
source_agent_identity_details.aad_authority = AAZStrType(
serialized_name="aadAuthority",
)
source_agent_identity_details.application_id = AAZStrType(
serialized_name="applicationId",
)
source_agent_identity_details.audience = AAZStrType()
source_agent_identity_details.object_id = AAZStrType(
serialized_name="objectId",
)
source_agent_identity_details.tenant_id = AAZStrType(
serialized_name="tenantId",
)
disc_v_mware = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware")
disc_v_mware.agent_count = AAZStrType(
serialized_name="agentCount",
)
disc_v_mware.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
disc_v_mware.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_v_mware.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_CreateHelper._build_schema_version_details_read(
disc_v_mware.agent_version_details)
disc_v_mware.available_memory_in_bytes = AAZIntType(
serialized_name="availableMemoryInBytes",
)
disc_v_mware.available_space_in_bytes = AAZIntType(
serialized_name="availableSpaceInBytes",
)
disc_v_mware.cpu_load = AAZStrType(
serialized_name="cpuLoad",
)
disc_v_mware.cpu_load_status = AAZStrType(
serialized_name="cpuLoadStatus",
)
disc_v_mware.cs_service_status = AAZStrType(
serialized_name="csServiceStatus",
)
disc_v_mware.database_server_load = AAZStrType(
serialized_name="databaseServerLoad",
)
disc_v_mware.database_server_load_status = AAZStrType(
serialized_name="databaseServerLoadStatus",
)
disc_v_mware.host_name = AAZStrType(
serialized_name="hostName",
)
disc_v_mware.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_v_mware.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
disc_v_mware.master_target_servers = AAZListType(
serialized_name="masterTargetServers",
)
disc_v_mware.memory_usage_status = AAZStrType(
serialized_name="memoryUsageStatus",
)
disc_v_mware.process_server_count = AAZStrType(
serialized_name="processServerCount",
)
disc_v_mware.process_servers = AAZListType(
serialized_name="processServers",
)
disc_v_mware.protected_servers = AAZStrType(
serialized_name="protectedServers",
)
disc_v_mware.ps_template_version = AAZStrType(
serialized_name="psTemplateVersion",
)
disc_v_mware.replication_pair_count = AAZStrType(
serialized_name="replicationPairCount",
)
disc_v_mware.run_as_accounts = AAZListType(
serialized_name="runAsAccounts",
)
disc_v_mware.space_usage_status = AAZStrType(
serialized_name="spaceUsageStatus",
)
disc_v_mware.ssl_cert_expiry_date = AAZStrType(
serialized_name="sslCertExpiryDate",
)
disc_v_mware.ssl_cert_expiry_remaining_days = AAZIntType(
serialized_name="sslCertExpiryRemainingDays",
)
disc_v_mware.switch_provider_blocking_error_details = AAZListType(
serialized_name="switchProviderBlockingErrorDetails",
)
disc_v_mware.system_load = AAZStrType(
serialized_name="systemLoad",
)
disc_v_mware.system_load_status = AAZStrType(
serialized_name="systemLoadStatus",
)
disc_v_mware.total_memory_in_bytes = AAZIntType(
serialized_name="totalMemoryInBytes",
)
disc_v_mware.total_space_in_bytes = AAZIntType(
serialized_name="totalSpaceInBytes",
)
disc_v_mware.version_status = AAZStrType(
serialized_name="versionStatus",
)
disc_v_mware.web_load = AAZStrType(
serialized_name="webLoad",
)
disc_v_mware.web_load_status = AAZStrType(
serialized_name="webLoadStatus",
)
master_target_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers
master_target_servers.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element
_element.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
_element.agent_version = AAZStrType(
serialized_name="agentVersion",
)
_element.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_CreateHelper._build_schema_version_details_read(
_element.agent_version_details)
_element.data_stores = AAZListType(
serialized_name="dataStores",
)
_element.disk_count = AAZIntType(
serialized_name="diskCount",
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
)
_element.id = AAZStrType()
_element.ip_address = AAZStrType(
serialized_name="ipAddress",
)
_element.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
_element.mars_agent_expiry_date = AAZStrType(
serialized_name="marsAgentExpiryDate",
)
_element.mars_agent_version = AAZStrType(
serialized_name="marsAgentVersion",
)
_element.mars_agent_version_details = AAZObjectType(
serialized_name="marsAgentVersionDetails",
)
_CreateHelper._build_schema_version_details_read(
_element.mars_agent_version_details)
_element.name = AAZStrType()
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.os_version = AAZStrType(
serialized_name="osVersion",
)
_element.retention_volumes = AAZListType(
serialized_name="retentionVolumes",
)
_element.validation_errors = AAZListType(
serialized_name="validationErrors",
)
_element.version_status = AAZStrType(
serialized_name="versionStatus",
)
data_stores = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.data_stores
data_stores.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.data_stores.Element
_element.capacity = AAZStrType()
_element.free_space = AAZStrType(
serialized_name="freeSpace",
)
_element.symbolic_name = AAZStrType(
serialized_name="symbolicName",
)
_element.type = AAZStrType()
_element.uuid = AAZStrType()
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
retention_volumes = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.retention_volumes
retention_volumes.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.retention_volumes.Element
_element.capacity_in_bytes = AAZIntType(
serialized_name="capacityInBytes",
)
_element.free_space_in_bytes = AAZIntType(
serialized_name="freeSpaceInBytes",
)
_element.threshold_percentage = AAZIntType(
serialized_name="thresholdPercentage",
)
_element.volume_name = AAZStrType(
serialized_name="volumeName",
)
validation_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").master_target_servers.Element.validation_errors
validation_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
validation_errors.Element)
process_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers
process_servers.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element
_element.agent_expiry_date = AAZStrType(
serialized_name="agentExpiryDate",
)
_element.agent_version = AAZStrType(
serialized_name="agentVersion",
)
_element.agent_version_details = AAZObjectType(
serialized_name="agentVersionDetails",
)
_CreateHelper._build_schema_version_details_read(
_element.agent_version_details)
_element.available_memory_in_bytes = AAZIntType(
serialized_name="availableMemoryInBytes",
)
_element.available_space_in_bytes = AAZIntType(
serialized_name="availableSpaceInBytes",
)
_element.cpu_load = AAZStrType(
serialized_name="cpuLoad",
)
_element.cpu_load_status = AAZStrType(
serialized_name="cpuLoadStatus",
)
_element.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
_element.health = AAZStrType(
flags={"read_only": True},
)
_element.health_errors = AAZListType(
serialized_name="healthErrors",
)
_element.host_id = AAZStrType(
serialized_name="hostId",
)
_element.id = AAZStrType()
_element.ip_address = AAZStrType(
serialized_name="ipAddress",
)
_element.last_heartbeat = AAZStrType(
serialized_name="lastHeartbeat",
)
_element.machine_count = AAZStrType(
serialized_name="machineCount",
)
_element.mars_communication_status = AAZStrType(
serialized_name="marsCommunicationStatus",
flags={"read_only": True},
)
_element.mars_registration_status = AAZStrType(
serialized_name="marsRegistrationStatus",
flags={"read_only": True},
)
_element.memory_usage_status = AAZStrType(
serialized_name="memoryUsageStatus",
)
_element.mobility_service_updates = AAZListType(
serialized_name="mobilityServiceUpdates",
)
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.os_version = AAZStrType(
serialized_name="osVersion",
)
_element.ps_service_status = AAZStrType(
serialized_name="psServiceStatus",
)
_element.ps_stats_refresh_time = AAZStrType(
serialized_name="psStatsRefreshTime",
flags={"read_only": True},
)
_element.replication_pair_count = AAZStrType(
serialized_name="replicationPairCount",
)
_element.space_usage_status = AAZStrType(
serialized_name="spaceUsageStatus",
)
_element.ssl_cert_expiry_date = AAZStrType(
serialized_name="sslCertExpiryDate",
)
_element.ssl_cert_expiry_remaining_days = AAZIntType(
serialized_name="sslCertExpiryRemainingDays",
)
_element.system_load = AAZStrType(
serialized_name="systemLoad",
)
_element.system_load_status = AAZStrType(
serialized_name="systemLoadStatus",
)
_element.throughput_in_bytes = AAZIntType(
serialized_name="throughputInBytes",
flags={"read_only": True},
)
_element.throughput_in_m_bps = AAZIntType(
serialized_name="throughputInMBps",
flags={"read_only": True},
)
_element.throughput_status = AAZStrType(
serialized_name="throughputStatus",
flags={"read_only": True},
)
_element.throughput_upload_pending_data_in_bytes = AAZIntType(
serialized_name="throughputUploadPendingDataInBytes",
flags={"read_only": True},
)
_element.total_memory_in_bytes = AAZIntType(
serialized_name="totalMemoryInBytes",
)
_element.total_space_in_bytes = AAZIntType(
serialized_name="totalSpaceInBytes",
)
_element.version_status = AAZStrType(
serialized_name="versionStatus",
)
health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.health_errors
health_errors.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_errors.Element)
mobility_service_updates = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.mobility_service_updates
mobility_service_updates.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").process_servers.Element.mobility_service_updates.Element
_element.os_type = AAZStrType(
serialized_name="osType",
)
_element.reboot_status = AAZStrType(
serialized_name="rebootStatus",
)
_element.version = AAZStrType()
run_as_accounts = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").run_as_accounts
run_as_accounts.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").run_as_accounts.Element
_element.account_id = AAZStrType(
serialized_name="accountId",
)
_element.account_name = AAZStrType(
serialized_name="accountName",
)
switch_provider_blocking_error_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details
switch_provider_blocking_error_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element
_element.error_code = AAZStrType(
serialized_name="errorCode",
flags={"read_only": True},
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
flags={"read_only": True},
)
_element.error_message_parameters = AAZDictType(
serialized_name="errorMessageParameters",
flags={"read_only": True},
)
_element.error_tags = AAZDictType(
serialized_name="errorTags",
flags={"read_only": True},
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
flags={"read_only": True},
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
flags={"read_only": True},
)
error_message_parameters = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element.error_message_parameters
error_message_parameters.Element = AAZStrType()
error_tags = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMware").switch_provider_blocking_error_details.Element.error_tags
error_tags.Element = AAZStrType()
disc_v_mware_v2 = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareV2")
disc_v_mware_v2.migration_solution_id = AAZStrType(
serialized_name="migrationSolutionId",
flags={"read_only": True},
)
disc_v_mware_v2.physical_site_id = AAZStrType(
serialized_name="physicalSiteId",
flags={"read_only": True},
)
disc_v_mware_v2.process_servers = AAZListType(
serialized_name="processServers",
flags={"read_only": True},
)
disc_v_mware_v2.service_container_id = AAZStrType(
serialized_name="serviceContainerId",
flags={"read_only": True},
)
disc_v_mware_v2.service_endpoint = AAZStrType(
serialized_name="serviceEndpoint",
flags={"read_only": True},
)
disc_v_mware_v2.service_resource_id = AAZStrType(
serialized_name="serviceResourceId",
flags={"read_only": True},
)
disc_v_mware_v2.vmware_site_id = AAZStrType(
serialized_name="vmwareSiteId",
flags={"read_only": True},
)
process_servers = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareV2").process_servers
process_servers.Element = AAZObjectType()
_CreateHelper._build_schema_process_server_details_read(
process_servers.Element)
health_error_details = cls._schema_on_200.properties.health_error_details
health_error_details.Element = AAZObjectType()
_CreateHelper._build_schema_health_error_read(
health_error_details.Element)
return cls._schema_on_200
|
class ReplicationFabricsCreate(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 | 103 | 7 | 96 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 1,051 | 81 | 970 | 70 | 951 | 0 | 410 | 61 | 399 | 8 | 1 | 1 | 20 |
9,869 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/event/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.event._show.Show.ReplicationEventsGet
|
class ReplicationEventsGet(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.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}",
**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(
"eventName", self.ctx.args.event_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.affected_object_correlation_id = AAZStrType(
serialized_name="affectedObjectCorrelationId",
)
properties.affected_object_friendly_name = AAZStrType(
serialized_name="affectedObjectFriendlyName",
)
properties.description = AAZStrType()
properties.event_code = AAZStrType(
serialized_name="eventCode",
)
properties.event_specific_details = AAZObjectType(
serialized_name="eventSpecificDetails",
)
properties.event_type = AAZStrType(
serialized_name="eventType",
)
properties.fabric_id = AAZStrType(
serialized_name="fabricId",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.severity = AAZStrType()
properties.time_of_occurrence = AAZStrType(
serialized_name="timeOfOccurrence",
)
event_specific_details = cls._schema_on_200.properties.event_specific_details
event_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_job_status = cls._schema_on_200.properties.event_specific_details.discriminate_by(
"instance_type", "JobStatus")
disc_job_status.affected_object_type = AAZStrType(
serialized_name="affectedObjectType",
)
disc_job_status.job_friendly_name = AAZStrType(
serialized_name="jobFriendlyName",
)
disc_job_status.job_id = AAZStrType(
serialized_name="jobId",
)
disc_job_status.job_status = AAZStrType(
serialized_name="jobStatus",
)
health_errors = cls._schema_on_200.properties.health_errors
health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.properties.health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.inner_health_errors = AAZListType(
serialized_name="innerHealthErrors",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
inner_health_errors = cls._schema_on_200.properties.health_errors.Element.inner_health_errors
inner_health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.properties.health_errors.Element.inner_health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.fabric_location = AAZStrType(
serialized_name="fabricLocation",
)
disc_a2_a.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.protected_item_name = AAZStrType(
serialized_name="protectedItemName",
)
disc_a2_a.remote_fabric_location = AAZStrType(
serialized_name="remoteFabricLocation",
)
disc_a2_a.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica2012.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica2012.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica2012.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica2012_r2.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica2012_r2.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica2012_r2.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica_azure.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica_azure.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica_base_event_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseEventDetails")
disc_hyper_v_replica_base_event_details.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica_base_event_details.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica_base_event_details.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica_base_event_details.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.category = AAZStrType()
disc_in_mage_azure_v2.component = AAZStrType()
disc_in_mage_azure_v2.corrective_action = AAZStrType(
serialized_name="correctiveAction",
)
disc_in_mage_azure_v2.details = AAZStrType()
disc_in_mage_azure_v2.event_type = AAZStrType(
serialized_name="eventType",
)
disc_in_mage_azure_v2.site_name = AAZStrType(
serialized_name="siteName",
)
disc_in_mage_azure_v2.summary = AAZStrType()
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.appliance_name = AAZStrType(
serialized_name="applianceName",
flags={"read_only": True},
)
disc_in_mage_rcm.component_display_name = AAZStrType(
serialized_name="componentDisplayName",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_name = AAZStrType(
serialized_name="fabricName",
flags={"read_only": True},
)
disc_in_mage_rcm.job_id = AAZStrType(
serialized_name="jobId",
flags={"read_only": True},
)
disc_in_mage_rcm.latest_agent_version = AAZStrType(
serialized_name="latestAgentVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_item_name = AAZStrType(
serialized_name="protectedItemName",
flags={"read_only": True},
)
disc_in_mage_rcm.server_type = AAZStrType(
serialized_name="serverType",
flags={"read_only": True},
)
disc_in_mage_rcm.vm_name = AAZStrType(
serialized_name="vmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.appliance_name = AAZStrType(
serialized_name="applianceName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.component_display_name = AAZStrType(
serialized_name="componentDisplayName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_item_name = AAZStrType(
serialized_name="protectedItemName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.server_type = AAZStrType(
serialized_name="serverType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_name = AAZStrType(
serialized_name="vmName",
flags={"read_only": True},
)
disc_v_mware_cbt = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.migration_item_name = AAZStrType(
serialized_name="migrationItemName",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationEventsGet(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 | 42 | 2 | 40 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 402 | 31 | 371 | 42 | 354 | 0 | 145 | 35 | 135 | 2 | 1 | 1 | 11 |
9,870 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/event/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.event._list.List.ReplicationEventsList
|
class ReplicationEventsList(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.RecoveryServices/vaults/{resourceName}/replicationEvents",
**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(
"resourceName", self.ctx.args.vault_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(
"$filter", self.ctx.args.filter,
),
**self.serialize_query_param(
"api-version", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.affected_object_correlation_id = AAZStrType(
serialized_name="affectedObjectCorrelationId",
)
properties.affected_object_friendly_name = AAZStrType(
serialized_name="affectedObjectFriendlyName",
)
properties.description = AAZStrType()
properties.event_code = AAZStrType(
serialized_name="eventCode",
)
properties.event_specific_details = AAZObjectType(
serialized_name="eventSpecificDetails",
)
properties.event_type = AAZStrType(
serialized_name="eventType",
)
properties.fabric_id = AAZStrType(
serialized_name="fabricId",
)
properties.health_errors = AAZListType(
serialized_name="healthErrors",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
properties.severity = AAZStrType()
properties.time_of_occurrence = AAZStrType(
serialized_name="timeOfOccurrence",
)
event_specific_details = cls._schema_on_200.value.Element.properties.event_specific_details
event_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_job_status = cls._schema_on_200.value.Element.properties.event_specific_details.discriminate_by(
"instance_type", "JobStatus")
disc_job_status.affected_object_type = AAZStrType(
serialized_name="affectedObjectType",
)
disc_job_status.job_friendly_name = AAZStrType(
serialized_name="jobFriendlyName",
)
disc_job_status.job_id = AAZStrType(
serialized_name="jobId",
)
disc_job_status.job_status = AAZStrType(
serialized_name="jobStatus",
)
health_errors = cls._schema_on_200.value.Element.properties.health_errors
health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.inner_health_errors = AAZListType(
serialized_name="innerHealthErrors",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
inner_health_errors = cls._schema_on_200.value.Element.properties.health_errors.Element.inner_health_errors
inner_health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.health_errors.Element.inner_health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
provider_specific_details = cls._schema_on_200.value.Element.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.fabric_location = AAZStrType(
serialized_name="fabricLocation",
)
disc_a2_a.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_a2_a.fabric_object_id = AAZStrType(
serialized_name="fabricObjectId",
)
disc_a2_a.protected_item_name = AAZStrType(
serialized_name="protectedItemName",
)
disc_a2_a.remote_fabric_location = AAZStrType(
serialized_name="remoteFabricLocation",
)
disc_a2_a.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_hyper_v_replica2012 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica2012.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica2012.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica2012.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica2012_r2.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica2012_r2.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica2012_r2.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_hyper_v_replica_azure = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica_azure.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica_azure.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica_base_event_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBaseEventDetails")
disc_hyper_v_replica_base_event_details.container_name = AAZStrType(
serialized_name="containerName",
)
disc_hyper_v_replica_base_event_details.fabric_name = AAZStrType(
serialized_name="fabricName",
)
disc_hyper_v_replica_base_event_details.remote_container_name = AAZStrType(
serialized_name="remoteContainerName",
)
disc_hyper_v_replica_base_event_details.remote_fabric_name = AAZStrType(
serialized_name="remoteFabricName",
)
disc_in_mage_azure_v2 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.category = AAZStrType()
disc_in_mage_azure_v2.component = AAZStrType()
disc_in_mage_azure_v2.corrective_action = AAZStrType(
serialized_name="correctiveAction",
)
disc_in_mage_azure_v2.details = AAZStrType()
disc_in_mage_azure_v2.event_type = AAZStrType(
serialized_name="eventType",
)
disc_in_mage_azure_v2.site_name = AAZStrType(
serialized_name="siteName",
)
disc_in_mage_azure_v2.summary = AAZStrType()
disc_in_mage_rcm = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.appliance_name = AAZStrType(
serialized_name="applianceName",
flags={"read_only": True},
)
disc_in_mage_rcm.component_display_name = AAZStrType(
serialized_name="componentDisplayName",
flags={"read_only": True},
)
disc_in_mage_rcm.fabric_name = AAZStrType(
serialized_name="fabricName",
flags={"read_only": True},
)
disc_in_mage_rcm.job_id = AAZStrType(
serialized_name="jobId",
flags={"read_only": True},
)
disc_in_mage_rcm.latest_agent_version = AAZStrType(
serialized_name="latestAgentVersion",
flags={"read_only": True},
)
disc_in_mage_rcm.protected_item_name = AAZStrType(
serialized_name="protectedItemName",
flags={"read_only": True},
)
disc_in_mage_rcm.server_type = AAZStrType(
serialized_name="serverType",
flags={"read_only": True},
)
disc_in_mage_rcm.vm_name = AAZStrType(
serialized_name="vmName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.appliance_name = AAZStrType(
serialized_name="applianceName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.component_display_name = AAZStrType(
serialized_name="componentDisplayName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.protected_item_name = AAZStrType(
serialized_name="protectedItemName",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.server_type = AAZStrType(
serialized_name="serverType",
flags={"read_only": True},
)
disc_in_mage_rcm_failback.vm_name = AAZStrType(
serialized_name="vmName",
flags={"read_only": True},
)
disc_v_mware_cbt = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.migration_item_name = AAZStrType(
serialized_name="migrationItemName",
flags={"read_only": True},
)
return cls._schema_on_200
|
class ReplicationEventsList(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 | 43 | 3 | 41 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 410 | 33 | 377 | 43 | 360 | 0 | 150 | 36 | 140 | 2 | 1 | 1 | 11 |
9,871 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/alert_setting/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.alert_setting._update.Update.ReplicationAlertSettingsGet
|
class ReplicationAlertSettingsGet(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.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}",
**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(
"alertSettingName", self.ctx.args.alert_setting_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_alert_read(cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationAlertSettingsGet(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 | 86 | 13 | 73 | 25 | 56 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,872 |
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.RoleDefinitionType
|
class RoleDefinitionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Indicates whether the Role Definition was built-in or user created."""
BUILT_IN_ROLE = "BuiltInRole"
CUSTOM_ROLE = "CustomRole"
|
class RoleDefinitionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Indicates whether the Role Definition was built-in or user created.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
9,873 |
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.ScheduledEventStrategy
|
class ScheduledEventStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""How the nodes in the cluster react to scheduled events."""
IGNORE = "Ignore"
STOP_ANY = "StopAny"
STOP_BY_RACK = "StopByRack"
|
class ScheduledEventStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''How the nodes in the cluster react to scheduled events.'''
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 |
9,874 |
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.ServerVersion
|
class ServerVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Describes the version of the MongoDB account."""
THREE2 = "3.2"
THREE6 = "3.6"
FOUR0 = "4.0"
FOUR2 = "4.2"
FIVE0 = "5.0"
SIX0 = "6.0"
SEVEN0 = "7.0"
|
class ServerVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Describes the version of the MongoDB account.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 10 | 1 | 8 | 8 | 7 | 1 | 8 | 8 | 7 | 0 | 4 | 0 | 0 |
9,875 |
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.ServiceSize
|
class ServiceSize(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Instance type for the service."""
COSMOS_D4_S = "Cosmos.D4s"
COSMOS_D8_S = "Cosmos.D8s"
COSMOS_D16_S = "Cosmos.D16s"
|
class ServiceSize(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Instance type for the service.'''
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 |
9,876 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/job/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.job._list.List.ReplicationJobsList
|
class ReplicationJobsList(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.RecoveryServices/vaults/{resourceName}/replicationJobs",
**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(
"resourceName", self.ctx.args.vault_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(
"$filter", self.ctx.args.filter,
),
**self.serialize_query_param(
"api-version", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.activity_id = AAZStrType(
serialized_name="activityId",
)
properties.allowed_actions = AAZListType(
serialized_name="allowedActions",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.end_time = AAZStrType(
serialized_name="endTime",
)
properties.errors = AAZListType()
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
properties.start_time = AAZStrType(
serialized_name="startTime",
)
properties.state = AAZStrType()
properties.state_description = AAZStrType(
serialized_name="stateDescription",
)
properties.target_instance_type = AAZStrType(
serialized_name="targetInstanceType",
)
properties.target_object_id = AAZStrType(
serialized_name="targetObjectId",
)
properties.target_object_name = AAZStrType(
serialized_name="targetObjectName",
)
properties.tasks = AAZListType()
allowed_actions = cls._schema_on_200.value.Element.properties.allowed_actions
allowed_actions.Element = AAZStrType()
custom_details = cls._schema_on_200.value.Element.properties.custom_details
custom_details.affected_object_details = AAZDictType(
serialized_name="affectedObjectDetails",
)
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
affected_object_details = cls._schema_on_200.value.Element.properties.custom_details.affected_object_details
affected_object_details.Element = AAZStrType()
disc_export_job_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "ExportJobDetails")
disc_export_job_details.blob_uri = AAZStrType(
serialized_name="blobUri",
)
disc_export_job_details.sas_token = AAZStrType(
serialized_name="sasToken",
)
disc_failover_job_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails")
disc_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
protected_item_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ListHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
disc_switch_protection_job_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "SwitchProtectionJobDetails")
disc_switch_protection_job_details.new_replication_protected_item_id = AAZStrType(
serialized_name="newReplicationProtectedItemId",
)
disc_test_failover_job_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails")
disc_test_failover_job_details.comments = AAZStrType()
disc_test_failover_job_details.network_friendly_name = AAZStrType(
serialized_name="networkFriendlyName",
)
disc_test_failover_job_details.network_name = AAZStrType(
serialized_name="networkName",
)
disc_test_failover_job_details.network_type = AAZStrType(
serialized_name="networkType",
)
disc_test_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
disc_test_failover_job_details.test_failover_status = AAZStrType(
serialized_name="testFailoverStatus",
)
protected_item_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ListHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
errors = cls._schema_on_200.value.Element.properties.errors
errors.Element = AAZObjectType()
_ListHelper._build_schema_job_error_details_read(errors.Element)
tasks = cls._schema_on_200.value.Element.properties.tasks
tasks.Element = AAZObjectType()
_ListHelper._build_schema_asr_task_read(tasks.Element)
return cls._schema_on_200
|
class ReplicationJobsList(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 | 21 | 2 | 19 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 211 | 28 | 183 | 39 | 166 | 0 | 91 | 32 | 81 | 2 | 1 | 1 | 11 |
9,877 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/job/_restart.py
|
azext_site_recovery.aaz.latest.site_recovery.job._restart.Restart.ReplicationJobsRestart
|
class ReplicationJobsRestart(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart",
**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(
"jobName", self.ctx.args.job_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.activity_id = AAZStrType(
serialized_name="activityId",
)
properties.allowed_actions = AAZListType(
serialized_name="allowedActions",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.end_time = AAZStrType(
serialized_name="endTime",
)
properties.errors = AAZListType()
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
properties.start_time = AAZStrType(
serialized_name="startTime",
)
properties.state = AAZStrType()
properties.state_description = AAZStrType(
serialized_name="stateDescription",
)
properties.target_instance_type = AAZStrType(
serialized_name="targetInstanceType",
)
properties.target_object_id = AAZStrType(
serialized_name="targetObjectId",
)
properties.target_object_name = AAZStrType(
serialized_name="targetObjectName",
)
properties.tasks = AAZListType()
allowed_actions = cls._schema_on_200.properties.allowed_actions
allowed_actions.Element = AAZStrType()
custom_details = cls._schema_on_200.properties.custom_details
custom_details.affected_object_details = AAZDictType(
serialized_name="affectedObjectDetails",
)
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
affected_object_details = cls._schema_on_200.properties.custom_details.affected_object_details
affected_object_details.Element = AAZStrType()
disc_export_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "ExportJobDetails")
disc_export_job_details.blob_uri = AAZStrType(
serialized_name="blobUri",
)
disc_export_job_details.sas_token = AAZStrType(
serialized_name="sasToken",
)
disc_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails")
disc_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_RestartHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
disc_switch_protection_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "SwitchProtectionJobDetails")
disc_switch_protection_job_details.new_replication_protected_item_id = AAZStrType(
serialized_name="newReplicationProtectedItemId",
)
disc_test_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails")
disc_test_failover_job_details.comments = AAZStrType()
disc_test_failover_job_details.network_friendly_name = AAZStrType(
serialized_name="networkFriendlyName",
)
disc_test_failover_job_details.network_name = AAZStrType(
serialized_name="networkName",
)
disc_test_failover_job_details.network_type = AAZStrType(
serialized_name="networkType",
)
disc_test_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
disc_test_failover_job_details.test_failover_status = AAZStrType(
serialized_name="testFailoverStatus",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_RestartHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
errors = cls._schema_on_200.properties.errors
errors.Element = AAZObjectType()
_RestartHelper._build_schema_job_error_details_read(errors.Element)
tasks = cls._schema_on_200.properties.tasks
tasks.Element = AAZObjectType()
_RestartHelper._build_schema_asr_task_read(tasks.Element)
return cls._schema_on_200
|
class ReplicationJobsRestart(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 | 20 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 1 | 9 | 9 | 219 | 26 | 193 | 38 | 176 | 0 | 88 | 30 | 78 | 3 | 1 | 1 | 12 |
9,878 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/job/_resume.py
|
azext_site_recovery.aaz.latest.site_recovery.job._resume.Resume.ReplicationJobsResume
|
class ReplicationJobsResume(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume",
**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(
"jobName", self.ctx.args.job_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("comments", AAZStrType, ".comments")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.activity_id = AAZStrType(
serialized_name="activityId",
)
properties.allowed_actions = AAZListType(
serialized_name="allowedActions",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.end_time = AAZStrType(
serialized_name="endTime",
)
properties.errors = AAZListType()
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
properties.start_time = AAZStrType(
serialized_name="startTime",
)
properties.state = AAZStrType()
properties.state_description = AAZStrType(
serialized_name="stateDescription",
)
properties.target_instance_type = AAZStrType(
serialized_name="targetInstanceType",
)
properties.target_object_id = AAZStrType(
serialized_name="targetObjectId",
)
properties.target_object_name = AAZStrType(
serialized_name="targetObjectName",
)
properties.tasks = AAZListType()
allowed_actions = cls._schema_on_200.properties.allowed_actions
allowed_actions.Element = AAZStrType()
custom_details = cls._schema_on_200.properties.custom_details
custom_details.affected_object_details = AAZDictType(
serialized_name="affectedObjectDetails",
)
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
affected_object_details = cls._schema_on_200.properties.custom_details.affected_object_details
affected_object_details.Element = AAZStrType()
disc_export_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "ExportJobDetails")
disc_export_job_details.blob_uri = AAZStrType(
serialized_name="blobUri",
)
disc_export_job_details.sas_token = AAZStrType(
serialized_name="sasToken",
)
disc_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails")
disc_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ResumeHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
disc_switch_protection_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "SwitchProtectionJobDetails")
disc_switch_protection_job_details.new_replication_protected_item_id = AAZStrType(
serialized_name="newReplicationProtectedItemId",
)
disc_test_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails")
disc_test_failover_job_details.comments = AAZStrType()
disc_test_failover_job_details.network_friendly_name = AAZStrType(
serialized_name="networkFriendlyName",
)
disc_test_failover_job_details.network_name = AAZStrType(
serialized_name="networkName",
)
disc_test_failover_job_details.network_type = AAZStrType(
serialized_name="networkType",
)
disc_test_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
disc_test_failover_job_details.test_failover_status = AAZStrType(
serialized_name="testFailoverStatus",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ResumeHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
errors = cls._schema_on_200.properties.errors
errors.Element = AAZObjectType()
_ResumeHelper._build_schema_job_error_details_read(errors.Element)
tasks = cls._schema_on_200.properties.tasks
tasks.Element = AAZObjectType()
_ResumeHelper._build_schema_asr_task_read(tasks.Element)
return cls._schema_on_200
|
class ReplicationJobsResume(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 | 22 | 2 | 20 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 237 | 29 | 208 | 42 | 189 | 0 | 95 | 33 | 84 | 3 | 1 | 1 | 14 |
9,879 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/job/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.job._show.Show.ReplicationJobsGet
|
class ReplicationJobsGet(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.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}",
**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(
"jobName", self.ctx.args.job_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.activity_id = AAZStrType(
serialized_name="activityId",
)
properties.allowed_actions = AAZListType(
serialized_name="allowedActions",
)
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.end_time = AAZStrType(
serialized_name="endTime",
)
properties.errors = AAZListType()
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.scenario_name = AAZStrType(
serialized_name="scenarioName",
)
properties.start_time = AAZStrType(
serialized_name="startTime",
)
properties.state = AAZStrType()
properties.state_description = AAZStrType(
serialized_name="stateDescription",
)
properties.target_instance_type = AAZStrType(
serialized_name="targetInstanceType",
)
properties.target_object_id = AAZStrType(
serialized_name="targetObjectId",
)
properties.target_object_name = AAZStrType(
serialized_name="targetObjectName",
)
properties.tasks = AAZListType()
allowed_actions = cls._schema_on_200.properties.allowed_actions
allowed_actions.Element = AAZStrType()
custom_details = cls._schema_on_200.properties.custom_details
custom_details.affected_object_details = AAZDictType(
serialized_name="affectedObjectDetails",
)
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
affected_object_details = cls._schema_on_200.properties.custom_details.affected_object_details
affected_object_details.Element = AAZStrType()
disc_export_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "ExportJobDetails")
disc_export_job_details.blob_uri = AAZStrType(
serialized_name="blobUri",
)
disc_export_job_details.sas_token = AAZStrType(
serialized_name="sasToken",
)
disc_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails")
disc_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "FailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ShowHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
disc_switch_protection_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "SwitchProtectionJobDetails")
disc_switch_protection_job_details.new_replication_protected_item_id = AAZStrType(
serialized_name="newReplicationProtectedItemId",
)
disc_test_failover_job_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails")
disc_test_failover_job_details.comments = AAZStrType()
disc_test_failover_job_details.network_friendly_name = AAZStrType(
serialized_name="networkFriendlyName",
)
disc_test_failover_job_details.network_name = AAZStrType(
serialized_name="networkName",
)
disc_test_failover_job_details.network_type = AAZStrType(
serialized_name="networkType",
)
disc_test_failover_job_details.protected_item_details = AAZListType(
serialized_name="protectedItemDetails",
)
disc_test_failover_job_details.test_failover_status = AAZStrType(
serialized_name="testFailoverStatus",
)
protected_item_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "TestFailoverJobDetails").protected_item_details
protected_item_details.Element = AAZObjectType()
_ShowHelper._build_schema_failover_replication_protected_item_details_read(
protected_item_details.Element)
errors = cls._schema_on_200.properties.errors
errors.Element = AAZObjectType()
_ShowHelper._build_schema_job_error_details_read(errors.Element)
tasks = cls._schema_on_200.properties.tasks
tasks.Element = AAZObjectType()
_ShowHelper._build_schema_asr_task_read(tasks.Element)
return cls._schema_on_200
|
class ReplicationJobsGet(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 | 20 | 2 | 19 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 203 | 26 | 177 | 37 | 160 | 0 | 86 | 30 | 76 | 2 | 1 | 1 | 11 |
9,880 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protectable_item/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.protectable_item._show.Show.ReplicationProtectableItemsGet
|
class ReplicationProtectableItemsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems/{protectableItemName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectableItemName", self.ctx.args.protectable_item_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.protection_readiness_errors = AAZListType(
serialized_name="protectionReadinessErrors",
)
properties.protection_status = AAZStrType(
serialized_name="protectionStatus",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_protected_item_id = AAZStrType(
serialized_name="replicationProtectedItemId",
)
properties.supported_replication_providers = AAZListType(
serialized_name="supportedReplicationProviders",
)
custom_details = cls._schema_on_200.properties.custom_details
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_hyper_v_virtual_machine = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVVirtualMachine")
disc_hyper_v_virtual_machine.disk_details = AAZListType(
serialized_name="diskDetails",
)
disc_hyper_v_virtual_machine.generation = AAZStrType()
disc_hyper_v_virtual_machine.has_fibre_channel_adapter = AAZStrType(
serialized_name="hasFibreChannelAdapter",
)
disc_hyper_v_virtual_machine.has_physical_disk = AAZStrType(
serialized_name="hasPhysicalDisk",
)
disc_hyper_v_virtual_machine.has_shared_vhd = AAZStrType(
serialized_name="hasSharedVhd",
)
disc_hyper_v_virtual_machine.hyper_v_host_id = AAZStrType(
serialized_name="hyperVHostId",
)
disc_hyper_v_virtual_machine.os_details = AAZObjectType(
serialized_name="osDetails",
)
_ShowHelper._build_schema_os_details_read(
disc_hyper_v_virtual_machine.os_details)
disc_hyper_v_virtual_machine.source_item_id = AAZStrType(
serialized_name="sourceItemId",
)
disk_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "HyperVVirtualMachine").disk_details
disk_details.Element = AAZObjectType()
_ShowHelper._build_schema_disk_details_read(disk_details.Element)
disc_v_mware_virtual_machine = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine")
disc_v_mware_virtual_machine.agent_generated_id = AAZStrType(
serialized_name="agentGeneratedId",
)
disc_v_mware_virtual_machine.agent_installed = AAZStrType(
serialized_name="agentInstalled",
)
disc_v_mware_virtual_machine.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_v_mware_virtual_machine.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_v_mware_virtual_machine.disk_details = AAZListType(
serialized_name="diskDetails",
)
disc_v_mware_virtual_machine.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_v_mware_virtual_machine.os_type = AAZStrType(
serialized_name="osType",
)
disc_v_mware_virtual_machine.powered_on = AAZStrType(
serialized_name="poweredOn",
)
disc_v_mware_virtual_machine.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_v_mware_virtual_machine.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disk_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details
disk_details.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details.Element
_element.disk_configuration = AAZStrType(
serialized_name="diskConfiguration",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_size_in_mb = AAZStrType(
serialized_name="diskSizeInMB",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.volume_list = AAZListType(
serialized_name="volumeList",
)
volume_list = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details.Element.volume_list
volume_list.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details.Element.volume_list.Element
_element.label = AAZStrType()
_element.name = AAZStrType()
validation_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors
validation_errors.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.inner_health_errors = AAZListType(
serialized_name="innerHealthErrors",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
inner_health_errors = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors.Element.inner_health_errors
inner_health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors.Element.inner_health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
disc_vmm_virtual_machine = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VmmVirtualMachine")
disc_vmm_virtual_machine.disk_details = AAZListType(
serialized_name="diskDetails",
)
disc_vmm_virtual_machine.generation = AAZStrType()
disc_vmm_virtual_machine.has_fibre_channel_adapter = AAZStrType(
serialized_name="hasFibreChannelAdapter",
)
disc_vmm_virtual_machine.has_physical_disk = AAZStrType(
serialized_name="hasPhysicalDisk",
)
disc_vmm_virtual_machine.has_shared_vhd = AAZStrType(
serialized_name="hasSharedVhd",
)
disc_vmm_virtual_machine.hyper_v_host_id = AAZStrType(
serialized_name="hyperVHostId",
)
disc_vmm_virtual_machine.os_details = AAZObjectType(
serialized_name="osDetails",
)
_ShowHelper._build_schema_os_details_read(
disc_vmm_virtual_machine.os_details)
disc_vmm_virtual_machine.source_item_id = AAZStrType(
serialized_name="sourceItemId",
)
disk_details = cls._schema_on_200.properties.custom_details.discriminate_by(
"instance_type", "VmmVirtualMachine").disk_details
disk_details.Element = AAZObjectType()
_ShowHelper._build_schema_disk_details_read(disk_details.Element)
protection_readiness_errors = cls._schema_on_200.properties.protection_readiness_errors
protection_readiness_errors.Element = AAZStrType()
supported_replication_providers = cls._schema_on_200.properties.supported_replication_providers
supported_replication_providers.Element = AAZStrType()
return cls._schema_on_200
|
class ReplicationProtectableItemsGet(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 | 38 | 2 | 35 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 358 | 31 | 327 | 38 | 310 | 0 | 138 | 31 | 128 | 2 | 1 | 1 | 11 |
9,881 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/protectable_item/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.protectable_item._list.List.ReplicationProtectableItemsListByReplicationProtectionContainers
|
class ReplicationProtectableItemsListByReplicationProtectionContainers(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"protectionContainerName", self.ctx.args.protection_container_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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(
"$filter", self.ctx.args.filter,
),
**self.serialize_query_param(
"$skipToken", self.ctx.args.skip_token,
),
**self.serialize_query_param(
"$take", self.ctx.args.take,
),
**self.serialize_query_param(
"api-version", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.custom_details = AAZObjectType(
serialized_name="customDetails",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.protection_readiness_errors = AAZListType(
serialized_name="protectionReadinessErrors",
)
properties.protection_status = AAZStrType(
serialized_name="protectionStatus",
)
properties.recovery_services_provider_id = AAZStrType(
serialized_name="recoveryServicesProviderId",
)
properties.replication_protected_item_id = AAZStrType(
serialized_name="replicationProtectedItemId",
)
properties.supported_replication_providers = AAZListType(
serialized_name="supportedReplicationProviders",
)
custom_details = cls._schema_on_200.value.Element.properties.custom_details
custom_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_hyper_v_virtual_machine = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "HyperVVirtualMachine")
disc_hyper_v_virtual_machine.disk_details = AAZListType(
serialized_name="diskDetails",
)
disc_hyper_v_virtual_machine.generation = AAZStrType()
disc_hyper_v_virtual_machine.has_fibre_channel_adapter = AAZStrType(
serialized_name="hasFibreChannelAdapter",
)
disc_hyper_v_virtual_machine.has_physical_disk = AAZStrType(
serialized_name="hasPhysicalDisk",
)
disc_hyper_v_virtual_machine.has_shared_vhd = AAZStrType(
serialized_name="hasSharedVhd",
)
disc_hyper_v_virtual_machine.hyper_v_host_id = AAZStrType(
serialized_name="hyperVHostId",
)
disc_hyper_v_virtual_machine.os_details = AAZObjectType(
serialized_name="osDetails",
)
_ListHelper._build_schema_os_details_read(
disc_hyper_v_virtual_machine.os_details)
disc_hyper_v_virtual_machine.source_item_id = AAZStrType(
serialized_name="sourceItemId",
)
disk_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "HyperVVirtualMachine").disk_details
disk_details.Element = AAZObjectType()
_ListHelper._build_schema_disk_details_read(disk_details.Element)
disc_v_mware_virtual_machine = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine")
disc_v_mware_virtual_machine.agent_generated_id = AAZStrType(
serialized_name="agentGeneratedId",
)
disc_v_mware_virtual_machine.agent_installed = AAZStrType(
serialized_name="agentInstalled",
)
disc_v_mware_virtual_machine.agent_version = AAZStrType(
serialized_name="agentVersion",
)
disc_v_mware_virtual_machine.discovery_type = AAZStrType(
serialized_name="discoveryType",
)
disc_v_mware_virtual_machine.disk_details = AAZListType(
serialized_name="diskDetails",
)
disc_v_mware_virtual_machine.ip_address = AAZStrType(
serialized_name="ipAddress",
)
disc_v_mware_virtual_machine.os_type = AAZStrType(
serialized_name="osType",
)
disc_v_mware_virtual_machine.powered_on = AAZStrType(
serialized_name="poweredOn",
)
disc_v_mware_virtual_machine.v_center_infrastructure_id = AAZStrType(
serialized_name="vCenterInfrastructureId",
)
disc_v_mware_virtual_machine.validation_errors = AAZListType(
serialized_name="validationErrors",
)
disk_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details
disk_details.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details.Element
_element.disk_configuration = AAZStrType(
serialized_name="diskConfiguration",
)
_element.disk_id = AAZStrType(
serialized_name="diskId",
)
_element.disk_name = AAZStrType(
serialized_name="diskName",
)
_element.disk_size_in_mb = AAZStrType(
serialized_name="diskSizeInMB",
)
_element.disk_type = AAZStrType(
serialized_name="diskType",
)
_element.volume_list = AAZListType(
serialized_name="volumeList",
)
volume_list = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details.Element.volume_list
volume_list.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").disk_details.Element.volume_list.Element
_element.label = AAZStrType()
_element.name = AAZStrType()
validation_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors
validation_errors.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.inner_health_errors = AAZListType(
serialized_name="innerHealthErrors",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
inner_health_errors = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors.Element.inner_health_errors
inner_health_errors.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VMwareVirtualMachine").validation_errors.Element.inner_health_errors.Element
_element.creation_time_utc = AAZStrType(
serialized_name="creationTimeUtc",
)
_element.customer_resolvability = AAZStrType(
serialized_name="customerResolvability",
)
_element.entity_id = AAZStrType(
serialized_name="entityId",
)
_element.error_category = AAZStrType(
serialized_name="errorCategory",
)
_element.error_code = AAZStrType(
serialized_name="errorCode",
)
_element.error_id = AAZStrType(
serialized_name="errorId",
)
_element.error_level = AAZStrType(
serialized_name="errorLevel",
)
_element.error_message = AAZStrType(
serialized_name="errorMessage",
)
_element.error_source = AAZStrType(
serialized_name="errorSource",
)
_element.error_type = AAZStrType(
serialized_name="errorType",
)
_element.possible_causes = AAZStrType(
serialized_name="possibleCauses",
)
_element.recommended_action = AAZStrType(
serialized_name="recommendedAction",
)
_element.recovery_provider_error_message = AAZStrType(
serialized_name="recoveryProviderErrorMessage",
)
_element.summary_message = AAZStrType(
serialized_name="summaryMessage",
)
disc_vmm_virtual_machine = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VmmVirtualMachine")
disc_vmm_virtual_machine.disk_details = AAZListType(
serialized_name="diskDetails",
)
disc_vmm_virtual_machine.generation = AAZStrType()
disc_vmm_virtual_machine.has_fibre_channel_adapter = AAZStrType(
serialized_name="hasFibreChannelAdapter",
)
disc_vmm_virtual_machine.has_physical_disk = AAZStrType(
serialized_name="hasPhysicalDisk",
)
disc_vmm_virtual_machine.has_shared_vhd = AAZStrType(
serialized_name="hasSharedVhd",
)
disc_vmm_virtual_machine.hyper_v_host_id = AAZStrType(
serialized_name="hyperVHostId",
)
disc_vmm_virtual_machine.os_details = AAZObjectType(
serialized_name="osDetails",
)
_ListHelper._build_schema_os_details_read(
disc_vmm_virtual_machine.os_details)
disc_vmm_virtual_machine.source_item_id = AAZStrType(
serialized_name="sourceItemId",
)
disk_details = cls._schema_on_200.value.Element.properties.custom_details.discriminate_by(
"instance_type", "VmmVirtualMachine").disk_details
disk_details.Element = AAZObjectType()
_ListHelper._build_schema_disk_details_read(disk_details.Element)
protection_readiness_errors = cls._schema_on_200.value.Element.properties.protection_readiness_errors
protection_readiness_errors.Element = AAZStrType()
supported_replication_providers = cls._schema_on_200.value.Element.properties.supported_replication_providers
supported_replication_providers.Element = AAZStrType()
return cls._schema_on_200
|
class ReplicationProtectableItemsListByReplicationProtectionContainers(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 | 39 | 3 | 37 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 372 | 33 | 339 | 39 | 322 | 0 | 143 | 32 | 133 | 2 | 1 | 1 | 11 |
9,882 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/policy/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.policy._update.Update.ReplicationPoliciesUpdate
|
class ReplicationPoliciesUpdate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}",
**self.url_parameters
)
@property
def method(self):
return "PATCH"
@property
def error_format(self):
return "ODataV4Format"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"policyName", self.ctx.args.policy_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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(
"replicationProviderSettings", AAZObjectType, ".provider_specific_input")
replication_provider_settings = _builder.get(
".properties.replicationProviderSettings")
if replication_provider_settings is not None:
replication_provider_settings.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
replication_provider_settings.set_const(
"instanceType", "HyperVReplica2012", AAZStrType, ".hyper_v_replica2012", typ_kwargs={"flags": {"required": True}})
replication_provider_settings.set_const(
"instanceType", "HyperVReplica2012R2", AAZStrType, ".hyper_v_replica2012_r2", typ_kwargs={"flags": {"required": True}})
replication_provider_settings.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
replication_provider_settings.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
replication_provider_settings.set_const(
"instanceType", "InMageRcmFailback", AAZStrType, ".in_mage_rcm_failback", typ_kwargs={"flags": {"required": True}})
replication_provider_settings.set_const(
"instanceType", "VMwareCbt", AAZStrType, ".vmware_cbt", typ_kwargs={"flags": {"required": True}})
replication_provider_settings.discriminate_by(
"instanceType", "A2A")
replication_provider_settings.discriminate_by(
"instanceType", "HyperVReplica2012")
replication_provider_settings.discriminate_by(
"instanceType", "HyperVReplica2012R2")
replication_provider_settings.discriminate_by(
"instanceType", "HyperVReplicaAzure")
replication_provider_settings.discriminate_by(
"instanceType", "InMage")
replication_provider_settings.discriminate_by(
"instanceType", "InMageAzureV2")
replication_provider_settings.discriminate_by(
"instanceType", "InMageRcm")
replication_provider_settings.discriminate_by(
"instanceType", "InMageRcmFailback")
replication_provider_settings.discriminate_by(
"instanceType", "VMwareCbt")
disc_a2_a = _builder.get(
".properties.replicationProviderSettings{instanceType:A2A}")
if disc_a2_a is not None:
disc_a2_a.set_prop("appConsistentFrequencyInMinutes",
AAZIntType, ".a2a.app_consistent_frequency_in_minutes")
disc_a2_a.set_prop("crashConsistentFrequencyInMinutes",
AAZIntType, ".a2a.crash_consistent_frequency_in_minutes")
disc_a2_a.set_prop("multiVmSyncStatus", AAZStrType, ".a2a.multi_vm_sync_status", typ_kwargs={
"flags": {"required": True}})
disc_a2_a.set_prop("recoveryPointHistory",
AAZIntType, ".a2a.recovery_point_history")
disc_hyper_v_replica2012 = _builder.get(
".properties.replicationProviderSettings{instanceType:HyperVReplica2012}")
if disc_hyper_v_replica2012 is not None:
disc_hyper_v_replica2012.set_prop(
"allowedAuthenticationType", AAZIntType, ".hyper_v_replica2012.allowed_authentication_type")
disc_hyper_v_replica2012.set_prop("applicationConsistentSnapshotFrequencyInHours",
AAZIntType, ".hyper_v_replica2012.application_consistent_snapshot_frequency_in_hours")
disc_hyper_v_replica2012.set_prop(
"compression", AAZStrType, ".hyper_v_replica2012.compression")
disc_hyper_v_replica2012.set_prop(
"initialReplicationMethod", AAZStrType, ".hyper_v_replica2012.initial_replication_method")
disc_hyper_v_replica2012.set_prop(
"offlineReplicationExportPath", AAZStrType, ".hyper_v_replica2012.offline_replication_export_path")
disc_hyper_v_replica2012.set_prop(
"offlineReplicationImportPath", AAZStrType, ".hyper_v_replica2012.offline_replication_import_path")
disc_hyper_v_replica2012.set_prop(
"onlineReplicationStartTime", AAZStrType, ".hyper_v_replica2012.online_replication_start_time")
disc_hyper_v_replica2012.set_prop(
"recoveryPoints", AAZIntType, ".hyper_v_replica2012.recovery_points")
disc_hyper_v_replica2012.set_prop(
"replicaDeletion", AAZStrType, ".hyper_v_replica2012.replica_deletion")
disc_hyper_v_replica2012.set_prop(
"replicationPort", AAZIntType, ".hyper_v_replica2012.replication_port")
disc_hyper_v_replica2012_r2 = _builder.get(
".properties.replicationProviderSettings{instanceType:HyperVReplica2012R2}")
if disc_hyper_v_replica2012_r2 is not None:
disc_hyper_v_replica2012_r2.set_prop(
"allowedAuthenticationType", AAZIntType, ".hyper_v_replica2012_r2.allowed_authentication_type")
disc_hyper_v_replica2012_r2.set_prop("applicationConsistentSnapshotFrequencyInHours",
AAZIntType, ".hyper_v_replica2012_r2.application_consistent_snapshot_frequency_in_hours")
disc_hyper_v_replica2012_r2.set_prop(
"compression", AAZStrType, ".hyper_v_replica2012_r2.compression")
disc_hyper_v_replica2012_r2.set_prop(
"initialReplicationMethod", AAZStrType, ".hyper_v_replica2012_r2.initial_replication_method")
disc_hyper_v_replica2012_r2.set_prop(
"offlineReplicationExportPath", AAZStrType, ".hyper_v_replica2012_r2.offline_replication_export_path")
disc_hyper_v_replica2012_r2.set_prop(
"offlineReplicationImportPath", AAZStrType, ".hyper_v_replica2012_r2.offline_replication_import_path")
disc_hyper_v_replica2012_r2.set_prop(
"onlineReplicationStartTime", AAZStrType, ".hyper_v_replica2012_r2.online_replication_start_time")
disc_hyper_v_replica2012_r2.set_prop(
"recoveryPoints", AAZIntType, ".hyper_v_replica2012_r2.recovery_points")
disc_hyper_v_replica2012_r2.set_prop(
"replicaDeletion", AAZStrType, ".hyper_v_replica2012_r2.replica_deletion")
disc_hyper_v_replica2012_r2.set_prop(
"replicationFrequencyInSeconds", AAZIntType, ".hyper_v_replica2012_r2.replication_frequency_in_seconds")
disc_hyper_v_replica2012_r2.set_prop(
"replicationPort", AAZIntType, ".hyper_v_replica2012_r2.replication_port")
disc_hyper_v_replica_azure = _builder.get(
".properties.replicationProviderSettings{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop("applicationConsistentSnapshotFrequencyInHours",
AAZIntType, ".hyper_v_replica_azure.application_consistent_snapshot_frequency_in_hours")
disc_hyper_v_replica_azure.set_prop(
"onlineReplicationStartTime", AAZStrType, ".hyper_v_replica_azure.online_replication_start_time")
disc_hyper_v_replica_azure.set_prop(
"recoveryPointHistoryDuration", AAZIntType, ".hyper_v_replica_azure.recovery_point_history_duration")
disc_hyper_v_replica_azure.set_prop(
"replicationInterval", AAZIntType, ".hyper_v_replica_azure.replication_interval")
disc_hyper_v_replica_azure.set_prop(
"storageAccounts", AAZListType, ".hyper_v_replica_azure.storage_accounts")
storage_accounts = _builder.get(
".properties.replicationProviderSettings{instanceType:HyperVReplicaAzure}.storageAccounts")
if storage_accounts is not None:
storage_accounts.set_elements(AAZStrType, ".")
disc_in_mage = _builder.get(
".properties.replicationProviderSettings{instanceType:InMage}")
if disc_in_mage is not None:
disc_in_mage.set_prop("appConsistentFrequencyInMinutes",
AAZIntType, ".in_mage.app_consistent_frequency_in_minutes")
disc_in_mage.set_prop("multiVmSyncStatus", AAZStrType, ".in_mage.multi_vm_sync_status", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop(
"recoveryPointHistory", AAZIntType, ".in_mage.recovery_point_history")
disc_in_mage.set_prop("recoveryPointThresholdInMinutes",
AAZIntType, ".in_mage.recovery_point_threshold_in_minutes")
disc_in_mage_azure_v2 = _builder.get(
".properties.replicationProviderSettings{instanceType:InMageAzureV2}")
if disc_in_mage_azure_v2 is not None:
disc_in_mage_azure_v2.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".in_mage_azure_v2.app_consistent_frequency_in_minutes")
disc_in_mage_azure_v2.set_prop(
"crashConsistentFrequencyInMinutes", AAZIntType, ".in_mage_azure_v2.crash_consistent_frequency_in_minutes")
disc_in_mage_azure_v2.set_prop("multiVmSyncStatus", AAZStrType, ".in_mage_azure_v2.multi_vm_sync_status", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_azure_v2.set_prop(
"recoveryPointHistory", AAZIntType, ".in_mage_azure_v2.recovery_point_history")
disc_in_mage_azure_v2.set_prop(
"recoveryPointThresholdInMinutes", AAZIntType, ".in_mage_azure_v2.recovery_point_threshold_in_minutes")
disc_in_mage_rcm = _builder.get(
".properties.replicationProviderSettings{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".in_mage_rcm.app_consistent_frequency_in_minutes")
disc_in_mage_rcm.set_prop("crashConsistentFrequencyInMinutes",
AAZIntType, ".in_mage_rcm.crash_consistent_frequency_in_minutes")
disc_in_mage_rcm.set_prop(
"enableMultiVmSync", AAZStrType, ".in_mage_rcm.enable_multi_vm_sync")
disc_in_mage_rcm.set_prop(
"recoveryPointHistoryInMinutes", AAZIntType, ".in_mage_rcm.recovery_point_history_in_minutes")
disc_in_mage_rcm_failback = _builder.get(
".properties.replicationProviderSettings{instanceType:InMageRcmFailback}")
if disc_in_mage_rcm_failback is not None:
disc_in_mage_rcm_failback.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".in_mage_rcm_failback.app_consistent_frequency_in_minutes")
disc_in_mage_rcm_failback.set_prop(
"crashConsistentFrequencyInMinutes", AAZIntType, ".in_mage_rcm_failback.crash_consistent_frequency_in_minutes")
disc_v_mware_cbt = _builder.get(
".properties.replicationProviderSettings{instanceType:VMwareCbt}")
if disc_v_mware_cbt is not None:
disc_v_mware_cbt.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".vmware_cbt.app_consistent_frequency_in_minutes")
disc_v_mware_cbt.set_prop("crashConsistentFrequencyInMinutes",
AAZIntType, ".vmware_cbt.crash_consistent_frequency_in_minutes")
disc_v_mware_cbt.set_prop(
"recoveryPointHistoryInMinutes", AAZIntType, ".vmware_cbt.recovery_point_history_in_minutes")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_a2_a.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_a2_a.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_a2_a.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_a2_a.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012.compression = AAZStrType()
disc_hyper_v_replica2012.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012_r2.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012_r2.compression = AAZStrType()
disc_hyper_v_replica2012_r2.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012_r2.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012_r2.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012_r2.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012_r2.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012_r2.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012_r2.replication_frequency_in_seconds = AAZIntType(
serialized_name="replicationFrequencyInSeconds",
)
disc_hyper_v_replica2012_r2.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.active_storage_account_id = AAZStrType(
serialized_name="activeStorageAccountId",
)
disc_hyper_v_replica_azure.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_azure.recovery_point_history_duration_in_hours = AAZIntType(
serialized_name="recoveryPointHistoryDurationInHours",
)
disc_hyper_v_replica_azure.replication_interval = AAZIntType(
serialized_name="replicationInterval",
)
disc_hyper_v_replica_base_policy_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBasePolicyDetails")
disc_hyper_v_replica_base_policy_details.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica_base_policy_details.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_base_policy_details.compression = AAZStrType()
disc_hyper_v_replica_base_policy_details.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica_base_policy_details.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica_base_policy_details.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica_base_policy_details.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_base_policy_details.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica_base_policy_details.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica_base_policy_details.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_azure_v2.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_base_policy_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageBasePolicyDetails")
disc_in_mage_base_policy_details.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_base_policy_details.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_base_policy_details.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_base_policy_details.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.enable_multi_vm_sync = AAZStrType(
serialized_name="enableMultiVmSync",
)
disc_in_mage_rcm.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm_failback.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
return cls._schema_on_200
|
class ReplicationPoliciesUpdate(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 | 43 | 3 | 40 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 9 | 1 | 10 | 10 | 450 | 41 | 409 | 55 | 390 | 0 | 214 | 46 | 203 | 13 | 1 | 1 | 25 |
9,883 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/policy/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.policy._show.Show.ReplicationPoliciesGet
|
class ReplicationPoliciesGet(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.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}",
**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(
"policyName", self.ctx.args.policy_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_a2_a.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_a2_a.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_a2_a.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_a2_a.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012.compression = AAZStrType()
disc_hyper_v_replica2012.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012_r2.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012_r2.compression = AAZStrType()
disc_hyper_v_replica2012_r2.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012_r2.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012_r2.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012_r2.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012_r2.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012_r2.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012_r2.replication_frequency_in_seconds = AAZIntType(
serialized_name="replicationFrequencyInSeconds",
)
disc_hyper_v_replica2012_r2.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.active_storage_account_id = AAZStrType(
serialized_name="activeStorageAccountId",
)
disc_hyper_v_replica_azure.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_azure.recovery_point_history_duration_in_hours = AAZIntType(
serialized_name="recoveryPointHistoryDurationInHours",
)
disc_hyper_v_replica_azure.replication_interval = AAZIntType(
serialized_name="replicationInterval",
)
disc_hyper_v_replica_base_policy_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBasePolicyDetails")
disc_hyper_v_replica_base_policy_details.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica_base_policy_details.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_base_policy_details.compression = AAZStrType()
disc_hyper_v_replica_base_policy_details.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica_base_policy_details.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica_base_policy_details.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica_base_policy_details.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_base_policy_details.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica_base_policy_details.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica_base_policy_details.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_azure_v2.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_base_policy_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageBasePolicyDetails")
disc_in_mage_base_policy_details.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_base_policy_details.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_base_policy_details.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_base_policy_details.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.enable_multi_vm_sync = AAZStrType(
serialized_name="enableMultiVmSync",
)
disc_in_mage_rcm.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm_failback.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
return cls._schema_on_200
|
class ReplicationPoliciesGet(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 | 33 | 2 | 31 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 318 | 27 | 291 | 39 | 274 | 0 | 118 | 32 | 108 | 2 | 1 | 1 | 11 |
9,884 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/policy/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.policy._list.List.ReplicationPoliciesList
|
class ReplicationPoliciesList(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.RecoveryServices/vaults/{resourceName}/replicationPolicies",
**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(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
provider_specific_details = cls._schema_on_200.value.Element.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_a2_a.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_a2_a.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_a2_a.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_a2_a.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_hyper_v_replica2012 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012.compression = AAZStrType()
disc_hyper_v_replica2012.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012_r2.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012_r2.compression = AAZStrType()
disc_hyper_v_replica2012_r2.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012_r2.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012_r2.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012_r2.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012_r2.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012_r2.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012_r2.replication_frequency_in_seconds = AAZIntType(
serialized_name="replicationFrequencyInSeconds",
)
disc_hyper_v_replica2012_r2.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica_azure = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.active_storage_account_id = AAZStrType(
serialized_name="activeStorageAccountId",
)
disc_hyper_v_replica_azure.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_azure.recovery_point_history_duration_in_hours = AAZIntType(
serialized_name="recoveryPointHistoryDurationInHours",
)
disc_hyper_v_replica_azure.replication_interval = AAZIntType(
serialized_name="replicationInterval",
)
disc_hyper_v_replica_base_policy_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBasePolicyDetails")
disc_hyper_v_replica_base_policy_details.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica_base_policy_details.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_base_policy_details.compression = AAZStrType()
disc_hyper_v_replica_base_policy_details.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica_base_policy_details.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica_base_policy_details.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica_base_policy_details.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_base_policy_details.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica_base_policy_details.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica_base_policy_details.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_in_mage = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_azure_v2 = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_azure_v2.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_base_policy_details = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageBasePolicyDetails")
disc_in_mage_base_policy_details.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_base_policy_details.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_base_policy_details.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_base_policy_details.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_rcm = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.enable_multi_vm_sync = AAZStrType(
serialized_name="enableMultiVmSync",
)
disc_in_mage_rcm.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
disc_in_mage_rcm_failback = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm_failback.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt = cls._schema_on_200.value.Element.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
return cls._schema_on_200
|
class ReplicationPoliciesList(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 | 34 | 2 | 32 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 323 | 29 | 294 | 41 | 277 | 0 | 123 | 34 | 113 | 2 | 1 | 1 | 11 |
9,885 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/policy/_delete.py
|
azext_site_recovery.aaz.latest.site_recovery.policy._delete.Delete.ReplicationPoliciesDelete
|
class ReplicationPoliciesDelete(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}",
**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(
"policyName", self.ctx.args.policy_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationPoliciesDelete(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 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 88 | 9 | 79 | 20 | 65 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,886 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/policy/_create.py
|
azext_site_recovery.aaz.latest.site_recovery.policy._create.Create.ReplicationPoliciesCreate
|
class ReplicationPoliciesCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}",
**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(
"policyName", self.ctx.args.policy_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("providerSpecificInput",
AAZObjectType, ".provider_specific_input")
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_const(
"instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "HyperVReplica2012", AAZStrType, ".hyper_v_replica2012", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "HyperVReplica2012R2", AAZStrType, ".hyper_v_replica2012_r2", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "HyperVReplicaAzure", AAZStrType, ".hyper_v_replica_azure", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "InMageRcm", AAZStrType, ".in_mage_rcm", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "InMageRcmFailback", AAZStrType, ".in_mage_rcm_failback", typ_kwargs={"flags": {"required": True}})
provider_specific_input.set_const(
"instanceType", "VMwareCbt", AAZStrType, ".vmware_cbt", typ_kwargs={"flags": {"required": True}})
provider_specific_input.discriminate_by("instanceType", "A2A")
provider_specific_input.discriminate_by(
"instanceType", "HyperVReplica2012")
provider_specific_input.discriminate_by(
"instanceType", "HyperVReplica2012R2")
provider_specific_input.discriminate_by(
"instanceType", "HyperVReplicaAzure")
provider_specific_input.discriminate_by(
"instanceType", "InMage")
provider_specific_input.discriminate_by(
"instanceType", "InMageAzureV2")
provider_specific_input.discriminate_by(
"instanceType", "InMageRcm")
provider_specific_input.discriminate_by(
"instanceType", "InMageRcmFailback")
provider_specific_input.discriminate_by(
"instanceType", "VMwareCbt")
disc_a2_a = _builder.get(
".properties.providerSpecificInput{instanceType:A2A}")
if disc_a2_a is not None:
disc_a2_a.set_prop("appConsistentFrequencyInMinutes",
AAZIntType, ".a2a.app_consistent_frequency_in_minutes")
disc_a2_a.set_prop("crashConsistentFrequencyInMinutes",
AAZIntType, ".a2a.crash_consistent_frequency_in_minutes")
disc_a2_a.set_prop("multiVmSyncStatus", AAZStrType, ".a2a.multi_vm_sync_status", typ_kwargs={
"flags": {"required": True}})
disc_a2_a.set_prop("recoveryPointHistory",
AAZIntType, ".a2a.recovery_point_history")
disc_hyper_v_replica2012 = _builder.get(
".properties.providerSpecificInput{instanceType:HyperVReplica2012}")
if disc_hyper_v_replica2012 is not None:
disc_hyper_v_replica2012.set_prop(
"allowedAuthenticationType", AAZIntType, ".hyper_v_replica2012.allowed_authentication_type")
disc_hyper_v_replica2012.set_prop("applicationConsistentSnapshotFrequencyInHours",
AAZIntType, ".hyper_v_replica2012.application_consistent_snapshot_frequency_in_hours")
disc_hyper_v_replica2012.set_prop(
"compression", AAZStrType, ".hyper_v_replica2012.compression")
disc_hyper_v_replica2012.set_prop(
"initialReplicationMethod", AAZStrType, ".hyper_v_replica2012.initial_replication_method")
disc_hyper_v_replica2012.set_prop(
"offlineReplicationExportPath", AAZStrType, ".hyper_v_replica2012.offline_replication_export_path")
disc_hyper_v_replica2012.set_prop(
"offlineReplicationImportPath", AAZStrType, ".hyper_v_replica2012.offline_replication_import_path")
disc_hyper_v_replica2012.set_prop(
"onlineReplicationStartTime", AAZStrType, ".hyper_v_replica2012.online_replication_start_time")
disc_hyper_v_replica2012.set_prop(
"recoveryPoints", AAZIntType, ".hyper_v_replica2012.recovery_points")
disc_hyper_v_replica2012.set_prop(
"replicaDeletion", AAZStrType, ".hyper_v_replica2012.replica_deletion")
disc_hyper_v_replica2012.set_prop(
"replicationPort", AAZIntType, ".hyper_v_replica2012.replication_port")
disc_hyper_v_replica2012_r2 = _builder.get(
".properties.providerSpecificInput{instanceType:HyperVReplica2012R2}")
if disc_hyper_v_replica2012_r2 is not None:
disc_hyper_v_replica2012_r2.set_prop(
"allowedAuthenticationType", AAZIntType, ".hyper_v_replica2012_r2.allowed_authentication_type")
disc_hyper_v_replica2012_r2.set_prop("applicationConsistentSnapshotFrequencyInHours",
AAZIntType, ".hyper_v_replica2012_r2.application_consistent_snapshot_frequency_in_hours")
disc_hyper_v_replica2012_r2.set_prop(
"compression", AAZStrType, ".hyper_v_replica2012_r2.compression")
disc_hyper_v_replica2012_r2.set_prop(
"initialReplicationMethod", AAZStrType, ".hyper_v_replica2012_r2.initial_replication_method")
disc_hyper_v_replica2012_r2.set_prop(
"offlineReplicationExportPath", AAZStrType, ".hyper_v_replica2012_r2.offline_replication_export_path")
disc_hyper_v_replica2012_r2.set_prop(
"offlineReplicationImportPath", AAZStrType, ".hyper_v_replica2012_r2.offline_replication_import_path")
disc_hyper_v_replica2012_r2.set_prop(
"onlineReplicationStartTime", AAZStrType, ".hyper_v_replica2012_r2.online_replication_start_time")
disc_hyper_v_replica2012_r2.set_prop(
"recoveryPoints", AAZIntType, ".hyper_v_replica2012_r2.recovery_points")
disc_hyper_v_replica2012_r2.set_prop(
"replicaDeletion", AAZStrType, ".hyper_v_replica2012_r2.replica_deletion")
disc_hyper_v_replica2012_r2.set_prop(
"replicationFrequencyInSeconds", AAZIntType, ".hyper_v_replica2012_r2.replication_frequency_in_seconds")
disc_hyper_v_replica2012_r2.set_prop(
"replicationPort", AAZIntType, ".hyper_v_replica2012_r2.replication_port")
disc_hyper_v_replica_azure = _builder.get(
".properties.providerSpecificInput{instanceType:HyperVReplicaAzure}")
if disc_hyper_v_replica_azure is not None:
disc_hyper_v_replica_azure.set_prop("applicationConsistentSnapshotFrequencyInHours",
AAZIntType, ".hyper_v_replica_azure.application_consistent_snapshot_frequency_in_hours")
disc_hyper_v_replica_azure.set_prop(
"onlineReplicationStartTime", AAZStrType, ".hyper_v_replica_azure.online_replication_start_time")
disc_hyper_v_replica_azure.set_prop(
"recoveryPointHistoryDuration", AAZIntType, ".hyper_v_replica_azure.recovery_point_history_duration")
disc_hyper_v_replica_azure.set_prop(
"replicationInterval", AAZIntType, ".hyper_v_replica_azure.replication_interval")
disc_hyper_v_replica_azure.set_prop(
"storageAccounts", AAZListType, ".hyper_v_replica_azure.storage_accounts")
storage_accounts = _builder.get(
".properties.providerSpecificInput{instanceType:HyperVReplicaAzure}.storageAccounts")
if storage_accounts is not None:
storage_accounts.set_elements(AAZStrType, ".")
disc_in_mage = _builder.get(
".properties.providerSpecificInput{instanceType:InMage}")
if disc_in_mage is not None:
disc_in_mage.set_prop("appConsistentFrequencyInMinutes",
AAZIntType, ".in_mage.app_consistent_frequency_in_minutes")
disc_in_mage.set_prop("multiVmSyncStatus", AAZStrType, ".in_mage.multi_vm_sync_status", typ_kwargs={
"flags": {"required": True}})
disc_in_mage.set_prop(
"recoveryPointHistory", AAZIntType, ".in_mage.recovery_point_history")
disc_in_mage.set_prop("recoveryPointThresholdInMinutes",
AAZIntType, ".in_mage.recovery_point_threshold_in_minutes")
disc_in_mage_azure_v2 = _builder.get(
".properties.providerSpecificInput{instanceType:InMageAzureV2}")
if disc_in_mage_azure_v2 is not None:
disc_in_mage_azure_v2.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".in_mage_azure_v2.app_consistent_frequency_in_minutes")
disc_in_mage_azure_v2.set_prop(
"crashConsistentFrequencyInMinutes", AAZIntType, ".in_mage_azure_v2.crash_consistent_frequency_in_minutes")
disc_in_mage_azure_v2.set_prop("multiVmSyncStatus", AAZStrType, ".in_mage_azure_v2.multi_vm_sync_status", typ_kwargs={
"flags": {"required": True}})
disc_in_mage_azure_v2.set_prop(
"recoveryPointHistory", AAZIntType, ".in_mage_azure_v2.recovery_point_history")
disc_in_mage_azure_v2.set_prop(
"recoveryPointThresholdInMinutes", AAZIntType, ".in_mage_azure_v2.recovery_point_threshold_in_minutes")
disc_in_mage_rcm = _builder.get(
".properties.providerSpecificInput{instanceType:InMageRcm}")
if disc_in_mage_rcm is not None:
disc_in_mage_rcm.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".in_mage_rcm.app_consistent_frequency_in_minutes")
disc_in_mage_rcm.set_prop("crashConsistentFrequencyInMinutes",
AAZIntType, ".in_mage_rcm.crash_consistent_frequency_in_minutes")
disc_in_mage_rcm.set_prop(
"enableMultiVmSync", AAZStrType, ".in_mage_rcm.enable_multi_vm_sync")
disc_in_mage_rcm.set_prop(
"recoveryPointHistoryInMinutes", AAZIntType, ".in_mage_rcm.recovery_point_history_in_minutes")
disc_in_mage_rcm_failback = _builder.get(
".properties.providerSpecificInput{instanceType:InMageRcmFailback}")
if disc_in_mage_rcm_failback is not None:
disc_in_mage_rcm_failback.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".in_mage_rcm_failback.app_consistent_frequency_in_minutes")
disc_in_mage_rcm_failback.set_prop(
"crashConsistentFrequencyInMinutes", AAZIntType, ".in_mage_rcm_failback.crash_consistent_frequency_in_minutes")
disc_v_mware_cbt = _builder.get(
".properties.providerSpecificInput{instanceType:VMwareCbt}")
if disc_v_mware_cbt is not None:
disc_v_mware_cbt.set_prop(
"appConsistentFrequencyInMinutes", AAZIntType, ".vmware_cbt.app_consistent_frequency_in_minutes")
disc_v_mware_cbt.set_prop("crashConsistentFrequencyInMinutes",
AAZIntType, ".vmware_cbt.crash_consistent_frequency_in_minutes")
disc_v_mware_cbt.set_prop(
"recoveryPointHistoryInMinutes", AAZIntType, ".vmware_cbt.recovery_point_history_in_minutes")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.provider_specific_details = AAZObjectType(
serialized_name="providerSpecificDetails",
)
provider_specific_details = cls._schema_on_200.properties.provider_specific_details
provider_specific_details.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_a2_a = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "A2A")
disc_a2_a.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_a2_a.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_a2_a.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_a2_a.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_a2_a.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_hyper_v_replica2012 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012")
disc_hyper_v_replica2012.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012.compression = AAZStrType()
disc_hyper_v_replica2012.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica2012_r2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplica2012R2")
disc_hyper_v_replica2012_r2.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica2012_r2.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica2012_r2.compression = AAZStrType()
disc_hyper_v_replica2012_r2.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica2012_r2.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica2012_r2.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica2012_r2.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica2012_r2.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica2012_r2.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica2012_r2.replication_frequency_in_seconds = AAZIntType(
serialized_name="replicationFrequencyInSeconds",
)
disc_hyper_v_replica2012_r2.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_hyper_v_replica_azure = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaAzure")
disc_hyper_v_replica_azure.active_storage_account_id = AAZStrType(
serialized_name="activeStorageAccountId",
)
disc_hyper_v_replica_azure.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_azure.encryption = AAZStrType()
disc_hyper_v_replica_azure.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_azure.recovery_point_history_duration_in_hours = AAZIntType(
serialized_name="recoveryPointHistoryDurationInHours",
)
disc_hyper_v_replica_azure.replication_interval = AAZIntType(
serialized_name="replicationInterval",
)
disc_hyper_v_replica_base_policy_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "HyperVReplicaBasePolicyDetails")
disc_hyper_v_replica_base_policy_details.allowed_authentication_type = AAZIntType(
serialized_name="allowedAuthenticationType",
)
disc_hyper_v_replica_base_policy_details.application_consistent_snapshot_frequency_in_hours = AAZIntType(
serialized_name="applicationConsistentSnapshotFrequencyInHours",
)
disc_hyper_v_replica_base_policy_details.compression = AAZStrType()
disc_hyper_v_replica_base_policy_details.initial_replication_method = AAZStrType(
serialized_name="initialReplicationMethod",
)
disc_hyper_v_replica_base_policy_details.offline_replication_export_path = AAZStrType(
serialized_name="offlineReplicationExportPath",
)
disc_hyper_v_replica_base_policy_details.offline_replication_import_path = AAZStrType(
serialized_name="offlineReplicationImportPath",
)
disc_hyper_v_replica_base_policy_details.online_replication_start_time = AAZStrType(
serialized_name="onlineReplicationStartTime",
)
disc_hyper_v_replica_base_policy_details.recovery_points = AAZIntType(
serialized_name="recoveryPoints",
)
disc_hyper_v_replica_base_policy_details.replica_deletion_option = AAZStrType(
serialized_name="replicaDeletionOption",
)
disc_hyper_v_replica_base_policy_details.replication_port = AAZIntType(
serialized_name="replicationPort",
)
disc_in_mage = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMage")
disc_in_mage.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_azure_v2 = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageAzureV2")
disc_in_mage_azure_v2.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_azure_v2.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_azure_v2.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_azure_v2.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_base_policy_details = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageBasePolicyDetails")
disc_in_mage_base_policy_details.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_base_policy_details.multi_vm_sync_status = AAZStrType(
serialized_name="multiVmSyncStatus",
)
disc_in_mage_base_policy_details.recovery_point_history = AAZIntType(
serialized_name="recoveryPointHistory",
)
disc_in_mage_base_policy_details.recovery_point_threshold_in_minutes = AAZIntType(
serialized_name="recoveryPointThresholdInMinutes",
)
disc_in_mage_rcm = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcm")
disc_in_mage_rcm.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_in_mage_rcm.enable_multi_vm_sync = AAZStrType(
serialized_name="enableMultiVmSync",
)
disc_in_mage_rcm.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
disc_in_mage_rcm_failback = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "InMageRcmFailback")
disc_in_mage_rcm_failback.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_in_mage_rcm_failback.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt = cls._schema_on_200.properties.provider_specific_details.discriminate_by(
"instance_type", "VMwareCbt")
disc_v_mware_cbt.app_consistent_frequency_in_minutes = AAZIntType(
serialized_name="appConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.crash_consistent_frequency_in_minutes = AAZIntType(
serialized_name="crashConsistentFrequencyInMinutes",
)
disc_v_mware_cbt.recovery_point_history_in_minutes = AAZIntType(
serialized_name="recoveryPointHistoryInMinutes",
)
return cls._schema_on_200
|
class ReplicationPoliciesCreate(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 | 43 | 3 | 40 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 9 | 1 | 10 | 10 | 450 | 41 | 409 | 55 | 390 | 0 | 214 | 46 | 203 | 13 | 1 | 1 | 25 |
9,887 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/mapping/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.network.mapping._update.Update.ReplicationNetworkMappingsGet
|
class ReplicationNetworkMappingsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"networkMappingName", self.ctx.args.network_mapping_name,
required=True,
),
**self.serialize_url_param(
"networkName", self.ctx.args.network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_network_mapping_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationNetworkMappingsGet(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 | 8 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 94 | 13 | 81 | 25 | 64 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,888 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/recovery_plan/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.recovery_plan._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("failoverDeploymentModel",
AAZStrType, ".failover_deployment_model")
properties.set_prop("groups", AAZListType, ".groups", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("primaryFabricId", AAZStrType, ".primary_fabric_id", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("providerSpecificInput",
AAZListType, ".provider_specific_input")
properties.set_prop("recoveryFabricId", AAZStrType, ".recovery_fabric_id", typ_kwargs={
"flags": {"required": True}})
groups = _builder.get(".properties.groups")
if groups is not None:
groups.set_elements(AAZObjectType, ".")
_elements = _builder.get(".properties.groups[]")
if _elements is not None:
_elements.set_prop("endGroupActions",
AAZListType, ".end_group_actions")
_elements.set_prop("groupType", AAZStrType, ".group_type", typ_kwargs={
"flags": {"required": True}})
_elements.set_prop("replicationProtectedItems",
AAZListType, ".replication_protected_items")
_elements.set_prop("startGroupActions",
AAZListType, ".start_group_actions")
end_group_actions = _builder.get(
".properties.groups[].endGroupActions")
if end_group_actions is not None:
_UpdateHelper._build_schema_recovery_plan_action_update(
end_group_actions.set_elements(AAZObjectType, "."))
replication_protected_items = _builder.get(
".properties.groups[].replicationProtectedItems")
if replication_protected_items is not None:
replication_protected_items.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.groups[].replicationProtectedItems[]")
if _elements is not None:
_elements.set_prop("id", AAZStrType, ".id")
_elements.set_prop("virtualMachineId",
AAZStrType, ".virtual_machine_id")
start_group_actions = _builder.get(
".properties.groups[].startGroupActions")
if start_group_actions is not None:
_UpdateHelper._build_schema_recovery_plan_action_update(
start_group_actions.set_elements(AAZObjectType, "."))
provider_specific_input = _builder.get(
".properties.providerSpecificInput")
if provider_specific_input is not None:
provider_specific_input.set_elements(AAZObjectType, ".")
_elements = _builder.get(".properties.providerSpecificInput[]")
if _elements is not None:
_elements.set_const("instanceType", "A2A", AAZStrType, ".a2a", typ_kwargs={
"flags": {"required": True}})
_elements.discriminate_by("instanceType", "A2A")
disc_a2_a = _builder.get(
".properties.providerSpecificInput[]{instanceType:A2A}")
if disc_a2_a is not None:
_UpdateHelper._build_schema_extended_location_update(disc_a2_a.set_prop(
"primaryExtendedLocation", AAZObjectType, ".a2a.primary_extended_location"))
disc_a2_a.set_prop("primaryZone", AAZStrType,
".a2a.primary_zone")
_UpdateHelper._build_schema_extended_location_update(disc_a2_a.set_prop(
"recoveryExtendedLocation", AAZObjectType, ".a2a.recovery_extended_location"))
disc_a2_a.set_prop(
"recoveryZone", AAZStrType, ".a2a.recovery_zone")
return _instance_value
|
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation):
def __call__(self, *args, **kwargs):
pass
def _update_instance(self, instance):
pass
| 3 | 0 | 32 | 6 | 26 | 0 | 6 | 0 | 1 | 1 | 1 | 0 | 2 | 0 | 2 | 2 | 66 | 13 | 53 | 12 | 50 | 0 | 49 | 12 | 46 | 11 | 1 | 1 | 12 |
9,889 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/mapping/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.network.mapping._update.Update.ReplicationNetworkMappingsCreate
|
class ReplicationNetworkMappingsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"networkMappingName", self.ctx.args.network_mapping_name,
required=True,
),
**self.serialize_url_param(
"networkName", self.ctx.args.network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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_network_mapping_read(
cls._schema_on_200)
return cls._schema_on_200
|
class ReplicationNetworkMappingsCreate(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 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 122 | 15 | 107 | 29 | 88 | 0 | 38 | 20 | 27 | 3 | 1 | 1 | 13 |
9,890 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/mapping/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.network.mapping._show.Show.ReplicationNetworkMappingsGet
|
class ReplicationNetworkMappingsGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"networkMappingName", self.ctx.args.network_mapping_name,
required=True,
),
**self.serialize_url_param(
"networkName", self.ctx.args.network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.fabric_specific_settings = AAZObjectType(
serialized_name="fabricSpecificSettings",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_network_friendly_name = AAZStrType(
serialized_name="primaryNetworkFriendlyName",
)
properties.primary_network_id = AAZStrType(
serialized_name="primaryNetworkId",
)
properties.recovery_fabric_arm_id = AAZStrType(
serialized_name="recoveryFabricArmId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_network_friendly_name = AAZStrType(
serialized_name="recoveryNetworkFriendlyName",
)
properties.recovery_network_id = AAZStrType(
serialized_name="recoveryNetworkId",
)
properties.state = AAZStrType()
fabric_specific_settings = cls._schema_on_200.properties.fabric_specific_settings
fabric_specific_settings.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_azure_to_azure = cls._schema_on_200.properties.fabric_specific_settings.discriminate_by(
"instance_type", "AzureToAzure")
disc_azure_to_azure.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_azure_to_azure.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_vmm_to_azure = cls._schema_on_200.properties.fabric_specific_settings.discriminate_by(
"instance_type", "VmmToAzure")
disc_vmm_to_azure.location = AAZStrType()
return cls._schema_on_200
|
class ReplicationNetworkMappingsGet(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 | 14 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 150 | 18 | 132 | 30 | 115 | 0 | 55 | 23 | 45 | 2 | 1 | 1 | 11 |
9,891 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/mapping/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.network.mapping._list.List.ReplicationNetworkMappingsListByReplicationNetworks
|
class ReplicationNetworkMappingsListByReplicationNetworks(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"networkName", self.ctx.args.network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.fabric_specific_settings = AAZObjectType(
serialized_name="fabricSpecificSettings",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_network_friendly_name = AAZStrType(
serialized_name="primaryNetworkFriendlyName",
)
properties.primary_network_id = AAZStrType(
serialized_name="primaryNetworkId",
)
properties.recovery_fabric_arm_id = AAZStrType(
serialized_name="recoveryFabricArmId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_network_friendly_name = AAZStrType(
serialized_name="recoveryNetworkFriendlyName",
)
properties.recovery_network_id = AAZStrType(
serialized_name="recoveryNetworkId",
)
properties.state = AAZStrType()
fabric_specific_settings = cls._schema_on_200.value.Element.properties.fabric_specific_settings
fabric_specific_settings.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_azure_to_azure = cls._schema_on_200.value.Element.properties.fabric_specific_settings.discriminate_by(
"instance_type", "AzureToAzure")
disc_azure_to_azure.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_azure_to_azure.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_vmm_to_azure = cls._schema_on_200.value.Element.properties.fabric_specific_settings.discriminate_by(
"instance_type", "VmmToAzure")
disc_vmm_to_azure.location = AAZStrType()
return cls._schema_on_200
|
class ReplicationNetworkMappingsListByReplicationNetworks(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 | 20 | 135 | 32 | 118 | 0 | 60 | 25 | 50 | 2 | 1 | 1 | 11 |
9,892 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/mapping/_delete.py
|
azext_site_recovery.aaz.latest.site_recovery.network.mapping._delete.Delete.ReplicationNetworkMappingsDelete
|
class ReplicationNetworkMappingsDelete(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_204,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"networkMappingName", self.ctx.args.network_mapping_name,
required=True,
),
**self.serialize_url_param(
"networkName", self.ctx.args.network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class ReplicationNetworkMappingsDelete(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 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 96 | 9 | 87 | 20 | 73 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,893 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/mapping/_create.py
|
azext_site_recovery.aaz.latest.site_recovery.network.mapping._create.Create.ReplicationNetworkMappingsCreate
|
class ReplicationNetworkMappingsCreate(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,
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]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200,
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}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"networkMappingName", self.ctx.args.network_mapping_name,
required=True,
),
**self.serialize_url_param(
"networkName", self.ctx.args.network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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("fabricSpecificDetails",
AAZObjectType, ".fabric_specific_details")
properties.set_prop("recoveryFabricName",
AAZStrType, ".recovery_fabric_name")
properties.set_prop("recoveryNetworkId", AAZStrType, ".recovery_network_id", typ_kwargs={
"flags": {"required": True}})
fabric_specific_details = _builder.get(
".properties.fabricSpecificDetails")
if fabric_specific_details is not None:
fabric_specific_details.set_const(
"instanceType", "AzureToAzure", AAZStrType, ".azure_to_azure", typ_kwargs={"flags": {"required": True}})
fabric_specific_details.set_const(
"instanceType", "VmmToAzure", AAZStrType, ".vmm_to_azure", typ_kwargs={"flags": {"required": True}})
fabric_specific_details.discriminate_by(
"instanceType", "AzureToAzure")
fabric_specific_details.discriminate_by(
"instanceType", "VmmToAzure")
disc_azure_to_azure = _builder.get(
".properties.fabricSpecificDetails{instanceType:AzureToAzure}")
if disc_azure_to_azure is not None:
disc_azure_to_azure.set_prop("primaryNetworkId", AAZStrType, ".azure_to_azure.primary_network_id", typ_kwargs={
"flags": {"required": True}})
disc_vmm_to_azure = _builder.get(
".properties.fabricSpecificDetails{instanceType:VmmToAzure}")
if disc_vmm_to_azure is not None:
disc_vmm_to_azure.set_prop(
"location", AAZStrType, ".vmm_to_azure.location")
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.fabric_specific_settings = AAZObjectType(
serialized_name="fabricSpecificSettings",
)
properties.primary_fabric_friendly_name = AAZStrType(
serialized_name="primaryFabricFriendlyName",
)
properties.primary_network_friendly_name = AAZStrType(
serialized_name="primaryNetworkFriendlyName",
)
properties.primary_network_id = AAZStrType(
serialized_name="primaryNetworkId",
)
properties.recovery_fabric_arm_id = AAZStrType(
serialized_name="recoveryFabricArmId",
)
properties.recovery_fabric_friendly_name = AAZStrType(
serialized_name="recoveryFabricFriendlyName",
)
properties.recovery_network_friendly_name = AAZStrType(
serialized_name="recoveryNetworkFriendlyName",
)
properties.recovery_network_id = AAZStrType(
serialized_name="recoveryNetworkId",
)
properties.state = AAZStrType()
fabric_specific_settings = cls._schema_on_200.properties.fabric_specific_settings
fabric_specific_settings.instance_type = AAZStrType(
serialized_name="instanceType",
flags={"required": True},
)
disc_azure_to_azure = cls._schema_on_200.properties.fabric_specific_settings.discriminate_by(
"instance_type", "AzureToAzure")
disc_azure_to_azure.primary_fabric_location = AAZStrType(
serialized_name="primaryFabricLocation",
)
disc_azure_to_azure.recovery_fabric_location = AAZStrType(
serialized_name="recoveryFabricLocation",
)
disc_vmm_to_azure = cls._schema_on_200.properties.fabric_specific_settings.discriminate_by(
"instance_type", "VmmToAzure")
disc_vmm_to_azure.location = AAZStrType()
return cls._schema_on_200
|
class ReplicationNetworkMappingsCreate(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 | 18 | 1 | 17 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 9 | 1 | 10 | 10 | 201 | 24 | 177 | 38 | 158 | 0 | 78 | 29 | 67 | 5 | 1 | 1 | 17 |
9,894 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.network._show.Show.ReplicationNetworksGet
|
class ReplicationNetworksGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"networkName", self.ctx.args.network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.fabric_type = AAZStrType(
serialized_name="fabricType",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.network_type = AAZStrType(
serialized_name="networkType",
)
properties.subnets = AAZListType()
subnets = cls._schema_on_200.properties.subnets
subnets.Element = AAZObjectType()
_element = cls._schema_on_200.properties.subnets.Element
_element.address_list = AAZListType(
serialized_name="addressList",
)
_element.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
_element.name = AAZStrType()
address_list = cls._schema_on_200.properties.subnets.Element.address_list
address_list.Element = AAZStrType()
return cls._schema_on_200
|
class ReplicationNetworksGet(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 | 12 | 1 | 11 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 129 | 18 | 111 | 30 | 94 | 0 | 51 | 23 | 41 | 2 | 1 | 1 | 11 |
9,895 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.network._list.List.ReplicationNetworksListByReplicationFabrics
|
class ReplicationNetworksListByReplicationFabrics(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.fabric_type = AAZStrType(
serialized_name="fabricType",
)
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.network_type = AAZStrType(
serialized_name="networkType",
)
properties.subnets = AAZListType()
subnets = cls._schema_on_200.value.Element.properties.subnets
subnets.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.subnets.Element
_element.address_list = AAZListType(
serialized_name="addressList",
)
_element.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
_element.name = AAZStrType()
address_list = cls._schema_on_200.value.Element.properties.subnets.Element.address_list
address_list.Element = AAZStrType()
return cls._schema_on_200
|
class ReplicationNetworksListByReplicationFabrics(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 | 134 | 20 | 114 | 31 | 97 | 0 | 56 | 24 | 46 | 2 | 1 | 1 | 11 |
9,896 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/logical_network/_show.py
|
azext_site_recovery.aaz.latest.site_recovery.logical_network._show.Show.ReplicationLogicalNetworksGet
|
class ReplicationLogicalNetworksGet(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks/{logicalNetworkName}",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"logicalNetworkName", self.ctx.args.logical_network_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.logical_network_definitions_status = AAZStrType(
serialized_name="logicalNetworkDefinitionsStatus",
)
properties.logical_network_usage = AAZStrType(
serialized_name="logicalNetworkUsage",
)
properties.network_virtualization_status = AAZStrType(
serialized_name="networkVirtualizationStatus",
)
return cls._schema_on_200
|
class ReplicationLogicalNetworksGet(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 | 11 | 1 | 10 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 116 | 15 | 101 | 27 | 84 | 0 | 43 | 20 | 33 | 2 | 1 | 1 | 11 |
9,897 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/logical_network/_list.py
|
azext_site_recovery.aaz.latest.site_recovery.logical_network._list.List.ReplicationLogicalNetworksListByReplicationFabrics
|
class ReplicationLogicalNetworksListByReplicationFabrics(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.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks",
**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(
"fabricName", self.ctx.args.fabric_name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"resourceName", self.ctx.args.vault_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", "2022-08-01",
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.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.friendly_name = AAZStrType(
serialized_name="friendlyName",
)
properties.logical_network_definitions_status = AAZStrType(
serialized_name="logicalNetworkDefinitionsStatus",
)
properties.logical_network_usage = AAZStrType(
serialized_name="logicalNetworkUsage",
)
properties.network_virtualization_status = AAZStrType(
serialized_name="networkVirtualizationStatus",
)
return cls._schema_on_200
|
class ReplicationLogicalNetworksListByReplicationFabrics(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 | 11 | 1 | 10 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 121 | 17 | 104 | 29 | 87 | 0 | 48 | 22 | 38 | 2 | 1 | 1 | 11 |
9,898 |
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/site-recovery/azext_site_recovery/aaz/latest/site_recovery/network/mapping/_update.py
|
azext_site_recovery.aaz.latest.site_recovery.network.mapping._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("fabricSpecificDetails",
AAZObjectType, ".fabric_specific_details")
properties.set_prop("recoveryFabricName",
AAZStrType, ".recovery_fabric_name")
properties.set_prop("recoveryNetworkId", AAZStrType, ".recovery_network_id", typ_kwargs={
"flags": {"required": True}})
fabric_specific_details = _builder.get(
".properties.fabricSpecificDetails")
if fabric_specific_details is not None:
fabric_specific_details.set_const(
"instanceType", "AzureToAzure", AAZStrType, ".azure_to_azure", typ_kwargs={"flags": {"required": True}})
fabric_specific_details.set_const(
"instanceType", "VmmToAzure", AAZStrType, ".vmm_to_azure", typ_kwargs={"flags": {"required": True}})
fabric_specific_details.discriminate_by(
"instanceType", "AzureToAzure")
fabric_specific_details.discriminate_by(
"instanceType", "VmmToAzure")
disc_azure_to_azure = _builder.get(
".properties.fabricSpecificDetails{instanceType:AzureToAzure}")
if disc_azure_to_azure is not None:
disc_azure_to_azure.set_prop("primaryNetworkId", AAZStrType, ".azure_to_azure.primary_network_id", typ_kwargs={
"flags": {"required": True}})
disc_vmm_to_azure = _builder.get(
".properties.fabricSpecificDetails{instanceType:VmmToAzure}")
if disc_vmm_to_azure is not None:
disc_vmm_to_azure.set_prop(
"location", AAZStrType, ".vmm_to_azure.location")
return _instance_value
|
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation):
def __call__(self, *args, **kwargs):
pass
def _update_instance(self, instance):
pass
| 3 | 0 | 16 | 3 | 14 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 35 | 7 | 28 | 8 | 25 | 0 | 24 | 8 | 21 | 5 | 1 | 1 | 6 |
9,899 |
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.ServiceStatus
|
class ServiceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Describes the status of a service."""
CREATING = "Creating"
RUNNING = "Running"
UPDATING = "Updating"
DELETING = "Deleting"
ERROR = "Error"
STOPPED = "Stopped"
|
class ServiceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Describes the status of a service.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 9 | 1 | 7 | 7 | 6 | 1 | 7 | 7 | 6 | 0 | 4 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.