id
int64
0
843k
repository_name
stringlengths
7
55
file_path
stringlengths
9
332
class_name
stringlengths
3
290
human_written_code
stringlengths
12
4.36M
class_skeleton
stringlengths
19
2.2M
total_program_units
int64
1
9.57k
total_doc_str
int64
0
4.2k
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
300
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
176
CountClassBase
float64
0
48
CountClassCoupled
float64
0
589
CountClassCoupledModified
float64
0
581
CountClassDerived
float64
0
5.37k
CountDeclInstanceMethod
float64
0
4.2k
CountDeclInstanceVariable
float64
0
299
CountDeclMethod
float64
0
4.2k
CountDeclMethodAll
float64
0
4.2k
CountLine
float64
1
115k
CountLineBlank
float64
0
9.01k
CountLineCode
float64
0
94.4k
CountLineCodeDecl
float64
0
46.1k
CountLineCodeExe
float64
0
91.3k
CountLineComment
float64
0
27k
CountStmt
float64
1
93.2k
CountStmtDecl
float64
0
46.1k
CountStmtExe
float64
0
90.2k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
6k
10,400
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/oracle-database/azext_oracle_database/tests/latest/test_oracle_database_deletes.py
azext_oracle_database.tests.latest.test_oracle_database_deletes.OracleDatabaseDeleteScenario
class OracleDatabaseDeleteScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_exadata_deletes(self, resource_group): subscription_id = self.get_subscription_id() self.kwargs.update({ 'infra_name': 'OFake_Infra_AzCLI', 'location': 'eastus', 'shape': 'Exadata.X9M', 'tags': '{tagk1:tagv1}' }) self.cmd('az oracle-database cloud-exadata-infrastructure delete ' '--resource-group ObsTestingFra ' '--name OFake_ppratees_0216_2 ' '--no-wait ' '--yes ') self.cmd('az oracle-database cloud-vm-cluster show ' '--resource-group SDKTestRG ' '--name OFakeVmTestA ') self.cmd('az oracle-database cloud-vm-cluster list ' '--resource-group SDKTestRG ') self.cmd('az oracle-database cloud-vm-cluster delete ' '--resource-group SDKTestRG ' '--name OFakeVmTestA ' '--no-wait ' '--yes ')
class OracleDatabaseDeleteScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_exadata_deletes(self, resource_group): pass
4
0
23
0
23
0
1
0
1
0
0
0
1
0
1
1
26
0
26
4
22
0
8
3
6
1
1
0
1
10,401
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/oracle-database/azext_oracle_database/tests/latest/test_oracle_database_adbs.py
azext_oracle_database.tests.latest.test_oracle_database_adbs.OracleDatabaseAdbsScenario
class OracleDatabaseAdbsScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_adbs(self, resource_group): subscription_id = self.get_subscription_id() self.cmd( 'az oracle-database autonomous-database version list --location eastus ') self.cmd('az oracle-database gi-version list --location eastus ') self.cmd( 'az oracle-database autonomous-database character-set list --location eastus ') self.cmd( 'az oracle-database autonomous-database national-character-set list --location eastus ') self.cmd('az oracle-database database-system-shape list --location eastus ') self.cmd('az oracle-database dns-private-zone list --location eastus ') self.cmd('az oracle-database dns-private-view list --location eastus ') self.cmd('az oracle-database autonomous-database create --location eastus ' '--autonomousdatabasename ADBScli1 ' '--resource-group SDKTestRG ' '--subnet-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTestRG/providers/Microsoft.Network/virtualNetworks/SDKVnet/subnets/SDKSubnet ' '--display-name ADBScli1 ' '--compute-model ECPU --compute-count 2 ' '--data-storage-size-in-gbs 32 --license-model BringYourOwnLicense ' '--db-workload OLTP --admin-password TestPass#2024# ' '--db-version 19c --character-set AL32UTF8 --ncharacter-set AL16UTF16 ' '--vnet-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTestRG/providers/Microsoft.Network/virtualNetworks/SDKVnet --regular --no-wait ') self.cmd('az oracle-database autonomous-database delete ' '--autonomousdatabasename ADBScli ' '--resource-group SDKTestRG --yes --no-wait ')
class OracleDatabaseAdbsScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_adbs(self, resource_group): pass
4
0
22
0
22
1
1
0.04
1
0
0
0
1
0
1
1
25
0
25
4
21
1
12
3
10
1
1
0
1
10,402
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/oracle-database/azext_oracle_database/tests/latest/test_oracle_database.py
azext_oracle_database.tests.latest.test_oracle_database.OracleDatabaseScenario
class OracleDatabaseScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_exadata(self, resource_group): subscription_id = self.get_subscription_id() self.kwargs.update({ 'infra_name': 'OFake_Infra_AzCLI', 'location': 'eastus', 'shape': 'Exadata.X9M', 'tags': '{tagk1:tagv1}' }) self.cmd('az oracle-database cloud-exadata-infrastructure create ' '--resource-group {rg} ' '--name {infra_name} ' '--zones 2 ' '--compute-count 2 ' '--display-name {infra_name} ' '--shape {shape} ' '--location {location} ' '--storage-count 3 --no-wait') self.cmd('az oracle-database cloud-exadata-infrastructure show ' '--resource-group PowerShellTestRg ' '--name OFake_PowerShellTestExaInfra ') self.cmd('az oracle-database cloud-exadata-infrastructure list ' '--resource-group PowerShellTestRg ') self.cmd('az oracle-database cloud-exadata-infrastructure database-server list ' '--cloudexadatainfrastructurename OFake_PowerShellTestExaInfra ' '--resource-group PowerShellTestRg ') self.cmd('az oracle-database cloud-vm-cluster create ' '--cloud-exadata-infrastructure-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTestRG/providers/Oracle.Database/cloudExadataInfrastructures/DemoExaInfra ' '--resource-group SDKTestRG ' '--location eastus ' '--cpu-core-count 6 ' '--data-storage-percentage 80 ' '--data-storage-size-in-tbs 2 ' '--db-node-storage-size-in-gbs 120 ' '--db-servers [\'ocid1.dbserver.oc1.iad.xxxxx\',\'ocid1.dbserver.oc1.iad.xxxxx\',\'ocid1.dbserver.oc1.iad.xxxxx\'] ' '--display-name OFake_VMC_AzCLI3 ' '--name OFake_VMC_AzCLI3 ' '--gi-version 19.0.0.0 ' '--hostname rvilathu ' '--is-local-backup-enabled False ' '--is-sparse-diskgroup-enabled False ' '--license-model LicenseIncluded ' '--memory-size-in-gbs 60 ' '--ssh-public-keys \'ssh-rsa keykeykeykeykey generated-by-azure\' ' '--subnet-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTestRG/providers/Microsoft.Network/virtualNetworks/SDKVnet/subnets/SDKSubnet ' '--time-zone UTC ' '--vnet-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTestRG/providers/Microsoft.Network/virtualNetworks/SDKVnet ' '--no-wait ')
class OracleDatabaseScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_exadata(self, resource_group): pass
4
0
47
0
47
0
1
0
1
0
0
0
1
0
1
1
50
0
50
4
46
0
9
3
7
1
1
0
1
10,403
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/oracle-database/azext_oracle_database/aaz/latest/oracle_database/gi_version/_list.py
azext_oracle_database.aaz.latest.oracle_database.gi_version._list.List.GiVersionsListByLocation
class GiVersionsListByLocation(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/Oracle.Database/locations/{location}/giVersions", **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( "location", self.ctx.args.location, 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", ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.version = AAZStrType( flags={"required": True, "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", ) return cls._schema_on_200
class GiVersionsListByLocation(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
12
1
11
0
1
0
1
0
0
0
8
0
9
9
131
18
113
30
96
0
52
23
42
2
1
1
11
10,404
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/oracle-database/azext_oracle_database/aaz/latest/oracle_database/dns_private_zone/_list.py
azext_oracle_database.aaz.latest.oracle_database.dns_private_zone._list.List.DnsPrivateZonesListByLocation
class DnsPrivateZonesListByLocation(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/Oracle.Database/locations/{location}/dnsPrivateZones", **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( "location", self.ctx.args.location, 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", ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.is_protected = AAZBoolType( serialized_name="isProtected", flags={"required": True, "read_only": True}, ) properties.lifecycle_state = AAZStrType( serialized_name="lifecycleState", ) properties.ocid = AAZStrType( flags={"required": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.self = AAZStrType( flags={"required": True, "read_only": True}, ) properties.serial = AAZIntType( flags={"required": True, "read_only": True}, ) properties.time_created = AAZStrType( serialized_name="timeCreated", flags={"required": True, "read_only": True}, ) properties.version = AAZStrType( flags={"required": True, "read_only": True}, ) properties.view_id = AAZStrType( serialized_name="viewId", ) properties.zone_type = AAZStrType( serialized_name="zoneType", flags={"required": 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", ) return cls._schema_on_200
class DnsPrivateZonesListByLocation(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
16
1
15
0
1
0
1
0
0
0
8
0
9
9
162
18
144
30
127
0
61
23
51
2
1
1
11
10,405
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/oracle-database/azext_oracle_database/aaz/latest/oracle_database/dns_private_view/_list.py
azext_oracle_database.aaz.latest.oracle_database.dns_private_view._list.List.DnsPrivateViewsListByLocation
class DnsPrivateViewsListByLocation(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/Oracle.Database/locations/{location}/dnsPrivateViews", **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( "location", self.ctx.args.location, 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", ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.display_name = AAZStrType( serialized_name="displayName", flags={"read_only": True}, ) properties.is_protected = AAZBoolType( serialized_name="isProtected", flags={"required": True, "read_only": True}, ) properties.lifecycle_state = AAZStrType( serialized_name="lifecycleState", ) properties.ocid = AAZStrType( flags={"required": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.self = AAZStrType( flags={"required": True, "read_only": True}, ) properties.time_created = AAZStrType( serialized_name="timeCreated", flags={"required": True, "read_only": True}, ) properties.time_updated = AAZStrType( serialized_name="timeUpdated", flags={"required": True, "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", ) return cls._schema_on_200
class DnsPrivateViewsListByLocation(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
18
139
30
122
0
59
23
49
2
1
1
11
10,406
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/oracle-database/azext_oracle_database/aaz/latest/oracle_database/database_system_shape/_list.py
azext_oracle_database.aaz.latest.oracle_database.database_system_shape._list.List.DbSystemShapesListByLocation
class DbSystemShapesListByLocation(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/Oracle.Database/locations/{location}/dbSystemShapes", **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( "location", self.ctx.args.location, 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", ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.available_core_count = AAZIntType( serialized_name="availableCoreCount", flags={"required": True, "read_only": True}, ) properties.available_core_count_per_node = AAZIntType( serialized_name="availableCoreCountPerNode", flags={"read_only": True}, ) properties.available_data_storage_in_tbs = AAZIntType( serialized_name="availableDataStorageInTbs", flags={"read_only": True}, ) properties.available_data_storage_per_server_in_tbs = AAZFloatType( serialized_name="availableDataStoragePerServerInTbs", flags={"read_only": True}, ) properties.available_db_node_per_node_in_gbs = AAZIntType( serialized_name="availableDbNodePerNodeInGbs", flags={"read_only": True}, ) properties.available_db_node_storage_in_gbs = AAZIntType( serialized_name="availableDbNodeStorageInGbs", flags={"read_only": True}, ) properties.available_memory_in_gbs = AAZIntType( serialized_name="availableMemoryInGbs", flags={"read_only": True}, ) properties.available_memory_per_node_in_gbs = AAZIntType( serialized_name="availableMemoryPerNodeInGbs", flags={"read_only": True}, ) properties.core_count_increment = AAZIntType( serialized_name="coreCountIncrement", flags={"read_only": True}, ) properties.max_storage_count = AAZIntType( serialized_name="maxStorageCount", flags={"read_only": True}, ) properties.maximum_node_count = AAZIntType( serialized_name="maximumNodeCount", flags={"read_only": True}, ) properties.min_core_count_per_node = AAZIntType( serialized_name="minCoreCountPerNode", flags={"read_only": True}, ) properties.min_data_storage_in_tbs = AAZIntType( serialized_name="minDataStorageInTbs", flags={"read_only": True}, ) properties.min_db_node_storage_per_node_in_gbs = AAZIntType( serialized_name="minDbNodeStoragePerNodeInGbs", flags={"read_only": True}, ) properties.min_memory_per_node_in_gbs = AAZIntType( serialized_name="minMemoryPerNodeInGbs", flags={"read_only": True}, ) properties.min_storage_count = AAZIntType( serialized_name="minStorageCount", flags={"read_only": True}, ) properties.minimum_core_count = AAZIntType( serialized_name="minimumCoreCount", flags={"read_only": True}, ) properties.minimum_node_count = AAZIntType( serialized_name="minimumNodeCount", flags={"read_only": True}, ) properties.runtime_minimum_core_count = AAZIntType( serialized_name="runtimeMinimumCoreCount", flags={"read_only": True}, ) properties.shape_family = AAZStrType( serialized_name="shapeFamily", 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", ) return cls._schema_on_200
class DbSystemShapesListByLocation(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
1
20
0
1
0
1
0
0
0
8
0
9
9
208
18
190
30
173
0
71
23
61
2
1
1
11
10,407
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/oracle-database/azext_oracle_database/aaz/latest/oracle_database/cloud_vm_cluster/database_node/_list.py
azext_oracle_database.aaz.latest.oracle_database.cloud_vm_cluster.database_node._list.List.DbNodesListByCloudVmCluster
class DbNodesListByCloudVmCluster(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/Oracle.Database/cloudVmClusters/{cloudvmclustername}/dbNodes", **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( "cloudvmclustername", self.ctx.args.cloudvmclustername, 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", ) _schema_on_200.value = AAZListType( flags={"required": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.additional_details = AAZStrType( serialized_name="additionalDetails", flags={"read_only": True}, ) properties.backup_ip_id = AAZStrType( serialized_name="backupIpId", ) properties.backup_vnic2_id = AAZStrType( serialized_name="backupVnic2Id", ) properties.backup_vnic_id = AAZStrType( serialized_name="backupVnicId", ) properties.cpu_core_count = AAZIntType( serialized_name="cpuCoreCount", flags={"read_only": True}, ) properties.db_node_storage_size_in_gbs = AAZIntType( serialized_name="dbNodeStorageSizeInGbs", flags={"read_only": True}, ) properties.db_server_id = AAZStrType( serialized_name="dbServerId", ) properties.db_system_id = AAZStrType( serialized_name="dbSystemId", flags={"required": True}, ) properties.fault_domain = AAZStrType( serialized_name="faultDomain", flags={"read_only": True}, ) properties.host_ip_id = AAZStrType( serialized_name="hostIpId", ) properties.hostname = AAZStrType( flags={"read_only": True}, ) properties.lifecycle_details = AAZStrType( serialized_name="lifecycleDetails", flags={"read_only": True}, ) properties.lifecycle_state = AAZStrType( serialized_name="lifecycleState", ) properties.maintenance_type = AAZStrType( serialized_name="maintenanceType", ) properties.memory_size_in_gbs = AAZIntType( serialized_name="memorySizeInGbs", flags={"read_only": True}, ) properties.ocid = AAZStrType( flags={"required": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.software_storage_size_in_gb = AAZIntType( serialized_name="softwareStorageSizeInGb", flags={"read_only": True}, ) properties.time_created = AAZStrType( serialized_name="timeCreated", flags={"read_only": True}, ) properties.time_maintenance_window_end = AAZStrType( serialized_name="timeMaintenanceWindowEnd", flags={"read_only": True}, ) properties.time_maintenance_window_start = AAZStrType( serialized_name="timeMaintenanceWindowStart", flags={"read_only": True}, ) properties.vnic2_id = AAZStrType( serialized_name="vnic2Id", ) properties.vnic_id = AAZStrType( serialized_name="vnicId", ) system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class DbNodesListByCloudVmCluster(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
1
21
0
1
0
1
0
0
0
8
0
9
9
213
18
195
30
178
0
74
23
64
2
1
1
11
10,408
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/oracle-database/azext_oracle_database/aaz/latest/oracle_database/cloud_vm_cluster/database_node/_action.py
azext_oracle_database.aaz.latest.oracle_database.cloud_vm_cluster.database_node._action.Action.DbNodesAction
class DbNodesAction(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/Oracle.Database/cloudVmClusters/{cloudvmclustername}/dbNodes/{dbnodeocid}/action", **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( "cloudvmclustername", self.ctx.args.cloudvmclustername, required=True, ), **self.serialize_url_param( "dbnodeocid", self.ctx.args.dbnodeocid, 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("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.additional_details = AAZStrType( serialized_name="additionalDetails", flags={"read_only": True}, ) properties.backup_ip_id = AAZStrType( serialized_name="backupIpId", ) properties.backup_vnic2_id = AAZStrType( serialized_name="backupVnic2Id", ) properties.backup_vnic_id = AAZStrType( serialized_name="backupVnicId", ) properties.cpu_core_count = AAZIntType( serialized_name="cpuCoreCount", flags={"read_only": True}, ) properties.db_node_storage_size_in_gbs = AAZIntType( serialized_name="dbNodeStorageSizeInGbs", flags={"read_only": True}, ) properties.db_server_id = AAZStrType( serialized_name="dbServerId", ) properties.db_system_id = AAZStrType( serialized_name="dbSystemId", flags={"required": True}, ) properties.fault_domain = AAZStrType( serialized_name="faultDomain", flags={"read_only": True}, ) properties.host_ip_id = AAZStrType( serialized_name="hostIpId", ) properties.hostname = AAZStrType( flags={"read_only": True}, ) properties.lifecycle_details = AAZStrType( serialized_name="lifecycleDetails", flags={"read_only": True}, ) properties.lifecycle_state = AAZStrType( serialized_name="lifecycleState", ) properties.maintenance_type = AAZStrType( serialized_name="maintenanceType", ) properties.memory_size_in_gbs = AAZIntType( serialized_name="memorySizeInGbs", flags={"read_only": True}, ) properties.ocid = AAZStrType( flags={"required": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.software_storage_size_in_gb = AAZIntType( serialized_name="softwareStorageSizeInGb", flags={"read_only": True}, ) properties.time_created = AAZStrType( serialized_name="timeCreated", flags={"read_only": True}, ) properties.time_maintenance_window_end = AAZStrType( serialized_name="timeMaintenanceWindowEnd", flags={"read_only": True}, ) properties.time_maintenance_window_start = AAZStrType( serialized_name="timeMaintenanceWindowStart", flags={"read_only": True}, ) properties.vnic2_id = AAZStrType( serialized_name="vnic2Id", ) properties.vnic_id = AAZStrType( serialized_name="vnicId", ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class DbNodesAction(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
21
1
21
0
1
0
1
0
0
0
9
1
10
10
236
18
218
32
199
0
75
23
64
3
1
1
13
10,409
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/oracle-database/azext_oracle_database/tests/latest/test_oracle_database_adbsoper.py
azext_oracle_database.tests.latest.test_oracle_database_adbsoper.OracleDatabaseAdbsGetScenario
class OracleDatabaseAdbsGetScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_adbsget(self, resource_group): subscription_id = self.get_subscription_id() self.cmd('az oracle-database autonomous-database show --name eamonterraformtest501 --resource-group eamonterraformtest500 ') self.cmd( 'az oracle-database autonomous-database list --resource-group eamonterraformtest500 ')
class OracleDatabaseAdbsGetScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_odba_rg') def test_oracledatabase_adbsget(self, resource_group): pass
4
0
4
0
4
0
1
0
1
0
0
0
1
0
1
1
7
0
7
4
3
0
5
3
3
1
1
0
1
10,410
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/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/local_rulestack/local_rule/_wait.py
azext_palo_alto_networks.aaz.latest.palo_alto.cloudngfw.local_rulestack.local_rule._wait.Wait.LocalRulesGet
class LocalRulesGet(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/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}", **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( "localRulestackName", self.ctx.args.local_rulestack_name, required=True, ), **self.serialize_url_param( "priority", self.ctx.args.priority, 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", "2022-08-29", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"required": True, "client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.action_type = AAZStrType( serialized_name="actionType", ) properties.applications = AAZListType() properties.audit_comment = AAZStrType( serialized_name="auditComment", ) properties.category = AAZObjectType() properties.decryption_rule_type = AAZStrType( serialized_name="decryptionRuleType", ) properties.description = AAZStrType() properties.destination = AAZObjectType() properties.enable_logging = AAZStrType( serialized_name="enableLogging", ) properties.etag = AAZStrType() properties.inbound_inspection_certificate = AAZStrType( serialized_name="inboundInspectionCertificate", ) properties.negate_destination = AAZStrType( serialized_name="negateDestination", ) properties.negate_source = AAZStrType( serialized_name="negateSource", ) properties.priority = AAZIntType( flags={"read_only": True}, ) properties.protocol = AAZStrType() properties.protocol_port_list = AAZListType( serialized_name="protocolPortList", ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", ) properties.rule_name = AAZStrType( serialized_name="ruleName", flags={"required": True}, ) properties.rule_state = AAZStrType( serialized_name="ruleState", ) properties.source = AAZObjectType() properties.tags = AAZListType() applications = cls._schema_on_200.properties.applications applications.Element = AAZStrType() category = cls._schema_on_200.properties.category category.feeds = AAZListType( flags={"required": True}, ) category.url_custom = AAZListType( serialized_name="urlCustom", flags={"required": True}, ) feeds = cls._schema_on_200.properties.category.feeds feeds.Element = AAZStrType() url_custom = cls._schema_on_200.properties.category.url_custom url_custom.Element = AAZStrType() destination = cls._schema_on_200.properties.destination destination.cidrs = AAZListType() destination.countries = AAZListType() destination.feeds = AAZListType() destination.fqdn_lists = AAZListType( serialized_name="fqdnLists", ) destination.prefix_lists = AAZListType( serialized_name="prefixLists", ) cidrs = cls._schema_on_200.properties.destination.cidrs cidrs.Element = AAZStrType() countries = cls._schema_on_200.properties.destination.countries countries.Element = AAZStrType() feeds = cls._schema_on_200.properties.destination.feeds feeds.Element = AAZStrType() fqdn_lists = cls._schema_on_200.properties.destination.fqdn_lists fqdn_lists.Element = AAZStrType() prefix_lists = cls._schema_on_200.properties.destination.prefix_lists prefix_lists.Element = AAZStrType() protocol_port_list = cls._schema_on_200.properties.protocol_port_list protocol_port_list.Element = AAZStrType() source = cls._schema_on_200.properties.source source.cidrs = AAZListType() source.countries = AAZListType() source.feeds = AAZListType() source.prefix_lists = AAZListType( serialized_name="prefixLists", ) cidrs = cls._schema_on_200.properties.source.cidrs cidrs.Element = AAZStrType() countries = cls._schema_on_200.properties.source.countries countries.Element = AAZStrType() feeds = cls._schema_on_200.properties.source.feeds feeds.Element = AAZStrType() prefix_lists = cls._schema_on_200.properties.source.prefix_lists prefix_lists.Element = AAZStrType() tags = cls._schema_on_200.properties.tags tags.Element = AAZObjectType() _element = cls._schema_on_200.properties.tags.Element _element.key = AAZStrType( flags={"required": True}, ) _element.value = AAZStrType( flags={"required": True}, ) system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class LocalRulesGet(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
17
0
25
3
23
0
1
0
1
0
0
0
8
0
9
9
248
34
214
41
197
0
111
34
101
2
1
1
11
10,411
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/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/local_rulestack/prefixlist/_create.py
azext_palo_alto_networks.aaz.latest.palo_alto.cloudngfw.local_rulestack.prefixlist._create.Create.PrefixListLocalRulestackCreateOrUpdate
class PrefixListLocalRulestackCreateOrUpdate(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/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}", **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( "localRulestackName", self.ctx.args.local_rulestack_name, required=True, ), **self.serialize_url_param( "name", self.ctx.args.name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-08-29", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Content-Type", "application/json", ), **self.serialize_header_param( "Accept", "application/json", ), } return parameters @property def content(self): _content_value, _builder = self.new_content_builder( self.ctx.args, typ=AAZObjectType, typ_kwargs={ "flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={ "flags": {"required": True, "client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop( "auditComment", AAZStrType, ".audit_comment") properties.set_prop("description", AAZStrType, ".description") properties.set_prop("etag", AAZStrType, ".etag") properties.set_prop("prefixList", AAZListType, ".prefix_list", typ_kwargs={ "flags": {"required": True}}) prefix_list = _builder.get(".properties.prefixList") if prefix_list is not None: prefix_list.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.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.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200_201.properties properties.audit_comment = AAZStrType( serialized_name="auditComment", ) properties.description = AAZStrType() properties.etag = AAZStrType() properties.prefix_list = AAZListType( serialized_name="prefixList", flags={"required": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", ) prefix_list = cls._schema_on_200_201.properties.prefix_list prefix_list.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", ) return cls._schema_on_200_201
class PrefixListLocalRulestackCreateOrUpdate(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
181
21
160
35
141
0
68
26
57
3
1
1
15
10,412
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/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/local_rulestack/prefixlist/_delete.py
azext_palo_alto_networks.aaz.latest.palo_alto.cloudngfw.local_rulestack.prefixlist._delete.Delete.PrefixListLocalRulestackDelete
class PrefixListLocalRulestackDelete(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request( request=request, stream=False, **kwargs) if session.http_response.status_code in [202]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_200, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, self.on_204, self.on_error, lro_options={"final-state-via": "azure-async-operation"}, path_format_arguments=self.url_parameters, ) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}", **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( "localRulestackName", self.ctx.args.local_rulestack_name, required=True, ), **self.serialize_url_param( "name", self.ctx.args.name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-08-29", required=True, ), } return parameters def on_200(self, session): pass def on_204(self, session): pass
class PrefixListLocalRulestackDelete(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
10,413
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.PredefinedAcceleratorResourceCollection
class PredefinedAcceleratorResourceCollection(_serialization.Model): """PredefinedAcceleratorResourceCollection. :ivar value: :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorResource] :ivar next_link: :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorResource] :keyword next_link: :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class PredefinedAcceleratorResourceCollection(_serialization.Model): '''PredefinedAcceleratorResourceCollection. :ivar value: :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorResource] :ivar next_link: :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorResource] :keyword next_link: :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
0.87
1
3
0
0
1
2
1
16
31
3
15
11
7
13
6
5
4
1
2
0
1
10,414
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.PredefinedAcceleratorResource
class PredefinedAcceleratorResource(ProxyResource): """Predefined accelerator resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Predefined accelerator properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorProperties :ivar sku: Sku of the predefined accelerator resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, "sku": {"key": "sku", "type": "Sku"}, } def __init__( self, *, properties: Optional["_models.PredefinedAcceleratorProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: """ :keyword properties: Predefined accelerator properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorProperties :keyword sku: Sku of the predefined accelerator resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ super().__init__(**kwargs) self.properties = properties self.sku = sku
class PredefinedAcceleratorResource(ProxyResource): '''Predefined accelerator resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Predefined accelerator properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorProperties :ivar sku: Sku of the predefined accelerator resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' def __init__( self, *, properties: Optional["_models.PredefinedAcceleratorProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: ''' :keyword properties: Predefined accelerator properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorProperties :keyword sku: Sku of the predefined accelerator resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' pass
2
2
17
0
10
7
1
0.88
1
2
0
0
1
2
1
17
52
5
25
12
17
22
7
6
5
1
4
0
1
10,415
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.PredefinedAcceleratorProperties
class PredefinedAcceleratorProperties(_serialization.Model): """Predefined accelerator properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorProvisioningState :ivar display_name: :vartype display_name: str :ivar description: :vartype description: str :ivar icon_url: :vartype icon_url: str :ivar accelerator_tags: :vartype accelerator_tags: list[str] :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". :vartype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorState """ _validation = { "provisioning_state": {"readonly": True}, "display_name": {"readonly": True}, "description": {"readonly": True}, "icon_url": {"readonly": True}, "accelerator_tags": {"readonly": True}, } _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "display_name": {"key": "displayName", "type": "str"}, "description": {"key": "description", "type": "str"}, "icon_url": {"key": "iconUrl", "type": "str"}, "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, "state": {"key": "state", "type": "str"}, } def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: """ :keyword state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". :paramtype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorState """ super().__init__(**kwargs) self.provisioning_state = None self.display_name = None self.description = None self.icon_url = None self.accelerator_tags = None self.state = state
class PredefinedAcceleratorProperties(_serialization.Model): '''Predefined accelerator properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorProvisioningState :ivar display_name: :vartype display_name: str :ivar description: :vartype description: str :ivar icon_url: :vartype icon_url: str :ivar accelerator_tags: :vartype accelerator_tags: list[str] :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". :vartype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorState ''' def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: ''' :keyword state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". :paramtype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.PredefinedAcceleratorState ''' pass
2
2
13
0
8
5
1
0.92
1
3
0
0
1
6
1
16
51
5
24
10
22
22
11
10
9
1
2
0
1
10,416
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.OperationProperties
class OperationProperties(_serialization.Model): """Extra Operation properties. :ivar service_specification: Service specifications of the operation. :vartype service_specification: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceSpecification """ _attribute_map = { "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, } def __init__( self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any ) -> None: """ :keyword service_specification: Service specifications of the operation. :paramtype service_specification: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceSpecification """ super().__init__(**kwargs) self.service_specification = service_specification
class OperationProperties(_serialization.Model): '''Extra Operation properties. :ivar service_specification: Service specifications of the operation. :vartype service_specification: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceSpecification ''' def __init__( self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any ) -> None: ''' :keyword service_specification: Service specifications of the operation. :paramtype service_specification: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceSpecification ''' pass
2
2
10
0
5
5
1
1
1
2
0
0
1
1
1
16
21
3
9
6
5
9
5
4
3
1
2
0
1
10,417
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.OperationDetail
class OperationDetail(_serialization.Model): """Operation detail payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar name: Name of the operation. :vartype name: str :ivar is_data_action: Indicates whether the operation is a data action. :vartype is_data_action: bool :ivar display: Display of the operation. :vartype display: ~azure.mgmt.appplatform.v2023_12_01.models.OperationDisplay :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. "Internal" :vartype action_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ActionType :ivar origin: Origin of the operation. :vartype origin: str :ivar properties: Properties of the operation. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.OperationProperties """ _validation = { "action_type": {"readonly": True}, } _attribute_map = { "name": {"key": "name", "type": "str"}, "is_data_action": {"key": "isDataAction", "type": "bool"}, "display": {"key": "display", "type": "OperationDisplay"}, "action_type": {"key": "actionType", "type": "str"}, "origin": {"key": "origin", "type": "str"}, "properties": {"key": "properties", "type": "OperationProperties"}, } def __init__( self, *, name: Optional[str] = None, is_data_action: Optional[bool] = None, display: Optional["_models.OperationDisplay"] = None, origin: Optional[str] = None, properties: Optional["_models.OperationProperties"] = None, **kwargs: Any ) -> None: """ :keyword name: Name of the operation. :paramtype name: str :keyword is_data_action: Indicates whether the operation is a data action. :paramtype is_data_action: bool :keyword display: Display of the operation. :paramtype display: ~azure.mgmt.appplatform.v2023_12_01.models.OperationDisplay :keyword origin: Origin of the operation. :paramtype origin: str :keyword properties: Properties of the operation. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.OperationProperties """ super().__init__(**kwargs) self.name = name self.is_data_action = is_data_action self.display = display self.action_type = None self.origin = origin self.properties = properties
class OperationDetail(_serialization.Model): '''Operation detail payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar name: Name of the operation. :vartype name: str :ivar is_data_action: Indicates whether the operation is a data action. :vartype is_data_action: bool :ivar display: Display of the operation. :vartype display: ~azure.mgmt.appplatform.v2023_12_01.models.OperationDisplay :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. "Internal" :vartype action_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ActionType :ivar origin: Origin of the operation. :vartype origin: str :ivar properties: Properties of the operation. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.OperationProperties ''' def __init__( self, *, name: Optional[str] = None, is_data_action: Optional[bool] = None, display: Optional["_models.OperationDisplay"] = None, origin: Optional[str] = None, properties: Optional["_models.OperationProperties"] = None, **kwargs: Any ) -> None: ''' :keyword name: Name of the operation. :paramtype name: str :keyword is_data_action: Indicates whether the operation is a data action. :paramtype is_data_action: bool :keyword display: Display of the operation. :paramtype display: ~azure.mgmt.appplatform.v2023_12_01.models.OperationDisplay :keyword origin: Origin of the operation. :paramtype origin: str :keyword properties: Properties of the operation. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.OperationProperties ''' pass
2
2
29
0
17
12
1
0.97
1
4
0
0
1
6
1
16
62
5
29
19
18
28
11
10
9
1
2
0
1
10,418
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.NetworkProfile
class NetworkProfile(_serialization.Model): """Service network profile payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime. :vartype service_runtime_subnet_id: str :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps. :vartype app_subnet_id: str :ivar service_cidr: Azure Spring Apps service reserved CIDR. :vartype service_cidr: str :ivar service_runtime_network_resource_group: Name of the resource group containing network resources of Azure Spring Apps Service Runtime. :vartype service_runtime_network_resource_group: str :ivar app_network_resource_group: Name of the resource group containing network resources for customer apps in Azure Spring Apps. :vartype app_network_resource_group: str :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. :vartype outbound_i_ps: ~azure.mgmt.appplatform.v2023_12_01.models.NetworkProfileOutboundIPs :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. :vartype required_traffics: list[~azure.mgmt.appplatform.v2023_12_01.models.RequiredTraffic] :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. :vartype ingress_config: ~azure.mgmt.appplatform.v2023_12_01.models.IngressConfig :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. :vartype outbound_type: str """ _validation = { "outbound_i_ps": {"readonly": True}, "required_traffics": {"readonly": True}, } _attribute_map = { "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, "app_subnet_id": {"key": "appSubnetId", "type": "str"}, "service_cidr": {"key": "serviceCidr", "type": "str"}, "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, "outbound_type": {"key": "outboundType", "type": "str"}, } def __init__( self, *, service_runtime_subnet_id: Optional[str] = None, app_subnet_id: Optional[str] = None, service_cidr: Optional[str] = None, service_runtime_network_resource_group: Optional[str] = None, app_network_resource_group: Optional[str] = None, ingress_config: Optional["_models.IngressConfig"] = None, outbound_type: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime. :paramtype service_runtime_subnet_id: str :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps. :paramtype app_subnet_id: str :keyword service_cidr: Azure Spring Apps service reserved CIDR. :paramtype service_cidr: str :keyword service_runtime_network_resource_group: Name of the resource group containing network resources of Azure Spring Apps Service Runtime. :paramtype service_runtime_network_resource_group: str :keyword app_network_resource_group: Name of the resource group containing network resources for customer apps in Azure Spring Apps. :paramtype app_network_resource_group: str :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_12_01.models.IngressConfig :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. :paramtype outbound_type: str """ super().__init__(**kwargs) self.service_runtime_subnet_id = service_runtime_subnet_id self.app_subnet_id = app_subnet_id self.service_cidr = service_cidr self.service_runtime_network_resource_group = service_runtime_network_resource_group self.app_network_resource_group = app_network_resource_group self.outbound_i_ps = None self.required_traffics = None self.ingress_config = ingress_config self.outbound_type = outbound_type
class NetworkProfile(_serialization.Model): '''Service network profile payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime. :vartype service_runtime_subnet_id: str :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps. :vartype app_subnet_id: str :ivar service_cidr: Azure Spring Apps service reserved CIDR. :vartype service_cidr: str :ivar service_runtime_network_resource_group: Name of the resource group containing network resources of Azure Spring Apps Service Runtime. :vartype service_runtime_network_resource_group: str :ivar app_network_resource_group: Name of the resource group containing network resources for customer apps in Azure Spring Apps. :vartype app_network_resource_group: str :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. :vartype outbound_i_ps: ~azure.mgmt.appplatform.v2023_12_01.models.NetworkProfileOutboundIPs :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. :vartype required_traffics: list[~azure.mgmt.appplatform.v2023_12_01.models.RequiredTraffic] :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. :vartype ingress_config: ~azure.mgmt.appplatform.v2023_12_01.models.IngressConfig :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. :vartype outbound_type: str ''' def __init__( self, *, service_runtime_subnet_id: Optional[str] = None, app_subnet_id: Optional[str] = None, service_cidr: Optional[str] = None, service_runtime_network_resource_group: Optional[str] = None, app_network_resource_group: Optional[str] = None, ingress_config: Optional["_models.IngressConfig"] = None, outbound_type: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime. :paramtype service_runtime_subnet_id: str :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps. :paramtype app_subnet_id: str :keyword service_cidr: Azure Spring Apps service reserved CIDR. :paramtype service_cidr: str :keyword service_runtime_network_resource_group: Name of the resource group containing network resources of Azure Spring Apps Service Runtime. :paramtype service_runtime_network_resource_group: str :keyword app_network_resource_group: Name of the resource group containing network resources for customer apps in Azure Spring Apps. :paramtype app_network_resource_group: str :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_12_01.models.IngressConfig :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. :paramtype outbound_type: str ''' pass
2
2
42
0
22
20
1
1.18
1
3
0
0
1
9
1
16
88
5
38
24
25
45
14
13
12
1
2
0
1
10,419
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.MonitoringSettingResource
class MonitoringSettingResource(ProxyResource): """Monitoring Setting resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the Monitoring Setting resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.MonitoringSettingProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, } def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Properties of the Monitoring Setting resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.MonitoringSettingProperties """ super().__init__(**kwargs) self.properties = properties
class MonitoringSettingResource(ProxyResource): '''Monitoring Setting resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the Monitoring Setting resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.MonitoringSettingProperties ''' def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: Properties of the Monitoring Setting resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.MonitoringSettingProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
10,420
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.MonitoringSettingProperties
class MonitoringSettingProperties(_serialization.Model): """Monitoring Setting properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", "Failed", "Succeeded", and "Updating". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.MonitoringSettingState :ivar error: Error when apply Monitoring Setting changes. :vartype error: ~azure.mgmt.appplatform.v2023_12_01.models.Error :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not. :vartype trace_enabled: bool :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings. :vartype app_insights_instrumentation_key: str :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]. :vartype app_insights_sampling_rate: float :ivar app_insights_agent_versions: Indicates the versions of application insight agent. :vartype app_insights_agent_versions: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationInsightsAgentVersions """ _validation = { "provisioning_state": {"readonly": True}, "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, } _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "error": {"key": "error", "type": "Error"}, "trace_enabled": {"key": "traceEnabled", "type": "bool"}, "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, } def __init__( self, *, error: Optional["_models.Error"] = None, trace_enabled: Optional[bool] = None, app_insights_instrumentation_key: Optional[str] = None, app_insights_sampling_rate: Optional[float] = None, app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, **kwargs: Any ) -> None: """ :keyword error: Error when apply Monitoring Setting changes. :paramtype error: ~azure.mgmt.appplatform.v2023_12_01.models.Error :keyword trace_enabled: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not. :paramtype trace_enabled: bool :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings. :paramtype app_insights_instrumentation_key: str :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]. :paramtype app_insights_sampling_rate: float :keyword app_insights_agent_versions: Indicates the versions of application insight agent. :paramtype app_insights_agent_versions: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationInsightsAgentVersions """ super().__init__(**kwargs) self.provisioning_state = None self.error = error self.trace_enabled = trace_enabled self.app_insights_instrumentation_key = app_insights_instrumentation_key self.app_insights_sampling_rate = app_insights_sampling_rate self.app_insights_agent_versions = app_insights_agent_versions
class MonitoringSettingProperties(_serialization.Model): '''Monitoring Setting properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", "Failed", "Succeeded", and "Updating". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.MonitoringSettingState :ivar error: Error when apply Monitoring Setting changes. :vartype error: ~azure.mgmt.appplatform.v2023_12_01.models.Error :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not. :vartype trace_enabled: bool :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings. :vartype app_insights_instrumentation_key: str :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]. :vartype app_insights_sampling_rate: float :ivar app_insights_agent_versions: Indicates the versions of application insight agent. :vartype app_insights_agent_versions: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationInsightsAgentVersions ''' def __init__( self, *, error: Optional["_models.Error"] = None, trace_enabled: Optional[bool] = None, app_insights_instrumentation_key: Optional[str] = None, app_insights_sampling_rate: Optional[float] = None, app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, **kwargs: Any ) -> None: ''' :keyword error: Error when apply Monitoring Setting changes. :paramtype error: ~azure.mgmt.appplatform.v2023_12_01.models.Error :keyword trace_enabled: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not. :paramtype trace_enabled: bool :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings. :paramtype app_insights_instrumentation_key: str :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]. :paramtype app_insights_sampling_rate: float :keyword app_insights_agent_versions: Indicates the versions of application insight agent. :paramtype app_insights_agent_versions: ~azure.mgmt.appplatform.v2023_12_01.models.ApplicationInsightsAgentVersions ''' pass
2
2
34
0
17
17
1
1.3
1
5
0
0
1
6
1
16
74
5
30
19
19
39
11
10
9
1
2
0
1
10,421
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.MetricSpecification
class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes """Specifications of the Metrics for Azure Monitoring. :ivar name: Name of the metric. :vartype name: str :ivar display_name: Localized friendly display name of the metric. :vartype display_name: str :ivar display_description: Localized friendly description of the metric. :vartype display_description: str :ivar unit: Unit that makes sense for the metric. :vartype unit: str :ivar category: Name of the metric category that the metric belongs to. A metric can only belong to a single category. :vartype category: str :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. :vartype aggregation_type: str :ivar supported_aggregation_types: Supported aggregation types. :vartype supported_aggregation_types: list[str] :ivar supported_time_grain_types: Supported time grain types. :vartype supported_time_grain_types: list[str] :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. :vartype fill_gap_with_zero: bool :ivar dimensions: Dimensions of the metric. :vartype dimensions: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricDimension] :ivar source_mdm_namespace: Name of the MDM namespace. Optional. :vartype source_mdm_namespace: str """ _attribute_map = { "name": {"key": "name", "type": "str"}, "display_name": {"key": "displayName", "type": "str"}, "display_description": {"key": "displayDescription", "type": "str"}, "unit": {"key": "unit", "type": "str"}, "category": {"key": "category", "type": "str"}, "aggregation_type": {"key": "aggregationType", "type": "str"}, "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, } def __init__( self, *, name: Optional[str] = None, display_name: Optional[str] = None, display_description: Optional[str] = None, unit: Optional[str] = None, category: Optional[str] = None, aggregation_type: Optional[str] = None, supported_aggregation_types: Optional[List[str]] = None, supported_time_grain_types: Optional[List[str]] = None, fill_gap_with_zero: Optional[bool] = None, dimensions: Optional[List["_models.MetricDimension"]] = None, source_mdm_namespace: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword name: Name of the metric. :paramtype name: str :keyword display_name: Localized friendly display name of the metric. :paramtype display_name: str :keyword display_description: Localized friendly description of the metric. :paramtype display_description: str :keyword unit: Unit that makes sense for the metric. :paramtype unit: str :keyword category: Name of the metric category that the metric belongs to. A metric can only belong to a single category. :paramtype category: str :keyword aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. :paramtype aggregation_type: str :keyword supported_aggregation_types: Supported aggregation types. :paramtype supported_aggregation_types: list[str] :keyword supported_time_grain_types: Supported time grain types. :paramtype supported_time_grain_types: list[str] :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. :paramtype fill_gap_with_zero: bool :keyword dimensions: Dimensions of the metric. :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricDimension] :keyword source_mdm_namespace: Name of the MDM namespace. Optional. :paramtype source_mdm_namespace: str """ super().__init__(**kwargs) self.name = name self.display_name = display_name self.display_description = display_description self.unit = unit self.category = category self.aggregation_type = aggregation_type self.supported_aggregation_types = supported_aggregation_types self.supported_time_grain_types = supported_time_grain_types self.fill_gap_with_zero = fill_gap_with_zero self.dimensions = dimensions self.source_mdm_namespace = source_mdm_namespace
class MetricSpecification(_serialization.Model): '''Specifications of the Metrics for Azure Monitoring. :ivar name: Name of the metric. :vartype name: str :ivar display_name: Localized friendly display name of the metric. :vartype display_name: str :ivar display_description: Localized friendly description of the metric. :vartype display_description: str :ivar unit: Unit that makes sense for the metric. :vartype unit: str :ivar category: Name of the metric category that the metric belongs to. A metric can only belong to a single category. :vartype category: str :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. :vartype aggregation_type: str :ivar supported_aggregation_types: Supported aggregation types. :vartype supported_aggregation_types: list[str] :ivar supported_time_grain_types: Supported time grain types. :vartype supported_time_grain_types: list[str] :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. :vartype fill_gap_with_zero: bool :ivar dimensions: Dimensions of the metric. :vartype dimensions: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricDimension] :ivar source_mdm_namespace: Name of the MDM namespace. Optional. :vartype source_mdm_namespace: str ''' def __init__( self, *, name: Optional[str] = None, display_name: Optional[str] = None, display_description: Optional[str] = None, unit: Optional[str] = None, category: Optional[str] = None, aggregation_type: Optional[str] = None, supported_aggregation_types: Optional[List[str]] = None, supported_time_grain_types: Optional[List[str]] = None, fill_gap_with_zero: Optional[bool] = None, dimensions: Optional[List["_models.MetricDimension"]] = None, source_mdm_namespace: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword name: Name of the metric. :paramtype name: str :keyword display_name: Localized friendly display name of the metric. :paramtype display_name: str :keyword display_description: Localized friendly description of the metric. :paramtype display_description: str :keyword unit: Unit that makes sense for the metric. :paramtype unit: str :keyword category: Name of the metric category that the metric belongs to. A metric can only belong to a single category. :paramtype category: str :keyword aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. :paramtype aggregation_type: str :keyword supported_aggregation_types: Supported aggregation types. :paramtype supported_aggregation_types: list[str] :keyword supported_time_grain_types: Supported time grain types. :paramtype supported_time_grain_types: list[str] :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. :paramtype fill_gap_with_zero: bool :keyword dimensions: Dimensions of the metric. :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricDimension] :keyword source_mdm_namespace: Name of the MDM namespace. Optional. :paramtype source_mdm_namespace: str ''' pass
2
2
55
0
28
27
1
1.31
1
4
0
0
1
11
1
16
99
3
42
29
25
55
15
14
13
1
2
0
1
10,422
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ManagedIdentityProperties
class ManagedIdentityProperties(_serialization.Model): """Managed identity properties retrieved from ARM request headers. :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ManagedIdentityType :ivar principal_id: Principal Id of system-assigned managed identity. :vartype principal_id: str :ivar tenant_id: Tenant Id of system-assigned managed identity. :vartype tenant_id: str :ivar user_assigned_identities: Properties of user-assigned managed identities. :vartype user_assigned_identities: dict[str, ~azure.mgmt.appplatform.v2023_12_01.models.UserAssignedManagedIdentity] """ _attribute_map = { "type": {"key": "type", "type": "str"}, "principal_id": {"key": "principalId", "type": "str"}, "tenant_id": {"key": "tenantId", "type": "str"}, "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, } def __init__( self, *, type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, principal_id: Optional[str] = None, tenant_id: Optional[str] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, **kwargs: Any ) -> None: """ :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :paramtype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ManagedIdentityType :keyword principal_id: Principal Id of system-assigned managed identity. :paramtype principal_id: str :keyword tenant_id: Tenant Id of system-assigned managed identity. :paramtype tenant_id: str :keyword user_assigned_identities: Properties of user-assigned managed identities. :paramtype user_assigned_identities: dict[str, ~azure.mgmt.appplatform.v2023_12_01.models.UserAssignedManagedIdentity] """ super().__init__(**kwargs) self.type = type self.principal_id = principal_id self.tenant_id = tenant_id self.user_assigned_identities = user_assigned_identities
class ManagedIdentityProperties(_serialization.Model): '''Managed identity properties retrieved from ARM request headers. :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ManagedIdentityType :ivar principal_id: Principal Id of system-assigned managed identity. :vartype principal_id: str :ivar tenant_id: Tenant Id of system-assigned managed identity. :vartype tenant_id: str :ivar user_assigned_identities: Properties of user-assigned managed identities. :vartype user_assigned_identities: dict[str, ~azure.mgmt.appplatform.v2023_12_01.models.UserAssignedManagedIdentity] ''' def __init__( self, *, type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, principal_id: Optional[str] = None, tenant_id: Optional[str] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, **kwargs: Any ) -> None: ''' :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :paramtype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ManagedIdentityType :keyword principal_id: Principal Id of system-assigned managed identity. :paramtype principal_id: str :keyword tenant_id: Tenant Id of system-assigned managed identity. :paramtype tenant_id: str :keyword user_assigned_identities: Properties of user-assigned managed identities. :paramtype user_assigned_identities: dict[str, ~azure.mgmt.appplatform.v2023_12_01.models.UserAssignedManagedIdentity] ''' pass
2
2
26
0
14
12
1
1.14
1
3
0
0
1
4
1
16
48
3
21
15
11
24
8
7
6
1
2
0
1
10,423
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.KeyVaultCertificateProperties
class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes """Properties of certificate imported from key vault. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar type: The type of the certificate source. Required. :vartype type: str :ivar thumbprint: The thumbprint of certificate. :vartype thumbprint: str :ivar issuer: The issuer of certificate. :vartype issuer: str :ivar issued_date: The issue date of certificate. :vartype issued_date: str :ivar expiration_date: The expiration date of certificate. :vartype expiration_date: str :ivar activate_date: The activate date of certificate. :vartype activate_date: str :ivar subject_name: The subject name of certificate. :vartype subject_name: str :ivar dns_names: The domain list of certificate. :vartype dns_names: list[str] :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResourceProvisioningState :ivar vault_uri: The vault uri of user key vault. Required. :vartype vault_uri: str :ivar key_vault_cert_name: The certificate name of key vault. Required. :vartype key_vault_cert_name: str :ivar cert_version: The certificate version of key vault. :vartype cert_version: str :ivar exclude_private_key: Optional. If set to true, it will not import private key from key vault. :vartype exclude_private_key: bool :ivar auto_sync: Indicates whether to automatically synchronize certificate from key vault or not. Known values are: "Disabled" and "Enabled". :vartype auto_sync: str or ~azure.mgmt.appplatform.v2023_12_01.models.KeyVaultCertificateAutoSync """ _validation = { "type": {"required": True}, "thumbprint": {"readonly": True}, "issuer": {"readonly": True}, "issued_date": {"readonly": True}, "expiration_date": {"readonly": True}, "activate_date": {"readonly": True}, "subject_name": {"readonly": True}, "dns_names": {"readonly": True}, "provisioning_state": {"readonly": True}, "vault_uri": {"required": True}, "key_vault_cert_name": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "thumbprint": {"key": "thumbprint", "type": "str"}, "issuer": {"key": "issuer", "type": "str"}, "issued_date": {"key": "issuedDate", "type": "str"}, "expiration_date": {"key": "expirationDate", "type": "str"}, "activate_date": {"key": "activateDate", "type": "str"}, "subject_name": {"key": "subjectName", "type": "str"}, "dns_names": {"key": "dnsNames", "type": "[str]"}, "provisioning_state": {"key": "provisioningState", "type": "str"}, "vault_uri": {"key": "vaultUri", "type": "str"}, "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, "cert_version": {"key": "certVersion", "type": "str"}, "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, "auto_sync": {"key": "autoSync", "type": "str"}, } def __init__( self, *, vault_uri: str, key_vault_cert_name: str, cert_version: Optional[str] = None, exclude_private_key: bool = False, auto_sync: Union[str, "_models.KeyVaultCertificateAutoSync"] = "Disabled", **kwargs: Any ) -> None: """ :keyword vault_uri: The vault uri of user key vault. Required. :paramtype vault_uri: str :keyword key_vault_cert_name: The certificate name of key vault. Required. :paramtype key_vault_cert_name: str :keyword cert_version: The certificate version of key vault. :paramtype cert_version: str :keyword exclude_private_key: Optional. If set to true, it will not import private key from key vault. :paramtype exclude_private_key: bool :keyword auto_sync: Indicates whether to automatically synchronize certificate from key vault or not. Known values are: "Disabled" and "Enabled". :paramtype auto_sync: str or ~azure.mgmt.appplatform.v2023_12_01.models.KeyVaultCertificateAutoSync """ super().__init__(**kwargs) self.type: str = "KeyVaultCertificate" self.vault_uri = vault_uri self.key_vault_cert_name = key_vault_cert_name self.cert_version = cert_version self.exclude_private_key = exclude_private_key self.auto_sync = auto_sync
class KeyVaultCertificateProperties(CertificateProperties): '''Properties of certificate imported from key vault. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar type: The type of the certificate source. Required. :vartype type: str :ivar thumbprint: The thumbprint of certificate. :vartype thumbprint: str :ivar issuer: The issuer of certificate. :vartype issuer: str :ivar issued_date: The issue date of certificate. :vartype issued_date: str :ivar expiration_date: The expiration date of certificate. :vartype expiration_date: str :ivar activate_date: The activate date of certificate. :vartype activate_date: str :ivar subject_name: The subject name of certificate. :vartype subject_name: str :ivar dns_names: The domain list of certificate. :vartype dns_names: list[str] :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResourceProvisioningState :ivar vault_uri: The vault uri of user key vault. Required. :vartype vault_uri: str :ivar key_vault_cert_name: The certificate name of key vault. Required. :vartype key_vault_cert_name: str :ivar cert_version: The certificate version of key vault. :vartype cert_version: str :ivar exclude_private_key: Optional. If set to true, it will not import private key from key vault. :vartype exclude_private_key: bool :ivar auto_sync: Indicates whether to automatically synchronize certificate from key vault or not. Known values are: "Disabled" and "Enabled". :vartype auto_sync: str or ~azure.mgmt.appplatform.v2023_12_01.models.KeyVaultCertificateAutoSync ''' def __init__( self, *, vault_uri: str, key_vault_cert_name: str, cert_version: Optional[str] = None, exclude_private_key: bool = False, auto_sync: Union[str, "_models.KeyVaultCertificateAutoSync"] = "Disabled", **kwargs: Any ) -> None: ''' :keyword vault_uri: The vault uri of user key vault. Required. :paramtype vault_uri: str :keyword key_vault_cert_name: The certificate name of key vault. Required. :paramtype key_vault_cert_name: str :keyword cert_version: The certificate version of key vault. :paramtype cert_version: str :keyword exclude_private_key: Optional. If set to true, it will not import private key from key vault. :paramtype exclude_private_key: bool :keyword auto_sync: Indicates whether to automatically synchronize certificate from key vault or not. Known values are: "Disabled" and "Enabled". :paramtype auto_sync: str or ~azure.mgmt.appplatform.v2023_12_01.models.KeyVaultCertificateAutoSync ''' pass
2
2
32
0
17
15
1
1.13
1
4
0
0
1
6
1
17
105
6
47
19
36
53
11
10
9
1
3
0
1
10,424
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.IngressSettings
class IngressSettings(_serialization.Model): """App ingress settings payload. :ivar read_timeout_in_seconds: Ingress read time out in seconds. :vartype read_timeout_in_seconds: int :ivar send_timeout_in_seconds: Ingress send time out in seconds. :vartype send_timeout_in_seconds: int :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. Known values are: "Cookie" and "None". :vartype session_affinity: str or ~azure.mgmt.appplatform.v2023_12_01.models.SessionAffinity :ivar session_cookie_max_age: Time in seconds until the cookie expires. :vartype session_cookie_max_age: int :ivar backend_protocol: How ingress should communicate with this app backend service. Known values are: "GRPC" and "Default". :vartype backend_protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.BackendProtocol :ivar client_auth: Client-Certification Authentication. :vartype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.IngressSettingsClientAuth """ _attribute_map = { "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, "session_affinity": {"key": "sessionAffinity", "type": "str"}, "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, "backend_protocol": {"key": "backendProtocol", "type": "str"}, "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, } def __init__( self, *, read_timeout_in_seconds: Optional[int] = None, send_timeout_in_seconds: Optional[int] = None, session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, session_cookie_max_age: Optional[int] = None, backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, client_auth: Optional["_models.IngressSettingsClientAuth"] = None, **kwargs: Any ) -> None: """ :keyword read_timeout_in_seconds: Ingress read time out in seconds. :paramtype read_timeout_in_seconds: int :keyword send_timeout_in_seconds: Ingress send time out in seconds. :paramtype send_timeout_in_seconds: int :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. Known values are: "Cookie" and "None". :paramtype session_affinity: str or ~azure.mgmt.appplatform.v2023_12_01.models.SessionAffinity :keyword session_cookie_max_age: Time in seconds until the cookie expires. :paramtype session_cookie_max_age: int :keyword backend_protocol: How ingress should communicate with this app backend service. Known values are: "GRPC" and "Default". :paramtype backend_protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.BackendProtocol :keyword client_auth: Client-Certification Authentication. :paramtype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.IngressSettingsClientAuth """ super().__init__(**kwargs) self.read_timeout_in_seconds = read_timeout_in_seconds self.send_timeout_in_seconds = send_timeout_in_seconds self.session_affinity = session_affinity self.session_cookie_max_age = session_cookie_max_age self.backend_protocol = backend_protocol self.client_auth = client_auth
class IngressSettings(_serialization.Model): '''App ingress settings payload. :ivar read_timeout_in_seconds: Ingress read time out in seconds. :vartype read_timeout_in_seconds: int :ivar send_timeout_in_seconds: Ingress send time out in seconds. :vartype send_timeout_in_seconds: int :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. Known values are: "Cookie" and "None". :vartype session_affinity: str or ~azure.mgmt.appplatform.v2023_12_01.models.SessionAffinity :ivar session_cookie_max_age: Time in seconds until the cookie expires. :vartype session_cookie_max_age: int :ivar backend_protocol: How ingress should communicate with this app backend service. Known values are: "GRPC" and "Default". :vartype backend_protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.BackendProtocol :ivar client_auth: Client-Certification Authentication. :vartype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.IngressSettingsClientAuth ''' def __init__( self, *, read_timeout_in_seconds: Optional[int] = None, send_timeout_in_seconds: Optional[int] = None, session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, session_cookie_max_age: Optional[int] = None, backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, client_auth: Optional["_models.IngressSettingsClientAuth"] = None, **kwargs: Any ) -> None: ''' :keyword read_timeout_in_seconds: Ingress read time out in seconds. :paramtype read_timeout_in_seconds: int :keyword send_timeout_in_seconds: Ingress send time out in seconds. :paramtype send_timeout_in_seconds: int :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. Known values are: "Cookie" and "None". :paramtype session_affinity: str or ~azure.mgmt.appplatform.v2023_12_01.models.SessionAffinity :keyword session_cookie_max_age: Time in seconds until the cookie expires. :paramtype session_cookie_max_age: int :keyword backend_protocol: How ingress should communicate with this app backend service. Known values are: "GRPC" and "Default". :paramtype backend_protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.BackendProtocol :keyword client_auth: Client-Certification Authentication. :paramtype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.IngressSettingsClientAuth ''' pass
2
2
34
0
18
16
1
1.19
1
4
0
0
1
6
1
16
62
3
27
19
15
32
10
9
8
1
2
0
1
10,425
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.HTTPGetAction
class HTTPGetAction(ProbeAction): """HTTPGetAction describes an action based on HTTP Get requests. All required parameters must be populated in order to send to server. :ivar type: The type of the action to take to perform the health check. Required. Known values are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ProbeActionType :ivar path: Path to access on the HTTP server. :vartype path: str :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: * ``"HTTP"`` means that the scheme used will be http:// * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and "HTTPS". :vartype scheme: str or ~azure.mgmt.appplatform.v2023_12_01.models.HTTPSchemeType """ _validation = { "type": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "path": {"key": "path", "type": "str"}, "scheme": {"key": "scheme", "type": "str"}, } def __init__( self, *, path: Optional[str] = None, scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, **kwargs: Any ) -> None: """ :keyword path: Path to access on the HTTP server. :paramtype path: str :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: * ``"HTTP"`` means that the scheme used will be http:// * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and "HTTPS". :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_12_01.models.HTTPSchemeType """ super().__init__(**kwargs) self.type: str = "HTTPGetAction" self.path = path self.scheme = scheme
class HTTPGetAction(ProbeAction): '''HTTPGetAction describes an action based on HTTP Get requests. All required parameters must be populated in order to send to server. :ivar type: The type of the action to take to perform the health check. Required. Known values are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ProbeActionType :ivar path: Path to access on the HTTP server. :vartype path: str :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: * ``"HTTP"`` means that the scheme used will be http:// * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and "HTTPS". :vartype scheme: str or ~azure.mgmt.appplatform.v2023_12_01.models.HTTPSchemeType ''' def __init__( self, *, path: Optional[str] = None, scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, **kwargs: Any ) -> None: ''' :keyword path: Path to access on the HTTP server. :paramtype path: str :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: * ``"HTTP"`` means that the scheme used will be http:// * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and "HTTPS". :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_12_01.models.HTTPSchemeType ''' pass
2
2
24
3
11
10
1
1.2
1
3
0
0
1
3
1
17
55
11
20
13
12
24
8
7
6
1
3
0
1
10,426
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayRouteConfigResourceCollection
class GatewayRouteConfigResourceCollection(_serialization.Model): """Object that includes an array of Spring Cloud Gateway route config resources and a possible link for next set. :ivar value: Collection of Spring Cloud Gateway route config resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.GatewayRouteConfigResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of Spring Cloud Gateway route config resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class GatewayRouteConfigResourceCollection(_serialization.Model): '''Object that includes an array of Spring Cloud Gateway route config resources and a possible link for next set. :ivar value: Collection of Spring Cloud Gateway route config resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.GatewayRouteConfigResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of Spring Cloud Gateway route config resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
1
1
3
0
0
1
2
1
16
33
3
15
11
7
15
6
5
4
1
2
0
1
10,427
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayRouteConfigResource
class GatewayRouteConfigResource(ProxyResource): """Spring Cloud Gateway route config resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: API route config of the Spring Cloud Gateway. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, } def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: API route config of the Spring Cloud Gateway. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProperties """ super().__init__(**kwargs) self.properties = properties
class GatewayRouteConfigResource(ProxyResource): '''Spring Cloud Gateway route config resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: API route config of the Spring Cloud Gateway. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProperties ''' def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: API route config of the Spring Cloud Gateway. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
10,428
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayRouteConfigProperties
class GatewayRouteConfigProperties(_serialization.Model): """API route config of the Spring Cloud Gateway. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProvisioningState :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route defines ``uri``. :vartype app_resource_id: str :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. :vartype open_api: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigOpenApiProperties :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and "HTTPS". :vartype protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProtocol :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. :vartype routes: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiRoute] :ivar sso_enabled: Enable Single Sign-On in app level. :vartype sso_enabled: bool :ivar predicates: A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request. :vartype predicates: list[str] :ivar filters: To modify the request before sending it to the target endpoint, or the received response in app level. :vartype filters: list[str] """ _validation = { "provisioning_state": {"readonly": True}, } _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "app_resource_id": {"key": "appResourceId", "type": "str"}, "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, "protocol": {"key": "protocol", "type": "str"}, "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, "predicates": {"key": "predicates", "type": "[str]"}, "filters": {"key": "filters", "type": "[str]"}, } def __init__( self, *, app_resource_id: Optional[str] = None, open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", routes: Optional[List["_models.GatewayApiRoute"]] = None, sso_enabled: Optional[bool] = None, predicates: Optional[List[str]] = None, filters: Optional[List[str]] = None, **kwargs: Any ) -> None: """ :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route defines ``uri``. :paramtype app_resource_id: str :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. :paramtype open_api: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigOpenApiProperties :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and "HTTPS". :paramtype protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProtocol :keyword routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. :paramtype routes: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiRoute] :keyword sso_enabled: Enable Single Sign-On in app level. :paramtype sso_enabled: bool :keyword predicates: A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request. :paramtype predicates: list[str] :keyword filters: To modify the request before sending it to the target endpoint, or the received response in app level. :paramtype filters: list[str] """ super().__init__(**kwargs) self.provisioning_state = None self.app_resource_id = app_resource_id self.open_api = open_api self.protocol = protocol self.routes = routes self.sso_enabled = sso_enabled self.predicates = predicates self.filters = filters
class GatewayRouteConfigProperties(_serialization.Model): '''API route config of the Spring Cloud Gateway. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProvisioningState :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route defines ``uri``. :vartype app_resource_id: str :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. :vartype open_api: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigOpenApiProperties :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and "HTTPS". :vartype protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProtocol :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri`` , ``ssoEnabled``\ , ``predicates``\ , ``filters``. :vartype routes: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiRoute] :ivar sso_enabled: Enable Single Sign-On in app level. :vartype sso_enabled: bool :ivar predicates: A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request. :vartype predicates: list[str] :ivar filters: To modify the request before sending it to the target endpoint, or the received response in app level. :vartype filters: list[str] ''' def __init__( self, *, app_resource_id: Optional[str] = None, open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", routes: Optional[List["_models.GatewayApiRoute"]] = None, sso_enabled: Optional[bool] = None, predicates: Optional[List[str]] = None, filters: Optional[List[str]] = None, **kwargs: Any ) -> None: ''' :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route defines ``uri``. :paramtype app_resource_id: str :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. :paramtype open_api: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigOpenApiProperties :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and "HTTPS". :paramtype protocol: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayRouteConfigProtocol :keyword routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. :paramtype routes: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiRoute] :keyword sso_enabled: Enable Single Sign-On in app level. :paramtype sso_enabled: bool :keyword predicates: A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request. :paramtype predicates: list[str] :keyword filters: To modify the request before sending it to the target endpoint, or the received response in app level. :paramtype filters: list[str] ''' pass
2
2
46
0
21
25
1
1.54
1
4
0
0
1
8
1
16
94
5
35
23
22
54
13
12
11
1
2
0
1
10,429
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayResourceRequests
class GatewayResourceRequests(_serialization.Model): """Resource request payload of Spring Cloud Gateway. :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. :vartype cpu: str :ivar memory: Memory allocated to each Spring Cloud Gateway instance. :vartype memory: str """ _attribute_map = { "cpu": {"key": "cpu", "type": "str"}, "memory": {"key": "memory", "type": "str"}, } def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: """ :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. :paramtype cpu: str :keyword memory: Memory allocated to each Spring Cloud Gateway instance. :paramtype memory: str """ super().__init__(**kwargs) self.cpu = cpu self.memory = memory
class GatewayResourceRequests(_serialization.Model): '''Resource request payload of Spring Cloud Gateway. :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. :vartype cpu: str :ivar memory: Memory allocated to each Spring Cloud Gateway instance. :vartype memory: str ''' def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: ''' :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. :paramtype cpu: str :keyword memory: Memory allocated to each Spring Cloud Gateway instance. :paramtype memory: str ''' pass
2
2
10
0
4
6
1
1.33
1
3
0
0
1
2
1
16
24
3
9
5
7
12
6
5
4
1
2
0
1
10,430
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.Probe
class Probe(_serialization.Model): """Probe describes a health check to be performed against an App Instance to determine whether it is alive or ready to receive traffic. All required parameters must be populated in order to send to server. :ivar probe_action: The action of the probe. :vartype probe_action: ~azure.mgmt.appplatform.v2023_12_01.models.ProbeAction :ivar disable_probe: Indicate whether the probe is disabled. Required. :vartype disable_probe: bool :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype initial_delay_seconds: int :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. :vartype period_seconds: int :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. :vartype timeout_seconds: int :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1. :vartype failure_threshold: int :ivar success_threshold: Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. :vartype success_threshold: int """ _validation = { "disable_probe": {"required": True}, } _attribute_map = { "probe_action": {"key": "probeAction", "type": "ProbeAction"}, "disable_probe": {"key": "disableProbe", "type": "bool"}, "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, "period_seconds": {"key": "periodSeconds", "type": "int"}, "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, "failure_threshold": {"key": "failureThreshold", "type": "int"}, "success_threshold": {"key": "successThreshold", "type": "int"}, } def __init__( self, *, disable_probe: bool = False, probe_action: Optional["_models.ProbeAction"] = None, initial_delay_seconds: Optional[int] = None, period_seconds: Optional[int] = None, timeout_seconds: Optional[int] = None, failure_threshold: Optional[int] = None, success_threshold: Optional[int] = None, **kwargs: Any ) -> None: """ :keyword probe_action: The action of the probe. :paramtype probe_action: ~azure.mgmt.appplatform.v2023_12_01.models.ProbeAction :keyword disable_probe: Indicate whether the probe is disabled. Required. :paramtype disable_probe: bool :keyword initial_delay_seconds: Number of seconds after the App Instance has started before probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype initial_delay_seconds: int :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. :paramtype period_seconds: int :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. :paramtype timeout_seconds: int :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1. :paramtype failure_threshold: int :keyword success_threshold: Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. :paramtype success_threshold: int """ super().__init__(**kwargs) self.probe_action = probe_action self.disable_probe = disable_probe self.initial_delay_seconds = initial_delay_seconds self.period_seconds = period_seconds self.timeout_seconds = timeout_seconds self.failure_threshold = failure_threshold self.success_threshold = success_threshold
class Probe(_serialization.Model): '''Probe describes a health check to be performed against an App Instance to determine whether it is alive or ready to receive traffic. All required parameters must be populated in order to send to server. :ivar probe_action: The action of the probe. :vartype probe_action: ~azure.mgmt.appplatform.v2023_12_01.models.ProbeAction :ivar disable_probe: Indicate whether the probe is disabled. Required. :vartype disable_probe: bool :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype initial_delay_seconds: int :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. :vartype period_seconds: int :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. :vartype timeout_seconds: int :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1. :vartype failure_threshold: int :ivar success_threshold: Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. :vartype success_threshold: int ''' def __init__( self, *, disable_probe: bool = False, probe_action: Optional["_models.ProbeAction"] = None, initial_delay_seconds: Optional[int] = None, period_seconds: Optional[int] = None, timeout_seconds: Optional[int] = None, failure_threshold: Optional[int] = None, success_threshold: Optional[int] = None, **kwargs: Any ) -> None: ''' :keyword probe_action: The action of the probe. :paramtype probe_action: ~azure.mgmt.appplatform.v2023_12_01.models.ProbeAction :keyword disable_probe: Indicate whether the probe is disabled. Required. :paramtype disable_probe: bool :keyword initial_delay_seconds: Number of seconds after the App Instance has started before probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype initial_delay_seconds: int :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. :paramtype period_seconds: int :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. :paramtype timeout_seconds: int :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1. :paramtype failure_threshold: int :keyword success_threshold: Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. :paramtype success_threshold: int ''' pass
2
2
41
0
20
21
1
1.3
1
4
0
0
1
7
1
16
81
5
33
22
20
43
12
11
10
1
2
0
1
10,431
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ProbeAction
class ProbeAction(_serialization.Model): """The action of the probe. You probably want to use the sub-classes and not this class directly. Known sub-classes are: ExecAction, HTTPGetAction, TCPSocketAction All required parameters must be populated in order to send to server. :ivar type: The type of the action to take to perform the health check. Required. Known values are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ProbeActionType """ _validation = { "type": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, } _subtype_map = { "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type: Optional[str] = None
class ProbeAction(_serialization.Model): '''The action of the probe. You probably want to use the sub-classes and not this class directly. Known sub-classes are: ExecAction, HTTPGetAction, TCPSocketAction All required parameters must be populated in order to send to server. :ivar type: The type of the action to take to perform the health check. Required. Known values are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ProbeActionType ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
4
0
3
1
1
0.69
1
3
0
3
1
1
1
16
29
7
13
6
11
9
7
6
5
1
2
0
1
10,432
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ProxyResource
class ProxyResource(Resource): """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData """
class ProxyResource(Resource): '''The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData '''
1
1
0
0
0
0
0
12
1
0
0
30
0
0
0
16
15
2
1
1
0
12
1
1
0
0
3
0
0
10,433
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.RegenerateTestKeyRequestPayload
class RegenerateTestKeyRequestPayload(_serialization.Model): """Regenerate test key request payload. All required parameters must be populated in order to send to server. :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". :vartype key_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.TestKeyType """ _validation = { "key_type": {"required": True}, } _attribute_map = { "key_type": {"key": "keyType", "type": "str"}, } def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: """ :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.TestKeyType """ super().__init__(**kwargs) self.key_type = key_type
class RegenerateTestKeyRequestPayload(_serialization.Model): '''Regenerate test key request payload. All required parameters must be populated in order to send to server. :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". :vartype key_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.TestKeyType ''' def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: ''' :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.TestKeyType ''' pass
2
2
7
0
3
4
1
0.9
1
3
0
0
1
1
1
16
24
5
10
5
8
9
6
5
4
1
2
0
1
10,434
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.StorageAccount
class StorageAccount(StorageProperties): """storage resource of type Azure Storage Account. All required parameters must be populated in order to send to server. :ivar storage_type: The type of the storage. Required. "StorageAccount" :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.StorageType :ivar account_name: The account name of the Azure Storage Account. Required. :vartype account_name: str :ivar account_key: The account key of the Azure Storage Account. Required. :vartype account_key: str """ _validation = { "storage_type": {"required": True}, "account_name": {"required": True}, "account_key": {"required": True}, } _attribute_map = { "storage_type": {"key": "storageType", "type": "str"}, "account_name": {"key": "accountName", "type": "str"}, "account_key": {"key": "accountKey", "type": "str"}, } def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: """ :keyword account_name: The account name of the Azure Storage Account. Required. :paramtype account_name: str :keyword account_key: The account key of the Azure Storage Account. Required. :paramtype account_key: str """ super().__init__(**kwargs) self.storage_type: str = "StorageAccount" self.account_name = account_name self.account_key = account_key
class StorageAccount(StorageProperties): '''storage resource of type Azure Storage Account. All required parameters must be populated in order to send to server. :ivar storage_type: The type of the storage. Required. "StorageAccount" :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.StorageType :ivar account_name: The account name of the Azure Storage Account. Required. :vartype account_name: str :ivar account_key: The account key of the Azure Storage Account. Required. :vartype account_key: str ''' def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: ''' :keyword account_name: The account name of the Azure Storage Account. Required. :paramtype account_name: str :keyword account_key: The account key of the Azure Storage Account. Required. :paramtype account_key: str ''' pass
2
2
11
0
5
6
1
0.94
1
3
0
0
1
3
1
17
36
5
16
7
14
15
8
7
6
1
3
0
1
10,435
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.SkuObject
class SkuObject(_serialization.Model): """Resource Sku object used for scaling out and scaling in. :ivar sku: Sku of the Spring Cloud Gateway resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ _attribute_map = { "sku": {"key": "sku", "type": "Sku"}, } def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: """ :keyword sku: Sku of the Spring Cloud Gateway resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ super().__init__(**kwargs) self.sku = sku
class SkuObject(_serialization.Model): '''Resource Sku object used for scaling out and scaling in. :ivar sku: Sku of the Spring Cloud Gateway resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: ''' :keyword sku: Sku of the Spring Cloud Gateway resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' pass
2
2
7
0
3
4
1
1.14
1
2
0
0
1
1
1
16
18
3
7
4
5
8
5
4
3
1
2
0
1
10,436
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.SkuCapacity
class SkuCapacity(_serialization.Model): """The SKU capacity. All required parameters must be populated in order to send to server. :ivar minimum: Gets or sets the minimum. Required. :vartype minimum: int :ivar maximum: Gets or sets the maximum. :vartype maximum: int :ivar default: Gets or sets the default. :vartype default: int :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and "Automatic". :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.SkuScaleType """ _validation = { "minimum": {"required": True}, } _attribute_map = { "minimum": {"key": "minimum", "type": "int"}, "maximum": {"key": "maximum", "type": "int"}, "default": {"key": "default", "type": "int"}, "scale_type": {"key": "scaleType", "type": "str"}, } def __init__( self, *, minimum: int, maximum: Optional[int] = None, default: Optional[int] = None, scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, **kwargs: Any ) -> None: """ :keyword minimum: Gets or sets the minimum. Required. :paramtype minimum: int :keyword maximum: Gets or sets the maximum. :paramtype maximum: int :keyword default: Gets or sets the default. :paramtype default: int :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and "Automatic". :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.SkuScaleType """ super().__init__(**kwargs) self.minimum = minimum self.maximum = maximum self.default = default self.scale_type = scale_type
class SkuCapacity(_serialization.Model): '''The SKU capacity. All required parameters must be populated in order to send to server. :ivar minimum: Gets or sets the minimum. Required. :vartype minimum: int :ivar maximum: Gets or sets the maximum. :vartype maximum: int :ivar default: Gets or sets the default. :vartype default: int :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and "Automatic". :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.SkuScaleType ''' def __init__( self, *, minimum: int, maximum: Optional[int] = None, default: Optional[int] = None, scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, **kwargs: Any ) -> None: ''' :keyword minimum: Gets or sets the minimum. Required. :paramtype minimum: int :keyword maximum: Gets or sets the maximum. :paramtype maximum: int :keyword default: Gets or sets the default. :paramtype default: int :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and "Automatic". :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.SkuScaleType ''' pass
2
2
25
0
14
11
1
0.96
1
4
0
0
1
4
1
16
52
5
24
16
14
23
9
8
7
1
2
0
1
10,437
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceVNetAddons
class ServiceVNetAddons(_serialization.Model): """Additional Service settings in vnet injection instance. :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance could be accessed from internet. :vartype log_stream_public_endpoint: bool :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app connect, remote debugging) in vnet injection instance could be accessed from internet. :vartype data_plane_public_endpoint: bool """ _attribute_map = { "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, "data_plane_public_endpoint": {"key": "dataPlanePublicEndpoint", "type": "bool"}, } def __init__( self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any ) -> None: """ :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance could be accessed from internet. :paramtype log_stream_public_endpoint: bool :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, app connect, remote debugging) in vnet injection instance could be accessed from internet. :paramtype data_plane_public_endpoint: bool """ super().__init__(**kwargs) self.log_stream_public_endpoint = log_stream_public_endpoint self.data_plane_public_endpoint = data_plane_public_endpoint
class ServiceVNetAddons(_serialization.Model): '''Additional Service settings in vnet injection instance. :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance could be accessed from internet. :vartype log_stream_public_endpoint: bool :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app connect, remote debugging) in vnet injection instance could be accessed from internet. :vartype data_plane_public_endpoint: bool ''' def __init__( self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any ) -> None: ''' :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance could be accessed from internet. :paramtype log_stream_public_endpoint: bool :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, app connect, remote debugging) in vnet injection instance could be accessed from internet. :paramtype data_plane_public_endpoint: bool ''' pass
2
2
14
0
6
8
1
1.45
1
3
0
0
1
2
1
16
30
3
11
7
7
16
6
5
4
1
2
0
1
10,438
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceSpecification
class ServiceSpecification(_serialization.Model): """Service specification payload. :ivar log_specifications: Specifications of the Log for Azure Monitoring. :vartype log_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.LogSpecification] :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. :vartype metric_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricSpecification] """ _attribute_map = { "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, } def __init__( self, *, log_specifications: Optional[List["_models.LogSpecification"]] = None, metric_specifications: Optional[List["_models.MetricSpecification"]] = None, **kwargs: Any ) -> None: """ :keyword log_specifications: Specifications of the Log for Azure Monitoring. :paramtype log_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.LogSpecification] :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. :paramtype metric_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricSpecification] """ super().__init__(**kwargs) self.log_specifications = log_specifications self.metric_specifications = metric_specifications
class ServiceSpecification(_serialization.Model): '''Service specification payload. :ivar log_specifications: Specifications of the Log for Azure Monitoring. :vartype log_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.LogSpecification] :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. :vartype metric_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricSpecification] ''' def __init__( self, *, log_specifications: Optional[List["_models.LogSpecification"]] = None, metric_specifications: Optional[List["_models.MetricSpecification"]] = None, **kwargs: Any ) -> None: ''' :keyword log_specifications: Specifications of the Log for Azure Monitoring. :paramtype log_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.LogSpecification] :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. :paramtype metric_specifications: list[~azure.mgmt.appplatform.v2023_12_01.models.MetricSpecification] ''' pass
2
2
18
0
10
8
1
1
1
2
0
0
1
2
1
16
33
3
15
11
7
15
6
5
4
1
2
0
1
10,439
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceResourceList
class ServiceResourceList(_serialization.Model): """Object that includes an array of Service resources and a possible link for next set. :ivar value: Collection of Service resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[ServiceResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of Service resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class ServiceResourceList(_serialization.Model): '''Object that includes an array of Service resources and a possible link for next set. :ivar value: Collection of Service resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of Service resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
13
0
6
7
1
1.27
1
3
0
0
1
2
1
16
28
3
11
7
7
14
6
5
4
1
2
0
1
10,440
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceResource
class ServiceResource(TrackedResource): """Service resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar location: The GEO location of the resource. :vartype location: str :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. :vartype tags: dict[str, str] :ivar properties: Properties of the Service resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ClusterResourceProperties :ivar sku: Sku of the Service resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "location": {"key": "location", "type": "str"}, "tags": {"key": "tags", "type": "{str}"}, "properties": {"key": "properties", "type": "ClusterResourceProperties"}, "sku": {"key": "sku", "type": "Sku"}, } def __init__( self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, properties: Optional["_models.ClusterResourceProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: """ :keyword location: The GEO location of the resource. :paramtype location: str :keyword tags: Tags of the service which is a list of key value pairs that describe the resource. :paramtype tags: dict[str, str] :keyword properties: Properties of the Service resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ClusterResourceProperties :keyword sku: Sku of the Service resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ super().__init__(location=location, tags=tags, **kwargs) self.properties = properties self.sku = sku
class ServiceResource(TrackedResource): '''Service resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar location: The GEO location of the resource. :vartype location: str :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. :vartype tags: dict[str, str] :ivar properties: Properties of the Service resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ClusterResourceProperties :ivar sku: Sku of the Service resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' def __init__( self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, properties: Optional["_models.ClusterResourceProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: ''' :keyword location: The GEO location of the resource. :paramtype location: str :keyword tags: Tags of the service which is a list of key value pairs that describe the resource. :paramtype tags: dict[str, str] :keyword properties: Properties of the Service resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ClusterResourceProperties :keyword sku: Sku of the Service resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' pass
2
2
23
0
12
11
1
1.03
1
3
0
0
1
2
1
18
64
5
29
14
19
30
7
6
5
1
4
0
1
10,441
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceRegistryResourceRequests
class ServiceRegistryResourceRequests(_serialization.Model): """Resource request payload of Service Registry. Variables are only populated by the server, and will be ignored when sending a request. :ivar cpu: Cpu allocated to each Service Registry instance. :vartype cpu: str :ivar memory: Memory allocated to each Service Registry instance. :vartype memory: str :ivar instance_count: Instance count of the Service Registry. :vartype instance_count: int """ _validation = { "cpu": {"readonly": True}, "memory": {"readonly": True}, "instance_count": {"readonly": True}, } _attribute_map = { "cpu": {"key": "cpu", "type": "str"}, "memory": {"key": "memory", "type": "str"}, "instance_count": {"key": "instanceCount", "type": "int"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.cpu = None self.memory = None self.instance_count = None
class ServiceRegistryResourceRequests(_serialization.Model): '''Resource request payload of Service Registry. Variables are only populated by the server, and will be ignored when sending a request. :ivar cpu: Cpu allocated to each Service Registry instance. :vartype cpu: str :ivar memory: Memory allocated to each Service Registry instance. :vartype memory: str :ivar instance_count: Instance count of the Service Registry. :vartype instance_count: int ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
6
0
5
1
1
0.63
1
2
0
0
1
3
1
16
31
5
16
7
14
10
8
7
6
1
2
0
1
10,442
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayResourceCollection
class GatewayResourceCollection(_serialization.Model): """Object that includes an array of gateway resources and a possible link for next set. :ivar value: Collection of gateway resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[GatewayResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of gateway resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class GatewayResourceCollection(_serialization.Model): '''Object that includes an array of gateway resources and a possible link for next set. :ivar value: Collection of gateway resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of gateway resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
13
0
6
7
1
1.27
1
3
0
0
1
2
1
16
28
3
11
7
7
14
6
5
4
1
2
0
1
10,443
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceRegistryResourceCollection
class ServiceRegistryResourceCollection(_serialization.Model): """Object that includes an array of Service Registry resources and a possible link for next set. :ivar value: Collection of Service Registry resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[ServiceRegistryResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.ServiceRegistryResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of Service Registry resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class ServiceRegistryResourceCollection(_serialization.Model): '''Object that includes an array of Service Registry resources and a possible link for next set. :ivar value: Collection of Service Registry resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.ServiceRegistryResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of Service Registry resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
0.93
1
3
0
0
1
2
1
16
32
3
15
11
7
14
6
5
4
1
2
0
1
10,444
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceRegistryProperties
class ServiceRegistryProperties(_serialization.Model): """Service Registry properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryProvisioningState :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryResourceRequests :ivar instances: Collection of instances belong to Service Registry. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryInstance] """ _validation = { "provisioning_state": {"readonly": True}, "resource_requests": {"readonly": True}, "instances": {"readonly": True}, } _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.provisioning_state = None self.resource_requests = None self.instances = None
class ServiceRegistryProperties(_serialization.Model): '''Service Registry properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryProvisioningState :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryResourceRequests :ivar instances: Collection of instances belong to Service Registry. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryInstance] ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
6
0
5
1
1
0.81
1
2
0
0
1
3
1
16
34
5
16
7
14
13
8
7
6
1
2
0
1
10,445
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ResourceSkuZoneDetails
class ResourceSkuZoneDetails(_serialization.Model): """Details of capabilities available to a SKU in specific zones. :ivar name: Gets the set of zones that the SKU is available in with the specified capabilities. :vartype name: list[str] :ivar capabilities: Gets a list of capabilities that are available for the SKU in the specified list of zones. :vartype capabilities: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuCapabilities] """ _attribute_map = { "name": {"key": "name", "type": "[str]"}, "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, } def __init__( self, *, name: Optional[List[str]] = None, capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, **kwargs: Any ) -> None: """ :keyword name: Gets the set of zones that the SKU is available in with the specified capabilities. :paramtype name: list[str] :keyword capabilities: Gets a list of capabilities that are available for the SKU in the specified list of zones. :paramtype capabilities: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuCapabilities] """ super().__init__(**kwargs) self.name = name self.capabilities = capabilities
class ResourceSkuZoneDetails(_serialization.Model): '''Details of capabilities available to a SKU in specific zones. :ivar name: Gets the set of zones that the SKU is available in with the specified capabilities. :vartype name: list[str] :ivar capabilities: Gets a list of capabilities that are available for the SKU in the specified list of zones. :vartype capabilities: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuCapabilities] ''' def __init__( self, *, name: Optional[List[str]] = None, capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, **kwargs: Any ) -> None: ''' :keyword name: Gets the set of zones that the SKU is available in with the specified capabilities. :paramtype name: list[str] :keyword capabilities: Gets a list of capabilities that are available for the SKU in the specified list of zones. :paramtype capabilities: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuCapabilities] ''' pass
2
2
19
0
10
9
1
1.13
1
3
0
0
1
2
1
16
35
3
15
11
7
17
6
5
4
1
2
0
1
10,446
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ResourceSkuRestrictions
class ResourceSkuRestrictions(_serialization.Model): """Restrictions where the SKU cannot be used. :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known values are: "Location" and "Zone". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsType :ivar values: Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. :vartype values: list[str] :ivar restriction_info: Gets the information about the restriction where the SKU cannot be used. :vartype restriction_info: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionInfo :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". :vartype reason_code: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsReasonCode """ _attribute_map = { "type": {"key": "type", "type": "str"}, "values": {"key": "values", "type": "[str]"}, "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, "reason_code": {"key": "reasonCode", "type": "str"}, } def __init__( self, *, type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, values: Optional[List[str]] = None, restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, **kwargs: Any ) -> None: """ :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known values are: "Location" and "Zone". :paramtype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsType :keyword values: Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. :paramtype values: list[str] :keyword restriction_info: Gets the information about the restriction where the SKU cannot be used. :paramtype restriction_info: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionInfo :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". :paramtype reason_code: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsReasonCode """ super().__init__(**kwargs) self.type = type self.values = values self.restriction_info = restriction_info self.reason_code = reason_code
class ResourceSkuRestrictions(_serialization.Model): '''Restrictions where the SKU cannot be used. :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known values are: "Location" and "Zone". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsType :ivar values: Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. :vartype values: list[str] :ivar restriction_info: Gets the information about the restriction where the SKU cannot be used. :vartype restriction_info: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionInfo :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". :vartype reason_code: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsReasonCode ''' def __init__( self, *, type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, values: Optional[List[str]] = None, restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, **kwargs: Any ) -> None: ''' :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known values are: "Location" and "Zone". :paramtype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsType :keyword values: Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. :paramtype values: list[str] :keyword restriction_info: Gets the information about the restriction where the SKU cannot be used. :paramtype restriction_info: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionInfo :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". :paramtype reason_code: str or ~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictionsReasonCode ''' pass
2
2
30
0
14
16
1
1.52
1
3
0
0
1
4
1
16
56
3
21
15
11
32
8
7
6
1
2
0
1
10,447
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ResourceSkuLocationInfo
class ResourceSkuLocationInfo(_serialization.Model): """Locations and availability zones where the SKU is available. :ivar location: Gets location of the SKU. :vartype location: str :ivar zones: Gets list of availability zones where the SKU is supported. :vartype zones: list[str] :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. :vartype zone_details: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuZoneDetails] """ _attribute_map = { "location": {"key": "location", "type": "str"}, "zones": {"key": "zones", "type": "[str]"}, "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, } def __init__( self, *, location: Optional[str] = None, zones: Optional[List[str]] = None, zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, **kwargs: Any ) -> None: """ :keyword location: Gets location of the SKU. :paramtype location: str :keyword zones: Gets list of availability zones where the SKU is supported. :paramtype zones: list[str] :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. :paramtype zone_details: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuZoneDetails] """ super().__init__(**kwargs) self.location = location self.zones = zones self.zone_details = zone_details
class ResourceSkuLocationInfo(_serialization.Model): '''Locations and availability zones where the SKU is available. :ivar location: Gets location of the SKU. :vartype location: str :ivar zones: Gets list of availability zones where the SKU is supported. :vartype zones: list[str] :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. :vartype zone_details: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuZoneDetails] ''' def __init__( self, *, location: Optional[str] = None, zones: Optional[List[str]] = None, zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, **kwargs: Any ) -> None: ''' :keyword location: Gets location of the SKU. :paramtype location: str :keyword zones: Gets list of availability zones where the SKU is supported. :paramtype zones: list[str] :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. :paramtype zone_details: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuZoneDetails] ''' pass
2
2
21
0
12
9
1
0.94
1
3
0
0
1
3
1
16
38
3
18
13
9
17
7
6
5
1
2
0
1
10,448
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ResourceSkuCollection
class ResourceSkuCollection(_serialization.Model): """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. :ivar value: Collection of resource SKU. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSku] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[ResourceSku]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of resource SKU. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSku] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class ResourceSkuCollection(_serialization.Model): '''Object that includes an array of Azure Spring Apps SKU and a possible link for next set. :ivar value: Collection of resource SKU. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSku] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of resource SKU. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSku] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
13
0
6
7
1
1.27
1
3
0
0
1
2
1
16
28
3
11
7
7
14
6
5
4
1
2
0
1
10,449
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ResourceSku
class ResourceSku(_serialization.Model): """Describes an available Azure Spring Apps SKU. :ivar resource_type: Gets the type of resource the SKU applies to. :vartype resource_type: str :ivar name: Gets the name of SKU. :vartype name: str :ivar tier: Gets the tier of SKU. :vartype tier: str :ivar capacity: Gets the capacity of SKU. :vartype capacity: ~azure.mgmt.appplatform.v2023_12_01.models.SkuCapacity :ivar locations: Gets the set of locations that the SKU is available. :vartype locations: list[str] :ivar location_info: Gets a list of locations and availability zones in those locations where the SKU is available. :vartype location_info: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuLocationInfo] :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. :vartype restrictions: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictions] """ _attribute_map = { "resource_type": {"key": "resourceType", "type": "str"}, "name": {"key": "name", "type": "str"}, "tier": {"key": "tier", "type": "str"}, "capacity": {"key": "capacity", "type": "SkuCapacity"}, "locations": {"key": "locations", "type": "[str]"}, "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, } def __init__( self, *, resource_type: Optional[str] = None, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional["_models.SkuCapacity"] = None, locations: Optional[List[str]] = None, location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, **kwargs: Any ) -> None: """ :keyword resource_type: Gets the type of resource the SKU applies to. :paramtype resource_type: str :keyword name: Gets the name of SKU. :paramtype name: str :keyword tier: Gets the tier of SKU. :paramtype tier: str :keyword capacity: Gets the capacity of SKU. :paramtype capacity: ~azure.mgmt.appplatform.v2023_12_01.models.SkuCapacity :keyword locations: Gets the set of locations that the SKU is available. :paramtype locations: list[str] :keyword location_info: Gets a list of locations and availability zones in those locations where the SKU is available. :paramtype location_info: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuLocationInfo] :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. :paramtype restrictions: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictions] """ super().__init__(**kwargs) self.resource_type = resource_type self.name = name self.tier = tier self.capacity = capacity self.locations = locations self.location_info = location_info self.restrictions = restrictions
class ResourceSku(_serialization.Model): '''Describes an available Azure Spring Apps SKU. :ivar resource_type: Gets the type of resource the SKU applies to. :vartype resource_type: str :ivar name: Gets the name of SKU. :vartype name: str :ivar tier: Gets the tier of SKU. :vartype tier: str :ivar capacity: Gets the capacity of SKU. :vartype capacity: ~azure.mgmt.appplatform.v2023_12_01.models.SkuCapacity :ivar locations: Gets the set of locations that the SKU is available. :vartype locations: list[str] :ivar location_info: Gets a list of locations and availability zones in those locations where the SKU is available. :vartype location_info: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuLocationInfo] :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. :vartype restrictions: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictions] ''' def __init__( self, *, resource_type: Optional[str] = None, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional["_models.SkuCapacity"] = None, locations: Optional[List[str]] = None, location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, **kwargs: Any ) -> None: ''' :keyword resource_type: Gets the type of resource the SKU applies to. :paramtype resource_type: str :keyword name: Gets the name of SKU. :paramtype name: str :keyword tier: Gets the tier of SKU. :paramtype tier: str :keyword capacity: Gets the capacity of SKU. :paramtype capacity: ~azure.mgmt.appplatform.v2023_12_01.models.SkuCapacity :keyword locations: Gets the set of locations that the SKU is available. :paramtype locations: list[str] :keyword location_info: Gets a list of locations and availability zones in those locations where the SKU is available. :paramtype location_info: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuLocationInfo] :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. :paramtype restrictions: list[~azure.mgmt.appplatform.v2023_12_01.models.ResourceSkuRestrictions] ''' pass
2
2
40
0
20
20
1
1.3
1
3
0
0
1
7
1
16
72
3
30
21
17
39
11
10
9
1
2
0
1
10,450
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.Resource
class Resource(_serialization.Model): """The core properties of ARM resources. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None self.name = None self.type = None self.system_data = None
class Resource(_serialization.Model): '''The core properties of ARM resources. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
7
0
6
1
1
0.63
1
2
0
2
1
4
1
16
36
5
19
8
17
12
9
8
7
1
2
0
1
10,451
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.RequiredTraffic
class RequiredTraffic(_serialization.Model): """Required inbound or outbound traffic for Azure Spring Apps resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar protocol: The protocol of required traffic. :vartype protocol: str :ivar port: The port of required traffic. :vartype port: int :ivar ips: The ip list of required traffic. :vartype ips: list[str] :ivar fqdns: The FQDN list of required traffic. :vartype fqdns: list[str] :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". :vartype direction: str or ~azure.mgmt.appplatform.v2023_12_01.models.TrafficDirection """ _validation = { "protocol": {"readonly": True}, "port": {"readonly": True}, "ips": {"readonly": True}, "fqdns": {"readonly": True}, "direction": {"readonly": True}, } _attribute_map = { "protocol": {"key": "protocol", "type": "str"}, "port": {"key": "port", "type": "int"}, "ips": {"key": "ips", "type": "[str]"}, "fqdns": {"key": "fqdns", "type": "[str]"}, "direction": {"key": "direction", "type": "str"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.protocol = None self.port = None self.ips = None self.fqdns = None self.direction = None
class RequiredTraffic(_serialization.Model): '''Required inbound or outbound traffic for Azure Spring Apps resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar protocol: The protocol of required traffic. :vartype protocol: str :ivar port: The port of required traffic. :vartype port: int :ivar ips: The ip list of required traffic. :vartype ips: list[str] :ivar fqdns: The FQDN list of required traffic. :vartype fqdns: list[str] :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". :vartype direction: str or ~azure.mgmt.appplatform.v2023_12_01.models.TrafficDirection ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
8
0
7
1
1
0.64
1
2
0
0
1
5
1
16
41
5
22
9
20
14
10
9
8
1
2
0
1
10,452
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ServiceRegistryResource
class ServiceRegistryResource(ProxyResource): """Service Registry resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Service Registry properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, } def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Service Registry properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryProperties """ super().__init__(**kwargs) self.properties = properties
class ServiceRegistryResource(ProxyResource): '''Service Registry resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Service Registry properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryProperties ''' def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: Service Registry properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ServiceRegistryProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
10,453
Azure/azure-cli-extensions
src/costmanagement/azext_costmanagement/vendored_sdks/costmanagement/models/_models.py
azext_costmanagement.vendored_sdks.costmanagement.models._models.QueryAggregation
class QueryAggregation(msrest.serialization.Model): """The aggregation expression to be used in the query. All required parameters must be populated in order to send to Azure. :param name: Required. The name of the column to aggregate. :type name: str :param function: Required. The name of the aggregation function to use. Possible values include: "Sum". :type function: str or ~azure.mgmt.costmanagement.models.FunctionType """ _validation = { 'name': {'required': True}, 'function': {'required': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'function': {'key': 'function', 'type': 'str'}, } def __init__( self, **kwargs ): super(QueryAggregation, self).__init__(**kwargs) self.name = kwargs['name'] self.function = kwargs['function']
class QueryAggregation(msrest.serialization.Model): '''The aggregation expression to be used in the query. All required parameters must be populated in order to send to Azure. :param name: Required. The name of the column to aggregate. :type name: str :param function: Required. The name of the aggregation function to use. Possible values include: "Sum". :type function: str or ~azure.mgmt.costmanagement.models.FunctionType ''' def __init__( self, **kwargs ): pass
2
1
7
0
7
0
1
0.5
1
1
0
0
1
2
1
1
29
5
16
9
11
8
7
6
5
1
1
0
1
10,454
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayResource
class GatewayResource(ProxyResource): """Spring Cloud Gateway resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Spring Cloud Gateway properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProperties :ivar sku: Sku of the Spring Cloud Gateway resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "GatewayProperties"}, "sku": {"key": "sku", "type": "Sku"}, } def __init__( self, *, properties: Optional["_models.GatewayProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: """ :keyword properties: Spring Cloud Gateway properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProperties :keyword sku: Sku of the Spring Cloud Gateway resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ super().__init__(**kwargs) self.properties = properties self.sku = sku
class GatewayResource(ProxyResource): '''Spring Cloud Gateway resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Spring Cloud Gateway properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProperties :ivar sku: Sku of the Spring Cloud Gateway resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' def __init__( self, *, properties: Optional["_models.GatewayProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: ''' :keyword properties: Spring Cloud Gateway properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProperties :keyword sku: Sku of the Spring Cloud Gateway resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' pass
2
2
16
0
10
6
1
0.84
1
2
0
0
1
2
1
17
51
5
25
12
17
21
7
6
5
1
4
0
1
10,455
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayProperties
class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes """Spring Cloud Gateway properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProvisioningState :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. :vartype public: bool :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. :vartype url: str :ivar https_only: Indicate if only https is allowed. :vartype https_only: bool :ivar sso_properties: Single sign-on related configuration. :vartype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.SsoProperties :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. :vartype api_metadata_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiMetadataProperties :ivar cors_properties: Cross-Origin Resource Sharing property. :vartype cors_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCorsProperties :ivar client_auth: Client-Certification Authentication. :vartype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesClientAuth :ivar apms: Collection of ApmReferences in service level. :vartype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :ivar environment_variables: Environment variables of Spring Cloud Gateway. :vartype environment_variables: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesEnvironmentVariables :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResourceRequests :ivar instances: Collection of instances belong to Spring Cloud Gateway. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayInstance] :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. :vartype operator_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayOperatorProperties """ _validation = { "provisioning_state": {"readonly": True}, "url": {"readonly": True}, "instances": {"readonly": True}, "operator_properties": {"readonly": True}, } _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "public": {"key": "public", "type": "bool"}, "url": {"key": "url", "type": "str"}, "https_only": {"key": "httpsOnly", "type": "bool"}, "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, "client_auth": {"key": "clientAuth", "type": "GatewayPropertiesClientAuth"}, "apms": {"key": "apms", "type": "[ApmReference]"}, "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, "instances": {"key": "instances", "type": "[GatewayInstance]"}, "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, } def __init__( self, *, public: bool = False, https_only: bool = False, sso_properties: Optional["_models.SsoProperties"] = None, api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, cors_properties: Optional["_models.GatewayCorsProperties"] = None, client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, apms: Optional[List["_models.ApmReference"]] = None, environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, resource_requests: Optional["_models.GatewayResourceRequests"] = None, **kwargs: Any ) -> None: """ :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. :paramtype public: bool :keyword https_only: Indicate if only https is allowed. :paramtype https_only: bool :keyword sso_properties: Single sign-on related configuration. :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.SsoProperties :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. :paramtype api_metadata_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiMetadataProperties :keyword cors_properties: Cross-Origin Resource Sharing property. :paramtype cors_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCorsProperties :keyword client_auth: Client-Certification Authentication. :paramtype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesClientAuth :keyword apms: Collection of ApmReferences in service level. :paramtype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :keyword environment_variables: Environment variables of Spring Cloud Gateway. :paramtype environment_variables: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesEnvironmentVariables :keyword resource_requests: The requested resource quantity for required CPU and Memory. :paramtype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResourceRequests """ super().__init__(**kwargs) self.provisioning_state = None self.public = public self.url = None self.https_only = https_only self.sso_properties = sso_properties self.api_metadata_properties = api_metadata_properties self.cors_properties = cors_properties self.client_auth = client_auth self.apms = apms self.environment_variables = environment_variables self.resource_requests = resource_requests self.instances = None self.operator_properties = None
class GatewayProperties(_serialization.Model): '''Spring Cloud Gateway properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayProvisioningState :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. :vartype public: bool :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. :vartype url: str :ivar https_only: Indicate if only https is allowed. :vartype https_only: bool :ivar sso_properties: Single sign-on related configuration. :vartype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.SsoProperties :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. :vartype api_metadata_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiMetadataProperties :ivar cors_properties: Cross-Origin Resource Sharing property. :vartype cors_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCorsProperties :ivar client_auth: Client-Certification Authentication. :vartype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesClientAuth :ivar apms: Collection of ApmReferences in service level. :vartype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :ivar environment_variables: Environment variables of Spring Cloud Gateway. :vartype environment_variables: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesEnvironmentVariables :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResourceRequests :ivar instances: Collection of instances belong to Spring Cloud Gateway. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayInstance] :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. :vartype operator_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayOperatorProperties ''' def __init__( self, *, public: bool = False, https_only: bool = False, sso_properties: Optional["_models.SsoProperties"] = None, api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, cors_properties: Optional["_models.GatewayCorsProperties"] = None, client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, apms: Optional[List["_models.ApmReference"]] = None, environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, resource_requests: Optional["_models.GatewayResourceRequests"] = None, **kwargs: Any ) -> None: ''' :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. :paramtype public: bool :keyword https_only: Indicate if only https is allowed. :paramtype https_only: bool :keyword sso_properties: Single sign-on related configuration. :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.SsoProperties :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. :paramtype api_metadata_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayApiMetadataProperties :keyword cors_properties: Cross-Origin Resource Sharing property. :paramtype cors_properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCorsProperties :keyword client_auth: Client-Certification Authentication. :paramtype client_auth: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesClientAuth :keyword apms: Collection of ApmReferences in service level. :paramtype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :keyword environment_variables: Environment variables of Spring Cloud Gateway. :paramtype environment_variables: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayPropertiesEnvironmentVariables :keyword resource_requests: The requested resource quantity for required CPU and Memory. :paramtype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayResourceRequests ''' pass
2
2
51
0
28
23
1
1.16
1
3
0
0
1
13
1
16
112
5
50
30
35
58
18
17
16
1
2
0
1
10,456
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomPersistentDiskProperties
class CustomPersistentDiskProperties(_serialization.Model): """Custom persistent disk resource payload. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileVolume All required parameters must be populated in order to send to server. :ivar type: The type of the underlying resource to mount as a persistent disk. Required. "AzureFileVolume" :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.Type :ivar mount_path: The mount path of the persistent disk. Required. :vartype mount_path: str :ivar read_only: Indicates whether the persistent disk is a readOnly one. :vartype read_only: bool :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :vartype enable_sub_path: bool :ivar mount_options: These are the mount options for a persistent disk. :vartype mount_options: list[str] """ _validation = { "type": {"required": True}, "mount_path": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "mount_path": {"key": "mountPath", "type": "str"}, "read_only": {"key": "readOnly", "type": "bool"}, "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, "mount_options": {"key": "mountOptions", "type": "[str]"}, } _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} def __init__( self, *, mount_path: str, read_only: Optional[bool] = None, enable_sub_path: bool = False, mount_options: Optional[List[str]] = None, **kwargs: Any ) -> None: """ :keyword mount_path: The mount path of the persistent disk. Required. :paramtype mount_path: str :keyword read_only: Indicates whether the persistent disk is a readOnly one. :paramtype read_only: bool :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :paramtype enable_sub_path: bool :keyword mount_options: These are the mount options for a persistent disk. :paramtype mount_options: list[str] """ super().__init__(**kwargs) self.type: Optional[str] = None self.mount_path = mount_path self.read_only = read_only self.enable_sub_path = enable_sub_path self.mount_options = mount_options
class CustomPersistentDiskProperties(_serialization.Model): '''Custom persistent disk resource payload. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileVolume All required parameters must be populated in order to send to server. :ivar type: The type of the underlying resource to mount as a persistent disk. Required. "AzureFileVolume" :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.Type :ivar mount_path: The mount path of the persistent disk. Required. :vartype mount_path: str :ivar read_only: Indicates whether the persistent disk is a readOnly one. :vartype read_only: bool :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :vartype enable_sub_path: bool :ivar mount_options: These are the mount options for a persistent disk. :vartype mount_options: list[str] ''' def __init__( self, *, mount_path: str, read_only: Optional[bool] = None, enable_sub_path: bool = False, mount_options: Optional[List[str]] = None, **kwargs: Any ) -> None: ''' :keyword mount_path: The mount path of the persistent disk. Required. :paramtype mount_path: str :keyword read_only: Indicates whether the persistent disk is a readOnly one. :paramtype read_only: bool :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for every individual app instance. :paramtype enable_sub_path: bool :keyword mount_options: These are the mount options for a persistent disk. :paramtype mount_options: list[str] ''' pass
2
2
26
0
15
11
1
1
1
4
0
1
1
5
1
16
63
7
28
18
18
28
11
10
9
1
2
0
1
10,457
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomDomainResourceCollection
class CustomDomainResourceCollection(_serialization.Model): """Collection compose of a custom domain resources list and a possible link for next page. :ivar value: The custom domain resources list. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :ivar next_link: The link to next page of custom domain list. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[CustomDomainResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.CustomDomainResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: The custom domain resources list. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :keyword next_link: The link to next page of custom domain list. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class CustomDomainResourceCollection(_serialization.Model): '''Collection compose of a custom domain resources list and a possible link for next page. :ivar value: The custom domain resources list. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :ivar next_link: The link to next page of custom domain list. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.CustomDomainResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: The custom domain resources list. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResource] :keyword next_link: The link to next page of custom domain list. :paramtype next_link: str ''' pass
2
2
16
0
10
6
1
0.8
1
3
0
0
1
2
1
16
30
3
15
11
7
12
6
5
4
1
2
0
1
10,458
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomDomainResource
class CustomDomainResource(ProxyResource): """Custom domain resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the custom domain resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "CustomDomainProperties"}, } def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Properties of the custom domain resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainProperties """ super().__init__(**kwargs) self.properties = properties
class CustomDomainResource(ProxyResource): '''Custom domain resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the custom domain resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainProperties ''' def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: Properties of the custom domain resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
10,459
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomDomainProperties
class CustomDomainProperties(_serialization.Model): """Custom domain of app resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar thumbprint: The thumbprint of bound certificate. :vartype thumbprint: str :ivar app_name: The app name of domain. :vartype app_name: str :ivar cert_name: The bound certificate name of domain. :vartype cert_name: str :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResourceProvisioningState """ _validation = { "app_name": {"readonly": True}, "provisioning_state": {"readonly": True}, } _attribute_map = { "thumbprint": {"key": "thumbprint", "type": "str"}, "app_name": {"key": "appName", "type": "str"}, "cert_name": {"key": "certName", "type": "str"}, "provisioning_state": {"key": "provisioningState", "type": "str"}, } def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword thumbprint: The thumbprint of bound certificate. :paramtype thumbprint: str :keyword cert_name: The bound certificate name of domain. :paramtype cert_name: str """ super().__init__(**kwargs) self.thumbprint = thumbprint self.app_name = None self.cert_name = cert_name self.provisioning_state = None
class CustomDomainProperties(_serialization.Model): '''Custom domain of app resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar thumbprint: The thumbprint of bound certificate. :vartype thumbprint: str :ivar app_name: The app name of domain. :vartype app_name: str :ivar cert_name: The bound certificate name of domain. :vartype cert_name: str :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomDomainResourceProvisioningState ''' def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: ''' :keyword thumbprint: The thumbprint of bound certificate. :paramtype thumbprint: str :keyword cert_name: The bound certificate name of domain. :paramtype cert_name: str ''' pass
2
2
12
0
6
6
1
1.12
1
3
0
0
1
4
1
16
41
5
17
8
15
19
9
8
7
1
2
0
1
10,460
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomContainerUserSourceInfo
class CustomContainerUserSourceInfo(UserSourceInfo): """Custom container user source info. All required parameters must be populated in order to send to server. :ivar type: Type of the source uploaded. Required. :vartype type: str :ivar version: Version of the source. :vartype version: str :ivar custom_container: Custom container payload. :vartype custom_container: ~azure.mgmt.appplatform.v2023_12_01.models.CustomContainer """ _validation = { "type": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "version": {"key": "version", "type": "str"}, "custom_container": {"key": "customContainer", "type": "CustomContainer"}, } def __init__( self, *, version: Optional[str] = None, custom_container: Optional["_models.CustomContainer"] = None, **kwargs: Any ) -> None: """ :keyword version: Version of the source. :paramtype version: str :keyword custom_container: Custom container payload. :paramtype custom_container: ~azure.mgmt.appplatform.v2023_12_01.models.CustomContainer """ super().__init__(version=version, **kwargs) self.type: str = "Container" self.custom_container = custom_container
class CustomContainerUserSourceInfo(UserSourceInfo): '''Custom container user source info. All required parameters must be populated in order to send to server. :ivar type: Type of the source uploaded. Required. :vartype type: str :ivar version: Version of the source. :vartype version: str :ivar custom_container: Custom container payload. :vartype custom_container: ~azure.mgmt.appplatform.v2023_12_01.models.CustomContainer ''' def __init__( self, *, version: Optional[str] = None, custom_container: Optional["_models.CustomContainer"] = None, **kwargs: Any ) -> None: ''' :keyword version: Version of the source. :paramtype version: str :keyword custom_container: Custom container payload. :paramtype custom_container: ~azure.mgmt.appplatform.v2023_12_01.models.CustomContainer ''' pass
2
2
16
0
10
6
1
0.79
1
3
0
0
1
2
1
17
39
5
19
12
11
15
7
6
5
1
3
0
1
10,461
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomContainer
class CustomContainer(_serialization.Model): """Custom container payload. :ivar server: The name of the registry that contains the container image. :vartype server: str :ivar container_image: Container image of the custom container. This should be in the form of :code:`<repository>`::code:`<tag>` without the server name of the registry. :vartype container_image: str :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. :vartype command: list[str] :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not provided. :vartype args: list[str] :ivar image_registry_credential: Credential of the image registry. :vartype image_registry_credential: ~azure.mgmt.appplatform.v2023_12_01.models.ImageRegistryCredential :ivar language_framework: Language framework of the container image uploaded. Supported values: "springboot", "", null. :vartype language_framework: str """ _attribute_map = { "server": {"key": "server", "type": "str"}, "container_image": {"key": "containerImage", "type": "str"}, "command": {"key": "command", "type": "[str]"}, "args": {"key": "args", "type": "[str]"}, "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, "language_framework": {"key": "languageFramework", "type": "str"}, } def __init__( self, *, server: Optional[str] = None, container_image: Optional[str] = None, command: Optional[List[str]] = None, args: Optional[List[str]] = None, image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, language_framework: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword server: The name of the registry that contains the container image. :paramtype server: str :keyword container_image: Container image of the custom container. This should be in the form of :code:`<repository>`::code:`<tag>` without the server name of the registry. :paramtype container_image: str :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. :paramtype command: list[str] :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not provided. :paramtype args: list[str] :keyword image_registry_credential: Credential of the image registry. :paramtype image_registry_credential: ~azure.mgmt.appplatform.v2023_12_01.models.ImageRegistryCredential :keyword language_framework: Language framework of the container image uploaded. Supported values: "springboot", "", null. :paramtype language_framework: str """ super().__init__(**kwargs) self.server = server self.container_image = container_image self.command = command self.args = args self.image_registry_credential = image_registry_credential self.language_framework = language_framework
class CustomContainer(_serialization.Model): '''Custom container payload. :ivar server: The name of the registry that contains the container image. :vartype server: str :ivar container_image: Container image of the custom container. This should be in the form of :code:`<repository>`::code:`<tag>` without the server name of the registry. :vartype container_image: str :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. :vartype command: list[str] :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not provided. :vartype args: list[str] :ivar image_registry_credential: Credential of the image registry. :vartype image_registry_credential: ~azure.mgmt.appplatform.v2023_12_01.models.ImageRegistryCredential :ivar language_framework: Language framework of the container image uploaded. Supported values: "springboot", "", null. :vartype language_framework: str ''' def __init__( self, *, server: Optional[str] = None, container_image: Optional[str] = None, command: Optional[List[str]] = None, args: Optional[List[str]] = None, image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, language_framework: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword server: The name of the registry that contains the container image. :paramtype server: str :keyword container_image: Container image of the custom container. This should be in the form of :code:`<repository>`::code:`<tag>` without the server name of the registry. :paramtype container_image: str :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. :paramtype command: list[str] :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not provided. :paramtype args: list[str] :keyword image_registry_credential: Credential of the image registry. :paramtype image_registry_credential: ~azure.mgmt.appplatform.v2023_12_01.models.ImageRegistryCredential :keyword language_framework: Language framework of the container image uploaded. Supported values: "springboot", "", null. :paramtype language_framework: str ''' pass
2
2
37
0
18
19
1
1.41
1
3
0
0
1
6
1
16
68
3
27
19
15
38
10
9
8
1
2
0
1
10,462
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ContentCertificateProperties
class ContentCertificateProperties(CertificateProperties): """Properties of certificate imported from key vault. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar type: The type of the certificate source. Required. :vartype type: str :ivar thumbprint: The thumbprint of certificate. :vartype thumbprint: str :ivar issuer: The issuer of certificate. :vartype issuer: str :ivar issued_date: The issue date of certificate. :vartype issued_date: str :ivar expiration_date: The expiration date of certificate. :vartype expiration_date: str :ivar activate_date: The activate date of certificate. :vartype activate_date: str :ivar subject_name: The subject name of certificate. :vartype subject_name: str :ivar dns_names: The domain list of certificate. :vartype dns_names: list[str] :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResourceProvisioningState :ivar content: The content of uploaded certificate. :vartype content: str """ _validation = { "type": {"required": True}, "thumbprint": {"readonly": True}, "issuer": {"readonly": True}, "issued_date": {"readonly": True}, "expiration_date": {"readonly": True}, "activate_date": {"readonly": True}, "subject_name": {"readonly": True}, "dns_names": {"readonly": True}, "provisioning_state": {"readonly": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "thumbprint": {"key": "thumbprint", "type": "str"}, "issuer": {"key": "issuer", "type": "str"}, "issued_date": {"key": "issuedDate", "type": "str"}, "expiration_date": {"key": "expirationDate", "type": "str"}, "activate_date": {"key": "activateDate", "type": "str"}, "subject_name": {"key": "subjectName", "type": "str"}, "dns_names": {"key": "dnsNames", "type": "[str]"}, "provisioning_state": {"key": "provisioningState", "type": "str"}, "content": {"key": "content", "type": "str"}, } def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: """ :keyword content: The content of uploaded certificate. :paramtype content: str """ super().__init__(**kwargs) self.type: str = "ContentCertificate" self.content = content
class ContentCertificateProperties(CertificateProperties): '''Properties of certificate imported from key vault. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar type: The type of the certificate source. Required. :vartype type: str :ivar thumbprint: The thumbprint of certificate. :vartype thumbprint: str :ivar issuer: The issuer of certificate. :vartype issuer: str :ivar issued_date: The issue date of certificate. :vartype issued_date: str :ivar expiration_date: The expiration date of certificate. :vartype expiration_date: str :ivar activate_date: The activate date of certificate. :vartype activate_date: str :ivar subject_name: The subject name of certificate. :vartype subject_name: str :ivar dns_names: The domain list of certificate. :vartype dns_names: list[str] :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CertificateResourceProvisioningState :ivar content: The content of uploaded certificate. :vartype content: str ''' def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: ''' :keyword content: The content of uploaded certificate. :paramtype content: str ''' pass
2
2
8
0
4
4
1
1.07
1
3
0
0
1
2
1
17
64
6
28
6
26
30
7
6
5
1
3
0
1
10,463
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ContainerRegistryResourceCollection
class ContainerRegistryResourceCollection(_serialization.Model): """Collection compose of container registry resources list and a possible link for next page. :ivar value: The container registry resources list. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryResource] :ivar next_link: The link to next page of storage list. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[ContainerRegistryResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.ContainerRegistryResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: The container registry resources list. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryResource] :keyword next_link: The link to next page of storage list. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class ContainerRegistryResourceCollection(_serialization.Model): '''Collection compose of container registry resources list and a possible link for next page. :ivar value: The container registry resources list. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryResource] :ivar next_link: The link to next page of storage list. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.ContainerRegistryResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: The container registry resources list. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryResource] :keyword next_link: The link to next page of storage list. :paramtype next_link: str ''' pass
2
2
16
0
10
6
1
0.8
1
3
0
0
1
2
1
16
30
3
15
11
7
12
6
5
4
1
2
0
1
10,464
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ContainerRegistryResource
class ContainerRegistryResource(ProxyResource): """Container registry resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the container registry resource payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "ContainerRegistryProperties"}, } def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Properties of the container registry resource payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryProperties """ super().__init__(**kwargs) self.properties = properties
class ContainerRegistryResource(ProxyResource): '''Container registry resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the container registry resource payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryProperties ''' def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: Properties of the container registry resource payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
10,465
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ContainerRegistryProperties
class ContainerRegistryProperties(_serialization.Model): """Container registry resource payload. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar credentials: The credentials of the container registry resource. Required. :vartype credentials: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryCredentials :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryProvisioningState """ _validation = { "credentials": {"required": True}, "provisioning_state": {"readonly": True}, } _attribute_map = { "credentials": {"key": "credentials", "type": "ContainerRegistryCredentials"}, "provisioning_state": {"key": "provisioningState", "type": "str"}, } def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: """ :keyword credentials: The credentials of the container registry resource. Required. :paramtype credentials: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryCredentials """ super().__init__(**kwargs) self.credentials = credentials self.provisioning_state = None
class ContainerRegistryProperties(_serialization.Model): '''Container registry resource payload. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar credentials: The credentials of the container registry resource. Required. :vartype credentials: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryCredentials :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryProvisioningState ''' def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: ''' :keyword credentials: The credentials of the container registry resource. Required. :paramtype credentials: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerRegistryCredentials ''' pass
2
2
8
0
4
4
1
1.08
1
2
0
0
1
2
1
16
33
6
13
6
11
14
7
6
5
1
2
0
1
10,466
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ConfigurationServiceSettingsValidateResult
class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long """Validation result for configuration service settings. :ivar git_property_validation_result: Validation result for configuration service settings. :vartype git_property_validation_result: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitPropertyValidateResult """ _attribute_map = { "git_property_validation_result": { "key": "gitPropertyValidationResult", "type": "ConfigurationServiceGitPropertyValidateResult", }, } def __init__( self, *, git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, **kwargs: Any ) -> None: """ :keyword git_property_validation_result: Validation result for configuration service settings. :paramtype git_property_validation_result: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitPropertyValidateResult """ super().__init__(**kwargs) self.git_property_validation_result = git_property_validation_result
class ConfigurationServiceSettingsValidateResult(_serialization.Model): '''Validation result for configuration service settings. :ivar git_property_validation_result: Validation result for configuration service settings. :vartype git_property_validation_result: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitPropertyValidateResult ''' def __init__( self, *, git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, **kwargs: Any ) -> None: ''' :keyword git_property_validation_result: Validation result for configuration service settings. :paramtype git_property_validation_result: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitPropertyValidateResult ''' pass
2
2
13
0
8
5
1
0.73
1
2
0
0
1
1
1
16
28
3
15
9
8
11
5
4
3
1
2
0
1
10,467
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ConfigurationServiceSettings
class ConfigurationServiceSettings(_serialization.Model): """The settings of Application Configuration Service. :ivar git_property: Property of git environment. :vartype git_property: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitProperty """ _attribute_map = { "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, } def __init__( self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any ) -> None: """ :keyword git_property: Property of git environment. :paramtype git_property: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitProperty """ super().__init__(**kwargs) self.git_property = git_property
class ConfigurationServiceSettings(_serialization.Model): '''The settings of Application Configuration Service. :ivar git_property: Property of git environment. :vartype git_property: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitProperty ''' def __init__( self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any ) -> None: ''' :keyword git_property: Property of git environment. :paramtype git_property: ~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceGitProperty ''' pass
2
2
10
0
5
5
1
1.11
1
2
0
0
1
1
1
16
22
3
9
6
5
10
5
4
3
1
2
0
1
10,468
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ConfigurationServiceResourceRequests
class ConfigurationServiceResourceRequests(_serialization.Model): """Resource request payload of Application Configuration Service. Variables are only populated by the server, and will be ignored when sending a request. :ivar cpu: Cpu allocated to each Application Configuration Service instance. :vartype cpu: str :ivar memory: Memory allocated to each Application Configuration Service instance. :vartype memory: str :ivar instance_count: Instance count of the Application Configuration Service. :vartype instance_count: int """ _validation = { "cpu": {"readonly": True}, "memory": {"readonly": True}, "instance_count": {"readonly": True}, } _attribute_map = { "cpu": {"key": "cpu", "type": "str"}, "memory": {"key": "memory", "type": "str"}, "instance_count": {"key": "instanceCount", "type": "int"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.cpu = None self.memory = None self.instance_count = None
class ConfigurationServiceResourceRequests(_serialization.Model): '''Resource request payload of Application Configuration Service. Variables are only populated by the server, and will be ignored when sending a request. :ivar cpu: Cpu allocated to each Application Configuration Service instance. :vartype cpu: str :ivar memory: Memory allocated to each Application Configuration Service instance. :vartype memory: str :ivar instance_count: Instance count of the Application Configuration Service. :vartype instance_count: int ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
6
0
5
1
1
0.63
1
2
0
0
1
3
1
16
31
5
16
7
14
10
8
7
6
1
2
0
1
10,469
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ConfigurationServiceResourceCollection
class ConfigurationServiceResourceCollection(_serialization.Model): """Object that includes an array of configuration service resources and a possible link for next set. :ivar value: Collection of configuration service resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.ConfigurationServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of configuration service resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class ConfigurationServiceResourceCollection(_serialization.Model): '''Object that includes an array of configuration service resources and a possible link for next set. :ivar value: Collection of configuration service resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.ConfigurationServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of configuration service resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.ConfigurationServiceResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
1
1
3
0
0
1
2
1
16
33
3
15
11
7
15
6
5
4
1
2
0
1
10,470
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/palo-alto-networks/azext_palo_alto_networks/tests/latest/test_palo_alto_networks.py
azext_palo_alto_networks.tests.latest.test_palo_alto_networks.PaloAltoNetworksScenario
class PaloAltoNetworksScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_networks_cloudngfw_firewall', location='eastus') def test_palo_alto_networks_cloudngfw_firewall(self, resource_group): self.kwargs.update({ 'cloudngfw_firewall_name': self.create_random_name('firewall', 15), 'public_ip_name': 'fw0718-public-ip', 'local_rulestack_name': 'test-local-rulestack', 'prefix': 'test-publicip-prefix', 'nsg': self.create_random_name('nsg', 10), 'vnet': self.create_random_name('vnet', 10), 'subnet1': self.create_random_name('subnet1', 12), 'subnet2': self.create_random_name('subnet2', 12) }) self.cmd('az network nsg create -g {rg} -n {nsg}') self.cmd( 'az network vnet create -g {rg} -n {vnet} --address-prefix 10.0.0.0/16 --nsg {nsg} --subnet-name {subnet1} --subnet-prefixes 10.0.0.0/26') self.cmd( 'az network vnet subnet create -g {rg} --vnet-name {vnet} -n {subnet2} --address-prefixes 10.0.1.0/26 --delegations PaloAltoNetworks.Cloudngfw/firewalls') self.cmd( 'az network vnet subnet update -g {rg} --vnet-name {vnet} -n {subnet1} --delegations PaloAltoNetworks.Cloudngfw/firewalls') vnet = self.cmd( 'az network vnet show -g {rg} -n {vnet}').get_output_in_json() local_rulestack = self.cmd( 'az palo-alto cloudngfw local-rulestack create --local-rulestack-name testlrs -g {rg} -l eastus --default-mode "IPS" --scope "LOCAL" --pan-etag "9fa4e2c6-1b0c-11ee-b587-3e4c117c6534" --min-app-id-version "8595-7473" --security-services {{"vulnerability-profile":"BestPractice","anti-spyware-profile":"BestPractice","anti-virus-profile":"BestPractice","url-filtering-profile":"BestPractice","file-blocking-profile":"BestPractice","dns-subscription":"BestPractice"}}').get_output_in_json() self.kwargs.update({ 'public_ip_id': "/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/rheaTerraformTest/providers/Microsoft.Network/publicIPAddresses/fw0718-public-ip", 'vnet_id': vnet['id'], 'rulestack_id': local_rulestack['id'], 'trust_subnet': vnet['subnets'][0]['id'], 'un_trust_subnet': vnet['subnets'][1]['id'] }) self.cmd('az palo-alto cloudngfw firewall create ' '--name {cloudngfw_firewall_name} ' '-g {rg} ' '--location eastus ' '--associated-rulestack {{"location":eastus,"resource-id":{rulestack_id}}} ' '--dns-settings {{"enable-dns-proxy":DISABLED,"enabled-dns-type":CUSTOM}} ' '--is-panorama-managed FALSE ' '--marketplace-details {{"marketplace-subscription-status":Subscribed,"offer-id":pan_swfw_cloud_ngfw,"publisher-id":paloaltonetworks}} ' '--network-profile {{"egress-nat-ip":[],"enable-egress-nat":DISABLED,"network-type":VNET,"public-ips":[{{"address":"20.112.141.94","resource-id":{public_ip_id}}}],' '"vnet-configuration":{{"ip-of-trust-subnet-for-udr":{{"address":10.0.0.0/16}},"trust-subnet":{{"resource-id":{trust_subnet}}},"un-trust-subnet":{{"resource-id":{un_trust_subnet}}},"vnet":{{"resource-id":{vnet_id}}}}}}} ' '--plan-data {{"billing-cycle":MONTHLY,"plan-id":panw-cloud-ngfw-payg,"usage-type":PAYG}} --no-wait') self.cmd('az palo-alto cloudngfw firewall list --resource-group {rg}', checks=[ self.check('length(@)', 1), ]) self.cmd('az palo-alto cloudngfw firewall show --resource-group {rg} -n {cloudngfw_firewall_name}', checks=[ self.check('associatedRulestack.resourceId', '{rulestack_id}'), self.check('dnsSettings.enableDnsProxy', 'DISABLED'), self.check('isPanoramaManaged', "FALSE"), self.check('location', "eastus"), self.check( 'marketplaceDetails.marketplaceSubscriptionStatus', "Subscribed"), self.check('marketplaceDetails.offerId', "pan_swfw_cloud_ngfw"), self.check('marketplaceDetails.publisherId', "paloaltonetworks"), self.check('name', '{cloudngfw_firewall_name}'), self.check('networkProfile.enableEgressNat', "DISABLED"), self.check('planData.billingCycle', "MONTHLY") ]) self.cmd( 'az palo-alto cloudngfw firewall delete --resource-group {rg} -n {cloudngfw_firewall_name}') @AllowLargeResponse(size_kb=10240) def test_palo_alto_firewall_update(self): self.kwargs.update({ 'resource_group': 'rheaTerraformTest', 'firewall_name': 'prodStabilityTest', }) self.cmd( 'az palo-alto cloudngfw firewall update --name {firewall_name} -g {resource_group} --tags {{"tagName":"value"}}') self.cmd( 'az palo-alto cloudngfw firewall show --name {firewall_name} -g {resource_group}', self.check('tags.tagName', "value")) @AllowLargeResponse(size_kb=10240) def test_palo_alto_firewall_v2(self): self.kwargs.update({ 'loc': 'eastus', 'resource_group': 'rheaTerraformTest', 'firewall_name': 'prodStabilityTest', 'workspace': self.create_random_name('workspace', 15), }) self.cmd('az palo-alto cloudngfw firewall save-log-profile --resource-group {resource_group} -n {firewall_name} ' '--log-option "SAME_DESTINATION" --log-type "TRAFFIC" ' '--common-destination {{"monitor-configurations":{{"id":"/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/sudh_fire_test/providers/Microsoft.OperationalInsights/workspaces/testAnalyticsX","primary-key":"7R5uguOLkTF6zByLV9ef5402y4dQnhiSlNMTKNSpEbjZoBrGrNnM2rD4E7+0v1yFg5y6h3RlrIa7th7qJnoHcQ==","secondary-key":"7lmsLYTVizgkstJpno4fY6u36qmVw4rkaIfzhx82ymLIdYDy0wbq7Tdydkje3z50KbKsQnzhg8KAPFpEki/Buw==","subscription-id":"2bf4a339-294d-4c25-b0b2-ef649e9f5c27","workspace":"63e674d3-cc87-48c6-94cb-2d28a0b245fc"}}}}') self.cmd( 'az palo-alto cloudngfw firewall show-log-profile --resource-group {resource_group} -n {firewall_name} ', self.check('type(@)', 'object')) self.cmd( 'az palo-alto cloudngfw firewall show-support-info --resource-group {resource_group} -n {firewall_name}') self.cmd( 'az palo-alto cloudngfw firewall status list --resource-group {resource_group} -n {firewall_name}') self.cmd( 'az palo-alto cloudngfw firewall status default show --resource-group {resource_group} -n {firewall_name}') @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_networks_cloudngfw_local_rulestack') def test_palo_alto_networks_cloudngfw_local_rulestack(self, resource_group): self.kwargs.update({ 'local_rulestack_name': self.create_random_name('localrulestack', 20), 'certificate_name': self.create_random_name('certificate', 15), 'fqdnlist_name': self.create_random_name('fqdnlist', 15), 'local_rule_name': self.create_random_name('local_rule', 15), 'prefixlist_name': self.create_random_name('prefixlist', 15), 'loc': 'eastus' }) self.cmd('az palo-alto cloudngfw local-rulestack create -g {rg} -n {local_rulestack_name} ' '--identity {{"type":None}} ' '--location {loc} ' '--default-mode IPS ' '--description "local rulestacks" ' '--min-app-id-version "8595-7473" ' '--scope "LOCAL" ' '--security-services {{"vulnerability-profile":"BestPractice","anti-spyware-profile":"BestPractice","anti-virus-profile":"BestPractice","url-filtering-profile":"BestPractice","file-blocking-profile":"BestPractice","dns-subscription":"BestPractice"}}') self.cmd( 'az palo-alto cloudngfw local-rulestack update -g {rg} -n {local_rulestack_name} --tags {{"tag-name":"value"}}') self.cmd('az palo-alto cloudngfw local-rulestack list -g {rg}') self.cmd( 'az palo-alto cloudngfw local-rulestack show -g {rg} -n {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack show-change-log -g {rg} -n {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack show-support-info -g {rg} -n {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack list-app-id -g {rg} -n {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack list-country -g {rg} -n {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack list-firewall -g {rg} -n {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack list-predefined-url-category -g {rg} -n {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack revert -g {rg} -n {local_rulestack_name}') with self.assertRaisesRegex(HttpResponseError, 'ResourcePostActionFailed: Not Found'): self.cmd( 'az palo-alto cloudngfw local-rulestack list-advanced-security-object -g {rg} -n {local_rulestack_name} --type feeds') with self.assertRaisesRegex(HttpResponseError, 'ResourcePostActionFailed: Not Found'): self.cmd( 'az palo-alto cloudngfw local-rulestack list-security-service -g {rg} -n {local_rulestack_name} --type antiSpyware') self.cmd('az palo-alto cloudngfw local-rulestack certificate create -g {rg} ' '--local-rulestack-name {local_rulestack_name} ' '--name {certificate_name} ' '--audit-comment "comment" ' '--certificate-self-signed "TRUE" ' '--description "description" ') self.cmd( 'az palo-alto cloudngfw local-rulestack certificate list -g {rg} --local-rulestack-name {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack certificate show -g {rg} --local-rulestack-name {local_rulestack_name} --name {certificate_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack certificate delete -g {rg} --local-rulestack-name {local_rulestack_name} --name {certificate_name}') self.cmd('az palo-alto cloudngfw local-rulestack fqdnlist create -g {rg} ' '--local-rulestack-name {local_rulestack_name} ' '--name {fqdnlist_name} ' '--audit-comment "string" ' '--description "description" ' '--fqdn-list ["string1","string2"]') self.cmd( 'az palo-alto cloudngfw local-rulestack fqdnlist list -g {rg} --local-rulestack-name {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack fqdnlist show -g {rg} --local-rulestack-name {local_rulestack_name} --name {fqdnlist_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack fqdnlist delete -g {rg} --local-rulestack-name {local_rulestack_name} --name {fqdnlist_name}') self.cmd('az palo-alto cloudngfw local-rulestack prefixlist create -g {rg} ' '--local-rulestack-name {local_rulestack_name} ' '--name {prefixlist_name} ' '--audit-comment "comment" ' '--description "string" ' '--prefix-list ["1.0.0.0/24"]') self.cmd( 'az palo-alto cloudngfw local-rulestack prefixlist list -g {rg} --local-rulestack-name {local_rulestack_name} ') self.cmd( 'az palo-alto cloudngfw local-rulestack prefixlist show -g {rg} --local-rulestack-name {local_rulestack_name} --name {prefixlist_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack prefixlist delete -g {rg} --local-rulestack-name {local_rulestack_name} --name {prefixlist_name}') self.cmd('az palo-alto cloudngfw local-rulestack local-rule create -g {rg} ' '--local-rulestack-name {local_rulestack_name} ' '--rule-name {local_rule_name} ' '--priority "1" ' '--action-type "Allow" ' '--enable-logging "DISABLED" ' '--rule-state "DISABLED" ') self.cmd( 'az palo-alto cloudngfw local-rulestack local-rule list -g {rg} --local-rulestack-name {local_rulestack_name}') self.cmd( 'az palo-alto cloudngfw local-rulestack local-rule show -g {rg} --local-rulestack-name {local_rulestack_name} --priority "1"') self.cmd( 'az palo-alto cloudngfw local-rulestack local-rule delete -g {rg} --local-rulestack-name {local_rulestack_name} --priority "1"') self.cmd( 'az palo-alto cloudngfw local-rulestack local-rule delete -g {rg} --local-rulestack-name {local_rulestack_name} --priority "1000000"') self.cmd( 'az palo-alto cloudngfw local-rulestack delete -g {rg} -n {local_rulestack_name}') @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_cloudngfw_local_rulestack_with_counter') def test_palo_alto_cloudngfw_local_rulestack_with_counter(self, resource_group): self.kwargs.update({ 'resource_group': "rheaTerraformTest", 'local_rulestack_name': "fw0718-lrs", 'priority': "1000000" }) self.cmd( 'az palo-alto cloudngfw local-rulestack local-rule show-counter -g {resource_group} --local-rulestack-name {local_rulestack_name} --priority {priority}') self.cmd( 'az palo-alto cloudngfw local-rulestack local-rule refresh-counter -g {resource_group} --local-rulestack-name {local_rulestack_name} --priority {priority}') self.cmd( 'az palo-alto cloudngfw local-rulestack local-rule reset-counter -g {resource_group} --local-rulestack-name {local_rulestack_name} --priority {priority}') @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_cloudngfw_local_rulestackcommit', location='eastus') def test_palo_alto_cloudngfw_local_rulestack_commit(self, resource_group): self.kwargs.update({ 'rg2': self.create_random_name('rg', 10), 'local_rulestack1': self.create_random_name('lr', 10), 'local_rulestack2': self.create_random_name('lr', 10), 'fqdn_name': self.create_random_name('fqdn', 10), 'loc': "eastus", }) self.cmd('az group create -n {rg2} -l {loc}') self.cmd('az palo-alto cloudngfw local-rulestack create -g {rg} -n {local_rulestack1} --location {loc} --default-mode IPS --description "local rulestacks" --min-app-id-version 8595-7473 --scope "LOCAL"', self.check('name', '{local_rulestack1}')) self.cmd('az palo-alto cloudngfw local-rulestack create -g {rg2} -n {local_rulestack2} --location {loc} --default-mode IPS --description "test"', self.check('name', '{local_rulestack2}')) # Then add FQDN to Rulestack self.cmd( 'az palo-alto cloudngfw local-rulestack fqdnlist create --local-rulestack-name {local_rulestack2} --name {fqdn_name} --fqdn-list microsoft.com -g {rg2}') self.cmd('az palo-alto cloudngfw local-rulestack commit --local-rulestack-name {local_rulestack2} -g {rg2}', self.check('status', 'Succeeded'))
class PaloAltoNetworksScenario(ScenarioTest): @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_networks_cloudngfw_firewall', location='eastus') def test_palo_alto_networks_cloudngfw_firewall(self, resource_group): pass @AllowLargeResponse(size_kb=10240) def test_palo_alto_firewall_update(self): pass @AllowLargeResponse(size_kb=10240) def test_palo_alto_firewall_v2(self): pass @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_networks_cloudngfw_local_rulestack') def test_palo_alto_networks_cloudngfw_local_rulestack(self, resource_group): pass @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_cloudngfw_local_rulestack_with_counter') def test_palo_alto_cloudngfw_local_rulestack_with_counter(self, resource_group): pass @AllowLargeResponse(size_kb=10240) @ResourceGroupPreparer(name_prefix='cli_test_palo_alto_cloudngfw_local_rulestackcommit', location='eastus') def test_palo_alto_cloudngfw_local_rulestack_commit(self, resource_group): pass
17
0
30
1
28
0
1
0.01
1
0
0
0
6
0
6
6
194
14
179
15
162
1
72
9
65
1
1
1
6
10,471
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/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/local_rulestack/prefixlist/_wait.py
azext_palo_alto_networks.aaz.latest.palo_alto.cloudngfw.local_rulestack.prefixlist._wait.Wait.PrefixListLocalRulestackGet
class PrefixListLocalRulestackGet(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/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}", **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( "localRulestackName", self.ctx.args.local_rulestack_name, required=True, ), **self.serialize_url_param( "name", self.ctx.args.name, required=True, ), **self.serialize_url_param( "resourceGroupName", self.ctx.args.resource_group, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2022-08-29", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( flags={"required": True, "client_flatten": True}, ) _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties properties.audit_comment = AAZStrType( serialized_name="auditComment", ) properties.description = AAZStrType() properties.etag = AAZStrType() properties.prefix_list = AAZListType( serialized_name="prefixList", flags={"required": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", ) prefix_list = cls._schema_on_200.properties.prefix_list prefix_list.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class PrefixListLocalRulestackGet(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
13
0
1
0
1
0
0
0
8
0
9
9
140
17
123
29
106
0
53
22
43
2
1
1
11
10,472
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/palo-alto-networks/azext_palo_alto_networks/aaz/latest/palo_alto/cloudngfw/local_rulestack/prefixlist/_list.py
azext_palo_alto_networks.aaz.latest.palo_alto.cloudngfw.local_rulestack.prefixlist._list.List.PrefixListLocalRulestackListByLocalRulestacks
class PrefixListLocalRulestackListByLocalRulestacks(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/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists", **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( "localRulestackName", self.ctx.args.local_rulestack_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", "2022-08-29", 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.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.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.audit_comment = AAZStrType( serialized_name="auditComment", ) properties.description = AAZStrType() properties.etag = AAZStrType() properties.prefix_list = AAZListType( serialized_name="prefixList", flags={"required": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", ) prefix_list = cls._schema_on_200.value.Element.properties.prefix_list prefix_list.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", ) system_data.created_by = AAZStrType( serialized_name="createdBy", ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", ) return cls._schema_on_200
class PrefixListLocalRulestackListByLocalRulestacks(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
147
19
128
31
111
0
58
24
48
2
1
1
11
10,473
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomPersistentDiskResource
class CustomPersistentDiskResource(_serialization.Model): """Custom persistent disk resource payload. All required parameters must be populated in order to send to server. :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource payload. :vartype custom_persistent_disk_properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomPersistentDiskProperties :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. :vartype storage_id: str """ _validation = { "storage_id": {"required": True}, } _attribute_map = { "custom_persistent_disk_properties": { "key": "customPersistentDiskProperties", "type": "CustomPersistentDiskProperties", }, "storage_id": {"key": "storageId", "type": "str"}, } def __init__( self, *, storage_id: str, custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, **kwargs: Any ) -> None: """ :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource payload. :paramtype custom_persistent_disk_properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomPersistentDiskProperties :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. :paramtype storage_id: str """ super().__init__(**kwargs) self.custom_persistent_disk_properties = custom_persistent_disk_properties self.storage_id = storage_id
class CustomPersistentDiskResource(_serialization.Model): '''Custom persistent disk resource payload. All required parameters must be populated in order to send to server. :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource payload. :vartype custom_persistent_disk_properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomPersistentDiskProperties :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. :vartype storage_id: str ''' def __init__( self, *, storage_id: str, custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, **kwargs: Any ) -> None: ''' :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource payload. :paramtype custom_persistent_disk_properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomPersistentDiskProperties :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. :paramtype storage_id: str ''' pass
2
2
18
0
10
8
1
0.81
1
3
0
0
1
2
1
16
43
5
21
12
13
17
7
6
5
1
2
0
1
10,474
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomizedAcceleratorProperties
class CustomizedAcceleratorProperties(_serialization.Model): """Customized accelerator properties payload. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProvisioningState :ivar accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" and "Fragment". :vartype accelerator_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorType :ivar display_name: :vartype display_name: str :ivar description: :vartype description: str :ivar icon_url: :vartype icon_url: str :ivar accelerator_tags: :vartype accelerator_tags: list[str] :ivar imports: Imports references all imports that this accelerator/fragment depends upon. :vartype imports: list[str] :ivar git_repository: Required. :vartype git_repository: ~azure.mgmt.appplatform.v2023_12_01.models.AcceleratorGitRepository """ _validation = { "provisioning_state": {"readonly": True}, "imports": {"readonly": True}, "git_repository": {"required": True}, } _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "accelerator_type": {"key": "acceleratorType", "type": "str"}, "display_name": {"key": "displayName", "type": "str"}, "description": {"key": "description", "type": "str"}, "icon_url": {"key": "iconUrl", "type": "str"}, "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, "imports": {"key": "imports", "type": "[str]"}, "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, } def __init__( self, *, git_repository: "_models.AcceleratorGitRepository", accelerator_type: Optional[Union[str, "_models.CustomizedAcceleratorType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, icon_url: Optional[str] = None, accelerator_tags: Optional[List[str]] = None, **kwargs: Any ) -> None: """ :keyword accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" and "Fragment". :paramtype accelerator_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorType :keyword display_name: :paramtype display_name: str :keyword description: :paramtype description: str :keyword icon_url: :paramtype icon_url: str :keyword accelerator_tags: :paramtype accelerator_tags: list[str] :keyword git_repository: Required. :paramtype git_repository: ~azure.mgmt.appplatform.v2023_12_01.models.AcceleratorGitRepository """ super().__init__(**kwargs) self.provisioning_state = None self.accelerator_type = accelerator_type self.display_name = display_name self.description = description self.icon_url = icon_url self.accelerator_tags = accelerator_tags self.imports = None self.git_repository = git_repository
class CustomizedAcceleratorProperties(_serialization.Model): '''Customized accelerator properties payload. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to server. :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProvisioningState :ivar accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" and "Fragment". :vartype accelerator_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorType :ivar display_name: :vartype display_name: str :ivar description: :vartype description: str :ivar icon_url: :vartype icon_url: str :ivar accelerator_tags: :vartype accelerator_tags: list[str] :ivar imports: Imports references all imports that this accelerator/fragment depends upon. :vartype imports: list[str] :ivar git_repository: Required. :vartype git_repository: ~azure.mgmt.appplatform.v2023_12_01.models.AcceleratorGitRepository ''' def __init__( self, *, git_repository: "_models.AcceleratorGitRepository", accelerator_type: Optional[Union[str, "_models.CustomizedAcceleratorType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, icon_url: Optional[str] = None, accelerator_tags: Optional[List[str]] = None, **kwargs: Any ) -> None: ''' :keyword accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" and "Fragment". :paramtype accelerator_type: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorType :keyword display_name: :paramtype display_name: str :keyword description: :paramtype description: str :keyword icon_url: :paramtype icon_url: str :keyword accelerator_tags: :paramtype accelerator_tags: list[str] :keyword git_repository: Required. :paramtype git_repository: ~azure.mgmt.appplatform.v2023_12_01.models.AcceleratorGitRepository ''' pass
2
2
36
0
20
16
1
1.11
1
3
0
0
1
8
1
16
82
6
36
22
24
40
13
12
11
1
2
0
1
10,475
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomizedAcceleratorResource
class CustomizedAcceleratorResource(ProxyResource): """Customized accelerator resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Customized accelerator properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties :ivar sku: Sku of the customized accelerator resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, "sku": {"key": "sku", "type": "Sku"}, } def __init__( self, *, properties: Optional["_models.CustomizedAcceleratorProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: """ :keyword properties: Customized accelerator properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties :keyword sku: Sku of the customized accelerator resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ super().__init__(**kwargs) self.properties = properties self.sku = sku
class CustomizedAcceleratorResource(ProxyResource): '''Customized accelerator resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Customized accelerator properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties :ivar sku: Sku of the customized accelerator resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' def __init__( self, *, properties: Optional["_models.CustomizedAcceleratorProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: ''' :keyword properties: Customized accelerator properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorProperties :keyword sku: Sku of the customized accelerator resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' pass
2
2
17
0
10
7
1
0.88
1
2
0
0
1
2
1
17
52
5
25
12
17
22
7
6
5
1
4
0
1
10,476
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/peering/azext_peering/tests/latest/test_peering_scenario.py
azext_peering.tests.latest.test_peering_scenario.PeeringManagementClientScenarioTest
class PeeringManagementClientScenarioTest(ScenarioTest): @unittest.skip('') @ResourceGroupPreparer(name_prefix='clitestpeering_rgName'[:7], key='rg', parameter_name='rg') def test_peering(self, rg): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) self.kwargs.update({ 'myAsn1': 'myAsn1', 'PeerAsns_2': 'PeerAsns_2', 'peeringName': 'peeringName', 'peeringServiceName': 'peeringServiceName', 'registeredAsnName': 'registeredAsnName', 'RegisteredAsns_2': 'RegisteredAsns_2', 'registeredPrefixName': 'registeredPrefixName', 'peeringServicePrefixName': 'peeringServicePrefixName', })
class PeeringManagementClientScenarioTest(ScenarioTest): @unittest.skip('') @ResourceGroupPreparer(name_prefix='clitestpeering_rgName'[:7], key='rg', parameter_name='rg') def test_peering(self, rg): pass
4
0
16
2
14
0
1
0
1
0
0
0
1
0
1
1
20
3
17
3
13
0
4
2
2
1
1
0
1
10,477
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayOperatorResourceRequests
class GatewayOperatorResourceRequests(_serialization.Model): """Properties of the Spring Cloud Gateway Operator. Variables are only populated by the server, and will be ignored when sending a request. :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. :vartype cpu: str :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. :vartype memory: str :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. :vartype instance_count: int """ _validation = { "cpu": {"readonly": True}, "memory": {"readonly": True}, "instance_count": {"readonly": True}, } _attribute_map = { "cpu": {"key": "cpu", "type": "str"}, "memory": {"key": "memory", "type": "str"}, "instance_count": {"key": "instanceCount", "type": "int"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.cpu = None self.memory = None self.instance_count = None
class GatewayOperatorResourceRequests(_serialization.Model): '''Properties of the Spring Cloud Gateway Operator. Variables are only populated by the server, and will be ignored when sending a request. :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. :vartype cpu: str :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. :vartype memory: str :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. :vartype instance_count: int ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
6
0
5
1
1
0.63
1
2
0
0
1
3
1
16
31
5
16
7
14
10
8
7
6
1
2
0
1
10,478
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayOperatorProperties
class GatewayOperatorProperties(_serialization.Model): """Properties of the Spring Cloud Gateway Operator. Variables are only populated by the server, and will be ignored when sending a request. :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayOperatorResourceRequests :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayInstance] """ _validation = { "resource_requests": {"readonly": True}, "instances": {"readonly": True}, } _attribute_map = { "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, "instances": {"key": "instances", "type": "[GatewayInstance]"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_requests = None self.instances = None
class GatewayOperatorProperties(_serialization.Model): '''Properties of the Spring Cloud Gateway Operator. Variables are only populated by the server, and will be ignored when sending a request. :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayOperatorResourceRequests :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayInstance] ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
5
0
4
1
1
0.69
1
2
0
0
1
2
1
16
27
5
13
6
11
9
7
6
5
1
2
0
1
10,479
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayCustomDomainResourceCollection
class GatewayCustomDomainResourceCollection(_serialization.Model): """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for next set. :ivar value: Collection of Spring Cloud Gateway custom domain resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.GatewayCustomDomainResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of Spring Cloud Gateway custom domain resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class GatewayCustomDomainResourceCollection(_serialization.Model): '''Object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for next set. :ivar value: Collection of Spring Cloud Gateway custom domain resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.GatewayCustomDomainResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of Spring Cloud Gateway custom domain resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
1
1
3
0
0
1
2
1
16
33
3
15
11
7
15
6
5
4
1
2
0
1
10,480
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayCustomDomainResource
class GatewayCustomDomainResource(ProxyResource): """Custom domain of the Spring Cloud Gateway. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: The properties of custom domain for Spring Cloud Gateway. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, } def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: The properties of custom domain for Spring Cloud Gateway. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainProperties """ super().__init__(**kwargs) self.properties = properties
class GatewayCustomDomainResource(ProxyResource): '''Custom domain of the Spring Cloud Gateway. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: The properties of custom domain for Spring Cloud Gateway. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainProperties ''' def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: The properties of custom domain for Spring Cloud Gateway. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCustomDomainProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
10,481
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.ExecAction
class ExecAction(ProbeAction): """ExecAction describes a "run in container" action. All required parameters must be populated in order to send to server. :ivar type: The type of the action to take to perform the health check. Required. Known values are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ProbeActionType :ivar command: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :vartype command: list[str] """ _validation = { "type": {"required": True}, } _attribute_map = { "type": {"key": "type", "type": "str"}, "command": {"key": "command", "type": "[str]"}, } def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword command: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :paramtype command: list[str] """ super().__init__(**kwargs) self.type: str = "ExecAction" self.command = command
class ExecAction(ProbeAction): '''ExecAction describes a "run in container" action. All required parameters must be populated in order to send to server. :ivar type: The type of the action to take to perform the health check. Required. Known values are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". :vartype type: str or ~azure.mgmt.appplatform.v2023_12_01.models.ProbeActionType :ivar command: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :vartype command: list[str] ''' def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: ''' :keyword command: Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :paramtype command: list[str] ''' pass
2
2
12
0
4
8
1
1.67
1
3
0
0
1
2
1
17
37
5
12
6
10
20
7
6
5
1
3
0
1
10,482
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DevToolPortalResourceCollection
class DevToolPortalResourceCollection(_serialization.Model): """Object that includes an array of Dev Tool Portal resources and a possible link for next set. :ivar value: Collection of Dev Tool Portal resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[DevToolPortalResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.DevToolPortalResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of Dev Tool Portal resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class DevToolPortalResourceCollection(_serialization.Model): '''Object that includes an array of Dev Tool Portal resources and a possible link for next set. :ivar value: Collection of Dev Tool Portal resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.DevToolPortalResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of Dev Tool Portal resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
0.93
1
3
0
0
1
2
1
16
32
3
15
11
7
14
6
5
4
1
2
0
1
10,483
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DevToolPortalResource
class DevToolPortalResource(ProxyResource): """Dev Tool Portal resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Dev Tool Portal properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalProperties """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "DevToolPortalProperties"}, } def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Dev Tool Portal properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalProperties """ super().__init__(**kwargs) self.properties = properties
class DevToolPortalResource(ProxyResource): '''Dev Tool Portal resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Dev Tool Portal properties payload. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalProperties ''' def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: ''' :keyword properties: Dev Tool Portal properties payload. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalProperties ''' pass
2
2
7
0
3
4
1
1
1
2
0
0
1
1
1
17
39
5
17
5
15
17
6
5
4
1
4
0
1
10,484
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DevToolPortalProperties
class DevToolPortalProperties(_serialization.Model): """Dev Tool Portal properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalProvisioningState :ivar components: Collection of components belong to Dev Tool Portal. :vartype components: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalComponent] :ivar public: Indicates whether the resource exposes public endpoint. :vartype public: bool :ivar url: URL of the resource, exposed when 'public' is true. :vartype url: str :ivar sso_properties: Single sign-on related configuration. :vartype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalSsoProperties :ivar features: Settings for Dev Tool Portal. :vartype features: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureSettings """ _validation = { "provisioning_state": {"readonly": True}, "components": {"readonly": True}, "url": {"readonly": True}, } _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "components": {"key": "components", "type": "[DevToolPortalComponent]"}, "public": {"key": "public", "type": "bool"}, "url": {"key": "url", "type": "str"}, "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, } def __init__( self, *, public: bool = False, sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, features: Optional["_models.DevToolPortalFeatureSettings"] = None, **kwargs: Any ) -> None: """ :keyword public: Indicates whether the resource exposes public endpoint. :paramtype public: bool :keyword sso_properties: Single sign-on related configuration. :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalSsoProperties :keyword features: Settings for Dev Tool Portal. :paramtype features: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureSettings """ super().__init__(**kwargs) self.provisioning_state = None self.components = None self.public = public self.url = None self.sso_properties = sso_properties self.features = features
class DevToolPortalProperties(_serialization.Model): '''Dev Tool Portal properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalProvisioningState :ivar components: Collection of components belong to Dev Tool Portal. :vartype components: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalComponent] :ivar public: Indicates whether the resource exposes public endpoint. :vartype public: bool :ivar url: URL of the resource, exposed when 'public' is true. :vartype url: str :ivar sso_properties: Single sign-on related configuration. :vartype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalSsoProperties :ivar features: Settings for Dev Tool Portal. :vartype features: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureSettings ''' def __init__( self, *, public: bool = False, sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, features: Optional["_models.DevToolPortalFeatureSettings"] = None, **kwargs: Any ) -> None: ''' :keyword public: Indicates whether the resource exposes public endpoint. :paramtype public: bool :keyword sso_properties: Single sign-on related configuration. :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalSsoProperties :keyword features: Settings for Dev Tool Portal. :paramtype features: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureSettings ''' pass
2
2
24
0
15
9
1
0.9
1
3
0
0
1
6
1
16
60
5
29
17
20
26
11
10
9
1
2
0
1
10,485
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.GatewayPropertiesClientAuth
class GatewayPropertiesClientAuth(_serialization.Model): """Client-Certification Authentication. :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. :vartype certificates: list[str] :ivar certificate_verification: Whether to enable certificate verification or not. Known values are: "Enabled" and "Disabled". :vartype certificate_verification: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCertificateVerification """ _validation = { "certificates": {"unique": True}, } _attribute_map = { "certificates": {"key": "certificates", "type": "[str]"}, "certificate_verification": {"key": "certificateVerification", "type": "str"}, } def __init__( self, *, certificates: Optional[List[str]] = None, certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", **kwargs: Any ) -> None: """ :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. :paramtype certificates: list[str] :keyword certificate_verification: Whether to enable certificate verification or not. Known values are: "Enabled" and "Disabled". :paramtype certificate_verification: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCertificateVerification """ super().__init__(**kwargs) self.certificates = certificates self.certificate_verification = certificate_verification
class GatewayPropertiesClientAuth(_serialization.Model): '''Client-Certification Authentication. :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. :vartype certificates: list[str] :ivar certificate_verification: Whether to enable certificate verification or not. Known values are: "Enabled" and "Disabled". :vartype certificate_verification: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCertificateVerification ''' def __init__( self, *, certificates: Optional[List[str]] = None, certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", **kwargs: Any ) -> None: ''' :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. :paramtype certificates: list[str] :keyword certificate_verification: Whether to enable certificate verification or not. Known values are: "Enabled" and "Disabled". :paramtype certificate_verification: str or ~azure.mgmt.appplatform.v2023_12_01.models.GatewayCertificateVerification ''' pass
2
2
18
0
10
8
1
0.89
1
3
0
0
1
2
1
16
38
4
18
12
10
16
7
6
5
1
2
0
1
10,486
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DevToolPortalFeatureSettings
class DevToolPortalFeatureSettings(_serialization.Model): """Settings for Dev Tool Portal. :ivar application_accelerator: Detail of Accelerator plugin. :vartype application_accelerator: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail :ivar application_live_view: Detail of App Live View plugin. :vartype application_live_view: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail """ _attribute_map = { "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, } def __init__( self, *, application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, **kwargs: Any ) -> None: """ :keyword application_accelerator: Detail of Accelerator plugin. :paramtype application_accelerator: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail :keyword application_live_view: Detail of App Live View plugin. :paramtype application_live_view: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail """ super().__init__(**kwargs) self.application_accelerator = application_accelerator self.application_live_view = application_live_view
class DevToolPortalFeatureSettings(_serialization.Model): '''Settings for Dev Tool Portal. :ivar application_accelerator: Detail of Accelerator plugin. :vartype application_accelerator: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail :ivar application_live_view: Detail of App Live View plugin. :vartype application_live_view: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail ''' def __init__( self, *, application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, **kwargs: Any ) -> None: ''' :keyword application_accelerator: Detail of Accelerator plugin. :paramtype application_accelerator: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail :keyword application_live_view: Detail of App Live View plugin. :paramtype application_live_view: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureDetail ''' pass
2
2
18
0
10
8
1
1.07
1
2
0
0
1
2
1
16
34
3
15
11
7
16
6
5
4
1
2
0
1
10,487
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DevToolPortalComponent
class DevToolPortalComponent(_serialization.Model): """DevToolPortalComponent. Variables are only populated by the server, and will be ignored when sending a request. :ivar name: :vartype name: str :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResourceRequests :ivar instances: Collection of instances belong to Dev Tool Portal. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalInstance] """ _validation = { "name": {"readonly": True}, "resource_requests": {"readonly": True}, "instances": {"readonly": True}, } _attribute_map = { "name": {"key": "name", "type": "str"}, "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None self.resource_requests = None self.instances = None
class DevToolPortalComponent(_serialization.Model): '''DevToolPortalComponent. Variables are only populated by the server, and will be ignored when sending a request. :ivar name: :vartype name: str :ivar resource_requests: The requested resource quantity for required CPU and Memory. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalResourceRequests :ivar instances: Collection of instances belong to Dev Tool Portal. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalInstance] ''' def __init__(self, **kwargs: Any) -> None: ''' ''' pass
2
2
6
0
5
1
1
0.69
1
2
0
0
1
3
1
16
32
5
16
7
14
11
8
7
6
1
2
0
1
10,488
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DeploymentSettings
class DeploymentSettings(_serialization.Model): """Deployment settings payload. :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceRequests :ivar environment_variables: Collection of environment variables. :vartype environment_variables: dict[str, str] :ivar apms: Collection of ApmReferences. :vartype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :ivar addon_configs: Collection of addons. :vartype addon_configs: dict[str, JSON] :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype startup_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds. :vartype termination_grace_period_seconds: int :ivar container_probe_settings: Container liveness and readiness probe settings. :vartype container_probe_settings: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerProbeSettings """ _attribute_map = { "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, "environment_variables": {"key": "environmentVariables", "type": "{str}"}, "apms": {"key": "apms", "type": "[ApmReference]"}, "addon_configs": {"key": "addonConfigs", "type": "{object}"}, "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, "startup_probe": {"key": "startupProbe", "type": "Probe"}, "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, } def __init__( self, *, resource_requests: Optional["_models.ResourceRequests"] = None, environment_variables: Optional[Dict[str, str]] = None, apms: Optional[List["_models.ApmReference"]] = None, addon_configs: Optional[Dict[str, JSON]] = None, liveness_probe: Optional["_models.Probe"] = None, readiness_probe: Optional["_models.Probe"] = None, startup_probe: Optional["_models.Probe"] = None, termination_grace_period_seconds: int = 90, container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, **kwargs: Any ) -> None: """ :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. :paramtype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceRequests :keyword environment_variables: Collection of environment variables. :paramtype environment_variables: dict[str, str] :keyword apms: Collection of ApmReferences. :paramtype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :keyword addon_configs: Collection of addons. :paramtype addon_configs: dict[str, JSON] :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :keyword startup_probe: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds. :paramtype termination_grace_period_seconds: int :keyword container_probe_settings: Container liveness and readiness probe settings. :paramtype container_probe_settings: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerProbeSettings """ super().__init__(**kwargs) self.resource_requests = resource_requests self.environment_variables = environment_variables self.apms = apms self.addon_configs = addon_configs self.liveness_probe = liveness_probe self.readiness_probe = readiness_probe self.startup_probe = startup_probe self.termination_grace_period_seconds = termination_grace_period_seconds self.container_probe_settings = container_probe_settings
class DeploymentSettings(_serialization.Model): '''Deployment settings payload. :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. :vartype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceRequests :ivar environment_variables: Collection of environment variables. :vartype environment_variables: dict[str, str] :ivar apms: Collection of ApmReferences. :vartype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :ivar addon_configs: Collection of addons. :vartype addon_configs: dict[str, JSON] :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :vartype startup_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds. :vartype termination_grace_period_seconds: int :ivar container_probe_settings: Container liveness and readiness probe settings. :vartype container_probe_settings: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerProbeSettings ''' def __init__( self, *, resource_requests: Optional["_models.ResourceRequests"] = None, environment_variables: Optional[Dict[str, str]] = None, apms: Optional[List["_models.ApmReference"]] = None, addon_configs: Optional[Dict[str, JSON]] = None, liveness_probe: Optional["_models.Probe"] = None, readiness_probe: Optional["_models.Probe"] = None, startup_probe: Optional["_models.Probe"] = None, termination_grace_period_seconds: int = 90, container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, **kwargs: Any ) -> None: ''' :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. :paramtype resource_requests: ~azure.mgmt.appplatform.v2023_12_01.models.ResourceRequests :keyword environment_variables: Collection of environment variables. :paramtype environment_variables: dict[str, str] :keyword apms: Collection of ApmReferences. :paramtype apms: list[~azure.mgmt.appplatform.v2023_12_01.models.ApmReference] :keyword addon_configs: Collection of addons. :paramtype addon_configs: dict[str, JSON] :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :keyword startup_probe: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_12_01.models.Probe :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds. :paramtype termination_grace_period_seconds: int :keyword container_probe_settings: Container liveness and readiness probe settings. :paramtype container_probe_settings: ~azure.mgmt.appplatform.v2023_12_01.models.ContainerProbeSettings ''' pass
2
2
63
0
24
39
1
2.17
1
4
0
0
1
9
1
16
117
3
36
25
21
78
13
12
11
1
2
0
1
10,489
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DeploymentResourceProperties
class DeploymentResourceProperties(_serialization.Model): """Deployment resource properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar source: Uploaded source information of the deployment. :vartype source: ~azure.mgmt.appplatform.v2023_12_01.models.UserSourceInfo :ivar deployment_settings: Deployment settings of the Deployment. :vartype deployment_settings: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentSettings :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", "Updating", "Succeeded", and "Failed". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceProvisioningState :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". :vartype status: str or ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceStatus :ivar active: Indicates whether the Deployment is active. :vartype active: bool :ivar instances: Collection of instances belong to the Deployment. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentInstance] """ _validation = { "provisioning_state": {"readonly": True}, "status": {"readonly": True}, "instances": {"readonly": True}, } _attribute_map = { "source": {"key": "source", "type": "UserSourceInfo"}, "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, "provisioning_state": {"key": "provisioningState", "type": "str"}, "status": {"key": "status", "type": "str"}, "active": {"key": "active", "type": "bool"}, "instances": {"key": "instances", "type": "[DeploymentInstance]"}, } def __init__( self, *, source: Optional["_models.UserSourceInfo"] = None, deployment_settings: Optional["_models.DeploymentSettings"] = None, active: Optional[bool] = None, **kwargs: Any ) -> None: """ :keyword source: Uploaded source information of the deployment. :paramtype source: ~azure.mgmt.appplatform.v2023_12_01.models.UserSourceInfo :keyword deployment_settings: Deployment settings of the Deployment. :paramtype deployment_settings: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentSettings :keyword active: Indicates whether the Deployment is active. :paramtype active: bool """ super().__init__(**kwargs) self.source = source self.deployment_settings = deployment_settings self.provisioning_state = None self.status = None self.active = active self.instances = None
class DeploymentResourceProperties(_serialization.Model): '''Deployment resource properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar source: Uploaded source information of the deployment. :vartype source: ~azure.mgmt.appplatform.v2023_12_01.models.UserSourceInfo :ivar deployment_settings: Deployment settings of the Deployment. :vartype deployment_settings: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentSettings :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", "Updating", "Succeeded", and "Failed". :vartype provisioning_state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceProvisioningState :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". :vartype status: str or ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceStatus :ivar active: Indicates whether the Deployment is active. :vartype active: bool :ivar instances: Collection of instances belong to the Deployment. :vartype instances: list[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentInstance] ''' def __init__( self, *, source: Optional["_models.UserSourceInfo"] = None, deployment_settings: Optional["_models.DeploymentSettings"] = None, active: Optional[bool] = None, **kwargs: Any ) -> None: ''' :keyword source: Uploaded source information of the deployment. :paramtype source: ~azure.mgmt.appplatform.v2023_12_01.models.UserSourceInfo :keyword deployment_settings: Deployment settings of the Deployment. :paramtype deployment_settings: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentSettings :keyword active: Indicates whether the Deployment is active. :paramtype active: bool ''' pass
2
2
23
0
15
8
1
0.86
1
3
0
0
1
6
1
16
59
5
29
17
20
25
11
10
9
1
2
0
1
10,490
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DeploymentResourceCollection
class DeploymentResourceCollection(_serialization.Model): """Object that includes an array of App resources and a possible link for next set. :ivar value: Collection of Deployment resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[DeploymentResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.DeploymentResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of Deployment resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class DeploymentResourceCollection(_serialization.Model): '''Object that includes an array of App resources and a possible link for next set. :ivar value: Collection of Deployment resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.DeploymentResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of Deployment resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
0.93
1
3
0
0
1
2
1
16
32
3
15
11
7
14
6
5
4
1
2
0
1
10,491
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DeploymentResource
class DeploymentResource(ProxyResource): """Deployment resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the Deployment resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceProperties :ivar sku: Sku of the Deployment resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, "sku": {"key": "sku", "type": "Sku"}, } def __init__( self, *, properties: Optional["_models.DeploymentResourceProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: """ :keyword properties: Properties of the Deployment resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceProperties :keyword sku: Sku of the Deployment resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku """ super().__init__(**kwargs) self.properties = properties self.sku = sku
class DeploymentResource(ProxyResource): '''Deployment resource payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.appplatform.v2023_12_01.models.SystemData :ivar properties: Properties of the Deployment resource. :vartype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceProperties :ivar sku: Sku of the Deployment resource. :vartype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' def __init__( self, *, properties: Optional["_models.DeploymentResourceProperties"] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> None: ''' :keyword properties: Properties of the Deployment resource. :paramtype properties: ~azure.mgmt.appplatform.v2023_12_01.models.DeploymentResourceProperties :keyword sku: Sku of the Deployment resource. :paramtype sku: ~azure.mgmt.appplatform.v2023_12_01.models.Sku ''' pass
2
2
16
0
10
6
1
0.84
1
2
0
0
1
2
1
17
51
5
25
12
17
21
7
6
5
1
4
0
1
10,492
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomizedAcceleratorValidateResult
class CustomizedAcceleratorValidateResult(_serialization.Model): """Validation result for customized accelerator properties. :ivar state: State of the customized accelerator validation result. Known values are: "Valid" and "Invalid". :vartype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResultState :ivar error_message: The detail validation results. :vartype error_message: str """ _attribute_map = { "state": {"key": "state", "type": "str"}, "error_message": {"key": "errorMessage", "type": "str"}, } def __init__( self, *, state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", error_message: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword state: State of the customized accelerator validation result. Known values are: "Valid" and "Invalid". :paramtype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResultState :keyword error_message: The detail validation results. :paramtype error_message: str """ super().__init__(**kwargs) self.state = state self.error_message = error_message
class CustomizedAcceleratorValidateResult(_serialization.Model): '''Validation result for customized accelerator properties. :ivar state: State of the customized accelerator validation result. Known values are: "Valid" and "Invalid". :vartype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResultState :ivar error_message: The detail validation results. :vartype error_message: str ''' def __init__( self, *, state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", error_message: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword state: State of the customized accelerator validation result. Known values are: "Valid" and "Invalid". :paramtype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorValidateResultState :keyword error_message: The detail validation results. :paramtype error_message: str ''' pass
2
2
18
0
10
8
1
1.07
1
3
0
0
1
2
1
16
34
3
15
11
7
16
6
5
4
1
2
0
1
10,493
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.CustomizedAcceleratorResourceCollection
class CustomizedAcceleratorResourceCollection(_serialization.Model): """CustomizedAcceleratorResourceCollection. :ivar value: :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :ivar next_link: :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :keyword next_link: :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class CustomizedAcceleratorResourceCollection(_serialization.Model): '''CustomizedAcceleratorResourceCollection. :ivar value: :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :ivar next_link: :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.CustomizedAcceleratorResource] :keyword next_link: :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
0.87
1
3
0
0
1
2
1
16
31
3
15
11
7
13
6
5
4
1
2
0
1
10,494
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/playwright-cli-extension/azext_playwright_cli_extension/aaz/latest/playwright_testing/_check_name_availability.py
azext_playwright_cli_extension.aaz.latest.playwright_testing._check_name_availability.CheckNameAvailability.AccountsCheckNameAvailability
class AccountsCheckNameAvailability(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.AzurePlaywrightService/checkNameAvailability", **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( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "api-version", "2024-12-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("name", AAZStrType, ".name") _builder.set_prop("type", AAZStrType, ".type") return self.serialize_content(_content_value) def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.message = AAZStrType() _schema_on_200.name_available = AAZBoolType( serialized_name="nameAvailable", ) _schema_on_200.reason = AAZStrType() return cls._schema_on_200
class AccountsCheckNameAvailability(AAZHttpOperation): def __call__(self, *args, **kwargs): pass @property def url(self): pass @property def method(self): pass @property def error_format(self): pass @property def url_parameters(self): pass @property def query_parameters(self): pass @property def header_parameters(self): pass @property def content(self): pass def on_200(self, session): pass @classmethod def _build_schema_on_200(cls): pass
19
0
7
1
7
0
1
0
1
0
0
0
9
0
10
10
95
16
79
29
60
0
41
21
30
2
1
1
12
10,495
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.DevToolPortalFeatureDetail
class DevToolPortalFeatureDetail(_serialization.Model): """Detail settings for Dev Tool Portal feature. Variables are only populated by the server, and will be ignored when sending a request. :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". :vartype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureState :ivar route: Route path to visit the plugin. :vartype route: str """ _validation = { "route": {"readonly": True}, } _attribute_map = { "state": {"key": "state", "type": "str"}, "route": {"key": "route", "type": "str"}, } def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: """ :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". :paramtype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureState """ super().__init__(**kwargs) self.state = state self.route = None
class DevToolPortalFeatureDetail(_serialization.Model): '''Detail settings for Dev Tool Portal feature. Variables are only populated by the server, and will be ignored when sending a request. :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". :vartype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureState :ivar route: Route path to visit the plugin. :vartype route: str ''' def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: ''' :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". :paramtype state: str or ~azure.mgmt.appplatform.v2023_12_01.models.DevToolPortalFeatureState ''' pass
2
2
8
0
4
4
1
0.92
1
3
0
0
1
2
1
16
28
5
12
6
10
11
7
6
5
1
2
0
1
10,496
Azure/azure-cli-extensions
src/spring/azext_spring/vendored_sdks/appplatform/v2023_12_01/models/_models_py3.py
azext_spring.vendored_sdks.appplatform.v2023_12_01.models._models_py3.BuildpackBindingResourceCollection
class BuildpackBindingResourceCollection(_serialization.Model): """Object that includes an array of BuildpackBinding resources and a possible link for next set. :ivar value: Collection of BuildpackBinding resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str """ _attribute_map = { "value": {"key": "value", "type": "[BuildpackBindingResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( self, *, value: Optional[List["_models.BuildpackBindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: Collection of BuildpackBinding resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) self.value = value self.next_link = next_link
class BuildpackBindingResourceCollection(_serialization.Model): '''Object that includes an array of BuildpackBinding resources and a possible link for next set. :ivar value: Collection of BuildpackBinding resources. :vartype value: list[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :ivar next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :vartype next_link: str ''' def __init__( self, *, value: Optional[List["_models.BuildpackBindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: ''' :keyword value: Collection of BuildpackBinding resources. :paramtype value: list[~azure.mgmt.appplatform.v2023_12_01.models.BuildpackBindingResource] :keyword next_link: URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. :paramtype next_link: str ''' pass
2
2
17
0
10
7
1
0.93
1
3
0
0
1
2
1
16
32
3
15
11
7
14
6
5
4
1
2
0
1
10,497
Azure/azure-cli-extensions
src/costmanagement/azext_costmanagement/vendored_sdks/costmanagement/models/_models.py
azext_costmanagement.vendored_sdks.costmanagement.models._models.ProxyResource
class ProxyResource(msrest.serialization.Model): """The Resource model definition. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource Id. :vartype id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param e_tag: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. :type e_tag: str """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'e_tag': {'key': 'eTag', 'type': 'str'}, } def __init__( self, **kwargs ): super(ProxyResource, self).__init__(**kwargs) self.id = None self.name = None self.type = None self.e_tag = kwargs.get('e_tag', None)
class ProxyResource(msrest.serialization.Model): '''The Resource model definition. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource Id. :vartype id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param e_tag: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. :type e_tag: str ''' def __init__( self, **kwargs ): pass
2
1
9
0
9
0
1
0.57
1
1
0
3
1
4
1
1
38
5
21
11
16
12
9
8
7
1
1
0
1
10,498
Azure/azure-cli-extensions
src/costmanagement/azext_costmanagement/vendored_sdks/costmanagement/models/_models.py
azext_costmanagement.vendored_sdks.costmanagement.models._models.Operation
class Operation(msrest.serialization.Model): """A Cost management REST API operation. Variables are only populated by the server, and will be ignored when sending a request. :ivar name: Operation name: {provider}/{resource}/{operation}. :vartype name: str :param display: The object that represents the operation. :type display: ~azure.mgmt.costmanagement.models.OperationDisplay """ _validation = { 'name': {'readonly': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, } def __init__( self, **kwargs ): super(Operation, self).__init__(**kwargs) self.name = None self.display = kwargs.get('display', None)
class Operation(msrest.serialization.Model): '''A Cost management REST API operation. Variables are only populated by the server, and will be ignored when sending a request. :ivar name: Operation name: {provider}/{resource}/{operation}. :vartype name: str :param display: The object that represents the operation. :type display: ~azure.mgmt.costmanagement.models.OperationDisplay ''' def __init__( self, **kwargs ): pass
2
1
7
0
7
0
1
0.47
1
1
0
0
1
2
1
1
27
5
15
9
10
7
7
6
5
1
1
0
1
10,499
Azure/azure-cli-extensions
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/_models_py3.py
azext_cosmosdb_preview.vendored_sdks.azure_mgmt_cosmosdb.models._models_py3.SqlUserDefinedFunctionGetResults
class SqlUserDefinedFunctionGetResults(ARMResourceProperties): """An Azure Cosmos DB userDefinedFunction. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The unique resource identifier of the ARM resource. :vartype id: str :ivar name: The name of the ARM resource. :vartype name: str :ivar type: The type of Azure resource. :vartype type: str :ivar location: The location of the resource group to which the resource belongs. :vartype location: str :ivar tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :vartype tags: dict[str, str] :ivar identity: Identity for the resource. :vartype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity :ivar resource: :vartype resource: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionGetPropertiesResource """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, "location": {"key": "location", "type": "str"}, "tags": {"key": "tags", "type": "{str}"}, "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, "resource": {"key": "properties.resource", "type": "SqlUserDefinedFunctionGetPropertiesResource"}, } def __init__( self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, identity: Optional["_models.ManagedServiceIdentity"] = None, resource: Optional["_models.SqlUserDefinedFunctionGetPropertiesResource"] = None, **kwargs: Any ) -> None: """ :keyword location: The location of the resource group to which the resource belongs. :paramtype location: str :keyword tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :paramtype tags: dict[str, str] :keyword identity: Identity for the resource. :paramtype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity :keyword resource: :paramtype resource: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionGetPropertiesResource """ super().__init__(location=location, tags=tags, identity=identity, **kwargs) self.resource = resource
class SqlUserDefinedFunctionGetResults(ARMResourceProperties): '''An Azure Cosmos DB userDefinedFunction. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The unique resource identifier of the ARM resource. :vartype id: str :ivar name: The name of the ARM resource. :vartype name: str :ivar type: The type of Azure resource. :vartype type: str :ivar location: The location of the resource group to which the resource belongs. :vartype location: str :ivar tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :vartype tags: dict[str, str] :ivar identity: Identity for the resource. :vartype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity :ivar resource: :vartype resource: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionGetPropertiesResource ''' def __init__( self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, identity: Optional["_models.ManagedServiceIdentity"] = None, resource: Optional["_models.SqlUserDefinedFunctionGetPropertiesResource"] = None, **kwargs: Any ) -> None: ''' :keyword location: The location of the resource group to which the resource belongs. :paramtype location: str :keyword tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". :paramtype tags: dict[str, str] :keyword identity: Identity for the resource. :paramtype identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity :keyword resource: :paramtype resource: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionGetPropertiesResource ''' pass
2
2
26
0
11
15
1
1.42
1
3
0
0
1
1
1
17
68
5
26
13
16
37
6
5
4
1
3
0
1