forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 18410 in Azure/azure-rest-api-specs
Merge bfcb0c5414ec9abb5f78dbd25bee87763cc3b5f9 into 50d804bd9e656d0bbd873f1e2ab79b3cee33825c
- Loading branch information
SDKAuto
committed
Mar 30, 2022
1 parent
a1d223a
commit b08a966
Showing
81 changed files
with
41,302 additions
and
7,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"autorest": "3.7.2", | ||
"use": [ | ||
"@autorest/python@5.12.0", | ||
"@autorest/modelerfour@4.19.3" | ||
], | ||
"commit": "b41681e9bdbf5ec2c0617260dfff1305664497de", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs", | ||
"autorest_command": "autorest specification/securityinsights/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", | ||
"readme": "specification/securityinsights/resource-manager/readme.md" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 91 additions & 25 deletions
116
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,133 @@ | ||
{ | ||
"chosen_version": "2020-01-01", | ||
"total_api_version_list": ["2020-01-01"], | ||
"chosen_version": "2022-04-01-preview", | ||
"total_api_version_list": ["2022-04-01-preview"], | ||
"client": { | ||
"name": "SecurityInsights", | ||
"filename": "_security_insights", | ||
"description": "API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider.", | ||
"base_url": "\u0027https://management.azure.com\u0027", | ||
"custom_base_url": null, | ||
"host_value": "\"https://management.azure.com\"", | ||
"parameterized_host_template": null, | ||
"azure_arm": true, | ||
"has_lro_operations": false | ||
"has_lro_operations": false, | ||
"client_side_validation": false, | ||
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SecurityInsightsConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", | ||
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SecurityInsightsConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" | ||
}, | ||
"global_parameters": { | ||
"sync_method": { | ||
"sync": { | ||
"credential": { | ||
"method_signature": "credential, # type: \"TokenCredential\"", | ||
"signature": "credential, # type: \"TokenCredential\"", | ||
"description": "Credential needed for the client to connect to Azure.", | ||
"docstring_type": "~azure.core.credentials.TokenCredential", | ||
"required": true | ||
}, | ||
"subscription_id": { | ||
"method_signature": "subscription_id, # type: str", | ||
"description": "Azure subscription ID.", | ||
"signature": "subscription_id, # type: str", | ||
"description": "The ID of the target subscription.", | ||
"docstring_type": "str", | ||
"required": true | ||
} | ||
}, | ||
"async_method": { | ||
"async": { | ||
"credential": { | ||
"method_signature": "credential, # type: \"AsyncTokenCredential\"", | ||
"signature": "credential: \"AsyncTokenCredential\",", | ||
"description": "Credential needed for the client to connect to Azure.", | ||
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", | ||
"required": true | ||
}, | ||
"subscription_id": { | ||
"method_signature": "subscription_id, # type: str", | ||
"description": "Azure subscription ID.", | ||
"signature": "subscription_id: str,", | ||
"description": "The ID of the target subscription.", | ||
"docstring_type": "str", | ||
"required": true | ||
} | ||
}, | ||
"constant": { | ||
}, | ||
"call": "credential, subscription_id" | ||
"call": "credential, subscription_id", | ||
"service_client_specific": { | ||
"sync": { | ||
"api_version": { | ||
"signature": "api_version=None, # type: Optional[str]", | ||
"description": "API version to use if no profile is provided, or if missing in profile.", | ||
"docstring_type": "str", | ||
"required": false | ||
}, | ||
"base_url": { | ||
"signature": "base_url=\"https://management.azure.com\", # type: str", | ||
"description": "Service URL", | ||
"docstring_type": "str", | ||
"required": false | ||
}, | ||
"profile": { | ||
"signature": "profile=KnownProfiles.default, # type: KnownProfiles", | ||
"description": "A profile definition, from KnownProfiles to dict.", | ||
"docstring_type": "azure.profiles.KnownProfiles", | ||
"required": false | ||
} | ||
}, | ||
"async": { | ||
"api_version": { | ||
"signature": "api_version: Optional[str] = None,", | ||
"description": "API version to use if no profile is provided, or if missing in profile.", | ||
"docstring_type": "str", | ||
"required": false | ||
}, | ||
"base_url": { | ||
"signature": "base_url: str = \"https://management.azure.com\",", | ||
"description": "Service URL", | ||
"docstring_type": "str", | ||
"required": false | ||
}, | ||
"profile": { | ||
"signature": "profile: KnownProfiles = KnownProfiles.default,", | ||
"description": "A profile definition, from KnownProfiles to dict.", | ||
"docstring_type": "azure.profiles.KnownProfiles", | ||
"required": false | ||
} | ||
} | ||
} | ||
}, | ||
"config": { | ||
"credential": true, | ||
"credential_scopes": ["https://management.azure.com/.default"], | ||
"credential_default_policy_type": "BearerTokenCredentialPolicy", | ||
"credential_default_policy_type_has_async_version": true, | ||
"credential_key_header_name": null | ||
"credential_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", | ||
"credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", | ||
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", | ||
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" | ||
}, | ||
"operation_groups": { | ||
"operations": "Operations", | ||
"alert_rules": "AlertRulesOperations", | ||
"actions": "ActionsOperations", | ||
"alert_rule_templates": "AlertRuleTemplatesOperations", | ||
"automation_rules": "AutomationRulesOperations", | ||
"incidents": "IncidentsOperations", | ||
"bookmarks": "BookmarksOperations", | ||
"bookmark_relations": "BookmarkRelationsOperations", | ||
"bookmark": "BookmarkOperations", | ||
"ip_geodata": "IPGeodataOperations", | ||
"domain_whois": "DomainWhoisOperations", | ||
"entities": "EntitiesOperations", | ||
"entities_get_timeline": "EntitiesGetTimelineOperations", | ||
"entities_relations": "EntitiesRelationsOperations", | ||
"entity_relations": "EntityRelationsOperations", | ||
"entity_queries": "EntityQueriesOperations", | ||
"entity_query_templates": "EntityQueryTemplatesOperations", | ||
"incident_comments": "IncidentCommentsOperations", | ||
"incident_relations": "IncidentRelationsOperations", | ||
"metadata": "MetadataOperations", | ||
"office_consents": "OfficeConsentsOperations", | ||
"sentinel_onboarding_states": "SentinelOnboardingStatesOperations", | ||
"product_settings": "ProductSettingsOperations", | ||
"source_control": "SourceControlOperations", | ||
"source_controls": "SourceControlsOperations", | ||
"threat_intelligence_indicator": "ThreatIntelligenceIndicatorOperations", | ||
"threat_intelligence_indicators": "ThreatIntelligenceIndicatorsOperations", | ||
"threat_intelligence_indicator_metrics": "ThreatIntelligenceIndicatorMetricsOperations", | ||
"watchlists": "WatchlistsOperations", | ||
"watchlist_items": "WatchlistItemsOperations", | ||
"data_connectors": "DataConnectorsOperations", | ||
"incidents": "IncidentsOperations", | ||
"incident_comments": "IncidentCommentsOperations" | ||
}, | ||
"operation_mixins": { | ||
}, | ||
"sync_imports": "None", | ||
"async_imports": "None" | ||
"data_connectors_check_requirements": "DataConnectorsCheckRequirementsOperations", | ||
"operations": "Operations" | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/_patch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# | ||
# The MIT License (MIT) | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the ""Software""), to | ||
# deal in the Software without restriction, including without limitation the | ||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
# sell copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# -------------------------------------------------------------------------- | ||
|
||
# This file is used for handwritten extensions to the generated code. Example: | ||
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md | ||
def patch_sdk(): | ||
pass |
Oops, something went wrong.