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,000 |
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/mesh/azext_mesh/aaz/latest/mesh/gateway/_list.py
|
azext_mesh.aaz.latest.mesh.gateway._list.List.GatewayListBySubscription
|
class GatewayListBySubscription(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/gateways",
**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(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-09-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType()
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.description = AAZStrType()
properties.destination_network = AAZObjectType(
serialized_name="destinationNetwork",
flags={"required": True},
)
_ListHelper._build_schema_network_ref_read(
properties.destination_network)
properties.http = AAZListType()
properties.ip_address = AAZStrType(
serialized_name="ipAddress",
flags={"read_only": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.source_network = AAZObjectType(
serialized_name="sourceNetwork",
flags={"required": True},
)
_ListHelper._build_schema_network_ref_read(
properties.source_network)
properties.status = AAZStrType()
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.tcp = AAZListType()
http = cls._schema_on_200.value.Element.properties.http
http.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element
_element.hosts = AAZListType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
_element.port = AAZIntType(
flags={"required": True},
)
hosts = cls._schema_on_200.value.Element.properties.http.Element.hosts
hosts.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.routes = AAZListType(
flags={"required": True},
)
routes = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes
routes.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element
_element.destination = AAZObjectType(
flags={"required": True},
)
_ListHelper._build_schema_gateway_destination_read(
_element.destination)
_element.match = AAZObjectType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
match = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match
match.headers = AAZListType()
match.path = AAZObjectType(
flags={"required": True},
)
headers = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match.headers
headers.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match.headers.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.type = AAZStrType()
_element.value = AAZStrType()
path = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match.path
path.rewrite = AAZStrType()
path.type = AAZStrType(
flags={"required": True},
)
path.value = AAZStrType(
flags={"required": True},
)
tcp = cls._schema_on_200.value.Element.properties.tcp
tcp.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.tcp.Element
_element.destination = AAZObjectType(
flags={"required": True},
)
_ListHelper._build_schema_gateway_destination_read(
_element.destination)
_element.name = AAZStrType(
flags={"required": True},
)
_element.port = AAZIntType(
flags={"required": True},
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class GatewayListBySubscription(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 | 30 | 181 | 37 | 164 | 0 | 96 | 30 | 86 | 2 | 1 | 1 | 11 |
9,001 |
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/mesh/azext_mesh/aaz/latest/mesh/gateway/_list.py
|
azext_mesh.aaz.latest.mesh.gateway._list.List.GatewayListByResourceGroup
|
class GatewayListByResourceGroup(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.ServiceFabricMesh/gateways",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "ODataV4Format"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-09-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType()
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.description = AAZStrType()
properties.destination_network = AAZObjectType(
serialized_name="destinationNetwork",
flags={"required": True},
)
_ListHelper._build_schema_network_ref_read(
properties.destination_network)
properties.http = AAZListType()
properties.ip_address = AAZStrType(
serialized_name="ipAddress",
flags={"read_only": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.source_network = AAZObjectType(
serialized_name="sourceNetwork",
flags={"required": True},
)
_ListHelper._build_schema_network_ref_read(
properties.source_network)
properties.status = AAZStrType()
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.tcp = AAZListType()
http = cls._schema_on_200.value.Element.properties.http
http.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element
_element.hosts = AAZListType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
_element.port = AAZIntType(
flags={"required": True},
)
hosts = cls._schema_on_200.value.Element.properties.http.Element.hosts
hosts.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.routes = AAZListType(
flags={"required": True},
)
routes = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes
routes.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element
_element.destination = AAZObjectType(
flags={"required": True},
)
_ListHelper._build_schema_gateway_destination_read(
_element.destination)
_element.match = AAZObjectType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
match = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match
match.headers = AAZListType()
match.path = AAZObjectType(
flags={"required": True},
)
headers = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match.headers
headers.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match.headers.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.type = AAZStrType()
_element.value = AAZStrType()
path = cls._schema_on_200.value.Element.properties.http.Element.hosts.Element.routes.Element.match.path
path.rewrite = AAZStrType()
path.type = AAZStrType(
flags={"required": True},
)
path.value = AAZStrType(
flags={"required": True},
)
tcp = cls._schema_on_200.value.Element.properties.tcp
tcp.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.tcp.Element
_element.destination = AAZObjectType(
flags={"required": True},
)
_ListHelper._build_schema_gateway_destination_read(
_element.destination)
_element.name = AAZStrType(
flags={"required": True},
)
_element.port = AAZIntType(
flags={"required": True},
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class GatewayListByResourceGroup(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 | 19 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 215 | 30 | 185 | 37 | 168 | 0 | 96 | 30 | 86 | 2 | 1 | 1 | 11 |
9,002 |
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/mesh/azext_mesh/aaz/latest/mesh/gateway/_delete.py
|
azext_mesh.aaz.latest.mesh.gateway._delete.Delete.GatewayDelete
|
class GatewayDelete(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)
if session.http_response.status_code in [202]:
return self.on_202(session)
if session.http_response.status_code in [204]:
return self.on_204(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
**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(
"gatewayResourceName", self.ctx.args.name,
skip_quote=True,
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", "2018-09-01-preview",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_202(self, session):
pass
def on_204(self, session):
pass
|
class GatewayDelete(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_202(self, session):
pass
def on_204(self, session):
pass
| 15 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 9 | 0 | 9 | 9 | 67 | 10 | 57 | 20 | 42 | 0 | 30 | 15 | 20 | 4 | 1 | 1 | 12 |
9,003 |
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/mesh/azext_mesh/aaz/latest/mesh/app/_show.py
|
azext_mesh.aaz.latest.mesh.app._show.Show.ApplicationGet
|
class ApplicationGet(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.ServiceFabricMesh/applications/{applicationResourceName}",
**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(
"applicationResourceName", self.ctx.args.name,
skip_quote=True,
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", "2018-09-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": True},
)
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_schema_on_200.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.debug_params = AAZStrType(
serialized_name="debugParams",
)
properties.description = AAZStrType()
properties.diagnostics = AAZObjectType()
properties.health_state = AAZStrType(
serialized_name="healthState",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.service_names = AAZListType(
serialized_name="serviceNames",
flags={"read_only": True},
)
properties.services = AAZListType()
properties.status = AAZStrType()
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.unhealthy_evaluation = AAZStrType(
serialized_name="unhealthyEvaluation",
flags={"read_only": True},
)
diagnostics = cls._schema_on_200.properties.diagnostics
diagnostics.default_sink_refs = AAZListType(
serialized_name="defaultSinkRefs",
)
diagnostics.enabled = AAZBoolType()
diagnostics.sinks = AAZListType()
default_sink_refs = cls._schema_on_200.properties.diagnostics.default_sink_refs
default_sink_refs.Element = AAZStrType()
sinks = cls._schema_on_200.properties.diagnostics.sinks
sinks.Element = AAZObjectType()
_element = cls._schema_on_200.properties.diagnostics.sinks.Element
_element.description = AAZStrType()
_element.kind = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType()
disc_azure_internal_monitoring_pipeline = cls._schema_on_200.properties.diagnostics.sinks.Element.discriminate_by(
"kind", "AzureInternalMonitoringPipeline")
disc_azure_internal_monitoring_pipeline.account_name = AAZStrType(
serialized_name="accountName",
)
disc_azure_internal_monitoring_pipeline.auto_key_config_url = AAZStrType(
serialized_name="autoKeyConfigUrl",
)
disc_azure_internal_monitoring_pipeline.fluentd_config_url = AAZStrType(
serialized_name="fluentdConfigUrl",
)
disc_azure_internal_monitoring_pipeline.ma_config_url = AAZStrType(
serialized_name="maConfigUrl",
)
disc_azure_internal_monitoring_pipeline.namespace = AAZStrType()
service_names = cls._schema_on_200.properties.service_names
service_names.Element = AAZStrType()
services = cls._schema_on_200.properties.services
services.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.name = AAZStrType()
_element.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties.services.Element.properties
properties.auto_scaling_policies = AAZListType(
serialized_name="autoScalingPolicies",
)
properties.code_packages = AAZListType(
serialized_name="codePackages",
flags={"required": True},
)
properties.description = AAZStrType()
properties.diagnostics = AAZObjectType()
_ShowHelper._build_schema_diagnostics_ref_read(
properties.diagnostics)
properties.health_state = AAZStrType(
serialized_name="healthState",
)
properties.network_refs = AAZListType(
serialized_name="networkRefs",
)
properties.os_type = AAZStrType(
serialized_name="osType",
flags={"required": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.replica_count = AAZIntType(
serialized_name="replicaCount",
)
properties.status = AAZStrType()
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.unhealthy_evaluation = AAZStrType(
serialized_name="unhealthyEvaluation",
flags={"read_only": True},
)
auto_scaling_policies = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies
auto_scaling_policies.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies.Element
_element.mechanism = AAZObjectType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
_element.trigger = AAZObjectType(
flags={"required": True},
)
mechanism = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies.Element.mechanism
mechanism.kind = AAZStrType(
flags={"required": True},
)
disc_add_remove_replica = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies.Element.mechanism.discriminate_by(
"kind", "AddRemoveReplica")
disc_add_remove_replica.max_count = AAZIntType(
serialized_name="maxCount",
flags={"required": True},
)
disc_add_remove_replica.min_count = AAZIntType(
serialized_name="minCount",
flags={"required": True},
)
disc_add_remove_replica.scale_increment = AAZIntType(
serialized_name="scaleIncrement",
flags={"required": True},
)
trigger = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies.Element.trigger
trigger.kind = AAZStrType(
flags={"required": True},
)
disc_average_load = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies.Element.trigger.discriminate_by(
"kind", "AverageLoad")
disc_average_load.lower_load_threshold = AAZFloatType(
serialized_name="lowerLoadThreshold",
flags={"required": True},
)
disc_average_load.metric = AAZObjectType(
flags={"required": True},
)
disc_average_load.scale_interval_in_seconds = AAZIntType(
serialized_name="scaleIntervalInSeconds",
flags={"required": True},
)
disc_average_load.upper_load_threshold = AAZFloatType(
serialized_name="upperLoadThreshold",
flags={"required": True},
)
metric = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies.Element.trigger.discriminate_by(
"kind", "AverageLoad").metric
metric.kind = AAZStrType(
flags={"required": True},
)
disc_resource = cls._schema_on_200.properties.services.Element.properties.auto_scaling_policies.Element.trigger.discriminate_by(
"kind", "AverageLoad").metric.discriminate_by("kind", "Resource")
disc_resource.name = AAZStrType(
flags={"required": True},
)
code_packages = cls._schema_on_200.properties.services.Element.properties.code_packages
code_packages.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element
_element.commands = AAZListType()
_element.diagnostics = AAZObjectType()
_ShowHelper._build_schema_diagnostics_ref_read(
_element.diagnostics)
_element.endpoints = AAZListType()
_element.entrypoint = AAZStrType()
_element.environment_variables = AAZListType(
serialized_name="environmentVariables",
)
_element.image = AAZStrType(
flags={"required": True},
)
_element.image_registry_credential = AAZObjectType(
serialized_name="imageRegistryCredential",
)
_element.instance_view = AAZObjectType(
serialized_name="instanceView",
)
_element.labels = AAZListType()
_element.name = AAZStrType(
flags={"required": True},
)
_element.reliable_collections_refs = AAZListType(
serialized_name="reliableCollectionsRefs",
)
_element.resources = AAZObjectType(
flags={"required": True},
)
_element.settings = AAZListType()
_element.volume_refs = AAZListType(
serialized_name="volumeRefs",
)
_element.volumes = AAZListType()
commands = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.commands
commands.Element = AAZStrType()
endpoints = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.endpoints
endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.endpoints.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.port = AAZIntType()
environment_variables = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.environment_variables
environment_variables.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.environment_variables.Element
_element.name = AAZStrType()
_element.value = AAZStrType()
image_registry_credential = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.image_registry_credential
image_registry_credential.password = AAZStrType()
image_registry_credential.server = AAZStrType(
flags={"required": True},
)
image_registry_credential.username = AAZStrType(
flags={"required": True},
)
instance_view = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.instance_view
instance_view.current_state = AAZObjectType(
serialized_name="currentState",
)
_ShowHelper._build_schema_container_state_read(
instance_view.current_state)
instance_view.events = AAZListType()
instance_view.previous_state = AAZObjectType(
serialized_name="previousState",
)
_ShowHelper._build_schema_container_state_read(
instance_view.previous_state)
instance_view.restart_count = AAZIntType(
serialized_name="restartCount",
)
events = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.instance_view.events
events.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.instance_view.events.Element
_element.count = AAZIntType()
_element.first_timestamp = AAZStrType(
serialized_name="firstTimestamp",
)
_element.last_timestamp = AAZStrType(
serialized_name="lastTimestamp",
)
_element.message = AAZStrType()
_element.name = AAZStrType()
_element.type = AAZStrType()
labels = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.labels
labels.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.labels.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.value = AAZStrType(
flags={"required": True},
)
reliable_collections_refs = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.reliable_collections_refs
reliable_collections_refs.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.reliable_collections_refs.Element
_element.do_not_persist_state = AAZBoolType(
serialized_name="doNotPersistState",
)
_element.name = AAZStrType(
flags={"required": True},
)
resources = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.resources
resources.limits = AAZObjectType()
resources.requests = AAZObjectType(
flags={"required": True},
)
limits = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.resources.limits
limits.cpu = AAZFloatType()
limits.memory_in_gb = AAZFloatType(
serialized_name="memoryInGB",
)
requests = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.resources.requests
requests.cpu = AAZFloatType(
flags={"required": True},
)
requests.memory_in_gb = AAZFloatType(
serialized_name="memoryInGB",
flags={"required": True},
)
settings = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.settings
settings.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.settings.Element
_element.name = AAZStrType()
_element.value = AAZStrType()
volume_refs = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.volume_refs
volume_refs.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.volume_refs.Element
_element.destination_path = AAZStrType(
serialized_name="destinationPath",
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
_element.read_only = AAZBoolType(
serialized_name="readOnly",
)
volumes = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.volumes
volumes.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.volumes.Element
_element.creation_parameters = AAZObjectType(
serialized_name="creationParameters",
flags={"required": True},
)
_element.destination_path = AAZStrType(
serialized_name="destinationPath",
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
_element.read_only = AAZBoolType(
serialized_name="readOnly",
)
creation_parameters = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.volumes.Element.creation_parameters
creation_parameters.description = AAZStrType()
creation_parameters.kind = AAZStrType(
flags={"required": True},
)
disc_service_fabric_volume_disk = cls._schema_on_200.properties.services.Element.properties.code_packages.Element.volumes.Element.creation_parameters.discriminate_by(
"kind", "ServiceFabricVolumeDisk")
disc_service_fabric_volume_disk.size_disk = AAZStrType(
serialized_name="sizeDisk",
flags={"required": True},
)
network_refs = cls._schema_on_200.properties.services.Element.properties.network_refs
network_refs.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.network_refs.Element
_element.endpoint_refs = AAZListType(
serialized_name="endpointRefs",
)
_element.name = AAZStrType()
endpoint_refs = cls._schema_on_200.properties.services.Element.properties.network_refs.Element.endpoint_refs
endpoint_refs.Element = AAZObjectType()
_element = cls._schema_on_200.properties.services.Element.properties.network_refs.Element.endpoint_refs.Element
_element.name = AAZStrType()
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class ApplicationGet(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 | 52 | 6 | 47 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 492 | 63 | 429 | 61 | 412 | 0 | 218 | 54 | 208 | 2 | 1 | 1 | 11 |
9,004 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/resource/_show.py
|
azext_mcc.aaz.latest.mcc.isp.resource._show.Show.IspCustomersGet
|
class IspCustomersGet(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.ConnectedCache/ispCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_ShowHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
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",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class IspCustomersGet(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 | 1 | 33 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 324 | 19 | 305 | 31 | 288 | 0 | 109 | 24 | 99 | 2 | 1 | 1 | 11 |
9,005 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/resource/_list.py
|
azext_mcc.aaz.latest.mcc.isp.resource._list.List.IspCustomersListBySubscription
|
class IspCustomersListBySubscription(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/ispCustomers",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType(
flags={"required": True},
)
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_ListHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200.value.Element.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200.value.Element.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class IspCustomersListBySubscription(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 | 1 | 33 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 327 | 21 | 306 | 33 | 289 | 0 | 114 | 26 | 104 | 2 | 1 | 1 | 11 |
9,006 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/resource/_list.py
|
azext_mcc.aaz.latest.mcc.isp.resource._list.List.IspCustomersListByResourceGroup
|
class IspCustomersListByResourceGroup(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.ConnectedCache/ispCustomers",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType(
flags={"required": True},
)
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_ListHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200.value.Element.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200.value.Element.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class IspCustomersListByResourceGroup(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 | 35 | 1 | 33 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 331 | 21 | 310 | 33 | 293 | 0 | 114 | 26 | 104 | 2 | 1 | 1 | 11 |
9,007 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_show.py
|
azext_mcc.aaz.latest.mcc.ent.node._show.Show.EnterpriseMccCacheNodesOperationsGet
|
class EnterpriseMccCacheNodesOperationsGet(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.additional_cache_node_properties = AAZObjectType(
serialized_name="additionalCacheNodeProperties",
)
properties.cache_node = AAZObjectType(
serialized_name="cacheNode",
)
properties.error = AAZObjectType()
_ShowHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
)
properties.status_text = AAZStrType(
serialized_name="statusText",
)
additional_cache_node_properties = cls._schema_on_200.properties.additional_cache_node_properties
additional_cache_node_properties.aggregated_status_code = AAZIntType(
serialized_name="aggregatedStatusCode",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_details = AAZStrType(
serialized_name="aggregatedStatusDetails",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_text = AAZStrType(
serialized_name="aggregatedStatusText",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_applied_version = AAZStrType(
serialized_name="autoUpdateAppliedVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_date_time = AAZStrType(
serialized_name="autoUpdateLastAppliedDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_details = AAZStrType(
serialized_name="autoUpdateLastAppliedDetails",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_state = AAZStrType(
serialized_name="autoUpdateLastAppliedState",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_triggered_date_time = AAZStrType(
serialized_name="autoUpdateLastTriggeredDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_date_time = AAZStrType(
serialized_name="autoUpdateNextAvailableDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_version = AAZStrType(
serialized_name="autoUpdateNextAvailableVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_version = AAZStrType(
serialized_name="autoUpdateVersion",
)
additional_cache_node_properties.bgp_configuration = AAZObjectType(
serialized_name="bgpConfiguration",
)
additional_cache_node_properties.cache_node_properties_details_issues_list = AAZListType(
serialized_name="cacheNodePropertiesDetailsIssuesList",
)
additional_cache_node_properties.cache_node_state = AAZIntType(
serialized_name="cacheNodeState",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_detailed_text = AAZStrType(
serialized_name="cacheNodeStateDetailedText",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_short_text = AAZStrType(
serialized_name="cacheNodeStateShortText",
flags={"read_only": True},
)
additional_cache_node_properties.drive_configuration = AAZListType(
serialized_name="driveConfiguration",
)
additional_cache_node_properties.is_provisioned = AAZBoolType(
serialized_name="isProvisioned",
flags={"read_only": True},
)
additional_cache_node_properties.is_proxy_required = AAZStrType(
serialized_name="isProxyRequired",
)
additional_cache_node_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_cache_node_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_cache_node_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_cache_node_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_cache_node_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_cache_node_properties.os_type = AAZStrType(
serialized_name="osType",
)
additional_cache_node_properties.product_version = AAZStrType(
serialized_name="productVersion",
flags={"read_only": True},
)
additional_cache_node_properties.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
additional_cache_node_properties.proxy_url_configuration = AAZObjectType(
serialized_name="proxyUrlConfiguration",
)
additional_cache_node_properties.update_cycle_type = AAZStrType(
serialized_name="updateCycleType",
)
additional_cache_node_properties.update_info_details = AAZStrType(
serialized_name="updateInfoDetails",
)
additional_cache_node_properties.update_requested_date_time = AAZStrType(
serialized_name="updateRequestedDateTime",
)
bgp_configuration = cls._schema_on_200.properties.additional_cache_node_properties.bgp_configuration
bgp_configuration.asn_to_ip_address_mapping = AAZStrType(
serialized_name="asnToIpAddressMapping",
)
cache_node_properties_details_issues_list = cls._schema_on_200.properties.additional_cache_node_properties.cache_node_properties_details_issues_list
cache_node_properties_details_issues_list.Element = AAZStrType()
drive_configuration = cls._schema_on_200.properties.additional_cache_node_properties.drive_configuration
drive_configuration.Element = AAZObjectType()
_element = cls._schema_on_200.properties.additional_cache_node_properties.drive_configuration.Element
_element.cache_number = AAZIntType(
serialized_name="cacheNumber",
)
_element.nginx_mapping = AAZStrType(
serialized_name="nginxMapping",
)
_element.physical_path = AAZStrType(
serialized_name="physicalPath",
)
_element.size_in_gb = AAZIntType(
serialized_name="sizeInGb",
)
proxy_url_configuration = cls._schema_on_200.properties.additional_cache_node_properties.proxy_url_configuration
proxy_url_configuration.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
cache_node = cls._schema_on_200.properties.cache_node
cache_node.address_space = AAZIntType(
serialized_name="addressSpace",
flags={"read_only": True},
)
cache_node.auto_update_requested_day = AAZIntType(
serialized_name="autoUpdateRequestedDay",
)
cache_node.auto_update_requested_time = AAZStrType(
serialized_name="autoUpdateRequestedTime",
)
cache_node.auto_update_requested_week = AAZIntType(
serialized_name="autoUpdateRequestedWeek",
)
cache_node.auto_update_ring_type = AAZStrType(
serialized_name="autoUpdateRingType",
)
cache_node.bgp_address_space = AAZIntType(
serialized_name="bgpAddressSpace",
flags={"read_only": True},
)
cache_node.bgp_cidr_blocks_count = AAZIntType(
serialized_name="bgpCidrBlocksCount",
flags={"read_only": True},
)
cache_node.bgp_cidr_csv_last_update_time = AAZStrType(
serialized_name="bgpCidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.bgp_file_bytes_truncated = AAZIntType(
serialized_name="bgpFileBytesTruncated",
flags={"read_only": True},
)
cache_node.bgp_last_reported_time = AAZStrType(
serialized_name="bgpLastReportedTime",
flags={"read_only": True},
)
cache_node.bgp_number_of_records = AAZIntType(
serialized_name="bgpNumberOfRecords",
flags={"read_only": True},
)
cache_node.bgp_number_of_times_updated = AAZIntType(
serialized_name="bgpNumberOfTimesUpdated",
flags={"read_only": True},
)
cache_node.bgp_review_feedback = AAZStrType(
serialized_name="bgpReviewFeedback",
flags={"read_only": True},
)
cache_node.bgp_review_state = AAZStrType(
serialized_name="bgpReviewState",
flags={"read_only": True},
)
cache_node.bgp_review_state_text = AAZStrType(
serialized_name="bgpReviewStateText",
flags={"read_only": True},
)
cache_node.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
cache_node.cache_node_name = AAZStrType(
serialized_name="cacheNodeName",
)
cache_node.category = AAZStrType(
flags={"read_only": True},
)
cache_node.cidr_csv = AAZListType(
serialized_name="cidrCsv",
)
cache_node.cidr_csv_last_update_time = AAZStrType(
serialized_name="cidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.cidr_selection_type = AAZIntType(
serialized_name="cidrSelectionType",
)
cache_node.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
flags={"read_only": True},
)
cache_node.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
cache_node.configuration_state_text = AAZStrType(
serialized_name="configurationStateText",
flags={"read_only": True},
)
cache_node.container_configurations = AAZStrType(
serialized_name="containerConfigurations",
flags={"read_only": True},
)
cache_node.container_resync_trigger = AAZIntType(
serialized_name="containerResyncTrigger",
flags={"read_only": True},
)
cache_node.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
cache_node.customer_asn = AAZIntType(
serialized_name="customerAsn",
)
cache_node.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
cache_node.customer_index = AAZStrType(
serialized_name="customerIndex",
)
cache_node.customer_name = AAZStrType(
serialized_name="customerName",
)
cache_node.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
cache_node.fully_qualified_domain_name = AAZStrType(
serialized_name="fullyQualifiedDomainName",
)
cache_node.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
cache_node.image_uri = AAZStrType(
serialized_name="imageUri",
flags={"read_only": True},
)
cache_node.ip_address = AAZStrType(
serialized_name="ipAddress",
)
cache_node.is_enabled = AAZBoolType(
serialized_name="isEnabled",
)
cache_node.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
cache_node.is_frozen = AAZBoolType(
serialized_name="isFrozen",
flags={"read_only": True},
)
cache_node.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
cache_node.last_updated_timestamp = AAZStrType(
serialized_name="lastUpdatedTimestamp",
flags={"read_only": True},
)
cache_node.max_allowable_egress_in_mbps = AAZIntType(
serialized_name="maxAllowableEgressInMbps",
)
cache_node.max_allowable_probability = AAZFloatType(
serialized_name="maxAllowableProbability",
flags={"read_only": True},
)
cache_node.release_version = AAZIntType(
serialized_name="releaseVersion",
flags={"read_only": True},
)
cache_node.review_feedback = AAZStrType(
serialized_name="reviewFeedback",
flags={"read_only": True},
)
cache_node.review_state = AAZIntType(
serialized_name="reviewState",
flags={"read_only": True},
)
cache_node.review_state_text = AAZStrType(
serialized_name="reviewStateText",
flags={"read_only": True},
)
cache_node.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
cache_node.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
cache_node.worker_connections = AAZIntType(
serialized_name="workerConnections",
flags={"read_only": True},
)
cache_node.worker_connections_last_updated_date_time = AAZStrType(
serialized_name="workerConnectionsLastUpdatedDateTime",
flags={"read_only": True},
)
cache_node.x_cid = AAZStrType(
serialized_name="xCid",
flags={"read_only": True},
)
cidr_csv = cls._schema_on_200.properties.cache_node.cidr_csv
cidr_csv.Element = AAZStrType()
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCacheNodesOperationsGet(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 | 52 | 2 | 50 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 488 | 25 | 463 | 37 | 446 | 0 | 159 | 30 | 149 | 2 | 1 | 1 | 11 |
9,008 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_list.py
|
azext_mcc.aaz.latest.mcc.ent.node._list.List.EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource
|
class EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType(
flags={"required": True},
)
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.additional_cache_node_properties = AAZObjectType(
serialized_name="additionalCacheNodeProperties",
)
properties.cache_node = AAZObjectType(
serialized_name="cacheNode",
)
properties.error = AAZObjectType()
_ListHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
)
properties.status_text = AAZStrType(
serialized_name="statusText",
)
additional_cache_node_properties = cls._schema_on_200.value.Element.properties.additional_cache_node_properties
additional_cache_node_properties.aggregated_status_code = AAZIntType(
serialized_name="aggregatedStatusCode",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_details = AAZStrType(
serialized_name="aggregatedStatusDetails",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_text = AAZStrType(
serialized_name="aggregatedStatusText",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_applied_version = AAZStrType(
serialized_name="autoUpdateAppliedVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_date_time = AAZStrType(
serialized_name="autoUpdateLastAppliedDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_details = AAZStrType(
serialized_name="autoUpdateLastAppliedDetails",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_state = AAZStrType(
serialized_name="autoUpdateLastAppliedState",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_triggered_date_time = AAZStrType(
serialized_name="autoUpdateLastTriggeredDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_date_time = AAZStrType(
serialized_name="autoUpdateNextAvailableDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_version = AAZStrType(
serialized_name="autoUpdateNextAvailableVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_version = AAZStrType(
serialized_name="autoUpdateVersion",
)
additional_cache_node_properties.bgp_configuration = AAZObjectType(
serialized_name="bgpConfiguration",
)
additional_cache_node_properties.cache_node_properties_details_issues_list = AAZListType(
serialized_name="cacheNodePropertiesDetailsIssuesList",
)
additional_cache_node_properties.cache_node_state = AAZIntType(
serialized_name="cacheNodeState",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_detailed_text = AAZStrType(
serialized_name="cacheNodeStateDetailedText",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_short_text = AAZStrType(
serialized_name="cacheNodeStateShortText",
flags={"read_only": True},
)
additional_cache_node_properties.drive_configuration = AAZListType(
serialized_name="driveConfiguration",
)
additional_cache_node_properties.is_provisioned = AAZBoolType(
serialized_name="isProvisioned",
flags={"read_only": True},
)
additional_cache_node_properties.is_proxy_required = AAZStrType(
serialized_name="isProxyRequired",
)
additional_cache_node_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_cache_node_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_cache_node_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_cache_node_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_cache_node_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_cache_node_properties.os_type = AAZStrType(
serialized_name="osType",
)
additional_cache_node_properties.product_version = AAZStrType(
serialized_name="productVersion",
flags={"read_only": True},
)
additional_cache_node_properties.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
additional_cache_node_properties.proxy_url_configuration = AAZObjectType(
serialized_name="proxyUrlConfiguration",
)
additional_cache_node_properties.update_cycle_type = AAZStrType(
serialized_name="updateCycleType",
)
additional_cache_node_properties.update_info_details = AAZStrType(
serialized_name="updateInfoDetails",
)
additional_cache_node_properties.update_requested_date_time = AAZStrType(
serialized_name="updateRequestedDateTime",
)
bgp_configuration = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.bgp_configuration
bgp_configuration.asn_to_ip_address_mapping = AAZStrType(
serialized_name="asnToIpAddressMapping",
)
cache_node_properties_details_issues_list = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.cache_node_properties_details_issues_list
cache_node_properties_details_issues_list.Element = AAZStrType()
drive_configuration = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.drive_configuration
drive_configuration.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.drive_configuration.Element
_element.cache_number = AAZIntType(
serialized_name="cacheNumber",
)
_element.nginx_mapping = AAZStrType(
serialized_name="nginxMapping",
)
_element.physical_path = AAZStrType(
serialized_name="physicalPath",
)
_element.size_in_gb = AAZIntType(
serialized_name="sizeInGb",
)
proxy_url_configuration = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.proxy_url_configuration
proxy_url_configuration.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
cache_node = cls._schema_on_200.value.Element.properties.cache_node
cache_node.address_space = AAZIntType(
serialized_name="addressSpace",
flags={"read_only": True},
)
cache_node.auto_update_requested_day = AAZIntType(
serialized_name="autoUpdateRequestedDay",
)
cache_node.auto_update_requested_time = AAZStrType(
serialized_name="autoUpdateRequestedTime",
)
cache_node.auto_update_requested_week = AAZIntType(
serialized_name="autoUpdateRequestedWeek",
)
cache_node.auto_update_ring_type = AAZStrType(
serialized_name="autoUpdateRingType",
)
cache_node.bgp_address_space = AAZIntType(
serialized_name="bgpAddressSpace",
flags={"read_only": True},
)
cache_node.bgp_cidr_blocks_count = AAZIntType(
serialized_name="bgpCidrBlocksCount",
flags={"read_only": True},
)
cache_node.bgp_cidr_csv_last_update_time = AAZStrType(
serialized_name="bgpCidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.bgp_file_bytes_truncated = AAZIntType(
serialized_name="bgpFileBytesTruncated",
flags={"read_only": True},
)
cache_node.bgp_last_reported_time = AAZStrType(
serialized_name="bgpLastReportedTime",
flags={"read_only": True},
)
cache_node.bgp_number_of_records = AAZIntType(
serialized_name="bgpNumberOfRecords",
flags={"read_only": True},
)
cache_node.bgp_number_of_times_updated = AAZIntType(
serialized_name="bgpNumberOfTimesUpdated",
flags={"read_only": True},
)
cache_node.bgp_review_feedback = AAZStrType(
serialized_name="bgpReviewFeedback",
flags={"read_only": True},
)
cache_node.bgp_review_state = AAZStrType(
serialized_name="bgpReviewState",
flags={"read_only": True},
)
cache_node.bgp_review_state_text = AAZStrType(
serialized_name="bgpReviewStateText",
flags={"read_only": True},
)
cache_node.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
cache_node.cache_node_name = AAZStrType(
serialized_name="cacheNodeName",
)
cache_node.category = AAZStrType(
flags={"read_only": True},
)
cache_node.cidr_csv = AAZListType(
serialized_name="cidrCsv",
)
cache_node.cidr_csv_last_update_time = AAZStrType(
serialized_name="cidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.cidr_selection_type = AAZIntType(
serialized_name="cidrSelectionType",
)
cache_node.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
flags={"read_only": True},
)
cache_node.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
cache_node.configuration_state_text = AAZStrType(
serialized_name="configurationStateText",
flags={"read_only": True},
)
cache_node.container_configurations = AAZStrType(
serialized_name="containerConfigurations",
flags={"read_only": True},
)
cache_node.container_resync_trigger = AAZIntType(
serialized_name="containerResyncTrigger",
flags={"read_only": True},
)
cache_node.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
cache_node.customer_asn = AAZIntType(
serialized_name="customerAsn",
)
cache_node.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
cache_node.customer_index = AAZStrType(
serialized_name="customerIndex",
)
cache_node.customer_name = AAZStrType(
serialized_name="customerName",
)
cache_node.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
cache_node.fully_qualified_domain_name = AAZStrType(
serialized_name="fullyQualifiedDomainName",
)
cache_node.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
cache_node.image_uri = AAZStrType(
serialized_name="imageUri",
flags={"read_only": True},
)
cache_node.ip_address = AAZStrType(
serialized_name="ipAddress",
)
cache_node.is_enabled = AAZBoolType(
serialized_name="isEnabled",
)
cache_node.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
cache_node.is_frozen = AAZBoolType(
serialized_name="isFrozen",
flags={"read_only": True},
)
cache_node.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
cache_node.last_updated_timestamp = AAZStrType(
serialized_name="lastUpdatedTimestamp",
flags={"read_only": True},
)
cache_node.max_allowable_egress_in_mbps = AAZIntType(
serialized_name="maxAllowableEgressInMbps",
)
cache_node.max_allowable_probability = AAZFloatType(
serialized_name="maxAllowableProbability",
flags={"read_only": True},
)
cache_node.release_version = AAZIntType(
serialized_name="releaseVersion",
flags={"read_only": True},
)
cache_node.review_feedback = AAZStrType(
serialized_name="reviewFeedback",
flags={"read_only": True},
)
cache_node.review_state = AAZIntType(
serialized_name="reviewState",
flags={"read_only": True},
)
cache_node.review_state_text = AAZStrType(
serialized_name="reviewStateText",
flags={"read_only": True},
)
cache_node.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
cache_node.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
cache_node.worker_connections = AAZIntType(
serialized_name="workerConnections",
flags={"read_only": True},
)
cache_node.worker_connections_last_updated_date_time = AAZStrType(
serialized_name="workerConnectionsLastUpdatedDateTime",
flags={"read_only": True},
)
cache_node.x_cid = AAZStrType(
serialized_name="xCid",
flags={"read_only": True},
)
cidr_csv = cls._schema_on_200.value.Element.properties.cache_node.cidr_csv
cidr_csv.Element = AAZStrType()
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource(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 | 53 | 2 | 51 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 495 | 27 | 468 | 38 | 451 | 0 | 164 | 31 | 154 | 2 | 1 | 1 | 11 |
9,009 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_get_provisioning_details.py
|
azext_mcc.aaz.latest.mcc.ent.node._get_provisioning_details.GetProvisioningDetails.EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails
|
class EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails",
**self.url_parameters
)
@property
def method(self):
return "POST"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
properties.customer_id = AAZStrType(
serialized_name="customerId",
)
properties.primary_account_key = AAZStrType(
serialized_name="primaryAccountKey",
flags={"secret": True, "read_only": True},
)
properties.registration_key = AAZStrType(
serialized_name="registrationKey",
flags={"secret": True, "read_only": True},
)
properties.secondary_account_key = AAZStrType(
serialized_name="secondaryAccountKey",
flags={"secret": True, "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",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
def on_200(self, session):
pass
@classmethod
def _build_schema_on_200(cls):
pass
| 17 | 0 | 14 | 1 | 13 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 148 | 17 | 131 | 29 | 114 | 0 | 55 | 22 | 45 | 2 | 1 | 1 | 11 |
9,010 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_delete.py
|
azext_mcc.aaz.latest.mcc.ent.node._delete.Delete.EnterpriseMccCacheNodesOperationsDelete
|
class EnterpriseMccCacheNodesOperationsDelete(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "DELETE"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
def on_204(self, session):
pass
def on_200_201(self, session):
pass
|
class EnterpriseMccCacheNodesOperationsDelete(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_204(self, session):
pass
def on_200_201(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,011 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_create.py
|
azext_mcc.aaz.latest.mcc.ent.node._create.Create.EnterpriseMccCacheNodesOperationsCreateOrUpdate
|
class EnterpriseMccCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
typ=AAZObjectType,
typ_kwargs={
"flags": {"required": True, "client_flatten": True}}
)
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType)
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop(
"additionalCacheNodeProperties", AAZObjectType)
properties.set_prop("cacheNode", AAZObjectType, ".cache_node")
properties.set_prop("statusCode", AAZStrType, ".status_code")
properties.set_prop(
"statusDetails", AAZStrType, ".status_details")
properties.set_prop("statusText", AAZStrType, ".status_text")
additional_cache_node_properties = _builder.get(
".properties.additionalCacheNodeProperties")
if additional_cache_node_properties is not None:
additional_cache_node_properties.set_prop(
"autoUpdateVersion", AAZStrType, ".auto_update_version")
additional_cache_node_properties.set_prop(
"bgpConfiguration", AAZObjectType, ".bgp_configuration")
additional_cache_node_properties.set_prop(
"cacheNodePropertiesDetailsIssuesList", AAZListType, ".cache_node_properties_details_issues_list")
additional_cache_node_properties.set_prop(
"driveConfiguration", AAZListType, ".cache_drive")
additional_cache_node_properties.set_prop(
"isProxyRequired", AAZStrType, ".enable_proxy")
additional_cache_node_properties.set_prop(
"optionalProperty1", AAZStrType, ".optional_property1")
additional_cache_node_properties.set_prop(
"optionalProperty2", AAZStrType, ".optional_property2")
additional_cache_node_properties.set_prop(
"optionalProperty3", AAZStrType, ".optional_property3")
additional_cache_node_properties.set_prop(
"optionalProperty4", AAZStrType, ".optional_property4")
additional_cache_node_properties.set_prop(
"optionalProperty5", AAZStrType, ".optional_property5")
additional_cache_node_properties.set_prop(
"osType", AAZStrType, ".host_os")
additional_cache_node_properties.set_prop(
"proxyUrl", AAZStrType, ".proxy_url")
additional_cache_node_properties.set_prop(
"proxyUrlConfiguration", AAZObjectType)
additional_cache_node_properties.set_prop(
"updateCycleType", AAZStrType, ".update_cycle_type")
additional_cache_node_properties.set_prop(
"updateInfoDetails", AAZStrType, ".update_info_details")
additional_cache_node_properties.set_prop(
"updateRequestedDateTime", AAZStrType, ".update_requested_date_time")
bgp_configuration = _builder.get(
".properties.additionalCacheNodeProperties.bgpConfiguration")
if bgp_configuration is not None:
bgp_configuration.set_prop(
"asnToIpAddressMapping", AAZStrType, ".asn_to_ip_address_mapping")
cache_node_properties_details_issues_list = _builder.get(
".properties.additionalCacheNodeProperties.cacheNodePropertiesDetailsIssuesList")
if cache_node_properties_details_issues_list is not None:
cache_node_properties_details_issues_list.set_elements(
AAZStrType, ".")
drive_configuration = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration")
if drive_configuration is not None:
drive_configuration.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration[]")
if _elements is not None:
_elements.set_prop("cacheNumber", AAZIntType, ".cache_number")
_elements.set_prop(
"nginxMapping", AAZStrType, ".nginx_mapping")
_elements.set_prop(
"physicalPath", AAZStrType, ".physical_path")
_elements.set_prop("sizeInGb", AAZIntType, ".size_in_gb")
proxy_url_configuration = _builder.get(
".properties.additionalCacheNodeProperties.proxyUrlConfiguration")
if proxy_url_configuration is not None:
proxy_url_configuration.set_prop(
"proxyUrl", AAZStrType, ".proxy_host")
cache_node = _builder.get(".properties.cacheNode")
if cache_node is not None:
cache_node.set_prop("autoUpdateRequestedDay",
AAZIntType, ".auto_update_day")
cache_node.set_prop("autoUpdateRequestedTime",
AAZStrType, ".auto_update_time")
cache_node.set_prop("autoUpdateRequestedWeek",
AAZIntType, ".auto_update_week")
cache_node.set_prop("autoUpdateRingType",
AAZStrType, ".auto_update_ring")
cache_node.set_prop(
"cacheNodeId", AAZStrType, ".cache_node_id")
cache_node.set_prop(
"cacheNodeName", AAZStrType, ".cache_node_name")
cache_node.set_prop("cidrCsv", AAZListType, ".cidr_csv")
cache_node.set_prop("cidrSelectionType",
AAZIntType, ".cidr_selection_type")
cache_node.set_prop("customerAsn", AAZIntType, ".customer_asn")
cache_node.set_prop(
"customerIndex", AAZStrType, ".customer_index")
cache_node.set_prop(
"customerName", AAZStrType, ".customer_name")
cache_node.set_prop("fullyQualifiedDomainName",
AAZStrType, ".fully_qualified_domain_name")
cache_node.set_prop("fullyQualifiedResourceId",
AAZStrType, ".fully_qualified_resource_id")
cache_node.set_prop("ipAddress", AAZStrType, ".ip_address")
cache_node.set_prop("isEnabled", AAZBoolType, ".is_enabled")
cache_node.set_prop("isEnterpriseManaged",
AAZBoolType, ".is_enterprise_managed")
cache_node.set_prop("maxAllowableEgressInMbps",
AAZIntType, ".max_allowable_egress_in_mbps")
cache_node.set_prop(
"shouldMigrate", AAZBoolType, ".should_migrate")
cidr_csv = _builder.get(".properties.cacheNode.cidrCsv")
if cidr_csv is not None:
cidr_csv.set_elements(AAZStrType, ".")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType()
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.additional_cache_node_properties = AAZObjectType(
serialized_name="additionalCacheNodeProperties",
)
properties.cache_node = AAZObjectType(
serialized_name="cacheNode",
)
properties.error = AAZObjectType()
_CreateHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
)
properties.status_text = AAZStrType(
serialized_name="statusText",
)
additional_cache_node_properties = cls._schema_on_200_201.properties.additional_cache_node_properties
additional_cache_node_properties.aggregated_status_code = AAZIntType(
serialized_name="aggregatedStatusCode",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_details = AAZStrType(
serialized_name="aggregatedStatusDetails",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_text = AAZStrType(
serialized_name="aggregatedStatusText",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_applied_version = AAZStrType(
serialized_name="autoUpdateAppliedVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_date_time = AAZStrType(
serialized_name="autoUpdateLastAppliedDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_details = AAZStrType(
serialized_name="autoUpdateLastAppliedDetails",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_state = AAZStrType(
serialized_name="autoUpdateLastAppliedState",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_triggered_date_time = AAZStrType(
serialized_name="autoUpdateLastTriggeredDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_date_time = AAZStrType(
serialized_name="autoUpdateNextAvailableDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_version = AAZStrType(
serialized_name="autoUpdateNextAvailableVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_version = AAZStrType(
serialized_name="autoUpdateVersion",
)
additional_cache_node_properties.bgp_configuration = AAZObjectType(
serialized_name="bgpConfiguration",
)
additional_cache_node_properties.cache_node_properties_details_issues_list = AAZListType(
serialized_name="cacheNodePropertiesDetailsIssuesList",
)
additional_cache_node_properties.cache_node_state = AAZIntType(
serialized_name="cacheNodeState",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_detailed_text = AAZStrType(
serialized_name="cacheNodeStateDetailedText",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_short_text = AAZStrType(
serialized_name="cacheNodeStateShortText",
flags={"read_only": True},
)
additional_cache_node_properties.drive_configuration = AAZListType(
serialized_name="driveConfiguration",
)
additional_cache_node_properties.is_provisioned = AAZBoolType(
serialized_name="isProvisioned",
flags={"read_only": True},
)
additional_cache_node_properties.is_proxy_required = AAZStrType(
serialized_name="isProxyRequired",
)
additional_cache_node_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_cache_node_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_cache_node_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_cache_node_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_cache_node_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_cache_node_properties.os_type = AAZStrType(
serialized_name="osType",
)
additional_cache_node_properties.product_version = AAZStrType(
serialized_name="productVersion",
flags={"read_only": True},
)
additional_cache_node_properties.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
additional_cache_node_properties.proxy_url_configuration = AAZObjectType(
serialized_name="proxyUrlConfiguration",
)
additional_cache_node_properties.update_cycle_type = AAZStrType(
serialized_name="updateCycleType",
)
additional_cache_node_properties.update_info_details = AAZStrType(
serialized_name="updateInfoDetails",
)
additional_cache_node_properties.update_requested_date_time = AAZStrType(
serialized_name="updateRequestedDateTime",
)
bgp_configuration = cls._schema_on_200_201.properties.additional_cache_node_properties.bgp_configuration
bgp_configuration.asn_to_ip_address_mapping = AAZStrType(
serialized_name="asnToIpAddressMapping",
)
cache_node_properties_details_issues_list = cls._schema_on_200_201.properties.additional_cache_node_properties.cache_node_properties_details_issues_list
cache_node_properties_details_issues_list.Element = AAZStrType()
drive_configuration = cls._schema_on_200_201.properties.additional_cache_node_properties.drive_configuration
drive_configuration.Element = AAZObjectType()
_element = cls._schema_on_200_201.properties.additional_cache_node_properties.drive_configuration.Element
_element.cache_number = AAZIntType(
serialized_name="cacheNumber",
)
_element.nginx_mapping = AAZStrType(
serialized_name="nginxMapping",
)
_element.physical_path = AAZStrType(
serialized_name="physicalPath",
)
_element.size_in_gb = AAZIntType(
serialized_name="sizeInGb",
)
proxy_url_configuration = cls._schema_on_200_201.properties.additional_cache_node_properties.proxy_url_configuration
proxy_url_configuration.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
cache_node = cls._schema_on_200_201.properties.cache_node
cache_node.address_space = AAZIntType(
serialized_name="addressSpace",
flags={"read_only": True},
)
cache_node.auto_update_requested_day = AAZIntType(
serialized_name="autoUpdateRequestedDay",
)
cache_node.auto_update_requested_time = AAZStrType(
serialized_name="autoUpdateRequestedTime",
)
cache_node.auto_update_requested_week = AAZIntType(
serialized_name="autoUpdateRequestedWeek",
)
cache_node.auto_update_ring_type = AAZStrType(
serialized_name="autoUpdateRingType",
)
cache_node.bgp_address_space = AAZIntType(
serialized_name="bgpAddressSpace",
flags={"read_only": True},
)
cache_node.bgp_cidr_blocks_count = AAZIntType(
serialized_name="bgpCidrBlocksCount",
flags={"read_only": True},
)
cache_node.bgp_cidr_csv_last_update_time = AAZStrType(
serialized_name="bgpCidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.bgp_file_bytes_truncated = AAZIntType(
serialized_name="bgpFileBytesTruncated",
flags={"read_only": True},
)
cache_node.bgp_last_reported_time = AAZStrType(
serialized_name="bgpLastReportedTime",
flags={"read_only": True},
)
cache_node.bgp_number_of_records = AAZIntType(
serialized_name="bgpNumberOfRecords",
flags={"read_only": True},
)
cache_node.bgp_number_of_times_updated = AAZIntType(
serialized_name="bgpNumberOfTimesUpdated",
flags={"read_only": True},
)
cache_node.bgp_review_feedback = AAZStrType(
serialized_name="bgpReviewFeedback",
flags={"read_only": True},
)
cache_node.bgp_review_state = AAZStrType(
serialized_name="bgpReviewState",
flags={"read_only": True},
)
cache_node.bgp_review_state_text = AAZStrType(
serialized_name="bgpReviewStateText",
flags={"read_only": True},
)
cache_node.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
cache_node.cache_node_name = AAZStrType(
serialized_name="cacheNodeName",
)
cache_node.category = AAZStrType(
flags={"read_only": True},
)
cache_node.cidr_csv = AAZListType(
serialized_name="cidrCsv",
)
cache_node.cidr_csv_last_update_time = AAZStrType(
serialized_name="cidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.cidr_selection_type = AAZIntType(
serialized_name="cidrSelectionType",
)
cache_node.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
flags={"read_only": True},
)
cache_node.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
cache_node.configuration_state_text = AAZStrType(
serialized_name="configurationStateText",
flags={"read_only": True},
)
cache_node.container_configurations = AAZStrType(
serialized_name="containerConfigurations",
flags={"read_only": True},
)
cache_node.container_resync_trigger = AAZIntType(
serialized_name="containerResyncTrigger",
flags={"read_only": True},
)
cache_node.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
cache_node.customer_asn = AAZIntType(
serialized_name="customerAsn",
)
cache_node.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
cache_node.customer_index = AAZStrType(
serialized_name="customerIndex",
)
cache_node.customer_name = AAZStrType(
serialized_name="customerName",
)
cache_node.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
cache_node.fully_qualified_domain_name = AAZStrType(
serialized_name="fullyQualifiedDomainName",
)
cache_node.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
cache_node.image_uri = AAZStrType(
serialized_name="imageUri",
flags={"read_only": True},
)
cache_node.ip_address = AAZStrType(
serialized_name="ipAddress",
)
cache_node.is_enabled = AAZBoolType(
serialized_name="isEnabled",
)
cache_node.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
cache_node.is_frozen = AAZBoolType(
serialized_name="isFrozen",
flags={"read_only": True},
)
cache_node.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
cache_node.last_updated_timestamp = AAZStrType(
serialized_name="lastUpdatedTimestamp",
flags={"read_only": True},
)
cache_node.max_allowable_egress_in_mbps = AAZIntType(
serialized_name="maxAllowableEgressInMbps",
)
cache_node.max_allowable_probability = AAZFloatType(
serialized_name="maxAllowableProbability",
flags={"read_only": True},
)
cache_node.release_version = AAZIntType(
serialized_name="releaseVersion",
flags={"read_only": True},
)
cache_node.review_feedback = AAZStrType(
serialized_name="reviewFeedback",
flags={"read_only": True},
)
cache_node.review_state = AAZIntType(
serialized_name="reviewState",
flags={"read_only": True},
)
cache_node.review_state_text = AAZStrType(
serialized_name="reviewStateText",
flags={"read_only": True},
)
cache_node.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
cache_node.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
cache_node.worker_connections = AAZIntType(
serialized_name="workerConnections",
flags={"read_only": True},
)
cache_node.worker_connections_last_updated_date_time = AAZStrType(
serialized_name="workerConnectionsLastUpdatedDateTime",
flags={"read_only": True},
)
cache_node.x_cid = AAZStrType(
serialized_name="xCid",
flags={"read_only": True},
)
cidr_csv = cls._schema_on_200_201.properties.cache_node.cidr_csv
cidr_csv.Element = AAZStrType()
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class EnterpriseMccCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 58 | 3 | 55 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 599 | 37 | 562 | 51 | 543 | 0 | 236 | 42 | 225 | 11 | 1 | 1 | 23 |
9,012 |
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/managementpartner/azext_managementpartner/aaz/latest/managementpartner/_update.py
|
azext_managementpartner.aaz.latest.managementpartner._update.Update.PartnerUpdate
|
class PartnerUpdate(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.ManagementPartner/partners/{partnerId}",
**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(
"partnerId", self.ctx.args.partner_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-02-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.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.created_time = AAZStrType(
serialized_name="createdTime",
)
properties.object_id = AAZStrType(
serialized_name="objectId",
)
properties.partner_id = AAZStrType(
serialized_name="partnerId",
)
properties.partner_name = AAZStrType(
serialized_name="partnerName",
)
properties.state = AAZStrType()
properties.tenant_id = AAZStrType(
serialized_name="tenantId",
)
properties.updated_time = AAZStrType(
serialized_name="updatedTime",
)
properties.version = AAZIntType()
return cls._schema_on_200
|
class PartnerUpdate(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 | 10 | 1 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 110 | 15 | 95 | 27 | 78 | 0 | 47 | 20 | 37 | 2 | 1 | 1 | 11 |
9,013 |
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/managementpartner/azext_managementpartner/aaz/latest/managementpartner/_show.py
|
azext_managementpartner.aaz.latest.managementpartner._show.Show.PartnerGet
|
class PartnerGet(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.ManagementPartner/partners/{partnerId}",
**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(
"partnerId", self.ctx.args.partner_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-02-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.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.created_time = AAZStrType(
serialized_name="createdTime",
)
properties.object_id = AAZStrType(
serialized_name="objectId",
)
properties.partner_id = AAZStrType(
serialized_name="partnerId",
)
properties.partner_name = AAZStrType(
serialized_name="partnerName",
)
properties.state = AAZStrType()
properties.tenant_id = AAZStrType(
serialized_name="tenantId",
)
properties.updated_time = AAZStrType(
serialized_name="updatedTime",
)
properties.version = AAZIntType()
return cls._schema_on_200
|
class PartnerGet(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 | 10 | 1 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 110 | 15 | 95 | 27 | 78 | 0 | 47 | 20 | 37 | 2 | 1 | 1 | 11 |
9,014 |
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/managementpartner/azext_managementpartner/aaz/latest/managementpartner/_list.py
|
azext_managementpartner.aaz.latest.managementpartner._list.List.PartnersGet
|
class PartnersGet(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.ManagementPartner/partners",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "ODataV4Format"
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-02-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.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.created_time = AAZStrType(
serialized_name="createdTime",
)
properties.object_id = AAZStrType(
serialized_name="objectId",
)
properties.partner_id = AAZStrType(
serialized_name="partnerId",
)
properties.partner_name = AAZStrType(
serialized_name="partnerName",
)
properties.state = AAZStrType()
properties.tenant_id = AAZStrType(
serialized_name="tenantId",
)
properties.updated_time = AAZStrType(
serialized_name="updatedTime",
)
properties.version = AAZIntType()
return cls._schema_on_200
|
class PartnersGet(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 query_parameters(self):
pass
@property
def header_parameters(self):
pass
def on_200(self, session):
pass
@classmethod
def _build_schema_on_200(cls):
pass
| 15 | 0 | 10 | 1 | 10 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 7 | 0 | 8 | 8 | 100 | 14 | 86 | 24 | 71 | 0 | 44 | 18 | 35 | 2 | 1 | 1 | 10 |
9,015 |
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/managementpartner/azext_managementpartner/aaz/latest/managementpartner/_delete.py
|
azext_managementpartner.aaz.latest.managementpartner._delete.Delete.PartnerDelete
|
class PartnerDelete(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.ManagementPartner/partners/{partnerId}",
**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(
"partnerId", self.ctx.args.partner_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-02-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
|
class PartnerDelete(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
def on_200(self, session):
pass
| 13 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 48 | 8 | 40 | 18 | 27 | 0 | 22 | 13 | 14 | 2 | 1 | 1 | 8 |
9,016 |
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/managementpartner/azext_managementpartner/aaz/latest/managementpartner/_create.py
|
azext_managementpartner.aaz.latest.managementpartner._create.Create.PartnerCreate
|
class PartnerCreate(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.ManagementPartner/partners/{partnerId}",
**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(
"partnerId", self.ctx.args.partner_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-02-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.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.created_time = AAZStrType(
serialized_name="createdTime",
)
properties.object_id = AAZStrType(
serialized_name="objectId",
)
properties.partner_id = AAZStrType(
serialized_name="partnerId",
)
properties.partner_name = AAZStrType(
serialized_name="partnerName",
)
properties.state = AAZStrType()
properties.tenant_id = AAZStrType(
serialized_name="tenantId",
)
properties.updated_time = AAZStrType(
serialized_name="updatedTime",
)
properties.version = AAZIntType()
return cls._schema_on_200
|
class PartnerCreate(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 | 10 | 1 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 110 | 15 | 95 | 27 | 78 | 0 | 47 | 20 | 37 | 2 | 1 | 1 | 11 |
9,017 |
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/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_ipprefix.py
|
azext_managednetworkfabric.tests.latest.test_ipprefix.GA_IpPrefixScenarioTest1
|
class GA_IpPrefixScenarioTest1(ScenarioTest):
"""IpPrefix Scenario test"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.kwargs.update(
{
"name": CONFIG.get("IP_PREFIX", "name"),
"rg": CONFIG.get("IP_PREFIX", "resource_group"),
"location": CONFIG.get("IP_PREFIX", "location"),
"ipPrefixRules": CONFIG.get("IP_PREFIX", "ip_prefix_rules"),
"updatedIpPrefixRules": CONFIG.get(
"IP_PREFIX", "updated_ip_prefix_rules"
),
}
)
@AllowLargeResponse()
def test_GA_ipprefix_scenario1(self):
"""test scenario for IpPrefix CRUD operations"""
call_scenario1(self)
|
class GA_IpPrefixScenarioTest1(ScenarioTest):
'''IpPrefix Scenario test'''
def __init__(self, *args, **kwargs):
pass
@AllowLargeResponse()
def test_GA_ipprefix_scenario1(self):
'''test scenario for IpPrefix CRUD operations'''
pass
| 4 | 2 | 8 | 0 | 8 | 1 | 1 | 0.12 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 21 | 2 | 17 | 4 | 13 | 2 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
9,018 |
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/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_device_upgrade.py
|
azext_managednetworkfabric.tests.latest.test_device_upgrade.GA_DeviceUpgradeScenarioTest1
|
class GA_DeviceUpgradeScenarioTest1(ScenarioTest):
"""DeviceScenario test"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.kwargs.update(
{
"upgradeDeviceRGName": CONFIG.get(
"NETWORK_DEVICE", "upgrade_resource_group"
),
"upgradeDeviceName": CONFIG.get(
"NETWORK_DEVICE", "upgrade_device_name"
),
"upgradeVersion": CONFIG.get("NETWORK_DEVICE", "upgrade_version"),
}
)
@AllowLargeResponse()
def test_GA_Device_upgrade_scenario1(self):
"""test scenario for Device upgrade operation"""
call_scenario1(self)
|
class GA_DeviceUpgradeScenarioTest1(ScenarioTest):
'''DeviceScenario test'''
def __init__(self, *args, **kwargs):
pass
@AllowLargeResponse()
def test_GA_Device_upgrade_scenario1(self):
'''test scenario for Device upgrade operation'''
pass
| 4 | 2 | 8 | 0 | 8 | 1 | 1 | 0.12 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 21 | 2 | 17 | 4 | 13 | 2 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
9,019 |
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/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_device_update_admin_state.py
|
azext_managednetworkfabric.tests.latest.test_device_update_admin_state.GA_DeviceUpdateAdminStateScenarioTest1
|
class GA_DeviceUpdateAdminStateScenarioTest1(ScenarioTest):
"""DeviceScenario test"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.kwargs.update(
{
"name": CONFIG.get("NETWORK_DEVICE", "update_admin_state_device_name"),
"rg": CONFIG.get("NETWORK_DEVICE", "update_admin_state_device_rg"),
"state": CONFIG.get(
"NETWORK_DEVICE", "update_admin_state_device_state"
),
}
)
@AllowLargeResponse()
def test_GA_Device_UpdateAdminState_scenario1(self):
"""test scenario for Device CRUD operations"""
call_scenario1(self)
|
class GA_DeviceUpdateAdminStateScenarioTest1(ScenarioTest):
'''DeviceScenario test'''
def __init__(self, *args, **kwargs):
pass
@AllowLargeResponse()
def test_GA_Device_UpdateAdminState_scenario1(self):
'''test scenario for Device CRUD operations'''
pass
| 4 | 2 | 7 | 0 | 7 | 1 | 1 | 0.13 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 19 | 2 | 15 | 4 | 11 | 2 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
9,020 |
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/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_device_rw.py
|
azext_managednetworkfabric.tests.latest.test_device_rw.GA_DeviceRwScenarioTest1
|
class GA_DeviceRwScenarioTest1(ScenarioTest):
"""DeviceScenario test"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.kwargs.update(
{
"name": CONFIG.get("NETWORK_DEVICE", "rw_device_name"),
"rg": CONFIG.get("NETWORK_DEVICE", "rw_device_rg"),
"command": CONFIG.get("NETWORK_DEVICE", "rw_command"),
}
)
@AllowLargeResponse()
def test_GA_Device_Rw_scenario1(self):
"""test scenario for Device CRUD operations"""
call_scenario1(self)
|
class GA_DeviceRwScenarioTest1(ScenarioTest):
'''DeviceScenario test'''
def __init__(self, *args, **kwargs):
pass
@AllowLargeResponse()
def test_GA_Device_Rw_scenario1(self):
'''test scenario for Device CRUD operations'''
pass
| 4 | 2 | 6 | 0 | 6 | 1 | 1 | 0.15 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 17 | 2 | 13 | 4 | 9 | 2 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
9,021 |
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/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_device_ro.py
|
azext_managednetworkfabric.tests.latest.test_device_ro.GA_DeviceRoScenarioTest1
|
class GA_DeviceRoScenarioTest1(ScenarioTest):
"""DeviceScenario test"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.kwargs.update(
{
"name": CONFIG.get("NETWORK_DEVICE", "ro_device_name"),
"rg": CONFIG.get("NETWORK_DEVICE", "ro_device_rg"),
"command": CONFIG.get("NETWORK_DEVICE", "ro_command"),
}
)
@AllowLargeResponse()
def test_GA_Device_Ro_scenario1(self):
"""test scenario for Device CRUD operations"""
call_scenario1(self)
|
class GA_DeviceRoScenarioTest1(ScenarioTest):
'''DeviceScenario test'''
def __init__(self, *args, **kwargs):
pass
@AllowLargeResponse()
def test_GA_Device_Ro_scenario1(self):
'''test scenario for Device CRUD operations'''
pass
| 4 | 2 | 6 | 0 | 6 | 1 | 1 | 0.15 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 17 | 2 | 13 | 4 | 9 | 2 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
9,022 |
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/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_device.py
|
azext_managednetworkfabric.tests.latest.test_device.GA_DeviceScenarioTest1
|
class GA_DeviceScenarioTest1(ScenarioTest):
"""DeviceScenario test"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.kwargs.update(
{
"name": CONFIG.get("NETWORK_DEVICE", "name"),
"rg": CONFIG.get("NETWORK_DEVICE", "resource_group"),
"host_name": CONFIG.get("NETWORK_DEVICE", "host_name"),
"serial_number": CONFIG.get("NETWORK_DEVICE", "serial_number"),
}
)
@AllowLargeResponse()
def test_GA_Device_scenario1(self):
"""test scenario for Device CRUD operations"""
call_scenario1(self)
|
class GA_DeviceScenarioTest1(ScenarioTest):
'''DeviceScenario test'''
def __init__(self, *args, **kwargs):
pass
@AllowLargeResponse()
def test_GA_Device_scenario1(self):
'''test scenario for Device CRUD operations'''
pass
| 4 | 2 | 7 | 0 | 6 | 1 | 1 | 0.14 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 18 | 2 | 14 | 4 | 10 | 2 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
9,023 |
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/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/taprule/_wait.py
|
azext_managednetworkfabric.aaz.latest.networkfabric.taprule._wait.Wait.NetworkTapRulesGet
|
class NetworkTapRulesGet(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.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"networkTapRuleName", self.ctx.args.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", "2024-02-15-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": True},
)
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_schema_on_200.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.administrative_state = AAZStrType(
serialized_name="administrativeState",
flags={"read_only": True},
)
properties.annotation = AAZStrType()
properties.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
properties.configuration_type = AAZStrType(
serialized_name="configurationType",
flags={"required": True},
)
properties.dynamic_match_configurations = AAZListType(
serialized_name="dynamicMatchConfigurations",
)
properties.last_synced_time = AAZStrType(
serialized_name="lastSyncedTime",
flags={"read_only": True},
)
properties.match_configurations = AAZListType(
serialized_name="matchConfigurations",
)
properties.network_tap_id = AAZStrType(
serialized_name="networkTapId",
flags={"read_only": True},
)
properties.polling_interval_in_seconds = AAZIntType(
serialized_name="pollingIntervalInSeconds",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.tap_rules_url = AAZStrType(
serialized_name="tapRulesUrl",
)
dynamic_match_configurations = cls._schema_on_200.properties.dynamic_match_configurations
dynamic_match_configurations.Element = AAZObjectType()
_element = cls._schema_on_200.properties.dynamic_match_configurations.Element
_element.ip_groups = AAZListType(
serialized_name="ipGroups",
)
_element.port_groups = AAZListType(
serialized_name="portGroups",
)
_element.vlan_groups = AAZListType(
serialized_name="vlanGroups",
)
ip_groups = cls._schema_on_200.properties.dynamic_match_configurations.Element.ip_groups
ip_groups.Element = AAZObjectType()
_element = cls._schema_on_200.properties.dynamic_match_configurations.Element.ip_groups.Element
_element.ip_address_type = AAZStrType(
serialized_name="ipAddressType",
)
_element.ip_prefixes = AAZListType(
serialized_name="ipPrefixes",
)
_element.name = AAZStrType()
ip_prefixes = cls._schema_on_200.properties.dynamic_match_configurations.Element.ip_groups.Element.ip_prefixes
ip_prefixes.Element = AAZStrType()
port_groups = cls._schema_on_200.properties.dynamic_match_configurations.Element.port_groups
port_groups.Element = AAZObjectType()
_element = cls._schema_on_200.properties.dynamic_match_configurations.Element.port_groups.Element
_element.name = AAZStrType()
_element.ports = AAZListType()
ports = cls._schema_on_200.properties.dynamic_match_configurations.Element.port_groups.Element.ports
ports.Element = AAZStrType()
vlan_groups = cls._schema_on_200.properties.dynamic_match_configurations.Element.vlan_groups
vlan_groups.Element = AAZObjectType()
_element = cls._schema_on_200.properties.dynamic_match_configurations.Element.vlan_groups.Element
_element.name = AAZStrType()
_element.vlans = AAZListType()
vlans = cls._schema_on_200.properties.dynamic_match_configurations.Element.vlan_groups.Element.vlans
vlans.Element = AAZStrType()
match_configurations = cls._schema_on_200.properties.match_configurations
match_configurations.Element = AAZObjectType()
_element = cls._schema_on_200.properties.match_configurations.Element
_element.actions = AAZListType()
_element.ip_address_type = AAZStrType(
serialized_name="ipAddressType",
)
_element.match_conditions = AAZListType(
serialized_name="matchConditions",
)
_element.match_configuration_name = AAZStrType(
serialized_name="matchConfigurationName",
)
_element.sequence_number = AAZIntType(
serialized_name="sequenceNumber",
)
actions = cls._schema_on_200.properties.match_configurations.Element.actions
actions.Element = AAZObjectType()
_element = cls._schema_on_200.properties.match_configurations.Element.actions.Element
_element.destination_id = AAZStrType(
serialized_name="destinationId",
)
_element.is_timestamp_enabled = AAZStrType(
serialized_name="isTimestampEnabled",
)
_element.match_configuration_name = AAZStrType(
serialized_name="matchConfigurationName",
)
_element.truncate = AAZStrType()
_element.type = AAZStrType()
match_conditions = cls._schema_on_200.properties.match_configurations.Element.match_conditions
match_conditions.Element = AAZObjectType()
_element = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element
_element.encapsulation_type = AAZStrType(
serialized_name="encapsulationType",
)
_element.ip_condition = AAZObjectType(
serialized_name="ipCondition",
)
_element.port_condition = AAZObjectType(
serialized_name="portCondition",
)
_element.protocol_types = AAZListType(
serialized_name="protocolTypes",
)
_element.vlan_match_condition = AAZObjectType(
serialized_name="vlanMatchCondition",
)
ip_condition = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.ip_condition
ip_condition.ip_group_names = AAZListType(
serialized_name="ipGroupNames",
)
ip_condition.ip_prefix_values = AAZListType(
serialized_name="ipPrefixValues",
)
ip_condition.prefix_type = AAZStrType(
serialized_name="prefixType",
)
ip_condition.type = AAZStrType()
ip_group_names = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.ip_condition.ip_group_names
ip_group_names.Element = AAZStrType()
ip_prefix_values = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.ip_condition.ip_prefix_values
ip_prefix_values.Element = AAZStrType()
port_condition = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.port_condition
port_condition.layer4_protocol = AAZStrType(
serialized_name="layer4Protocol",
flags={"required": True},
)
port_condition.port_group_names = AAZListType(
serialized_name="portGroupNames",
)
port_condition.port_type = AAZStrType(
serialized_name="portType",
)
port_condition.ports = AAZListType()
port_group_names = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.port_condition.port_group_names
port_group_names.Element = AAZStrType()
ports = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.port_condition.ports
ports.Element = AAZStrType()
protocol_types = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.protocol_types
protocol_types.Element = AAZStrType()
vlan_match_condition = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.vlan_match_condition
vlan_match_condition.inner_vlans = AAZListType(
serialized_name="innerVlans",
)
vlan_match_condition.vlan_group_names = AAZListType(
serialized_name="vlanGroupNames",
)
vlan_match_condition.vlans = AAZListType()
inner_vlans = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.vlan_match_condition.inner_vlans
inner_vlans.Element = AAZStrType()
vlan_group_names = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.vlan_match_condition.vlan_group_names
vlan_group_names.Element = AAZStrType()
vlans = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.vlan_match_condition.vlans
vlans.Element = AAZStrType()
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class NetworkTapRulesGet(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 | 4 | 30 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 326 | 45 | 281 | 49 | 264 | 0 | 143 | 42 | 133 | 2 | 1 | 1 | 11 |
9,024 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_update.py
|
azext_mcc.aaz.latest.mcc.ent.node._update.Update.EnterpriseMccCacheNodesOperationsCreateOrUpdate
|
class EnterpriseMccCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
value=self.ctx.vars.instance,
)
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_UpdateHelper._build_schema_enterprise_mcc_cache_node_resource_read(
cls._schema_on_200_201)
return cls._schema_on_200_201
|
class EnterpriseMccCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 9 | 0 | 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,025 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_update.py
|
azext_mcc.aaz.latest.mcc.ent.node._update.Update.EnterpriseMccCacheNodesOperationsGet
|
class EnterpriseMccCacheNodesOperationsGet(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_UpdateHelper._build_schema_enterprise_mcc_cache_node_resource_read(
cls._schema_on_200)
return cls._schema_on_200
|
class EnterpriseMccCacheNodesOperationsGet(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,026 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_update.py
|
azext_mcc.aaz.latest.mcc.ent.node._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)
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop(
"additionalCacheNodeProperties", AAZObjectType)
properties.set_prop("cacheNode", AAZObjectType)
properties.set_prop("statusCode", AAZStrType, ".status_code")
properties.set_prop(
"statusDetails", AAZStrType, ".status_details")
properties.set_prop("statusText", AAZStrType, ".status_text")
additional_cache_node_properties = _builder.get(
".properties.additionalCacheNodeProperties")
if additional_cache_node_properties is not None:
additional_cache_node_properties.set_prop(
"autoUpdateVersion", AAZStrType, ".auto_update_version")
additional_cache_node_properties.set_prop(
"bgpConfiguration", AAZObjectType, ".bgp_configuration")
additional_cache_node_properties.set_prop(
"cacheNodePropertiesDetailsIssuesList", AAZListType, ".cache_node_properties_details_issues_list")
additional_cache_node_properties.set_prop(
"driveConfiguration", AAZListType, ".cache_drive")
additional_cache_node_properties.set_prop(
"isProxyRequired", AAZStrType, ".proxy")
additional_cache_node_properties.set_prop(
"optionalProperty1", AAZStrType, ".optional_property1")
additional_cache_node_properties.set_prop(
"optionalProperty2", AAZStrType, ".optional_property2")
additional_cache_node_properties.set_prop(
"optionalProperty3", AAZStrType, ".optional_property3")
additional_cache_node_properties.set_prop(
"optionalProperty4", AAZStrType, ".optional_property4")
additional_cache_node_properties.set_prop(
"optionalProperty5", AAZStrType, ".optional_property5")
additional_cache_node_properties.set_prop(
"osType", AAZStrType, ".host_os")
additional_cache_node_properties.set_prop(
"proxyUrl", AAZStrType, ".proxy_url")
additional_cache_node_properties.set_prop(
"proxyUrlConfiguration", AAZObjectType)
additional_cache_node_properties.set_prop(
"updateCycleType", AAZStrType, ".update_cycle_type")
additional_cache_node_properties.set_prop(
"updateInfoDetails", AAZStrType, ".update_info_details")
additional_cache_node_properties.set_prop(
"updateRequestedDateTime", AAZStrType, ".update_requested_date_time")
bgp_configuration = _builder.get(
".properties.additionalCacheNodeProperties.bgpConfiguration")
if bgp_configuration is not None:
bgp_configuration.set_prop(
"asnToIpAddressMapping", AAZStrType, ".asn_to_ip_address_mapping")
cache_node_properties_details_issues_list = _builder.get(
".properties.additionalCacheNodeProperties.cacheNodePropertiesDetailsIssuesList")
if cache_node_properties_details_issues_list is not None:
cache_node_properties_details_issues_list.set_elements(
AAZStrType, ".")
drive_configuration = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration")
if drive_configuration is not None:
drive_configuration.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration[]")
if _elements is not None:
_elements.set_prop("cacheNumber", AAZIntType, ".cache_number")
_elements.set_prop(
"nginxMapping", AAZStrType, ".nginx_mapping")
_elements.set_prop(
"physicalPath", AAZStrType, ".physical_path")
_elements.set_prop("sizeInGb", AAZIntType, ".size_in_gb")
proxy_url_configuration = _builder.get(
".properties.additionalCacheNodeProperties.proxyUrlConfiguration")
if proxy_url_configuration is not None:
proxy_url_configuration.set_prop(
"proxyUrl", AAZStrType, ".proxy_host")
cache_node = _builder.get(".properties.cacheNode")
if cache_node is not None:
cache_node.set_prop("autoUpdateRequestedDay",
AAZIntType, ".auto_update_day")
cache_node.set_prop("autoUpdateRequestedTime",
AAZStrType, ".auto_update_time")
cache_node.set_prop("autoUpdateRequestedWeek",
AAZIntType, ".auto_update_week")
cache_node.set_prop("autoUpdateRingType",
AAZStrType, ".auto_update_ring")
cache_node.set_prop(
"cacheNodeId", AAZStrType, ".cache_node_id")
cache_node.set_prop(
"cacheNodeName", AAZStrType, ".cache_node_name_1")
cache_node.set_prop("cidrCsv", AAZListType, ".cidr_csv")
cache_node.set_prop("cidrSelectionType",
AAZIntType, ".cidr_selection_type")
cache_node.set_prop("customerAsn", AAZIntType, ".customer_asn")
cache_node.set_prop(
"customerIndex", AAZStrType, ".customer_index")
cache_node.set_prop(
"customerName", AAZStrType, ".customer_name")
cache_node.set_prop("fullyQualifiedDomainName",
AAZStrType, ".fully_qualified_domain_name")
cache_node.set_prop("fullyQualifiedResourceId",
AAZStrType, ".fully_qualified_resource_id")
cache_node.set_prop("ipAddress", AAZStrType, ".ip_address")
cache_node.set_prop("isEnabled", AAZBoolType, ".is_enabled")
cache_node.set_prop("isEnterpriseManaged",
AAZBoolType, ".is_enterprise_managed")
cache_node.set_prop("maxAllowableEgressInMbps",
AAZIntType, ".max_allowable_egress_in_mbps")
cache_node.set_prop(
"shouldMigrate", AAZBoolType, ".should_migrate")
cidr_csv = _builder.get(".properties.cacheNode.cidrCsv")
if cidr_csv is not None:
cidr_csv.set_elements(AAZStrType, ".")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return _instance_value
|
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation):
def __call__(self, *args, **kwargs):
pass
def _update_instance(self, instance):
pass
| 3 | 0 | 46 | 6 | 40 | 0 | 6 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 94 | 13 | 81 | 14 | 78 | 0 | 77 | 14 | 74 | 11 | 1 | 1 | 12 |
9,027 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/node/_wait.py
|
azext_mcc.aaz.latest.mcc.ent.node._wait.Wait.EnterpriseMccCacheNodesOperationsGet
|
class EnterpriseMccCacheNodesOperationsGet(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.additional_cache_node_properties = AAZObjectType(
serialized_name="additionalCacheNodeProperties",
)
properties.cache_node = AAZObjectType(
serialized_name="cacheNode",
)
properties.error = AAZObjectType()
_WaitHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
)
properties.status_text = AAZStrType(
serialized_name="statusText",
)
additional_cache_node_properties = cls._schema_on_200.properties.additional_cache_node_properties
additional_cache_node_properties.aggregated_status_code = AAZIntType(
serialized_name="aggregatedStatusCode",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_details = AAZStrType(
serialized_name="aggregatedStatusDetails",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_text = AAZStrType(
serialized_name="aggregatedStatusText",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_applied_version = AAZStrType(
serialized_name="autoUpdateAppliedVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_date_time = AAZStrType(
serialized_name="autoUpdateLastAppliedDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_details = AAZStrType(
serialized_name="autoUpdateLastAppliedDetails",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_state = AAZStrType(
serialized_name="autoUpdateLastAppliedState",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_triggered_date_time = AAZStrType(
serialized_name="autoUpdateLastTriggeredDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_date_time = AAZStrType(
serialized_name="autoUpdateNextAvailableDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_version = AAZStrType(
serialized_name="autoUpdateNextAvailableVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_version = AAZStrType(
serialized_name="autoUpdateVersion",
)
additional_cache_node_properties.bgp_configuration = AAZObjectType(
serialized_name="bgpConfiguration",
)
additional_cache_node_properties.cache_node_properties_details_issues_list = AAZListType(
serialized_name="cacheNodePropertiesDetailsIssuesList",
)
additional_cache_node_properties.cache_node_state = AAZIntType(
serialized_name="cacheNodeState",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_detailed_text = AAZStrType(
serialized_name="cacheNodeStateDetailedText",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_short_text = AAZStrType(
serialized_name="cacheNodeStateShortText",
flags={"read_only": True},
)
additional_cache_node_properties.drive_configuration = AAZListType(
serialized_name="driveConfiguration",
)
additional_cache_node_properties.is_provisioned = AAZBoolType(
serialized_name="isProvisioned",
flags={"read_only": True},
)
additional_cache_node_properties.is_proxy_required = AAZStrType(
serialized_name="isProxyRequired",
)
additional_cache_node_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_cache_node_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_cache_node_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_cache_node_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_cache_node_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_cache_node_properties.os_type = AAZStrType(
serialized_name="osType",
)
additional_cache_node_properties.product_version = AAZStrType(
serialized_name="productVersion",
flags={"read_only": True},
)
additional_cache_node_properties.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
additional_cache_node_properties.proxy_url_configuration = AAZObjectType(
serialized_name="proxyUrlConfiguration",
)
additional_cache_node_properties.update_cycle_type = AAZStrType(
serialized_name="updateCycleType",
)
additional_cache_node_properties.update_info_details = AAZStrType(
serialized_name="updateInfoDetails",
)
additional_cache_node_properties.update_requested_date_time = AAZStrType(
serialized_name="updateRequestedDateTime",
)
bgp_configuration = cls._schema_on_200.properties.additional_cache_node_properties.bgp_configuration
bgp_configuration.asn_to_ip_address_mapping = AAZStrType(
serialized_name="asnToIpAddressMapping",
)
cache_node_properties_details_issues_list = cls._schema_on_200.properties.additional_cache_node_properties.cache_node_properties_details_issues_list
cache_node_properties_details_issues_list.Element = AAZStrType()
drive_configuration = cls._schema_on_200.properties.additional_cache_node_properties.drive_configuration
drive_configuration.Element = AAZObjectType()
_element = cls._schema_on_200.properties.additional_cache_node_properties.drive_configuration.Element
_element.cache_number = AAZIntType(
serialized_name="cacheNumber",
)
_element.nginx_mapping = AAZStrType(
serialized_name="nginxMapping",
)
_element.physical_path = AAZStrType(
serialized_name="physicalPath",
)
_element.size_in_gb = AAZIntType(
serialized_name="sizeInGb",
)
proxy_url_configuration = cls._schema_on_200.properties.additional_cache_node_properties.proxy_url_configuration
proxy_url_configuration.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
cache_node = cls._schema_on_200.properties.cache_node
cache_node.address_space = AAZIntType(
serialized_name="addressSpace",
flags={"read_only": True},
)
cache_node.auto_update_requested_day = AAZIntType(
serialized_name="autoUpdateRequestedDay",
)
cache_node.auto_update_requested_time = AAZStrType(
serialized_name="autoUpdateRequestedTime",
)
cache_node.auto_update_requested_week = AAZIntType(
serialized_name="autoUpdateRequestedWeek",
)
cache_node.auto_update_ring_type = AAZStrType(
serialized_name="autoUpdateRingType",
)
cache_node.bgp_address_space = AAZIntType(
serialized_name="bgpAddressSpace",
flags={"read_only": True},
)
cache_node.bgp_cidr_blocks_count = AAZIntType(
serialized_name="bgpCidrBlocksCount",
flags={"read_only": True},
)
cache_node.bgp_cidr_csv_last_update_time = AAZStrType(
serialized_name="bgpCidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.bgp_file_bytes_truncated = AAZIntType(
serialized_name="bgpFileBytesTruncated",
flags={"read_only": True},
)
cache_node.bgp_last_reported_time = AAZStrType(
serialized_name="bgpLastReportedTime",
flags={"read_only": True},
)
cache_node.bgp_number_of_records = AAZIntType(
serialized_name="bgpNumberOfRecords",
flags={"read_only": True},
)
cache_node.bgp_number_of_times_updated = AAZIntType(
serialized_name="bgpNumberOfTimesUpdated",
flags={"read_only": True},
)
cache_node.bgp_review_feedback = AAZStrType(
serialized_name="bgpReviewFeedback",
flags={"read_only": True},
)
cache_node.bgp_review_state = AAZStrType(
serialized_name="bgpReviewState",
flags={"read_only": True},
)
cache_node.bgp_review_state_text = AAZStrType(
serialized_name="bgpReviewStateText",
flags={"read_only": True},
)
cache_node.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
cache_node.cache_node_name = AAZStrType(
serialized_name="cacheNodeName",
)
cache_node.category = AAZStrType(
flags={"read_only": True},
)
cache_node.cidr_csv = AAZListType(
serialized_name="cidrCsv",
)
cache_node.cidr_csv_last_update_time = AAZStrType(
serialized_name="cidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.cidr_selection_type = AAZIntType(
serialized_name="cidrSelectionType",
)
cache_node.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
flags={"read_only": True},
)
cache_node.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
cache_node.configuration_state_text = AAZStrType(
serialized_name="configurationStateText",
flags={"read_only": True},
)
cache_node.container_configurations = AAZStrType(
serialized_name="containerConfigurations",
flags={"read_only": True},
)
cache_node.container_resync_trigger = AAZIntType(
serialized_name="containerResyncTrigger",
flags={"read_only": True},
)
cache_node.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
cache_node.customer_asn = AAZIntType(
serialized_name="customerAsn",
)
cache_node.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
cache_node.customer_index = AAZStrType(
serialized_name="customerIndex",
)
cache_node.customer_name = AAZStrType(
serialized_name="customerName",
)
cache_node.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
cache_node.fully_qualified_domain_name = AAZStrType(
serialized_name="fullyQualifiedDomainName",
)
cache_node.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
cache_node.image_uri = AAZStrType(
serialized_name="imageUri",
flags={"read_only": True},
)
cache_node.ip_address = AAZStrType(
serialized_name="ipAddress",
)
cache_node.is_enabled = AAZBoolType(
serialized_name="isEnabled",
)
cache_node.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
cache_node.is_frozen = AAZBoolType(
serialized_name="isFrozen",
flags={"read_only": True},
)
cache_node.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
cache_node.last_updated_timestamp = AAZStrType(
serialized_name="lastUpdatedTimestamp",
flags={"read_only": True},
)
cache_node.max_allowable_egress_in_mbps = AAZIntType(
serialized_name="maxAllowableEgressInMbps",
)
cache_node.max_allowable_probability = AAZFloatType(
serialized_name="maxAllowableProbability",
flags={"read_only": True},
)
cache_node.release_version = AAZIntType(
serialized_name="releaseVersion",
flags={"read_only": True},
)
cache_node.review_feedback = AAZStrType(
serialized_name="reviewFeedback",
flags={"read_only": True},
)
cache_node.review_state = AAZIntType(
serialized_name="reviewState",
flags={"read_only": True},
)
cache_node.review_state_text = AAZStrType(
serialized_name="reviewStateText",
flags={"read_only": True},
)
cache_node.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
cache_node.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
cache_node.worker_connections = AAZIntType(
serialized_name="workerConnections",
flags={"read_only": True},
)
cache_node.worker_connections_last_updated_date_time = AAZStrType(
serialized_name="workerConnectionsLastUpdatedDateTime",
flags={"read_only": True},
)
cache_node.x_cid = AAZStrType(
serialized_name="xCid",
flags={"read_only": True},
)
cidr_csv = cls._schema_on_200.properties.cache_node.cidr_csv
cidr_csv.Element = AAZStrType()
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCacheNodesOperationsGet(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 | 52 | 2 | 50 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 488 | 25 | 463 | 37 | 446 | 0 | 159 | 30 | 149 | 2 | 1 | 1 | 11 |
9,028 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/resource/_delete.py
|
azext_mcc.aaz.latest.mcc.isp.resource._delete.Delete.IspCustomersDelete
|
class IspCustomersDelete(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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.ConnectedCache/ispCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "DELETE"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
def on_204(self, session):
pass
def on_200_201(self, session):
pass
|
class IspCustomersDelete(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_204(self, session):
pass
def on_200_201(self, session):
pass
| 14 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 84 | 9 | 75 | 20 | 61 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,029 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/resource/_create.py
|
azext_mcc.aaz.latest.mcc.isp.resource._create.Create.IspCustomersCreateOrUpdate
|
class IspCustomersCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
typ=AAZObjectType,
typ_kwargs={
"flags": {"required": True, "client_flatten": True}}
)
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType)
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("additionalCustomerProperties",
AAZObjectType, ".additional_customer_properties")
properties.set_prop("customer", AAZObjectType, ".customer")
additional_customer_properties = _builder.get(
".properties.additionalCustomerProperties")
if additional_customer_properties is not None:
additional_customer_properties.set_prop(
"customerAsn", AAZStrType, ".customer_asn")
additional_customer_properties.set_prop(
"customerEmail", AAZStrType, ".customer_email")
additional_customer_properties.set_prop(
"customerEntitlementExpiration", AAZStrType, ".customer_entitlement_expiration")
additional_customer_properties.set_prop(
"customerEntitlementSkuGuid", AAZStrType, ".customer_entitlement_sku_guid")
additional_customer_properties.set_prop(
"customerEntitlementSkuId", AAZStrType, ".customer_entitlement_sku_id")
additional_customer_properties.set_prop(
"customerEntitlementSkuName", AAZStrType, ".customer_entitlement_sku_name")
additional_customer_properties.set_prop(
"customerTransitAsn", AAZStrType, ".customer_transit_asn")
additional_customer_properties.set_prop(
"customerTransitState", AAZStrType, ".customer_transit_state")
additional_customer_properties.set_prop(
"optionalProperty1", AAZStrType, ".optional_property1")
additional_customer_properties.set_prop(
"optionalProperty2", AAZStrType, ".optional_property2")
additional_customer_properties.set_prop(
"optionalProperty3", AAZStrType, ".optional_property3")
additional_customer_properties.set_prop(
"optionalProperty4", AAZStrType, ".optional_property4")
additional_customer_properties.set_prop(
"optionalProperty5", AAZStrType, ".optional_property5")
customer = _builder.get(".properties.customer")
if customer is not None:
customer.set_prop("clientTenantId",
AAZStrType, ".client_tenant_id")
customer.set_prop("contactEmail", AAZStrType, ".contact_email")
customer.set_prop("contactName", AAZStrType, ".contact_name")
customer.set_prop("contactPhone", AAZStrType, ".contact_phone")
customer.set_prop("customerName", AAZStrType, ".customer_name")
customer.set_prop("fullyQualifiedResourceId",
AAZStrType, ".fully_qualified_resource_id")
customer.set_prop("isEnterpriseManaged",
AAZBoolType, ".is_enterprise_managed")
customer.set_prop("isEntitled", AAZBoolType, ".is_entitled")
customer.set_prop("releaseVersion",
AAZIntType, ".release_version")
customer.set_prop("resendSignupCode",
AAZBoolType, ".resend_signup_code")
customer.set_prop(
"shouldMigrate", AAZBoolType, ".should_migrate")
customer.set_prop("verifySignupCode",
AAZBoolType, ".verify_signup_code")
customer.set_prop("verifySignupPhrase", AAZStrType, ".verify_signup_phrase", typ_kwargs={
"flags": {"secret": True}})
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType()
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_CreateHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200_201.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200_201.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class IspCustomersCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 38 | 1 | 36 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 397 | 25 | 372 | 39 | 353 | 0 | 154 | 30 | 143 | 5 | 1 | 1 | 17 |
9,030 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_update.py
|
azext_mcc.aaz.latest.mcc.isp.node._update.Update.IspCacheNodesOperationsGet
|
class IspCacheNodesOperationsGet(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.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_UpdateHelper._build_schema_isp_cache_node_resource_read(
cls._schema_on_200)
return cls._schema_on_200
|
class IspCacheNodesOperationsGet(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,031 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_update.py
|
azext_mcc.aaz.latest.mcc.isp.node._update.Update.IspCacheNodesOperationsCreateOrUpdate
|
class IspCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
value=self.ctx.vars.instance,
)
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_UpdateHelper._build_schema_isp_cache_node_resource_read(
cls._schema_on_200_201)
return cls._schema_on_200_201
|
class IspCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 9 | 0 | 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,032 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_update.py
|
azext_mcc.aaz.latest.mcc.isp.node._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)
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop(
"additionalCacheNodeProperties", AAZObjectType)
properties.set_prop("cacheNode", AAZObjectType, ".cache_node")
properties.set_prop("statusCode", AAZStrType, ".status_code")
properties.set_prop(
"statusDetails", AAZStrType, ".status_details")
properties.set_prop("statusText", AAZStrType, ".status_text")
additional_cache_node_properties = _builder.get(
".properties.additionalCacheNodeProperties")
if additional_cache_node_properties is not None:
additional_cache_node_properties.set_prop(
"autoUpdateVersion", AAZStrType, ".auto_update_version")
additional_cache_node_properties.set_prop(
"bgpConfiguration", AAZObjectType, ".bgp_configuration")
additional_cache_node_properties.set_prop(
"cacheNodePropertiesDetailsIssuesList", AAZListType, ".cache_node_properties_details_issues_list")
additional_cache_node_properties.set_prop(
"driveConfiguration", AAZListType, ".cache_drive")
additional_cache_node_properties.set_prop(
"isProxyRequired", AAZStrType, ".enable_proxy")
additional_cache_node_properties.set_prop(
"optionalProperty1", AAZStrType, ".optional_property1")
additional_cache_node_properties.set_prop(
"optionalProperty2", AAZStrType, ".optional_property2")
additional_cache_node_properties.set_prop(
"optionalProperty3", AAZStrType, ".optional_property3")
additional_cache_node_properties.set_prop(
"optionalProperty4", AAZStrType, ".optional_property4")
additional_cache_node_properties.set_prop(
"optionalProperty5", AAZStrType, ".optional_property5")
additional_cache_node_properties.set_prop(
"osType", AAZStrType, ".host_os")
additional_cache_node_properties.set_prop(
"proxyUrl", AAZStrType, ".proxy_url")
additional_cache_node_properties.set_prop(
"proxyUrlConfiguration", AAZObjectType)
additional_cache_node_properties.set_prop(
"updateCycleType", AAZStrType, ".update_cycle_type")
additional_cache_node_properties.set_prop(
"updateInfoDetails", AAZStrType, ".update_info_details")
additional_cache_node_properties.set_prop(
"updateRequestedDateTime", AAZStrType, ".update_requested_date_time")
bgp_configuration = _builder.get(
".properties.additionalCacheNodeProperties.bgpConfiguration")
if bgp_configuration is not None:
bgp_configuration.set_prop(
"asnToIpAddressMapping", AAZStrType, ".asn_to_ip_address_mapping")
cache_node_properties_details_issues_list = _builder.get(
".properties.additionalCacheNodeProperties.cacheNodePropertiesDetailsIssuesList")
if cache_node_properties_details_issues_list is not None:
cache_node_properties_details_issues_list.set_elements(
AAZStrType, ".")
drive_configuration = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration")
if drive_configuration is not None:
drive_configuration.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration[]")
if _elements is not None:
_elements.set_prop("cacheNumber", AAZIntType, ".cache_number")
_elements.set_prop(
"nginxMapping", AAZStrType, ".nginx_mapping")
_elements.set_prop(
"physicalPath", AAZStrType, ".physical_path")
_elements.set_prop("sizeInGb", AAZIntType, ".size_in_gb")
proxy_url_configuration = _builder.get(
".properties.additionalCacheNodeProperties.proxyUrlConfiguration")
if proxy_url_configuration is not None:
proxy_url_configuration.set_prop(
"proxyUrl", AAZStrType, ".proxy_host")
cache_node = _builder.get(".properties.cacheNode")
if cache_node is not None:
cache_node.set_prop("autoUpdateRequestedDay",
AAZIntType, ".auto_update_day")
cache_node.set_prop("autoUpdateRequestedTime",
AAZStrType, ".auto_update_time")
cache_node.set_prop("autoUpdateRequestedWeek",
AAZIntType, ".auto_update_week")
cache_node.set_prop("autoUpdateRingType",
AAZStrType, ".auto_update_ring")
cache_node.set_prop(
"cacheNodeId", AAZStrType, ".cache_node_id")
cache_node.set_prop(
"cacheNodeName", AAZStrType, ".cache_node_name")
cache_node.set_prop("cidrCsv", AAZListType, ".cidr_csv")
cache_node.set_prop("cidrSelectionType",
AAZIntType, ".cidr_selection_type")
cache_node.set_prop("customerAsn", AAZIntType, ".customer_asn")
cache_node.set_prop(
"customerIndex", AAZStrType, ".customer_index")
cache_node.set_prop(
"customerName", AAZStrType, ".customer_name")
cache_node.set_prop("fullyQualifiedDomainName",
AAZStrType, ".fully_qualified_domain_name")
cache_node.set_prop("fullyQualifiedResourceId",
AAZStrType, ".fully_qualified_resource_id")
cache_node.set_prop("ipAddress", AAZStrType, ".ip_address")
cache_node.set_prop("isEnabled", AAZBoolType, ".is_enabled")
cache_node.set_prop("isEnterpriseManaged",
AAZBoolType, ".is_enterprise_managed")
cache_node.set_prop("maxAllowableEgressInMbps",
AAZIntType, ".max_allowable_egress_in_mbps")
cache_node.set_prop(
"shouldMigrate", AAZBoolType, ".should_migrate")
cidr_csv = _builder.get(".properties.cacheNode.cidrCsv")
if cidr_csv is not None:
cidr_csv.set_elements(AAZStrType, ".")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return _instance_value
|
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation):
def __call__(self, *args, **kwargs):
pass
def _update_instance(self, instance):
pass
| 3 | 0 | 46 | 6 | 40 | 0 | 6 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 94 | 13 | 81 | 14 | 78 | 0 | 77 | 14 | 74 | 11 | 1 | 1 | 12 |
9,033 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_show.py
|
azext_mcc.aaz.latest.mcc.isp.node._show.Show.IspCacheNodesOperationsGet
|
class IspCacheNodesOperationsGet(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.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.additional_cache_node_properties = AAZObjectType(
serialized_name="additionalCacheNodeProperties",
)
properties.cache_node = AAZObjectType(
serialized_name="cacheNode",
)
properties.error = AAZObjectType()
_ShowHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
)
properties.status_text = AAZStrType(
serialized_name="statusText",
)
additional_cache_node_properties = cls._schema_on_200.properties.additional_cache_node_properties
additional_cache_node_properties.aggregated_status_code = AAZIntType(
serialized_name="aggregatedStatusCode",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_details = AAZStrType(
serialized_name="aggregatedStatusDetails",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_text = AAZStrType(
serialized_name="aggregatedStatusText",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_applied_version = AAZStrType(
serialized_name="autoUpdateAppliedVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_date_time = AAZStrType(
serialized_name="autoUpdateLastAppliedDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_details = AAZStrType(
serialized_name="autoUpdateLastAppliedDetails",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_state = AAZStrType(
serialized_name="autoUpdateLastAppliedState",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_triggered_date_time = AAZStrType(
serialized_name="autoUpdateLastTriggeredDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_date_time = AAZStrType(
serialized_name="autoUpdateNextAvailableDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_version = AAZStrType(
serialized_name="autoUpdateNextAvailableVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_version = AAZStrType(
serialized_name="autoUpdateVersion",
)
additional_cache_node_properties.bgp_configuration = AAZObjectType(
serialized_name="bgpConfiguration",
)
additional_cache_node_properties.cache_node_properties_details_issues_list = AAZListType(
serialized_name="cacheNodePropertiesDetailsIssuesList",
)
additional_cache_node_properties.cache_node_state = AAZIntType(
serialized_name="cacheNodeState",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_detailed_text = AAZStrType(
serialized_name="cacheNodeStateDetailedText",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_short_text = AAZStrType(
serialized_name="cacheNodeStateShortText",
flags={"read_only": True},
)
additional_cache_node_properties.drive_configuration = AAZListType(
serialized_name="driveConfiguration",
)
additional_cache_node_properties.is_provisioned = AAZBoolType(
serialized_name="isProvisioned",
flags={"read_only": True},
)
additional_cache_node_properties.is_proxy_required = AAZStrType(
serialized_name="isProxyRequired",
)
additional_cache_node_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_cache_node_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_cache_node_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_cache_node_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_cache_node_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_cache_node_properties.os_type = AAZStrType(
serialized_name="osType",
)
additional_cache_node_properties.product_version = AAZStrType(
serialized_name="productVersion",
flags={"read_only": True},
)
additional_cache_node_properties.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
additional_cache_node_properties.proxy_url_configuration = AAZObjectType(
serialized_name="proxyUrlConfiguration",
)
additional_cache_node_properties.update_cycle_type = AAZStrType(
serialized_name="updateCycleType",
)
additional_cache_node_properties.update_info_details = AAZStrType(
serialized_name="updateInfoDetails",
)
additional_cache_node_properties.update_requested_date_time = AAZStrType(
serialized_name="updateRequestedDateTime",
)
bgp_configuration = cls._schema_on_200.properties.additional_cache_node_properties.bgp_configuration
bgp_configuration.asn_to_ip_address_mapping = AAZStrType(
serialized_name="asnToIpAddressMapping",
)
cache_node_properties_details_issues_list = cls._schema_on_200.properties.additional_cache_node_properties.cache_node_properties_details_issues_list
cache_node_properties_details_issues_list.Element = AAZStrType()
drive_configuration = cls._schema_on_200.properties.additional_cache_node_properties.drive_configuration
drive_configuration.Element = AAZObjectType()
_element = cls._schema_on_200.properties.additional_cache_node_properties.drive_configuration.Element
_element.cache_number = AAZIntType(
serialized_name="cacheNumber",
)
_element.nginx_mapping = AAZStrType(
serialized_name="nginxMapping",
)
_element.physical_path = AAZStrType(
serialized_name="physicalPath",
)
_element.size_in_gb = AAZIntType(
serialized_name="sizeInGb",
)
proxy_url_configuration = cls._schema_on_200.properties.additional_cache_node_properties.proxy_url_configuration
proxy_url_configuration.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
cache_node = cls._schema_on_200.properties.cache_node
cache_node.address_space = AAZIntType(
serialized_name="addressSpace",
flags={"read_only": True},
)
cache_node.auto_update_requested_day = AAZIntType(
serialized_name="autoUpdateRequestedDay",
)
cache_node.auto_update_requested_time = AAZStrType(
serialized_name="autoUpdateRequestedTime",
)
cache_node.auto_update_requested_week = AAZIntType(
serialized_name="autoUpdateRequestedWeek",
)
cache_node.auto_update_ring_type = AAZStrType(
serialized_name="autoUpdateRingType",
)
cache_node.bgp_address_space = AAZIntType(
serialized_name="bgpAddressSpace",
flags={"read_only": True},
)
cache_node.bgp_cidr_blocks_count = AAZIntType(
serialized_name="bgpCidrBlocksCount",
flags={"read_only": True},
)
cache_node.bgp_cidr_csv_last_update_time = AAZStrType(
serialized_name="bgpCidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.bgp_file_bytes_truncated = AAZIntType(
serialized_name="bgpFileBytesTruncated",
flags={"read_only": True},
)
cache_node.bgp_last_reported_time = AAZStrType(
serialized_name="bgpLastReportedTime",
flags={"read_only": True},
)
cache_node.bgp_number_of_records = AAZIntType(
serialized_name="bgpNumberOfRecords",
flags={"read_only": True},
)
cache_node.bgp_number_of_times_updated = AAZIntType(
serialized_name="bgpNumberOfTimesUpdated",
flags={"read_only": True},
)
cache_node.bgp_review_feedback = AAZStrType(
serialized_name="bgpReviewFeedback",
flags={"read_only": True},
)
cache_node.bgp_review_state = AAZStrType(
serialized_name="bgpReviewState",
flags={"read_only": True},
)
cache_node.bgp_review_state_text = AAZStrType(
serialized_name="bgpReviewStateText",
flags={"read_only": True},
)
cache_node.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
cache_node.cache_node_name = AAZStrType(
serialized_name="cacheNodeName",
)
cache_node.category = AAZStrType(
flags={"read_only": True},
)
cache_node.cidr_csv = AAZListType(
serialized_name="cidrCsv",
)
cache_node.cidr_csv_last_update_time = AAZStrType(
serialized_name="cidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.cidr_selection_type = AAZIntType(
serialized_name="cidrSelectionType",
)
cache_node.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
flags={"read_only": True},
)
cache_node.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
cache_node.configuration_state_text = AAZStrType(
serialized_name="configurationStateText",
flags={"read_only": True},
)
cache_node.container_configurations = AAZStrType(
serialized_name="containerConfigurations",
flags={"read_only": True},
)
cache_node.container_resync_trigger = AAZIntType(
serialized_name="containerResyncTrigger",
flags={"read_only": True},
)
cache_node.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
cache_node.customer_asn = AAZIntType(
serialized_name="customerAsn",
)
cache_node.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
cache_node.customer_index = AAZStrType(
serialized_name="customerIndex",
)
cache_node.customer_name = AAZStrType(
serialized_name="customerName",
)
cache_node.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
cache_node.fully_qualified_domain_name = AAZStrType(
serialized_name="fullyQualifiedDomainName",
)
cache_node.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
cache_node.image_uri = AAZStrType(
serialized_name="imageUri",
flags={"read_only": True},
)
cache_node.ip_address = AAZStrType(
serialized_name="ipAddress",
)
cache_node.is_enabled = AAZBoolType(
serialized_name="isEnabled",
)
cache_node.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
cache_node.is_frozen = AAZBoolType(
serialized_name="isFrozen",
flags={"read_only": True},
)
cache_node.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
cache_node.last_updated_timestamp = AAZStrType(
serialized_name="lastUpdatedTimestamp",
flags={"read_only": True},
)
cache_node.max_allowable_egress_in_mbps = AAZIntType(
serialized_name="maxAllowableEgressInMbps",
)
cache_node.max_allowable_probability = AAZFloatType(
serialized_name="maxAllowableProbability",
flags={"read_only": True},
)
cache_node.release_version = AAZIntType(
serialized_name="releaseVersion",
flags={"read_only": True},
)
cache_node.review_feedback = AAZStrType(
serialized_name="reviewFeedback",
flags={"read_only": True},
)
cache_node.review_state = AAZIntType(
serialized_name="reviewState",
flags={"read_only": True},
)
cache_node.review_state_text = AAZStrType(
serialized_name="reviewStateText",
flags={"read_only": True},
)
cache_node.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
cache_node.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
cache_node.worker_connections = AAZIntType(
serialized_name="workerConnections",
flags={"read_only": True},
)
cache_node.worker_connections_last_updated_date_time = AAZStrType(
serialized_name="workerConnectionsLastUpdatedDateTime",
flags={"read_only": True},
)
cache_node.x_cid = AAZStrType(
serialized_name="xCid",
flags={"read_only": True},
)
cidr_csv = cls._schema_on_200.properties.cache_node.cidr_csv
cidr_csv.Element = AAZStrType()
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class IspCacheNodesOperationsGet(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 | 52 | 2 | 50 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 488 | 25 | 463 | 37 | 446 | 0 | 159 | 30 | 149 | 2 | 1 | 1 | 11 |
9,034 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_list.py
|
azext_mcc.aaz.latest.mcc.isp.node._list.List.IspCacheNodesOperationsListByIspCustomerResource
|
class IspCacheNodesOperationsListByIspCustomerResource(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.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType(
flags={"required": True},
)
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.additional_cache_node_properties = AAZObjectType(
serialized_name="additionalCacheNodeProperties",
)
properties.cache_node = AAZObjectType(
serialized_name="cacheNode",
)
properties.error = AAZObjectType()
_ListHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
)
properties.status_text = AAZStrType(
serialized_name="statusText",
)
additional_cache_node_properties = cls._schema_on_200.value.Element.properties.additional_cache_node_properties
additional_cache_node_properties.aggregated_status_code = AAZIntType(
serialized_name="aggregatedStatusCode",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_details = AAZStrType(
serialized_name="aggregatedStatusDetails",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_text = AAZStrType(
serialized_name="aggregatedStatusText",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_applied_version = AAZStrType(
serialized_name="autoUpdateAppliedVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_date_time = AAZStrType(
serialized_name="autoUpdateLastAppliedDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_details = AAZStrType(
serialized_name="autoUpdateLastAppliedDetails",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_state = AAZStrType(
serialized_name="autoUpdateLastAppliedState",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_triggered_date_time = AAZStrType(
serialized_name="autoUpdateLastTriggeredDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_date_time = AAZStrType(
serialized_name="autoUpdateNextAvailableDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_version = AAZStrType(
serialized_name="autoUpdateNextAvailableVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_version = AAZStrType(
serialized_name="autoUpdateVersion",
)
additional_cache_node_properties.bgp_configuration = AAZObjectType(
serialized_name="bgpConfiguration",
)
additional_cache_node_properties.cache_node_properties_details_issues_list = AAZListType(
serialized_name="cacheNodePropertiesDetailsIssuesList",
)
additional_cache_node_properties.cache_node_state = AAZIntType(
serialized_name="cacheNodeState",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_detailed_text = AAZStrType(
serialized_name="cacheNodeStateDetailedText",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_short_text = AAZStrType(
serialized_name="cacheNodeStateShortText",
flags={"read_only": True},
)
additional_cache_node_properties.drive_configuration = AAZListType(
serialized_name="driveConfiguration",
)
additional_cache_node_properties.is_provisioned = AAZBoolType(
serialized_name="isProvisioned",
flags={"read_only": True},
)
additional_cache_node_properties.is_proxy_required = AAZStrType(
serialized_name="isProxyRequired",
)
additional_cache_node_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_cache_node_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_cache_node_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_cache_node_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_cache_node_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_cache_node_properties.os_type = AAZStrType(
serialized_name="osType",
)
additional_cache_node_properties.product_version = AAZStrType(
serialized_name="productVersion",
flags={"read_only": True},
)
additional_cache_node_properties.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
additional_cache_node_properties.proxy_url_configuration = AAZObjectType(
serialized_name="proxyUrlConfiguration",
)
additional_cache_node_properties.update_cycle_type = AAZStrType(
serialized_name="updateCycleType",
)
additional_cache_node_properties.update_info_details = AAZStrType(
serialized_name="updateInfoDetails",
)
additional_cache_node_properties.update_requested_date_time = AAZStrType(
serialized_name="updateRequestedDateTime",
)
bgp_configuration = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.bgp_configuration
bgp_configuration.asn_to_ip_address_mapping = AAZStrType(
serialized_name="asnToIpAddressMapping",
)
cache_node_properties_details_issues_list = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.cache_node_properties_details_issues_list
cache_node_properties_details_issues_list.Element = AAZStrType()
drive_configuration = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.drive_configuration
drive_configuration.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.drive_configuration.Element
_element.cache_number = AAZIntType(
serialized_name="cacheNumber",
)
_element.nginx_mapping = AAZStrType(
serialized_name="nginxMapping",
)
_element.physical_path = AAZStrType(
serialized_name="physicalPath",
)
_element.size_in_gb = AAZIntType(
serialized_name="sizeInGb",
)
proxy_url_configuration = cls._schema_on_200.value.Element.properties.additional_cache_node_properties.proxy_url_configuration
proxy_url_configuration.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
cache_node = cls._schema_on_200.value.Element.properties.cache_node
cache_node.address_space = AAZIntType(
serialized_name="addressSpace",
flags={"read_only": True},
)
cache_node.auto_update_requested_day = AAZIntType(
serialized_name="autoUpdateRequestedDay",
)
cache_node.auto_update_requested_time = AAZStrType(
serialized_name="autoUpdateRequestedTime",
)
cache_node.auto_update_requested_week = AAZIntType(
serialized_name="autoUpdateRequestedWeek",
)
cache_node.auto_update_ring_type = AAZStrType(
serialized_name="autoUpdateRingType",
)
cache_node.bgp_address_space = AAZIntType(
serialized_name="bgpAddressSpace",
flags={"read_only": True},
)
cache_node.bgp_cidr_blocks_count = AAZIntType(
serialized_name="bgpCidrBlocksCount",
flags={"read_only": True},
)
cache_node.bgp_cidr_csv_last_update_time = AAZStrType(
serialized_name="bgpCidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.bgp_file_bytes_truncated = AAZIntType(
serialized_name="bgpFileBytesTruncated",
flags={"read_only": True},
)
cache_node.bgp_last_reported_time = AAZStrType(
serialized_name="bgpLastReportedTime",
flags={"read_only": True},
)
cache_node.bgp_number_of_records = AAZIntType(
serialized_name="bgpNumberOfRecords",
flags={"read_only": True},
)
cache_node.bgp_number_of_times_updated = AAZIntType(
serialized_name="bgpNumberOfTimesUpdated",
flags={"read_only": True},
)
cache_node.bgp_review_feedback = AAZStrType(
serialized_name="bgpReviewFeedback",
flags={"read_only": True},
)
cache_node.bgp_review_state = AAZStrType(
serialized_name="bgpReviewState",
flags={"read_only": True},
)
cache_node.bgp_review_state_text = AAZStrType(
serialized_name="bgpReviewStateText",
flags={"read_only": True},
)
cache_node.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
cache_node.cache_node_name = AAZStrType(
serialized_name="cacheNodeName",
)
cache_node.category = AAZStrType(
flags={"read_only": True},
)
cache_node.cidr_csv = AAZListType(
serialized_name="cidrCsv",
)
cache_node.cidr_csv_last_update_time = AAZStrType(
serialized_name="cidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.cidr_selection_type = AAZIntType(
serialized_name="cidrSelectionType",
)
cache_node.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
flags={"read_only": True},
)
cache_node.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
cache_node.configuration_state_text = AAZStrType(
serialized_name="configurationStateText",
flags={"read_only": True},
)
cache_node.container_configurations = AAZStrType(
serialized_name="containerConfigurations",
flags={"read_only": True},
)
cache_node.container_resync_trigger = AAZIntType(
serialized_name="containerResyncTrigger",
flags={"read_only": True},
)
cache_node.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
cache_node.customer_asn = AAZIntType(
serialized_name="customerAsn",
)
cache_node.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
cache_node.customer_index = AAZStrType(
serialized_name="customerIndex",
)
cache_node.customer_name = AAZStrType(
serialized_name="customerName",
)
cache_node.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
cache_node.fully_qualified_domain_name = AAZStrType(
serialized_name="fullyQualifiedDomainName",
)
cache_node.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
cache_node.image_uri = AAZStrType(
serialized_name="imageUri",
flags={"read_only": True},
)
cache_node.ip_address = AAZStrType(
serialized_name="ipAddress",
)
cache_node.is_enabled = AAZBoolType(
serialized_name="isEnabled",
)
cache_node.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
cache_node.is_frozen = AAZBoolType(
serialized_name="isFrozen",
flags={"read_only": True},
)
cache_node.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
cache_node.last_updated_timestamp = AAZStrType(
serialized_name="lastUpdatedTimestamp",
flags={"read_only": True},
)
cache_node.max_allowable_egress_in_mbps = AAZIntType(
serialized_name="maxAllowableEgressInMbps",
)
cache_node.max_allowable_probability = AAZFloatType(
serialized_name="maxAllowableProbability",
flags={"read_only": True},
)
cache_node.release_version = AAZIntType(
serialized_name="releaseVersion",
flags={"read_only": True},
)
cache_node.review_feedback = AAZStrType(
serialized_name="reviewFeedback",
flags={"read_only": True},
)
cache_node.review_state = AAZIntType(
serialized_name="reviewState",
flags={"read_only": True},
)
cache_node.review_state_text = AAZStrType(
serialized_name="reviewStateText",
flags={"read_only": True},
)
cache_node.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
cache_node.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
cache_node.worker_connections = AAZIntType(
serialized_name="workerConnections",
flags={"read_only": True},
)
cache_node.worker_connections_last_updated_date_time = AAZStrType(
serialized_name="workerConnectionsLastUpdatedDateTime",
flags={"read_only": True},
)
cache_node.x_cid = AAZStrType(
serialized_name="xCid",
flags={"read_only": True},
)
cidr_csv = cls._schema_on_200.value.Element.properties.cache_node.cidr_csv
cidr_csv.Element = AAZStrType()
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class IspCacheNodesOperationsListByIspCustomerResource(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 | 53 | 2 | 51 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 495 | 27 | 468 | 38 | 451 | 0 | 164 | 31 | 154 | 2 | 1 | 1 | 11 |
9,035 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_get_provisioning_details.py
|
azext_mcc.aaz.latest.mcc.isp.node._get_provisioning_details.GetProvisioningDetails.IspCacheNodesOperationsGetCacheNodeInstallDetails
|
class IspCacheNodesOperationsGetCacheNodeInstallDetails(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.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails",
**self.url_parameters
)
@property
def method(self):
return "POST"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_resource_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.customer_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
properties.customer_id = AAZStrType(
serialized_name="customerId",
)
properties.primary_account_key = AAZStrType(
serialized_name="primaryAccountKey",
flags={"secret": True, "read_only": True},
)
properties.registration_key = AAZStrType(
serialized_name="registrationKey",
flags={"secret": True, "read_only": True},
)
properties.secondary_account_key = AAZStrType(
serialized_name="secondaryAccountKey",
flags={"secret": True, "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",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class IspCacheNodesOperationsGetCacheNodeInstallDetails(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
def on_200(self, session):
pass
@classmethod
def _build_schema_on_200(cls):
pass
| 17 | 0 | 14 | 1 | 13 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 148 | 17 | 131 | 29 | 114 | 0 | 55 | 22 | 45 | 2 | 1 | 1 | 11 |
9,036 |
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/mesh/azext_mesh/aaz/latest/mesh/service_replica/_show.py
|
azext_mesh.aaz.latest.mesh.service_replica._show.Show.ServiceReplicaGet
|
class ServiceReplicaGet(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.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas/{replicaName}",
**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(
"applicationResourceName", self.ctx.args.application_name,
skip_quote=True,
required=True,
),
**self.serialize_url_param(
"replicaName", self.ctx.args.name,
skip_quote=True,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"serviceResourceName", self.ctx.args.service_name,
skip_quote=True,
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", "2018-09-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.code_packages = AAZListType(
serialized_name="codePackages",
flags={"required": True},
)
_schema_on_200.diagnostics = AAZObjectType()
_ShowHelper._build_schema_diagnostics_ref_read(
_schema_on_200.diagnostics)
_schema_on_200.network_refs = AAZListType(
serialized_name="networkRefs",
)
_schema_on_200.os_type = AAZStrType(
serialized_name="osType",
flags={"required": True},
)
_schema_on_200.replica_name = AAZStrType(
serialized_name="replicaName",
flags={"required": True},
)
code_packages = cls._schema_on_200.code_packages
code_packages.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element
_element.commands = AAZListType()
_element.diagnostics = AAZObjectType()
_ShowHelper._build_schema_diagnostics_ref_read(
_element.diagnostics)
_element.endpoints = AAZListType()
_element.entrypoint = AAZStrType()
_element.environment_variables = AAZListType(
serialized_name="environmentVariables",
)
_element.image = AAZStrType(
flags={"required": True},
)
_element.image_registry_credential = AAZObjectType(
serialized_name="imageRegistryCredential",
)
_element.instance_view = AAZObjectType(
serialized_name="instanceView",
)
_element.labels = AAZListType()
_element.name = AAZStrType(
flags={"required": True},
)
_element.reliable_collections_refs = AAZListType(
serialized_name="reliableCollectionsRefs",
)
_element.resources = AAZObjectType(
flags={"required": True},
)
_element.settings = AAZListType()
_element.volume_refs = AAZListType(
serialized_name="volumeRefs",
)
_element.volumes = AAZListType()
commands = cls._schema_on_200.code_packages.Element.commands
commands.Element = AAZStrType()
endpoints = cls._schema_on_200.code_packages.Element.endpoints
endpoints.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.endpoints.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.port = AAZIntType()
environment_variables = cls._schema_on_200.code_packages.Element.environment_variables
environment_variables.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.environment_variables.Element
_element.name = AAZStrType()
_element.value = AAZStrType()
image_registry_credential = cls._schema_on_200.code_packages.Element.image_registry_credential
image_registry_credential.password = AAZStrType()
image_registry_credential.server = AAZStrType(
flags={"required": True},
)
image_registry_credential.username = AAZStrType(
flags={"required": True},
)
instance_view = cls._schema_on_200.code_packages.Element.instance_view
instance_view.current_state = AAZObjectType(
serialized_name="currentState",
)
_ShowHelper._build_schema_container_state_read(
instance_view.current_state)
instance_view.events = AAZListType()
instance_view.previous_state = AAZObjectType(
serialized_name="previousState",
)
_ShowHelper._build_schema_container_state_read(
instance_view.previous_state)
instance_view.restart_count = AAZIntType(
serialized_name="restartCount",
)
events = cls._schema_on_200.code_packages.Element.instance_view.events
events.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.instance_view.events.Element
_element.count = AAZIntType()
_element.first_timestamp = AAZStrType(
serialized_name="firstTimestamp",
)
_element.last_timestamp = AAZStrType(
serialized_name="lastTimestamp",
)
_element.message = AAZStrType()
_element.name = AAZStrType()
_element.type = AAZStrType()
labels = cls._schema_on_200.code_packages.Element.labels
labels.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.labels.Element
_element.name = AAZStrType(
flags={"required": True},
)
_element.value = AAZStrType(
flags={"required": True},
)
reliable_collections_refs = cls._schema_on_200.code_packages.Element.reliable_collections_refs
reliable_collections_refs.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.reliable_collections_refs.Element
_element.do_not_persist_state = AAZBoolType(
serialized_name="doNotPersistState",
)
_element.name = AAZStrType(
flags={"required": True},
)
resources = cls._schema_on_200.code_packages.Element.resources
resources.limits = AAZObjectType()
resources.requests = AAZObjectType(
flags={"required": True},
)
limits = cls._schema_on_200.code_packages.Element.resources.limits
limits.cpu = AAZFloatType()
limits.memory_in_gb = AAZFloatType(
serialized_name="memoryInGB",
)
requests = cls._schema_on_200.code_packages.Element.resources.requests
requests.cpu = AAZFloatType(
flags={"required": True},
)
requests.memory_in_gb = AAZFloatType(
serialized_name="memoryInGB",
flags={"required": True},
)
settings = cls._schema_on_200.code_packages.Element.settings
settings.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.settings.Element
_element.name = AAZStrType()
_element.value = AAZStrType()
volume_refs = cls._schema_on_200.code_packages.Element.volume_refs
volume_refs.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.volume_refs.Element
_element.destination_path = AAZStrType(
serialized_name="destinationPath",
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
_element.read_only = AAZBoolType(
serialized_name="readOnly",
)
volumes = cls._schema_on_200.code_packages.Element.volumes
volumes.Element = AAZObjectType()
_element = cls._schema_on_200.code_packages.Element.volumes.Element
_element.creation_parameters = AAZObjectType(
serialized_name="creationParameters",
flags={"required": True},
)
_element.destination_path = AAZStrType(
serialized_name="destinationPath",
flags={"required": True},
)
_element.name = AAZStrType(
flags={"required": True},
)
_element.read_only = AAZBoolType(
serialized_name="readOnly",
)
creation_parameters = cls._schema_on_200.code_packages.Element.volumes.Element.creation_parameters
creation_parameters.description = AAZStrType()
creation_parameters.kind = AAZStrType(
flags={"required": True},
)
disc_service_fabric_volume_disk = cls._schema_on_200.code_packages.Element.volumes.Element.creation_parameters.discriminate_by(
"kind", "ServiceFabricVolumeDisk")
disc_service_fabric_volume_disk.size_disk = AAZStrType(
serialized_name="sizeDisk",
flags={"required": True},
)
network_refs = cls._schema_on_200.network_refs
network_refs.Element = AAZObjectType()
_element = cls._schema_on_200.network_refs.Element
_element.endpoint_refs = AAZListType(
serialized_name="endpointRefs",
)
_element.name = AAZStrType()
endpoint_refs = cls._schema_on_200.network_refs.Element.endpoint_refs
endpoint_refs.Element = AAZObjectType()
_element = cls._schema_on_200.network_refs.Element.endpoint_refs.Element
_element.name = AAZStrType()
return cls._schema_on_200
|
class ServiceReplicaGet(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 | 4 | 29 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 316 | 44 | 272 | 46 | 255 | 0 | 141 | 39 | 131 | 2 | 1 | 1 | 11 |
9,037 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_delete.py
|
azext_mcc.aaz.latest.mcc.isp.node._delete.Delete.IspCacheNodesOperationsDelete
|
class IspCacheNodesOperationsDelete(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "DELETE"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
def on_204(self, session):
pass
def on_200_201(self, session):
pass
|
class IspCacheNodesOperationsDelete(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_204(self, session):
pass
def on_200_201(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,038 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_wait.py
|
azext_mcc.aaz.latest.mcc.ent.resource._wait.Wait.EnterpriseMccCustomersGet
|
class EnterpriseMccCustomersGet(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_WaitHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
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",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCustomersGet(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 | 1 | 33 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 324 | 19 | 305 | 31 | 288 | 0 | 109 | 24 | 99 | 2 | 1 | 1 | 11 |
9,039 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_update.py
|
azext_mcc.aaz.latest.mcc.ent.resource._update.Update.EnterpriseMccCustomersGet
|
class EnterpriseMccCustomersGet(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_UpdateHelper._build_schema_enterprise_mcc_customer_resource_read(
cls._schema_on_200)
return cls._schema_on_200
|
class EnterpriseMccCustomersGet(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
def on_200(self, session):
pass
@classmethod
def _build_schema_on_200(cls):
pass
| 17 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 82 | 13 | 69 | 25 | 52 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,040 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_update.py
|
azext_mcc.aaz.latest.mcc.ent.resource._update.Update.EnterpriseMccCustomersCreateOrUpdate
|
class EnterpriseMccCustomersCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
value=self.ctx.vars.instance,
)
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_UpdateHelper._build_schema_enterprise_mcc_customer_resource_read(
cls._schema_on_200_201)
return cls._schema_on_200_201
|
class EnterpriseMccCustomersCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 9 | 0 | 8 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 110 | 15 | 95 | 29 | 76 | 0 | 38 | 20 | 27 | 3 | 1 | 1 | 13 |
9,041 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_show.py
|
azext_mcc.aaz.latest.mcc.ent.resource._show.Show.EnterpriseMccCustomersGet
|
class EnterpriseMccCustomersGet(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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": 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.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_ShowHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
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",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCustomersGet(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 | 1 | 33 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 324 | 19 | 305 | 31 | 288 | 0 | 109 | 24 | 99 | 2 | 1 | 1 | 11 |
9,042 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_list.py
|
azext_mcc.aaz.latest.mcc.ent.resource._list.List.EnterpriseMccCustomersListBySubscription
|
class EnterpriseMccCustomersListBySubscription(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType(
flags={"required": True},
)
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_ListHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200.value.Element.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200.value.Element.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCustomersListBySubscription(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 | 1 | 33 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 327 | 21 | 306 | 33 | 289 | 0 | 114 | 26 | 104 | 2 | 1 | 1 | 11 |
9,043 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_list.py
|
azext_mcc.aaz.latest.mcc.ent.resource._list.List.EnterpriseMccCustomersListByResourceGroup
|
class EnterpriseMccCustomersListByResourceGroup(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.ConnectedCache/enterpriseMccCustomers",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType(
flags={"required": True},
)
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_ListHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200.value.Element.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200.value.Element.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class EnterpriseMccCustomersListByResourceGroup(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 | 35 | 1 | 33 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 331 | 21 | 310 | 33 | 293 | 0 | 114 | 26 | 104 | 2 | 1 | 1 | 11 |
9,044 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_delete.py
|
azext_mcc.aaz.latest.mcc.ent.resource._delete.Delete.EnterpriseMccCustomersDelete
|
class EnterpriseMccCustomersDelete(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
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.ConnectedCache/enterpriseMccCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "DELETE"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
def on_204(self, session):
pass
def on_200_201(self, session):
pass
|
class EnterpriseMccCustomersDelete(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_204(self, session):
pass
def on_200_201(self, session):
pass
| 14 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 1 | 8 | 8 | 84 | 9 | 75 | 20 | 61 | 0 | 28 | 14 | 19 | 4 | 1 | 1 | 11 |
9,045 |
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/mcc/azext_mcc/aaz/latest/mcc/ent/resource/_create.py
|
azext_mcc.aaz.latest.mcc.ent.resource._create.Create.EnterpriseMccCustomersCreateOrUpdate
|
class EnterpriseMccCustomersCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
typ=AAZObjectType,
typ_kwargs={
"flags": {"required": True, "client_flatten": True}}
)
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType)
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("additionalCustomerProperties",
AAZObjectType, ".additional_customer_properties")
properties.set_prop("customer", AAZObjectType, ".customer")
additional_customer_properties = _builder.get(
".properties.additionalCustomerProperties")
if additional_customer_properties is not None:
additional_customer_properties.set_prop(
"customerAsn", AAZStrType, ".customer_asn")
additional_customer_properties.set_prop(
"customerEmail", AAZStrType, ".customer_email")
additional_customer_properties.set_prop(
"customerEntitlementExpiration", AAZStrType, ".customer_entitlement_expiration")
additional_customer_properties.set_prop(
"customerEntitlementSkuGuid", AAZStrType, ".customer_entitlement_sku_guid")
additional_customer_properties.set_prop(
"customerEntitlementSkuId", AAZStrType, ".customer_entitlement_sku_id")
additional_customer_properties.set_prop(
"customerEntitlementSkuName", AAZStrType, ".customer_entitlement_sku_name")
additional_customer_properties.set_prop(
"customerTransitAsn", AAZStrType, ".customer_transit_asn")
additional_customer_properties.set_prop(
"customerTransitState", AAZStrType, ".customer_transit_state")
additional_customer_properties.set_prop(
"optionalProperty1", AAZStrType, ".optional_property1")
additional_customer_properties.set_prop(
"optionalProperty2", AAZStrType, ".optional_property2")
additional_customer_properties.set_prop(
"optionalProperty3", AAZStrType, ".optional_property3")
additional_customer_properties.set_prop(
"optionalProperty4", AAZStrType, ".optional_property4")
additional_customer_properties.set_prop(
"optionalProperty5", AAZStrType, ".optional_property5")
customer = _builder.get(".properties.customer")
if customer is not None:
customer.set_prop("clientTenantId",
AAZStrType, ".client_tenant_id")
customer.set_prop("contactEmail", AAZStrType, ".contact_email")
customer.set_prop("contactName", AAZStrType, ".contact_name")
customer.set_prop("contactPhone", AAZStrType, ".contact_phone")
customer.set_prop("customerName", AAZStrType, ".customer_name")
customer.set_prop("fullyQualifiedResourceId",
AAZStrType, ".fully_qualified_resource_id")
customer.set_prop("isEnterpriseManaged",
AAZBoolType, ".is_enterprise_managed")
customer.set_prop("isEntitled", AAZBoolType, ".is_entitled")
customer.set_prop("releaseVersion",
AAZIntType, ".release_version")
customer.set_prop("resendSignupCode",
AAZBoolType, ".resend_signup_code")
customer.set_prop(
"shouldMigrate", AAZBoolType, ".should_migrate")
customer.set_prop("verifySignupCode",
AAZBoolType, ".verify_signup_code")
customer.set_prop("verifySignupPhrase", AAZStrType, ".verify_signup_phrase", typ_kwargs={
"flags": {"secret": True}})
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType()
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.additional_customer_properties = AAZObjectType(
serialized_name="additionalCustomerProperties",
)
properties.customer = AAZObjectType()
properties.error = AAZObjectType(
flags={"read_only": True},
)
_CreateHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
flags={"read_only": True},
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
properties.status_text = AAZStrType(
serialized_name="statusText",
flags={"read_only": True},
)
additional_customer_properties = cls._schema_on_200_201.properties.additional_customer_properties
additional_customer_properties.customer_asn = AAZStrType(
serialized_name="customerAsn",
)
additional_customer_properties.customer_asn_estimated_egress_peek_gbps = AAZFloatType(
serialized_name="customerAsnEstimatedEgressPeekGbps",
flags={"read_only": True},
)
additional_customer_properties.customer_email = AAZStrType(
serialized_name="customerEmail",
)
additional_customer_properties.customer_entitlement_expiration = AAZStrType(
serialized_name="customerEntitlementExpiration",
)
additional_customer_properties.customer_entitlement_sku_guid = AAZStrType(
serialized_name="customerEntitlementSkuGuid",
)
additional_customer_properties.customer_entitlement_sku_id = AAZStrType(
serialized_name="customerEntitlementSkuId",
)
additional_customer_properties.customer_entitlement_sku_name = AAZStrType(
serialized_name="customerEntitlementSkuName",
)
additional_customer_properties.customer_org_name = AAZStrType(
serialized_name="customerOrgName",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_egress_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageEgressMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_average_miss_mbps = AAZFloatType(
serialized_name="customerPropertiesOverviewAverageMissMbps",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_efficiency = AAZFloatType(
serialized_name="customerPropertiesOverviewCacheEfficiency",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_healthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesHealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_cache_nodes_unhealthy_count = AAZIntType(
serialized_name="customerPropertiesOverviewCacheNodesUnhealthyCount",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewEgressMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_egress_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewEgressMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max = AAZFloatType(
serialized_name="customerPropertiesOverviewMissMbpsMax",
flags={"read_only": True},
)
additional_customer_properties.customer_properties_overview_miss_mbps_max_date_time = AAZStrType(
serialized_name="customerPropertiesOverviewMissMbpsMaxDateTime",
flags={"read_only": True},
)
additional_customer_properties.customer_transit_asn = AAZStrType(
serialized_name="customerTransitAsn",
)
additional_customer_properties.customer_transit_state = AAZStrType(
serialized_name="customerTransitState",
)
additional_customer_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_customer_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_customer_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_customer_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_customer_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_customer_properties.peering_db_last_update_date = AAZStrType(
serialized_name="peeringDbLastUpdateDate",
flags={"read_only": True},
)
additional_customer_properties.peering_db_last_update_time = AAZStrType(
serialized_name="peeringDbLastUpdateTime",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_code = AAZIntType(
serialized_name="signupPhaseStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_phase_status_text = AAZStrType(
serialized_name="signupPhaseStatusText",
flags={"read_only": True},
)
additional_customer_properties.signup_status = AAZBoolType(
serialized_name="signupStatus",
flags={"read_only": True},
)
additional_customer_properties.signup_status_code = AAZIntType(
serialized_name="signupStatusCode",
flags={"read_only": True},
)
additional_customer_properties.signup_status_text = AAZStrType(
serialized_name="signupStatusText",
flags={"read_only": True},
)
customer = cls._schema_on_200_201.properties.customer
customer.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
)
customer.contact_email = AAZStrType(
serialized_name="contactEmail",
)
customer.contact_name = AAZStrType(
serialized_name="contactName",
)
customer.contact_phone = AAZStrType(
serialized_name="contactPhone",
)
customer.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
customer.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
customer.customer_name = AAZStrType(
serialized_name="customerName",
)
customer.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
customer.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
customer.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
customer.is_entitled = AAZBoolType(
serialized_name="isEntitled",
)
customer.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
customer.release_version = AAZIntType(
serialized_name="releaseVersion",
)
customer.resend_signup_code = AAZBoolType(
serialized_name="resendSignupCode",
)
customer.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
customer.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
customer.verify_signup_code = AAZBoolType(
serialized_name="verifySignupCode",
)
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class EnterpriseMccCustomersCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 38 | 1 | 36 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 397 | 25 | 372 | 39 | 353 | 0 | 154 | 30 | 143 | 5 | 1 | 1 | 17 |
9,046 |
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/mcc/azext_mcc/aaz/latest/mcc/isp/node/_create.py
|
azext_mcc.aaz.latest.mcc.isp.node._create.Create.IspCacheNodesOperationsCreateOrUpdate
|
class IspCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"cacheNodeResourceName", self.ctx.args.cache_node_name,
required=True,
),
**self.serialize_url_param(
"customerResourceName", self.ctx.args.mcc_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-05-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
typ=AAZObjectType,
typ_kwargs={
"flags": {"required": True, "client_flatten": True}}
)
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType)
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop(
"additionalCacheNodeProperties", AAZObjectType)
properties.set_prop("cacheNode", AAZObjectType, ".cache_node")
properties.set_prop("statusCode", AAZStrType, ".status_code")
properties.set_prop(
"statusDetails", AAZStrType, ".status_details")
properties.set_prop("statusText", AAZStrType, ".status_text")
additional_cache_node_properties = _builder.get(
".properties.additionalCacheNodeProperties")
if additional_cache_node_properties is not None:
additional_cache_node_properties.set_prop(
"autoUpdateVersion", AAZStrType, ".auto_update_version")
additional_cache_node_properties.set_prop(
"bgpConfiguration", AAZObjectType, ".bgp_configuration")
additional_cache_node_properties.set_prop(
"cacheNodePropertiesDetailsIssuesList", AAZListType, ".cache_node_properties_details_issues_list")
additional_cache_node_properties.set_prop(
"driveConfiguration", AAZListType, ".cache_drive")
additional_cache_node_properties.set_prop(
"isProxyRequired", AAZStrType, ".enable_proxy")
additional_cache_node_properties.set_prop(
"optionalProperty1", AAZStrType, ".optional_property1")
additional_cache_node_properties.set_prop(
"optionalProperty2", AAZStrType, ".optional_property2")
additional_cache_node_properties.set_prop(
"optionalProperty3", AAZStrType, ".optional_property3")
additional_cache_node_properties.set_prop(
"optionalProperty4", AAZStrType, ".optional_property4")
additional_cache_node_properties.set_prop(
"optionalProperty5", AAZStrType, ".optional_property5")
additional_cache_node_properties.set_prop(
"osType", AAZStrType, ".host_os")
additional_cache_node_properties.set_prop(
"proxyUrl", AAZStrType, ".proxy_url")
additional_cache_node_properties.set_prop(
"proxyUrlConfiguration", AAZObjectType)
additional_cache_node_properties.set_prop(
"updateCycleType", AAZStrType, ".update_cycle_type")
additional_cache_node_properties.set_prop(
"updateInfoDetails", AAZStrType, ".update_info_details")
additional_cache_node_properties.set_prop(
"updateRequestedDateTime", AAZStrType, ".update_requested_date_time")
bgp_configuration = _builder.get(
".properties.additionalCacheNodeProperties.bgpConfiguration")
if bgp_configuration is not None:
bgp_configuration.set_prop(
"asnToIpAddressMapping", AAZStrType, ".asn_to_ip_address_mapping")
cache_node_properties_details_issues_list = _builder.get(
".properties.additionalCacheNodeProperties.cacheNodePropertiesDetailsIssuesList")
if cache_node_properties_details_issues_list is not None:
cache_node_properties_details_issues_list.set_elements(
AAZStrType, ".")
drive_configuration = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration")
if drive_configuration is not None:
drive_configuration.set_elements(AAZObjectType, ".")
_elements = _builder.get(
".properties.additionalCacheNodeProperties.driveConfiguration[]")
if _elements is not None:
_elements.set_prop("cacheNumber", AAZIntType, ".cache_number")
_elements.set_prop(
"nginxMapping", AAZStrType, ".nginx_mapping")
_elements.set_prop(
"physicalPath", AAZStrType, ".physical_path")
_elements.set_prop("sizeInGb", AAZIntType, ".size_in_gb")
proxy_url_configuration = _builder.get(
".properties.additionalCacheNodeProperties.proxyUrlConfiguration")
if proxy_url_configuration is not None:
proxy_url_configuration.set_prop(
"proxyUrl", AAZStrType, ".proxy_host")
cache_node = _builder.get(".properties.cacheNode")
if cache_node is not None:
cache_node.set_prop("autoUpdateRequestedDay",
AAZIntType, ".auto_update_day")
cache_node.set_prop("autoUpdateRequestedTime",
AAZStrType, ".auto_update_time")
cache_node.set_prop("autoUpdateRequestedWeek",
AAZIntType, ".auto_update_week")
cache_node.set_prop("autoUpdateRingType",
AAZStrType, ".auto_update_ring")
cache_node.set_prop(
"cacheNodeId", AAZStrType, ".cache_node_id")
cache_node.set_prop(
"cacheNodeName", AAZStrType, ".cache_node_name")
cache_node.set_prop("cidrCsv", AAZListType, ".cidr_csv")
cache_node.set_prop("cidrSelectionType",
AAZIntType, ".cidr_selection_type")
cache_node.set_prop("customerAsn", AAZIntType, ".customer_asn")
cache_node.set_prop(
"customerIndex", AAZStrType, ".customer_index")
cache_node.set_prop(
"customerName", AAZStrType, ".customer_name")
cache_node.set_prop("fullyQualifiedDomainName",
AAZStrType, ".fully_qualified_domain_name")
cache_node.set_prop("fullyQualifiedResourceId",
AAZStrType, ".fully_qualified_resource_id")
cache_node.set_prop("ipAddress", AAZStrType, ".ip_address")
cache_node.set_prop("isEnabled", AAZBoolType, ".is_enabled")
cache_node.set_prop("isEnterpriseManaged",
AAZBoolType, ".is_enterprise_managed")
cache_node.set_prop("maxAllowableEgressInMbps",
AAZIntType, ".max_allowable_egress_in_mbps")
cache_node.set_prop(
"shouldMigrate", AAZBoolType, ".should_migrate")
cidr_csv = _builder.get(".properties.cacheNode.cidrCsv")
if cidr_csv is not None:
cidr_csv.set_elements(AAZStrType, ".")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType()
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.additional_cache_node_properties = AAZObjectType(
serialized_name="additionalCacheNodeProperties",
)
properties.cache_node = AAZObjectType(
serialized_name="cacheNode",
)
properties.error = AAZObjectType()
_CreateHelper._build_schema_error_detail_read(properties.error)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType(
flags={"read_only": True},
)
properties.status_code = AAZStrType(
serialized_name="statusCode",
)
properties.status_details = AAZStrType(
serialized_name="statusDetails",
)
properties.status_text = AAZStrType(
serialized_name="statusText",
)
additional_cache_node_properties = cls._schema_on_200_201.properties.additional_cache_node_properties
additional_cache_node_properties.aggregated_status_code = AAZIntType(
serialized_name="aggregatedStatusCode",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_details = AAZStrType(
serialized_name="aggregatedStatusDetails",
flags={"read_only": True},
)
additional_cache_node_properties.aggregated_status_text = AAZStrType(
serialized_name="aggregatedStatusText",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_applied_version = AAZStrType(
serialized_name="autoUpdateAppliedVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_date_time = AAZStrType(
serialized_name="autoUpdateLastAppliedDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_details = AAZStrType(
serialized_name="autoUpdateLastAppliedDetails",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_applied_state = AAZStrType(
serialized_name="autoUpdateLastAppliedState",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_last_triggered_date_time = AAZStrType(
serialized_name="autoUpdateLastTriggeredDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_date_time = AAZStrType(
serialized_name="autoUpdateNextAvailableDateTime",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_next_available_version = AAZStrType(
serialized_name="autoUpdateNextAvailableVersion",
flags={"read_only": True},
)
additional_cache_node_properties.auto_update_version = AAZStrType(
serialized_name="autoUpdateVersion",
)
additional_cache_node_properties.bgp_configuration = AAZObjectType(
serialized_name="bgpConfiguration",
)
additional_cache_node_properties.cache_node_properties_details_issues_list = AAZListType(
serialized_name="cacheNodePropertiesDetailsIssuesList",
)
additional_cache_node_properties.cache_node_state = AAZIntType(
serialized_name="cacheNodeState",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_detailed_text = AAZStrType(
serialized_name="cacheNodeStateDetailedText",
flags={"read_only": True},
)
additional_cache_node_properties.cache_node_state_short_text = AAZStrType(
serialized_name="cacheNodeStateShortText",
flags={"read_only": True},
)
additional_cache_node_properties.drive_configuration = AAZListType(
serialized_name="driveConfiguration",
)
additional_cache_node_properties.is_provisioned = AAZBoolType(
serialized_name="isProvisioned",
flags={"read_only": True},
)
additional_cache_node_properties.is_proxy_required = AAZStrType(
serialized_name="isProxyRequired",
)
additional_cache_node_properties.optional_property1 = AAZStrType(
serialized_name="optionalProperty1",
)
additional_cache_node_properties.optional_property2 = AAZStrType(
serialized_name="optionalProperty2",
)
additional_cache_node_properties.optional_property3 = AAZStrType(
serialized_name="optionalProperty3",
)
additional_cache_node_properties.optional_property4 = AAZStrType(
serialized_name="optionalProperty4",
)
additional_cache_node_properties.optional_property5 = AAZStrType(
serialized_name="optionalProperty5",
)
additional_cache_node_properties.os_type = AAZStrType(
serialized_name="osType",
)
additional_cache_node_properties.product_version = AAZStrType(
serialized_name="productVersion",
flags={"read_only": True},
)
additional_cache_node_properties.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
additional_cache_node_properties.proxy_url_configuration = AAZObjectType(
serialized_name="proxyUrlConfiguration",
)
additional_cache_node_properties.update_cycle_type = AAZStrType(
serialized_name="updateCycleType",
)
additional_cache_node_properties.update_info_details = AAZStrType(
serialized_name="updateInfoDetails",
)
additional_cache_node_properties.update_requested_date_time = AAZStrType(
serialized_name="updateRequestedDateTime",
)
bgp_configuration = cls._schema_on_200_201.properties.additional_cache_node_properties.bgp_configuration
bgp_configuration.asn_to_ip_address_mapping = AAZStrType(
serialized_name="asnToIpAddressMapping",
)
cache_node_properties_details_issues_list = cls._schema_on_200_201.properties.additional_cache_node_properties.cache_node_properties_details_issues_list
cache_node_properties_details_issues_list.Element = AAZStrType()
drive_configuration = cls._schema_on_200_201.properties.additional_cache_node_properties.drive_configuration
drive_configuration.Element = AAZObjectType()
_element = cls._schema_on_200_201.properties.additional_cache_node_properties.drive_configuration.Element
_element.cache_number = AAZIntType(
serialized_name="cacheNumber",
)
_element.nginx_mapping = AAZStrType(
serialized_name="nginxMapping",
)
_element.physical_path = AAZStrType(
serialized_name="physicalPath",
)
_element.size_in_gb = AAZIntType(
serialized_name="sizeInGb",
)
proxy_url_configuration = cls._schema_on_200_201.properties.additional_cache_node_properties.proxy_url_configuration
proxy_url_configuration.proxy_url = AAZStrType(
serialized_name="proxyUrl",
)
cache_node = cls._schema_on_200_201.properties.cache_node
cache_node.address_space = AAZIntType(
serialized_name="addressSpace",
flags={"read_only": True},
)
cache_node.auto_update_requested_day = AAZIntType(
serialized_name="autoUpdateRequestedDay",
)
cache_node.auto_update_requested_time = AAZStrType(
serialized_name="autoUpdateRequestedTime",
)
cache_node.auto_update_requested_week = AAZIntType(
serialized_name="autoUpdateRequestedWeek",
)
cache_node.auto_update_ring_type = AAZStrType(
serialized_name="autoUpdateRingType",
)
cache_node.bgp_address_space = AAZIntType(
serialized_name="bgpAddressSpace",
flags={"read_only": True},
)
cache_node.bgp_cidr_blocks_count = AAZIntType(
serialized_name="bgpCidrBlocksCount",
flags={"read_only": True},
)
cache_node.bgp_cidr_csv_last_update_time = AAZStrType(
serialized_name="bgpCidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.bgp_file_bytes_truncated = AAZIntType(
serialized_name="bgpFileBytesTruncated",
flags={"read_only": True},
)
cache_node.bgp_last_reported_time = AAZStrType(
serialized_name="bgpLastReportedTime",
flags={"read_only": True},
)
cache_node.bgp_number_of_records = AAZIntType(
serialized_name="bgpNumberOfRecords",
flags={"read_only": True},
)
cache_node.bgp_number_of_times_updated = AAZIntType(
serialized_name="bgpNumberOfTimesUpdated",
flags={"read_only": True},
)
cache_node.bgp_review_feedback = AAZStrType(
serialized_name="bgpReviewFeedback",
flags={"read_only": True},
)
cache_node.bgp_review_state = AAZStrType(
serialized_name="bgpReviewState",
flags={"read_only": True},
)
cache_node.bgp_review_state_text = AAZStrType(
serialized_name="bgpReviewStateText",
flags={"read_only": True},
)
cache_node.cache_node_id = AAZStrType(
serialized_name="cacheNodeId",
)
cache_node.cache_node_name = AAZStrType(
serialized_name="cacheNodeName",
)
cache_node.category = AAZStrType(
flags={"read_only": True},
)
cache_node.cidr_csv = AAZListType(
serialized_name="cidrCsv",
)
cache_node.cidr_csv_last_update_time = AAZStrType(
serialized_name="cidrCsvLastUpdateTime",
flags={"read_only": True},
)
cache_node.cidr_selection_type = AAZIntType(
serialized_name="cidrSelectionType",
)
cache_node.client_tenant_id = AAZStrType(
serialized_name="clientTenantId",
flags={"read_only": True},
)
cache_node.configuration_state = AAZStrType(
serialized_name="configurationState",
flags={"read_only": True},
)
cache_node.configuration_state_text = AAZStrType(
serialized_name="configurationStateText",
flags={"read_only": True},
)
cache_node.container_configurations = AAZStrType(
serialized_name="containerConfigurations",
flags={"read_only": True},
)
cache_node.container_resync_trigger = AAZIntType(
serialized_name="containerResyncTrigger",
flags={"read_only": True},
)
cache_node.create_async_operation_id = AAZStrType(
serialized_name="createAsyncOperationId",
flags={"read_only": True},
)
cache_node.customer_asn = AAZIntType(
serialized_name="customerAsn",
)
cache_node.customer_id = AAZStrType(
serialized_name="customerId",
flags={"read_only": True},
)
cache_node.customer_index = AAZStrType(
serialized_name="customerIndex",
)
cache_node.customer_name = AAZStrType(
serialized_name="customerName",
)
cache_node.delete_async_operation_id = AAZStrType(
serialized_name="deleteAsyncOperationId",
flags={"read_only": True},
)
cache_node.fully_qualified_domain_name = AAZStrType(
serialized_name="fullyQualifiedDomainName",
)
cache_node.fully_qualified_resource_id = AAZStrType(
serialized_name="fullyQualifiedResourceId",
)
cache_node.image_uri = AAZStrType(
serialized_name="imageUri",
flags={"read_only": True},
)
cache_node.ip_address = AAZStrType(
serialized_name="ipAddress",
)
cache_node.is_enabled = AAZBoolType(
serialized_name="isEnabled",
)
cache_node.is_enterprise_managed = AAZBoolType(
serialized_name="isEnterpriseManaged",
)
cache_node.is_frozen = AAZBoolType(
serialized_name="isFrozen",
flags={"read_only": True},
)
cache_node.last_sync_with_azure_timestamp = AAZStrType(
serialized_name="lastSyncWithAzureTimestamp",
flags={"read_only": True},
)
cache_node.last_updated_timestamp = AAZStrType(
serialized_name="lastUpdatedTimestamp",
flags={"read_only": True},
)
cache_node.max_allowable_egress_in_mbps = AAZIntType(
serialized_name="maxAllowableEgressInMbps",
)
cache_node.max_allowable_probability = AAZFloatType(
serialized_name="maxAllowableProbability",
flags={"read_only": True},
)
cache_node.release_version = AAZIntType(
serialized_name="releaseVersion",
flags={"read_only": True},
)
cache_node.review_feedback = AAZStrType(
serialized_name="reviewFeedback",
flags={"read_only": True},
)
cache_node.review_state = AAZIntType(
serialized_name="reviewState",
flags={"read_only": True},
)
cache_node.review_state_text = AAZStrType(
serialized_name="reviewStateText",
flags={"read_only": True},
)
cache_node.should_migrate = AAZBoolType(
serialized_name="shouldMigrate",
)
cache_node.synch_with_azure_attempts_count = AAZIntType(
serialized_name="synchWithAzureAttemptsCount",
flags={"read_only": True},
)
cache_node.worker_connections = AAZIntType(
serialized_name="workerConnections",
flags={"read_only": True},
)
cache_node.worker_connections_last_updated_date_time = AAZStrType(
serialized_name="workerConnectionsLastUpdatedDateTime",
flags={"read_only": True},
)
cache_node.x_cid = AAZStrType(
serialized_name="xCid",
flags={"read_only": True},
)
cidr_csv = cls._schema_on_200_201.properties.cache_node.cidr_csv
cidr_csv.Element = AAZStrType()
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class IspCacheNodesOperationsCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 58 | 3 | 55 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 599 | 37 | 562 | 51 | 543 | 0 | 236 | 42 | 225 | 11 | 1 | 1 | 23 |
9,047 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.DayOfWeek
|
class DayOfWeek(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The days of the week."""
SUNDAY = "Sunday"
MONDAY = "Monday"
TUESDAY = "Tuesday"
WEDNESDAY = "Wednesday"
THURSDAY = "Thursday"
FRIDAY = "Friday"
SATURDAY = "Saturday"
|
class DayOfWeek(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The days of the week.'''
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,048 |
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/mesh/azext_mesh/aaz/latest/mesh/volume/_delete.py
|
azext_mesh.aaz.latest.mesh.volume._delete.Delete.VolumeDelete
|
class VolumeDelete(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)
if session.http_response.status_code in [202]:
return self.on_202(session)
if session.http_response.status_code in [204]:
return self.on_204(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}",
**self.url_parameters
)
@property
def method(self):
return "DELETE"
@property
def error_format(self):
return "ODataV4Format"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
**self.serialize_url_param(
"volumeResourceName", self.ctx.args.name,
skip_quote=True,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-09-01-preview",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_202(self, session):
pass
def on_204(self, session):
pass
|
class VolumeDelete(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_202(self, session):
pass
def on_204(self, session):
pass
| 15 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 9 | 0 | 9 | 9 | 67 | 10 | 57 | 20 | 42 | 0 | 30 | 15 | 20 | 4 | 1 | 1 | 12 |
9,049 |
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/mesh/azext_mesh/aaz/latest/mesh/volume/_list.py
|
azext_mesh.aaz.latest.mesh.volume._list.List.VolumeListBySubscription
|
class VolumeListBySubscription(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/volumes",
**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(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2018-09-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)
_schema_on_200 = None
@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType()
value = cls._schema_on_200.value
value.Element = AAZObjectType()
_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.location = AAZStrType(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.azure_file_parameters = AAZObjectType(
serialized_name="azureFileParameters",
)
properties.description = AAZStrType()
properties.provider = AAZStrType(
flags={"required": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.status = AAZStrType()
properties.status_details = AAZStrType(
serialized_name="statusDetails",
flags={"read_only": True},
)
azure_file_parameters = cls._schema_on_200.value.Element.properties.azure_file_parameters
azure_file_parameters.account_key = AAZStrType(
serialized_name="accountKey",
)
azure_file_parameters.account_name = AAZStrType(
serialized_name="accountName",
flags={"required": True},
)
azure_file_parameters.share_name = AAZStrType(
serialized_name="shareName",
flags={"required": True},
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class VolumeListBySubscription(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 | 19 | 115 | 31 | 98 | 0 | 57 | 24 | 47 | 2 | 1 | 1 | 11 |
9,050 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.HttpAuthenticationType
|
class HttpAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The authentication type to be used to connect to the HTTP server."""
BASIC = "Basic"
ANONYMOUS = "Anonymous"
DIGEST = "Digest"
WINDOWS = "Windows"
CLIENT_CERTIFICATE = "ClientCertificate"
|
class HttpAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The authentication type to be used to connect to the HTTP server.'''
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,051 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.ImpalaAuthenticationType
|
class ImpalaAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The authentication type to use."""
ANONYMOUS = "Anonymous"
SASL_USERNAME = "SASLUsername"
USERNAME_AND_PASSWORD = "UsernameAndPassword"
|
class ImpalaAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The authentication type to use.'''
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,052 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.IntegrationRuntimeAuthKeyName
|
class IntegrationRuntimeAuthKeyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The name of the authentication key to regenerate."""
AUTH_KEY1 = "authKey1"
AUTH_KEY2 = "authKey2"
|
class IntegrationRuntimeAuthKeyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The name of the authentication key to regenerate.'''
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,053 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.IntegrationRuntimeAutoUpdate
|
class IntegrationRuntimeAutoUpdate(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The state of integration runtime auto update."""
ON = "On"
OFF = "Off"
|
class IntegrationRuntimeAutoUpdate(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The state of integration runtime auto update.'''
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,054 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.IntegrationRuntimeEdition
|
class IntegrationRuntimeEdition(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The edition for the SSIS Integration Runtime."""
STANDARD = "Standard"
ENTERPRISE = "Enterprise"
|
class IntegrationRuntimeEdition(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The edition for the SSIS Integration Runtime.'''
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,055 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.IntegrationRuntimeEntityReferenceType
|
class IntegrationRuntimeEntityReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of this referenced entity."""
INTEGRATION_RUNTIME_REFERENCE = "IntegrationRuntimeReference"
LINKED_SERVICE_REFERENCE = "LinkedServiceReference"
|
class IntegrationRuntimeEntityReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The type of this referenced entity.'''
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,056 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/pccp/_create.py
|
azext_mobile_network.aaz.latest.mobile_network.pccp._create.Create.PacketCoreControlPlanesCreateOrUpdate
|
class PacketCoreControlPlanesCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_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-09-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("identity", AAZObjectType, ".identity")
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={
"flags": {"required": True, "client_flatten": True}})
_builder.set_prop("tags", AAZDictType, ".tags")
identity = _builder.get(".identity")
if identity is not None:
identity.set_prop("type", AAZStrType, ".type", typ_kwargs={
"flags": {"required": True}})
identity.set_prop("userAssignedIdentities",
AAZDictType, ".user_assigned_identities")
user_assigned_identities = _builder.get(
".identity.userAssignedIdentities")
if user_assigned_identities is not None:
user_assigned_identities.set_elements(AAZObjectType, ".")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("controlPlaneAccessInterface", AAZObjectType,
".access_interface", typ_kwargs={"flags": {"required": True}})
properties.set_prop("coreNetworkTechnology",
AAZStrType, ".core_network_tec")
properties.set_prop("localDiagnosticsAccess", AAZObjectType,
".local_diagnostics", typ_kwargs={"flags": {"required": True}})
properties.set_prop("platform", AAZObjectType, ".platform", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("sites", AAZListType, ".sites", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("sku", AAZStrType, ".sku", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("ueMtu", AAZIntType, ".ue_mtu")
properties.set_prop("version", AAZStrType, ".version")
control_plane_access_interface = _builder.get(
".properties.controlPlaneAccessInterface")
if control_plane_access_interface is not None:
control_plane_access_interface.set_prop(
"ipv4Address", AAZStrType, ".ipv4_address")
control_plane_access_interface.set_prop(
"ipv4Gateway", AAZStrType, ".ipv4_gateway")
control_plane_access_interface.set_prop(
"ipv4Subnet", AAZStrType, ".ipv4_subnet")
control_plane_access_interface.set_prop(
"name", AAZStrType, ".name")
local_diagnostics_access = _builder.get(
".properties.localDiagnosticsAccess")
if local_diagnostics_access is not None:
local_diagnostics_access.set_prop(
"authenticationType", AAZStrType, ".authentication_type", typ_kwargs={"flags": {"required": True}})
local_diagnostics_access.set_prop(
"httpsServerCertificate", AAZObjectType, ".https_server_certificate")
https_server_certificate = _builder.get(
".properties.localDiagnosticsAccess.httpsServerCertificate")
if https_server_certificate is not None:
https_server_certificate.set_prop(
"certificateUrl", AAZStrType, ".certificate_url", typ_kwargs={"flags": {"required": True}})
platform = _builder.get(".properties.platform")
if platform is not None:
platform.set_prop("azureStackEdgeDevice",
AAZObjectType, ".azure_stack_edge_device")
platform.set_prop("azureStackHciCluster",
AAZObjectType, ".azure_stack_hci_cluster")
platform.set_prop("connectedCluster",
AAZObjectType, ".connected_cluster")
platform.set_prop("customLocation",
AAZObjectType, ".custom_location")
platform.set_prop("type", AAZStrType, ".type", typ_kwargs={
"flags": {"required": True}})
azure_stack_edge_device = _builder.get(
".properties.platform.azureStackEdgeDevice")
if azure_stack_edge_device is not None:
azure_stack_edge_device.set_prop("id", AAZStrType, ".id", typ_kwargs={
"flags": {"required": True}})
azure_stack_hci_cluster = _builder.get(
".properties.platform.azureStackHciCluster")
if azure_stack_hci_cluster is not None:
azure_stack_hci_cluster.set_prop("id", AAZStrType, ".id", typ_kwargs={
"flags": {"required": True}})
connected_cluster = _builder.get(
".properties.platform.connectedCluster")
if connected_cluster is not None:
connected_cluster.set_prop("id", AAZStrType, ".id", typ_kwargs={
"flags": {"required": True}})
custom_location = _builder.get(
".properties.platform.customLocation")
if custom_location is not None:
custom_location.set_prop("id", AAZStrType, ".id", typ_kwargs={
"flags": {"required": True}})
sites = _builder.get(".properties.sites")
if sites is not None:
sites.set_elements(AAZObjectType, ".")
_elements = _builder.get(".properties.sites[]")
if _elements is not None:
_elements.set_prop("id", AAZStrType, ".id", typ_kwargs={
"flags": {"required": True}})
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.identity = AAZObjectType()
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
identity = cls._schema_on_200_201.identity
identity.type = AAZStrType(
flags={"required": True},
)
identity.user_assigned_identities = AAZDictType(
serialized_name="userAssignedIdentities",
)
user_assigned_identities = cls._schema_on_200_201.identity.user_assigned_identities
user_assigned_identities.Element = AAZObjectType()
_element = cls._schema_on_200_201.identity.user_assigned_identities.Element
_element.client_id = AAZStrType(
serialized_name="clientId",
flags={"read_only": True},
)
_element.principal_id = AAZStrType(
serialized_name="principalId",
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.control_plane_access_interface = AAZObjectType(
serialized_name="controlPlaneAccessInterface",
flags={"required": True},
)
properties.control_plane_access_virtual_ipv4_addresses = AAZListType(
serialized_name="controlPlaneAccessVirtualIpv4Addresses",
)
properties.core_network_technology = AAZStrType(
serialized_name="coreNetworkTechnology",
)
properties.diagnostics_upload = AAZObjectType(
serialized_name="diagnosticsUpload",
)
properties.event_hub = AAZObjectType(
serialized_name="eventHub",
)
properties.installation = AAZObjectType()
properties.installed_version = AAZStrType(
serialized_name="installedVersion",
flags={"read_only": True},
)
properties.interop_settings = AAZObjectType(
serialized_name="interopSettings",
)
properties.local_diagnostics_access = AAZObjectType(
serialized_name="localDiagnosticsAccess",
flags={"required": True},
)
properties.platform = AAZObjectType(
flags={"required": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.rollback_version = AAZStrType(
serialized_name="rollbackVersion",
flags={"read_only": True},
)
properties.signaling = AAZObjectType()
properties.sites = AAZListType(
flags={"required": True},
)
properties.sku = AAZStrType(
flags={"required": True},
)
properties.ue_mtu = AAZIntType(
serialized_name="ueMtu",
)
properties.version = AAZStrType()
control_plane_access_interface = cls._schema_on_200_201.properties.control_plane_access_interface
control_plane_access_interface.ipv4_address = AAZStrType(
serialized_name="ipv4Address",
)
control_plane_access_interface.ipv4_gateway = AAZStrType(
serialized_name="ipv4Gateway",
)
control_plane_access_interface.ipv4_subnet = AAZStrType(
serialized_name="ipv4Subnet",
)
control_plane_access_interface.name = AAZStrType()
control_plane_access_virtual_ipv4_addresses = cls._schema_on_200_201.properties.control_plane_access_virtual_ipv4_addresses
control_plane_access_virtual_ipv4_addresses.Element = AAZStrType()
diagnostics_upload = cls._schema_on_200_201.properties.diagnostics_upload
diagnostics_upload.storage_account_container_url = AAZStrType(
serialized_name="storageAccountContainerUrl",
flags={"required": True},
)
event_hub = cls._schema_on_200_201.properties.event_hub
event_hub.id = AAZStrType(
flags={"required": True},
)
event_hub.reporting_interval = AAZIntType(
serialized_name="reportingInterval",
)
installation = cls._schema_on_200_201.properties.installation
installation.desired_state = AAZStrType(
serialized_name="desiredState",
)
installation.operation = AAZObjectType()
installation.reasons = AAZListType(
flags={"read_only": True},
)
installation.reinstall_required = AAZStrType(
serialized_name="reinstallRequired",
)
installation.state = AAZStrType()
operation = cls._schema_on_200_201.properties.installation.operation
operation.id = AAZStrType(
flags={"required": True},
)
reasons = cls._schema_on_200_201.properties.installation.reasons
reasons.Element = AAZStrType()
local_diagnostics_access = cls._schema_on_200_201.properties.local_diagnostics_access
local_diagnostics_access.authentication_type = AAZStrType(
serialized_name="authenticationType",
flags={"required": True},
)
local_diagnostics_access.https_server_certificate = AAZObjectType(
serialized_name="httpsServerCertificate",
)
https_server_certificate = cls._schema_on_200_201.properties.local_diagnostics_access.https_server_certificate
https_server_certificate.certificate_url = AAZStrType(
serialized_name="certificateUrl",
flags={"required": True},
)
https_server_certificate.provisioning = AAZObjectType()
provisioning = cls._schema_on_200_201.properties.local_diagnostics_access.https_server_certificate.provisioning
provisioning.reason = AAZStrType(
flags={"read_only": True},
)
provisioning.state = AAZStrType(
flags={"read_only": True},
)
platform = cls._schema_on_200_201.properties.platform
platform.azure_stack_edge_device = AAZObjectType(
serialized_name="azureStackEdgeDevice",
)
_CreateHelper._build_schema_azure_stack_edge_device_resource_id_read(
platform.azure_stack_edge_device)
platform.azure_stack_edge_devices = AAZListType(
serialized_name="azureStackEdgeDevices",
flags={"read_only": True},
)
platform.azure_stack_hci_cluster = AAZObjectType(
serialized_name="azureStackHciCluster",
)
platform.connected_cluster = AAZObjectType(
serialized_name="connectedCluster",
)
platform.custom_location = AAZObjectType(
serialized_name="customLocation",
)
platform.type = AAZStrType(
flags={"required": True},
)
azure_stack_edge_devices = cls._schema_on_200_201.properties.platform.azure_stack_edge_devices
azure_stack_edge_devices.Element = AAZObjectType()
_CreateHelper._build_schema_azure_stack_edge_device_resource_id_read(
azure_stack_edge_devices.Element)
azure_stack_hci_cluster = cls._schema_on_200_201.properties.platform.azure_stack_hci_cluster
azure_stack_hci_cluster.id = AAZStrType(
flags={"required": True},
)
connected_cluster = cls._schema_on_200_201.properties.platform.connected_cluster
connected_cluster.id = AAZStrType(
flags={"required": True},
)
custom_location = cls._schema_on_200_201.properties.platform.custom_location
custom_location.id = AAZStrType(
flags={"required": True},
)
signaling = cls._schema_on_200_201.properties.signaling
signaling.nas_reroute = AAZObjectType(
serialized_name="nasReroute",
)
nas_reroute = cls._schema_on_200_201.properties.signaling.nas_reroute
nas_reroute.macro_mme_group_id = AAZIntType(
serialized_name="macroMmeGroupId",
flags={"required": True},
)
sites = cls._schema_on_200_201.properties.sites
sites.Element = AAZObjectType()
_element = cls._schema_on_200_201.properties.sites.Element
_element.id = AAZStrType(
flags={"required": True},
)
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class PacketCoreControlPlanesCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 42 | 4 | 37 | 0 | 3 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 439 | 55 | 384 | 68 | 365 | 0 | 199 | 59 | 188 | 15 | 1 | 1 | 27 |
9,057 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/pccp/_collect_diagnostics_package.py
|
azext_mobile_network.aaz.latest.mobile_network.pccp._collect_diagnostics_package.CollectDiagnosticsPackage.PacketCoreControlPlanesCollectDiagnosticsPackage
|
class PacketCoreControlPlanesCollectDiagnosticsPackage(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": "location"},
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": "location"},
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.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/collectDiagnosticsPackage",
**self.url_parameters
)
@property
def method(self):
return "POST"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_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-09-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("storageAccountBlobUrl", AAZStrType, ".blob_url", 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.end_time = AAZStrType(
serialized_name="endTime",
)
_schema_on_200.error = AAZObjectType()
_CollectDiagnosticsPackageHelper._build_schema_error_detail_read(
_schema_on_200.error)
_schema_on_200.id = AAZStrType()
_schema_on_200.name = AAZStrType()
_schema_on_200.percent_complete = AAZFloatType(
serialized_name="percentComplete",
)
_schema_on_200.properties = AAZObjectType()
_schema_on_200.resource_id = AAZStrType(
serialized_name="resourceId",
)
_schema_on_200.start_time = AAZStrType(
serialized_name="startTime",
)
_schema_on_200.status = AAZStrType(
flags={"required": True},
)
return cls._schema_on_200
|
class PacketCoreControlPlanesCollectDiagnosticsPackage(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 | 11 | 1 | 11 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 133 | 16 | 117 | 30 | 98 | 0 | 49 | 21 | 38 | 3 | 1 | 1 | 13 |
9,058 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/data_network/_wait.py
|
azext_mobile_network.aaz.latest.mobile_network.data_network._wait.Wait.DataNetworksGet
|
class DataNetworksGet(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.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"dataNetworkName", self.ctx.args.data_network_name,
required=True,
),
**self.serialize_url_param(
"mobileNetworkName", self.ctx.args.mobile_network_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-09-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(
flags={"required": True},
)
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"client_flatten": True},
)
_schema_on_200.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.description = AAZStrType()
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
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",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class DataNetworksGet(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
def on_200(self, session):
pass
@classmethod
def _build_schema_on_200(cls):
pass
| 17 | 0 | 13 | 1 | 12 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 137 | 17 | 120 | 29 | 103 | 0 | 52 | 22 | 42 | 2 | 1 | 1 | 11 |
9,059 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/data_network/_update.py
|
azext_mobile_network.aaz.latest.mobile_network.data_network._update.Update.DataNetworksGet
|
class DataNetworksGet(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.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"dataNetworkName", self.ctx.args.data_network_name,
required=True,
),
**self.serialize_url_param(
"mobileNetworkName", self.ctx.args.mobile_network_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-09-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_data_network_read(cls._schema_on_200)
return cls._schema_on_200
|
class DataNetworksGet(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,060 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/data_network/_update.py
|
azext_mobile_network.aaz.latest.mobile_network.data_network._update.Update.DataNetworksCreateOrUpdate
|
class DataNetworksCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"dataNetworkName", self.ctx.args.data_network_name,
required=True,
),
**self.serialize_url_param(
"mobileNetworkName", self.ctx.args.mobile_network_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-09-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_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_UpdateHelper._build_schema_data_network_read(
cls._schema_on_200_201)
return cls._schema_on_200_201
|
class DataNetworksCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 9 | 0 | 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,061 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/data_network/_list.py
|
azext_mobile_network.aaz.latest.mobile_network.data_network._list.List.DataNetworksListByMobileNetwork
|
class DataNetworksListByMobileNetwork(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.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"mobileNetworkName", self.ctx.args.mobile_network_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-09-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",
flags={"read_only": True},
)
_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(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"client_flatten": True},
)
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.description = AAZStrType()
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class DataNetworksListByMobileNetwork(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
def on_200(self, session):
pass
@classmethod
def _build_schema_on_200(cls):
pass
| 17 | 0 | 14 | 1 | 13 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 143 | 19 | 124 | 31 | 107 | 0 | 57 | 24 | 47 | 2 | 1 | 1 | 11 |
9,062 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/data_network/_delete.py
|
azext_mobile_network.aaz.latest.mobile_network.data_network._delete.Delete.DataNetworksDelete
|
class DataNetworksDelete(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": "location"},
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": "location"},
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": "location"},
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.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "DELETE"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"dataNetworkName", self.ctx.args.data_network_name,
required=True,
),
**self.serialize_url_param(
"mobileNetworkName", self.ctx.args.mobile_network_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-09-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class DataNetworksDelete(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,063 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/data_network/_create.py
|
azext_mobile_network.aaz.latest.mobile_network.data_network._create.Create.DataNetworksCreateOrUpdate
|
class DataNetworksCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"dataNetworkName", self.ctx.args.data_network_name,
required=True,
),
**self.serialize_url_param(
"mobileNetworkName", self.ctx.args.mobile_network_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-09-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("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType, typ_kwargs={
"flags": {"client_flatten": True}})
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("description", AAZStrType, ".description")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType(
flags={"client_flatten": True},
)
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.description = AAZStrType()
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class DataNetworksCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 16 | 1 | 15 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 9 | 1 | 10 | 10 | 177 | 21 | 156 | 35 | 137 | 0 | 66 | 26 | 55 | 3 | 1 | 1 | 15 |
9,064 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/attached_data_network/_wait.py
|
azext_mobile_network.aaz.latest.mobile_network.attached_data_network._wait.Wait.AttachedDataNetworksGet
|
class AttachedDataNetworksGet(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.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"attachedDataNetworkName", self.ctx.args.adn_name,
required=True,
),
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_name,
required=True,
),
**self.serialize_url_param(
"packetCoreDataPlaneName", self.ctx.args.pcdp_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-09-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(
flags={"required": True},
)
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_schema_on_200.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.dns_addresses = AAZListType(
serialized_name="dnsAddresses",
flags={"required": True},
)
properties.napt_configuration = AAZObjectType(
serialized_name="naptConfiguration",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.user_equipment_address_pool_prefix = AAZListType(
serialized_name="userEquipmentAddressPoolPrefix",
)
properties.user_equipment_static_address_pool_prefix = AAZListType(
serialized_name="userEquipmentStaticAddressPoolPrefix",
)
properties.user_plane_data_interface = AAZObjectType(
serialized_name="userPlaneDataInterface",
flags={"required": True},
)
dns_addresses = cls._schema_on_200.properties.dns_addresses
dns_addresses.Element = AAZStrType()
napt_configuration = cls._schema_on_200.properties.napt_configuration
napt_configuration.enabled = AAZStrType()
napt_configuration.pinhole_limits = AAZIntType(
serialized_name="pinholeLimits",
)
napt_configuration.pinhole_timeouts = AAZObjectType(
serialized_name="pinholeTimeouts",
)
napt_configuration.port_range = AAZObjectType(
serialized_name="portRange",
)
napt_configuration.port_reuse_hold_time = AAZObjectType(
serialized_name="portReuseHoldTime",
)
pinhole_timeouts = cls._schema_on_200.properties.napt_configuration.pinhole_timeouts
pinhole_timeouts.icmp = AAZIntType()
pinhole_timeouts.tcp = AAZIntType()
pinhole_timeouts.udp = AAZIntType()
port_range = cls._schema_on_200.properties.napt_configuration.port_range
port_range.max_port = AAZIntType(
serialized_name="maxPort",
)
port_range.min_port = AAZIntType(
serialized_name="minPort",
)
port_reuse_hold_time = cls._schema_on_200.properties.napt_configuration.port_reuse_hold_time
port_reuse_hold_time.tcp = AAZIntType()
port_reuse_hold_time.udp = AAZIntType()
user_equipment_address_pool_prefix = cls._schema_on_200.properties.user_equipment_address_pool_prefix
user_equipment_address_pool_prefix.Element = AAZStrType()
user_equipment_static_address_pool_prefix = cls._schema_on_200.properties.user_equipment_static_address_pool_prefix
user_equipment_static_address_pool_prefix.Element = AAZStrType()
user_plane_data_interface = cls._schema_on_200.properties.user_plane_data_interface
user_plane_data_interface.ipv4_address = AAZStrType(
serialized_name="ipv4Address",
)
user_plane_data_interface.ipv4_gateway = AAZStrType(
serialized_name="ipv4Gateway",
)
user_plane_data_interface.ipv4_subnet = AAZStrType(
serialized_name="ipv4Subnet",
)
user_plane_data_interface.name = AAZStrType()
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class AttachedDataNetworksGet(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 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 210 | 25 | 185 | 37 | 168 | 0 | 83 | 30 | 73 | 2 | 1 | 1 | 11 |
9,065 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/attached_data_network/_update.py
|
azext_mobile_network.aaz.latest.mobile_network.attached_data_network._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, "client_flatten": True}})
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("dnsAddresses", AAZListType, ".dns_addresses", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("naptConfiguration",
AAZObjectType, ".napt_configuration")
properties.set_prop(
"userEquipmentAddressPoolPrefix", AAZListType, ".address_pool")
properties.set_prop(
"userEquipmentStaticAddressPoolPrefix", AAZListType, ".static_address_pool")
properties.set_prop("userPlaneDataInterface", AAZObjectType,
".data_interface", typ_kwargs={"flags": {"required": True}})
dns_addresses = _builder.get(".properties.dnsAddresses")
if dns_addresses is not None:
dns_addresses.set_elements(AAZStrType, ".")
napt_configuration = _builder.get(".properties.naptConfiguration")
if napt_configuration is not None:
napt_configuration.set_prop("enabled", AAZStrType, ".enabled")
napt_configuration.set_prop(
"pinholeLimits", AAZIntType, ".pinhole_limits")
napt_configuration.set_prop(
"pinholeTimeouts", AAZObjectType, ".pinhole_timeouts")
napt_configuration.set_prop(
"portRange", AAZObjectType, ".port_range")
napt_configuration.set_prop(
"portReuseHoldTime", AAZObjectType, ".port_reuse_hold_time")
pinhole_timeouts = _builder.get(
".properties.naptConfiguration.pinholeTimeouts")
if pinhole_timeouts is not None:
pinhole_timeouts.set_prop("icmp", AAZIntType, ".icmp")
pinhole_timeouts.set_prop("tcp", AAZIntType, ".tcp")
pinhole_timeouts.set_prop("udp", AAZIntType, ".udp")
port_range = _builder.get(
".properties.naptConfiguration.portRange")
if port_range is not None:
port_range.set_prop("maxPort", AAZIntType, ".max_port")
port_range.set_prop("minPort", AAZIntType, ".min_port")
port_reuse_hold_time = _builder.get(
".properties.naptConfiguration.portReuseHoldTime")
if port_reuse_hold_time is not None:
port_reuse_hold_time.set_prop("tcp", AAZIntType, ".tcp")
port_reuse_hold_time.set_prop("udp", AAZIntType, ".udp")
user_equipment_address_pool_prefix = _builder.get(
".properties.userEquipmentAddressPoolPrefix")
if user_equipment_address_pool_prefix is not None:
user_equipment_address_pool_prefix.set_elements(
AAZStrType, ".")
user_equipment_static_address_pool_prefix = _builder.get(
".properties.userEquipmentStaticAddressPoolPrefix")
if user_equipment_static_address_pool_prefix is not None:
user_equipment_static_address_pool_prefix.set_elements(
AAZStrType, ".")
user_plane_data_interface = _builder.get(
".properties.userPlaneDataInterface")
if user_plane_data_interface is not None:
user_plane_data_interface.set_prop(
"ipv4Address", AAZStrType, ".ipv4_address")
user_plane_data_interface.set_prop(
"ipv4Gateway", AAZStrType, ".ipv4_gateway")
user_plane_data_interface.set_prop(
"ipv4Subnet", AAZStrType, ".ipv4_subnet")
user_plane_data_interface.set_prop("name", AAZStrType, ".name")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return _instance_value
|
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation):
def __call__(self, *args, **kwargs):
pass
def _update_instance(self, instance):
pass
| 3 | 0 | 34 | 6 | 28 | 0 | 6 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 70 | 13 | 57 | 14 | 54 | 0 | 53 | 14 | 50 | 11 | 1 | 1 | 12 |
9,066 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/attached_data_network/_update.py
|
azext_mobile_network.aaz.latest.mobile_network.attached_data_network._update.Update.AttachedDataNetworksGet
|
class AttachedDataNetworksGet(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.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"attachedDataNetworkName", self.ctx.args.adn_name,
required=True,
),
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_name,
required=True,
),
**self.serialize_url_param(
"packetCoreDataPlaneName", self.ctx.args.pcdp_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-09-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_attached_data_network_read(
cls._schema_on_200)
return cls._schema_on_200
|
class AttachedDataNetworksGet(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,067 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.HiveThriftTransportProtocol
|
class HiveThriftTransportProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The transport protocol to use in the Thrift layer."""
BINARY = "Binary"
SASL = "SASL"
HTTP = "HTTP "
|
class HiveThriftTransportProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The transport protocol to use in the Thrift layer.'''
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,068 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/attached_data_network/_update.py
|
azext_mobile_network.aaz.latest.mobile_network.attached_data_network._update.Update.AttachedDataNetworksCreateOrUpdate
|
class AttachedDataNetworksCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"attachedDataNetworkName", self.ctx.args.adn_name,
required=True,
),
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_name,
required=True,
),
**self.serialize_url_param(
"packetCoreDataPlaneName", self.ctx.args.pcdp_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-09-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_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_UpdateHelper._build_schema_attached_data_network_read(
cls._schema_on_200_201)
return cls._schema_on_200_201
|
class AttachedDataNetworksCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 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,069 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.HiveServerType
|
class HiveServerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of Hive server."""
HIVE_SERVER1 = "HiveServer1"
HIVE_SERVER2 = "HiveServer2"
HIVE_THRIFT_SERVER = "HiveThriftServer"
|
class HiveServerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The type of Hive server.'''
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,070 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.HdiNodeTypes
|
class HdiNodeTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""All available HdiNodeTypes values."""
HEADNODE = "Headnode"
WORKERNODE = "Workernode"
ZOOKEEPER = "Zookeeper"
|
class HdiNodeTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''All available HdiNodeTypes values.'''
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,071 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.Db2AuthenticationType
|
class Db2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""AuthenticationType to be used for connection. It is mutually exclusive with connectionString
property.
"""
BASIC = "Basic"
|
class Db2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''AuthenticationType to be used for connection. It is mutually exclusive with connectionString
property.
'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 6 | 1 | 2 | 2 | 1 | 3 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
9,072 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.DependencyCondition
|
class DependencyCondition(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""DependencyCondition."""
SUCCEEDED = "Succeeded"
FAILED = "Failed"
SKIPPED = "Skipped"
COMPLETED = "Completed"
|
class DependencyCondition(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''DependencyCondition.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 7 | 1 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
9,073 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.DynamicsAuthenticationType
|
class DynamicsAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""All available dynamicsAuthenticationType values."""
OFFICE365 = "Office365"
IFD = "Ifd"
AAD_SERVICE_PRINCIPAL = "AADServicePrincipal"
ACTIVE_DIRECTORY = "Active Directory"
|
class DynamicsAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''All available dynamicsAuthenticationType values.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 7 | 1 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
9,074 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.DynamicsDeploymentType
|
class DynamicsDeploymentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""All available dynamicsDeploymentType values."""
ONLINE = "Online"
ON_PREMISES_WITH_IFD = "OnPremisesWithIfd"
|
class DynamicsDeploymentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''All available dynamicsDeploymentType values.'''
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,075 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.DynamicsSinkWriteBehavior
|
class DynamicsSinkWriteBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Defines values for DynamicsSinkWriteBehavior."""
UPSERT = "Upsert"
|
class DynamicsSinkWriteBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Defines values for DynamicsSinkWriteBehavior.'''
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,076 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.EventSubscriptionStatus
|
class EventSubscriptionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Event Subscription Status."""
ENABLED = "Enabled"
PROVISIONING = "Provisioning"
DEPROVISIONING = "Deprovisioning"
DISABLED = "Disabled"
UNKNOWN = "Unknown"
|
class EventSubscriptionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Event Subscription Status.'''
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,077 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.ExpressionType
|
class ExpressionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Expression type."""
EXPRESSION = "Expression"
|
class ExpressionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Expression type.'''
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,078 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.ExpressionV2Type
|
class ExpressionV2Type(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of expressions supported by the system. Type: string."""
CONSTANT = "Constant"
FIELD = "Field"
UNARY = "Unary"
BINARY = "Binary"
N_ARY = "NAry"
|
class ExpressionV2Type(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Type of expressions supported by the system. Type: string.'''
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,079 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.FactoryIdentityType
|
class FactoryIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The identity type."""
SYSTEM_ASSIGNED = "SystemAssigned"
USER_ASSIGNED = "UserAssigned"
SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"
|
class FactoryIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The identity type.'''
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,080 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.FrequencyType
|
class FrequencyType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Frequency of period in terms of 'Hour', 'Minute' or 'Second'."""
HOUR = "Hour"
MINUTE = "Minute"
SECOND = "Second"
|
class FrequencyType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Frequency of period in terms of 'Hour', 'Minute' or 'Second'.'''
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,081 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.FtpAuthenticationType
|
class FtpAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The authentication type to be used to connect to the FTP server."""
BASIC = "Basic"
ANONYMOUS = "Anonymous"
|
class FtpAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The authentication type to be used to connect to the FTP server.'''
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,082 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.GlobalParameterType
|
class GlobalParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Global Parameter type."""
OBJECT = "Object"
STRING = "String"
INT = "Int"
FLOAT = "Float"
BOOL = "Bool"
ARRAY = "Array"
INT_ENUM = "Int"
|
class GlobalParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''Global Parameter type.'''
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,083 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.GoogleAdWordsAuthenticationType
|
class GoogleAdWordsAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only
be used on self-hosted IR.
"""
SERVICE_AUTHENTICATION = "ServiceAuthentication"
USER_AUTHENTICATION = "UserAuthentication"
|
class GoogleAdWordsAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only
be used on self-hosted IR.
'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 7 | 1 | 3 | 3 | 2 | 3 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
9,084 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.GoogleBigQueryAuthenticationType
|
class GoogleBigQueryAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only
be used on self-hosted IR.
"""
SERVICE_AUTHENTICATION = "ServiceAuthentication"
USER_AUTHENTICATION = "UserAuthentication"
|
class GoogleBigQueryAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only
be used on self-hosted IR.
'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 7 | 1 | 3 | 3 | 2 | 3 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
9,085 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.GoogleBigQueryV2AuthenticationType
|
class GoogleBigQueryV2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The OAuth 2.0 authentication mechanism used for authentication."""
SERVICE_AUTHENTICATION = "ServiceAuthentication"
USER_AUTHENTICATION = "UserAuthentication"
|
class GoogleBigQueryV2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The OAuth 2.0 authentication mechanism used for authentication.'''
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,086 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.HBaseAuthenticationType
|
class HBaseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The authentication mechanism to use to connect to the HBase server."""
ANONYMOUS = "Anonymous"
BASIC = "Basic"
|
class HBaseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The authentication mechanism to use to connect to the HBase server.'''
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,087 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.HDInsightActivityDebugInfoOption
|
class HDInsightActivityDebugInfoOption(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The HDInsightActivityDebugInfoOption settings to use."""
NONE = "None"
ALWAYS = "Always"
FAILURE = "Failure"
|
class HDInsightActivityDebugInfoOption(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The HDInsightActivityDebugInfoOption settings to use.'''
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,088 |
Azure/azure-cli-extensions
|
src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_data_factory_management_client_enums.py
|
azext_datafactory.vendored_sdks.datafactory.models._data_factory_management_client_enums.HiveAuthenticationType
|
class HiveAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The authentication method used to access the Hive server."""
ANONYMOUS = "Anonymous"
USERNAME = "Username"
USERNAME_AND_PASSWORD = "UsernameAndPassword"
WINDOWS_AZURE_HD_INSIGHT_SERVICE = "WindowsAzureHDInsightService"
|
class HiveAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
'''The authentication method used to access the Hive server.'''
pass
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 7 | 1 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
9,089 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/attached_data_network/_list.py
|
azext_mobile_network.aaz.latest.mobile_network.attached_data_network._list.List.AttachedDataNetworksListByPacketCoreDataPlane
|
class AttachedDataNetworksListByPacketCoreDataPlane(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.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_name,
required=True,
),
**self.serialize_url_param(
"packetCoreDataPlaneName", self.ctx.args.pcdp_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-09-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",
flags={"read_only": True},
)
_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(
flags={"required": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.value.Element.properties
properties.dns_addresses = AAZListType(
serialized_name="dnsAddresses",
flags={"required": True},
)
properties.napt_configuration = AAZObjectType(
serialized_name="naptConfiguration",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.user_equipment_address_pool_prefix = AAZListType(
serialized_name="userEquipmentAddressPoolPrefix",
)
properties.user_equipment_static_address_pool_prefix = AAZListType(
serialized_name="userEquipmentStaticAddressPoolPrefix",
)
properties.user_plane_data_interface = AAZObjectType(
serialized_name="userPlaneDataInterface",
flags={"required": True},
)
dns_addresses = cls._schema_on_200.value.Element.properties.dns_addresses
dns_addresses.Element = AAZStrType()
napt_configuration = cls._schema_on_200.value.Element.properties.napt_configuration
napt_configuration.enabled = AAZStrType()
napt_configuration.pinhole_limits = AAZIntType(
serialized_name="pinholeLimits",
)
napt_configuration.pinhole_timeouts = AAZObjectType(
serialized_name="pinholeTimeouts",
)
napt_configuration.port_range = AAZObjectType(
serialized_name="portRange",
)
napt_configuration.port_reuse_hold_time = AAZObjectType(
serialized_name="portReuseHoldTime",
)
pinhole_timeouts = cls._schema_on_200.value.Element.properties.napt_configuration.pinhole_timeouts
pinhole_timeouts.icmp = AAZIntType()
pinhole_timeouts.tcp = AAZIntType()
pinhole_timeouts.udp = AAZIntType()
port_range = cls._schema_on_200.value.Element.properties.napt_configuration.port_range
port_range.max_port = AAZIntType(
serialized_name="maxPort",
)
port_range.min_port = AAZIntType(
serialized_name="minPort",
)
port_reuse_hold_time = cls._schema_on_200.value.Element.properties.napt_configuration.port_reuse_hold_time
port_reuse_hold_time.tcp = AAZIntType()
port_reuse_hold_time.udp = AAZIntType()
user_equipment_address_pool_prefix = cls._schema_on_200.value.Element.properties.user_equipment_address_pool_prefix
user_equipment_address_pool_prefix.Element = AAZStrType()
user_equipment_static_address_pool_prefix = cls._schema_on_200.value.Element.properties.user_equipment_static_address_pool_prefix
user_equipment_static_address_pool_prefix.Element = AAZStrType()
user_plane_data_interface = cls._schema_on_200.value.Element.properties.user_plane_data_interface
user_plane_data_interface.ipv4_address = AAZStrType(
serialized_name="ipv4Address",
)
user_plane_data_interface.ipv4_gateway = AAZStrType(
serialized_name="ipv4Gateway",
)
user_plane_data_interface.ipv4_subnet = AAZStrType(
serialized_name="ipv4Subnet",
)
user_plane_data_interface.name = AAZStrType()
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class AttachedDataNetworksListByPacketCoreDataPlane(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 | 0 | 0 | 0 | 8 | 0 | 9 | 9 | 216 | 27 | 189 | 39 | 172 | 0 | 88 | 32 | 78 | 2 | 1 | 1 | 11 |
9,090 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/attached_data_network/_delete.py
|
azext_mobile_network.aaz.latest.mobile_network.attached_data_network._delete.Delete.AttachedDataNetworksDelete
|
class AttachedDataNetworksDelete(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": "location"},
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": "location"},
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": "location"},
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.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "DELETE"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"attachedDataNetworkName", self.ctx.args.adn_name,
required=True,
),
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_name,
required=True,
),
**self.serialize_url_param(
"packetCoreDataPlaneName", self.ctx.args.pcdp_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-09-01",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class AttachedDataNetworksDelete(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,091 |
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/mobile-network/azext_mobile_network/aaz/latest/mobile_network/attached_data_network/_create.py
|
azext_mobile_network.aaz.latest.mobile_network.attached_data_network._create.Create.AttachedDataNetworksCreateOrUpdate
|
class AttachedDataNetworksCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"attachedDataNetworkName", self.ctx.args.adn_name,
required=True,
),
**self.serialize_url_param(
"packetCoreControlPlaneName", self.ctx.args.pccp_name,
required=True,
),
**self.serialize_url_param(
"packetCoreDataPlaneName", self.ctx.args.pcdp_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-09-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("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={
"flags": {"required": True, "client_flatten": True}})
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("dnsAddresses", AAZListType, ".dns_addresses", typ_kwargs={
"flags": {"required": True}})
properties.set_prop("naptConfiguration",
AAZObjectType, ".napt_configuration")
properties.set_prop(
"userEquipmentAddressPoolPrefix", AAZListType, ".address_pool")
properties.set_prop(
"userEquipmentStaticAddressPoolPrefix", AAZListType, ".static_address_pool")
properties.set_prop("userPlaneDataInterface", AAZObjectType,
".data_interface", typ_kwargs={"flags": {"required": True}})
dns_addresses = _builder.get(".properties.dnsAddresses")
if dns_addresses is not None:
dns_addresses.set_elements(AAZStrType, ".")
napt_configuration = _builder.get(".properties.naptConfiguration")
if napt_configuration is not None:
napt_configuration.set_prop("enabled", AAZStrType, ".enabled")
napt_configuration.set_prop(
"pinholeLimits", AAZIntType, ".pinhole_limits")
napt_configuration.set_prop(
"pinholeTimeouts", AAZObjectType, ".pinhole_timeouts")
napt_configuration.set_prop(
"portRange", AAZObjectType, ".port_range")
napt_configuration.set_prop(
"portReuseHoldTime", AAZObjectType, ".port_reuse_hold_time")
pinhole_timeouts = _builder.get(
".properties.naptConfiguration.pinholeTimeouts")
if pinhole_timeouts is not None:
pinhole_timeouts.set_prop("icmp", AAZIntType, ".icmp")
pinhole_timeouts.set_prop("tcp", AAZIntType, ".tcp")
pinhole_timeouts.set_prop("udp", AAZIntType, ".udp")
port_range = _builder.get(
".properties.naptConfiguration.portRange")
if port_range is not None:
port_range.set_prop("maxPort", AAZIntType, ".max_port")
port_range.set_prop("minPort", AAZIntType, ".min_port")
port_reuse_hold_time = _builder.get(
".properties.naptConfiguration.portReuseHoldTime")
if port_reuse_hold_time is not None:
port_reuse_hold_time.set_prop("tcp", AAZIntType, ".tcp")
port_reuse_hold_time.set_prop("udp", AAZIntType, ".udp")
user_equipment_address_pool_prefix = _builder.get(
".properties.userEquipmentAddressPoolPrefix")
if user_equipment_address_pool_prefix is not None:
user_equipment_address_pool_prefix.set_elements(
AAZStrType, ".")
user_equipment_static_address_pool_prefix = _builder.get(
".properties.userEquipmentStaticAddressPoolPrefix")
if user_equipment_static_address_pool_prefix is not None:
user_equipment_static_address_pool_prefix.set_elements(
AAZStrType, ".")
user_plane_data_interface = _builder.get(
".properties.userPlaneDataInterface")
if user_plane_data_interface is not None:
user_plane_data_interface.set_prop(
"ipv4Address", AAZStrType, ".ipv4_address")
user_plane_data_interface.set_prop(
"ipv4Gateway", AAZStrType, ".ipv4_gateway")
user_plane_data_interface.set_prop(
"ipv4Subnet", AAZStrType, ".ipv4_subnet")
user_plane_data_interface.set_prop("name", AAZStrType, ".name")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.properties = AAZObjectType(
flags={"required": True, "client_flatten": True},
)
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.dns_addresses = AAZListType(
serialized_name="dnsAddresses",
flags={"required": True},
)
properties.napt_configuration = AAZObjectType(
serialized_name="naptConfiguration",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.user_equipment_address_pool_prefix = AAZListType(
serialized_name="userEquipmentAddressPoolPrefix",
)
properties.user_equipment_static_address_pool_prefix = AAZListType(
serialized_name="userEquipmentStaticAddressPoolPrefix",
)
properties.user_plane_data_interface = AAZObjectType(
serialized_name="userPlaneDataInterface",
flags={"required": True},
)
dns_addresses = cls._schema_on_200_201.properties.dns_addresses
dns_addresses.Element = AAZStrType()
napt_configuration = cls._schema_on_200_201.properties.napt_configuration
napt_configuration.enabled = AAZStrType()
napt_configuration.pinhole_limits = AAZIntType(
serialized_name="pinholeLimits",
)
napt_configuration.pinhole_timeouts = AAZObjectType(
serialized_name="pinholeTimeouts",
)
napt_configuration.port_range = AAZObjectType(
serialized_name="portRange",
)
napt_configuration.port_reuse_hold_time = AAZObjectType(
serialized_name="portReuseHoldTime",
)
pinhole_timeouts = cls._schema_on_200_201.properties.napt_configuration.pinhole_timeouts
pinhole_timeouts.icmp = AAZIntType()
pinhole_timeouts.tcp = AAZIntType()
pinhole_timeouts.udp = AAZIntType()
port_range = cls._schema_on_200_201.properties.napt_configuration.port_range
port_range.max_port = AAZIntType(
serialized_name="maxPort",
)
port_range.min_port = AAZIntType(
serialized_name="minPort",
)
port_reuse_hold_time = cls._schema_on_200_201.properties.napt_configuration.port_reuse_hold_time
port_reuse_hold_time.tcp = AAZIntType()
port_reuse_hold_time.udp = AAZIntType()
user_equipment_address_pool_prefix = cls._schema_on_200_201.properties.user_equipment_address_pool_prefix
user_equipment_address_pool_prefix.Element = AAZStrType()
user_equipment_static_address_pool_prefix = cls._schema_on_200_201.properties.user_equipment_static_address_pool_prefix
user_equipment_static_address_pool_prefix.Element = AAZStrType()
user_plane_data_interface = cls._schema_on_200_201.properties.user_plane_data_interface
user_plane_data_interface.ipv4_address = AAZStrType(
serialized_name="ipv4Address",
)
user_plane_data_interface.ipv4_gateway = AAZStrType(
serialized_name="ipv4Gateway",
)
user_plane_data_interface.ipv4_subnet = AAZStrType(
serialized_name="ipv4Subnet",
)
user_plane_data_interface.name = AAZStrType()
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class AttachedDataNetworksCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 28 | 3 | 25 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 9 | 1 | 10 | 10 | 297 | 37 | 260 | 51 | 241 | 0 | 136 | 42 | 125 | 11 | 1 | 1 | 23 |
9,092 |
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/mixed-reality/azext_mixed_reality/aaz/latest/remote_rendering_account/_delete.py
|
azext_mixed_reality.aaz.latest.remote_rendering_account._delete.Delete.RemoteRenderingAccountsDelete
|
class RemoteRenderingAccountsDelete(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)
if session.http_response.status_code in [204]:
return self.on_204(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
**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(
"accountName", self.ctx.args.name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2021-03-01-preview",
required=True,
),
}
return parameters
def on_200(self, session):
pass
def on_204(self, session):
pass
|
class RemoteRenderingAccountsDelete(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
def on_200(self, session):
pass
def on_204(self, session):
pass
| 14 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 8 | 0 | 8 | 8 | 61 | 9 | 52 | 19 | 38 | 0 | 26 | 14 | 17 | 3 | 1 | 1 | 10 |
9,093 |
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/mixed-reality/azext_mixed_reality/aaz/latest/remote_rendering_account/_create.py
|
azext_mixed_reality.aaz.latest.remote_rendering_account._create.Create.RemoteRenderingAccountsCreate
|
class RemoteRenderingAccountsCreate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [200, 201]:
return self.on_200_201(session)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
**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(
"accountName", self.ctx.args.name,
required=True,
),
**self.serialize_url_param(
"resourceGroupName", self.ctx.args.resource_group,
required=True,
),
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters
@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2021-03-01-preview",
required=True,
),
}
return parameters
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters
@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
typ=AAZObjectType,
typ_kwargs={
"flags": {"required": True, "client_flatten": True}}
)
_CreateHelper._build_schema_identity_create(
_builder.set_prop("identity", AAZObjectType, ".identity"))
_CreateHelper._build_schema_sku_create(
_builder.set_prop("kind", AAZObjectType, ".kind"))
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={
"flags": {"required": True}})
_builder.set_prop("properties", AAZObjectType, typ_kwargs={
"flags": {"client_flatten": True}})
_CreateHelper._build_schema_sku_create(
_builder.set_prop("sku", AAZObjectType, ".sku"))
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("storageAccountName",
AAZStrType, ".storage_account_name")
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return self.serialize_content(_content_value)
def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_schema_on_200_201 = cls._schema_on_200_201
_schema_on_200_201.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.identity = AAZObjectType()
_CreateHelper._build_schema_identity_read(
_schema_on_200_201.identity)
_schema_on_200_201.kind = AAZObjectType()
_CreateHelper._build_schema_sku_read(_schema_on_200_201.kind)
_schema_on_200_201.location = AAZStrType(
flags={"required": True},
)
_schema_on_200_201.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200_201.plan = AAZObjectType()
_CreateHelper._build_schema_identity_read(_schema_on_200_201.plan)
_schema_on_200_201.properties = AAZObjectType(
flags={"client_flatten": True},
)
_schema_on_200_201.sku = AAZObjectType()
_CreateHelper._build_schema_sku_read(_schema_on_200_201.sku)
_schema_on_200_201.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200_201.tags = AAZDictType()
_schema_on_200_201.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200_201.properties
properties.account_domain = AAZStrType(
serialized_name="accountDomain",
flags={"read_only": True},
)
properties.account_id = AAZStrType(
serialized_name="accountId",
flags={"read_only": True},
)
properties.storage_account_name = AAZStrType(
serialized_name="storageAccountName",
)
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200_201.tags
tags.Element = AAZStrType()
return cls._schema_on_200_201
|
class RemoteRenderingAccountsCreate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 15 | 1 | 14 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 0 | 10 | 10 | 174 | 21 | 153 | 34 | 134 | 0 | 76 | 26 | 65 | 3 | 1 | 1 | 14 |
9,094 |
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/microsoft-fabric/azext_microsoft_fabric/tests/latest/test_fabric_commands.py
|
azext_microsoft_fabric.tests.latest.test_fabric_commands.FabricScenario
|
class FabricScenario(ScenarioTest):
@ResourceGroupPreparer(parameter_name_for_location='resource_group_location')
def test_fabric_capacity(self, resource_group, resource_group_location):
display_name = self.create_random_name(prefix='cli-', length=30)
self.kwargs.update({
'name': self.create_random_name(prefix='cli', length=24),
'loc': resource_group_location,
'display_name': display_name,
'identifier_uri': f'api://{display_name}'
})
appId = self.cmd(
'az ad app create --display-name {display_name} --identifier-uris {identifier_uri}').get_output_in_json()['appId']
self.kwargs.update({'app_id': appId})
spId = self.cmd(
'az ad sp create --id {app_id}').get_output_in_json()['id']
self.kwargs.update({'administrator': spId})
time.sleep(60)
self.cmd('az fabric capacity create --resource-group {rg} --name {name} --sku name="F2" '
'--location {loc} --sku tier="Fabric" --administration members[0]="{administrator}" --no-wait')
self.cmd(
'az fabric capacity wait --resource-group {rg} --name {name} --created')
self.cmd('az fabric capacity list --resource-group {rg}',
checks=[
self.check('length(@)', 1),
])
self.cmd('az fabric capacity show -g {rg} --name {name}',
checks=[
self.check('provisioningState', 'Succeeded'),
self.check('name', '{name}'),
self.check('sku.name', 'F2'),
self.check('sku.tier', 'Fabric'),
self.check(
'administration.members[0]', self.kwargs['administrator']),
])
self.cmd('az fabric capacity update --resource-group {rg} --name {name} --sku name="F4"',
checks=[
self.check('name', '{name}'),
self.check('sku.name', 'F4'),
])
self.cmd('az fabric capacity show -g {rg} -n {name}',
checks=[
self.check('name', '{name}'),
self.check('sku.name', 'F4'),
])
self.cmd('az fabric capacity delete -g {rg} -n {name} -y')
self.cmd('az fabric capacity list -g {rg}',
checks=[
self.check('length(@)', 0)])
self.cmd('az ad app delete --id {app_id}')
|
class FabricScenario(ScenarioTest):
@ResourceGroupPreparer(parameter_name_for_location='resource_group_location')
def test_fabric_capacity(self, resource_group, resource_group_location):
pass
| 3 | 0 | 52 | 9 | 43 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 54 | 9 | 45 | 6 | 42 | 0 | 18 | 5 | 16 | 1 | 1 | 0 | 1 |
9,095 |
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/microsoft-fabric/azext_microsoft_fabric/aaz/latest/fabric/capacity/_wait.py
|
azext_microsoft_fabric.aaz.latest.fabric.capacity._wait.Wait.FabricCapacitiesGet
|
class FabricCapacitiesGet(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.Fabric/capacities/{capacityName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"capacityName", self.ctx.args.capacity_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-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.id = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.location = AAZStrType(
flags={"required": True},
)
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"client_flatten": True},
)
_schema_on_200.sku = AAZObjectType(
flags={"required": True},
)
_schema_on_200.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_schema_on_200.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.administration = AAZObjectType(
flags={"required": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.state = AAZStrType(
flags={"read_only": True},
)
administration = cls._schema_on_200.properties.administration
administration.members = AAZListType(
flags={"required": True},
)
members = cls._schema_on_200.properties.administration.members
members.Element = AAZStrType()
sku = cls._schema_on_200.sku
sku.name = AAZStrType(
flags={"required": True},
)
sku.tier = AAZStrType(
flags={"required": True},
)
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200
|
class FabricCapacitiesGet(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 | 157 | 20 | 137 | 32 | 120 | 0 | 61 | 25 | 51 | 2 | 1 | 1 | 11 |
9,096 |
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/microsoft-fabric/azext_microsoft_fabric/aaz/latest/fabric/capacity/_update.py
|
azext_microsoft_fabric.aaz.latest.fabric.capacity._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": {"client_flatten": True}})
_builder.set_prop("sku", AAZObjectType, ".sku",
typ_kwargs={"flags": {"required": True}})
_builder.set_prop("tags", AAZDictType, ".tags")
properties = _builder.get(".properties")
if properties is not None:
properties.set_prop("administration", AAZObjectType, ".administration", typ_kwargs={
"flags": {"required": True}})
administration = _builder.get(".properties.administration")
if administration is not None:
administration.set_prop("members", AAZListType, ".members", typ_kwargs={
"flags": {"required": True}})
members = _builder.get(".properties.administration.members")
if members is not None:
members.set_elements(AAZStrType, ".")
sku = _builder.get(".sku")
if sku is not None:
sku.set_prop("name", AAZStrType, ".name", typ_kwargs={
"flags": {"required": True}})
sku.set_prop("tier", AAZStrType, ".tier", typ_kwargs={
"flags": {"required": True}})
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
return _instance_value
|
class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation):
def __call__(self, *args, **kwargs):
pass
def _update_instance(self, instance):
pass
| 3 | 0 | 17 | 3 | 14 | 0 | 4 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 37 | 8 | 29 | 9 | 26 | 0 | 25 | 9 | 22 | 6 | 1 | 1 | 7 |
9,097 |
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/microsoft-fabric/azext_microsoft_fabric/aaz/latest/fabric/capacity/_update.py
|
azext_microsoft_fabric.aaz.latest.fabric.capacity._update.Update.FabricCapacitiesGet
|
class FabricCapacitiesGet(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.Fabric/capacities/{capacityName}",
**self.url_parameters
)
@property
def method(self):
return "GET"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"capacityName", self.ctx.args.capacity_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-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()
_UpdateHelper._build_schema_fabric_capacity_read(
cls._schema_on_200)
return cls._schema_on_200
|
class FabricCapacitiesGet(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
def on_200(self, session):
pass
@classmethod
def _build_schema_on_200(cls):
pass
| 17 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 8 | 0 | 9 | 9 | 82 | 13 | 69 | 25 | 52 | 0 | 33 | 18 | 23 | 2 | 1 | 1 | 11 |
9,098 |
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/microsoft-fabric/azext_microsoft_fabric/aaz/latest/fabric/capacity/_update.py
|
azext_microsoft_fabric.aaz.latest.fabric.capacity._update.Update.FabricCapacitiesCreateOrUpdate
|
class FabricCapacitiesCreateOrUpdate(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(
request=request, stream=False, **kwargs)
if session.http_response.status_code in [202]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
return self.client.build_lro_polling(
self.ctx.args.no_wait,
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
return self.on_error(session.http_response)
@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}",
**self.url_parameters
)
@property
def method(self):
return "PUT"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"capacityName", self.ctx.args.capacity_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-11-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_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200_201
)
_schema_on_200_201 = None
@classmethod
def _build_schema_on_200_201(cls):
if cls._schema_on_200_201 is not None:
return cls._schema_on_200_201
cls._schema_on_200_201 = AAZObjectType()
_UpdateHelper._build_schema_fabric_capacity_read(
cls._schema_on_200_201)
return cls._schema_on_200_201
|
class FabricCapacitiesCreateOrUpdate(AAZHttpOperation):
def __call__(self, *args, **kwargs):
pass
@property
def url(self):
pass
@property
def method(self):
pass
@property
def error_format(self):
pass
@property
def url_parameters(self):
pass
@property
def query_parameters(self):
pass
@property
def header_parameters(self):
pass
@property
def content(self):
pass
def on_200_201(self, session):
pass
@classmethod
def _build_schema_on_200_201(cls):
pass
| 19 | 0 | 9 | 0 | 8 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 9 | 1 | 10 | 10 | 110 | 15 | 95 | 29 | 76 | 0 | 38 | 20 | 27 | 3 | 1 | 1 | 13 |
9,099 |
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/microsoft-fabric/azext_microsoft_fabric/aaz/latest/fabric/capacity/_suspend.py
|
azext_microsoft_fabric.aaz.latest.fabric.capacity._suspend.Suspend.FabricCapacitiesSuspend
|
class FabricCapacitiesSuspend(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,
None,
self.on_error,
lro_options={"final-state-via": "location"},
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.Fabric/capacities/{capacityName}/suspend",
**self.url_parameters
)
@property
def method(self):
return "POST"
@property
def error_format(self):
return "MgmtErrorFormat"
@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"capacityName", self.ctx.args.capacity_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-11-01",
required=True,
),
}
return parameters
|
class FabricCapacitiesSuspend(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
| 12 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 6 | 1 | 6 | 6 | 60 | 7 | 53 | 18 | 41 | 0 | 20 | 12 | 13 | 2 | 1 | 1 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.