azure_sdk 0.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_sdk.rb +9 -0
- data/lib/azure_sdk/version.rb +7 -0
- data/lib/latest/latest_profile_client.rb +1347 -0
- data/lib/latest/module_definition.rb +7 -0
- data/lib/latest/modules/adhybridhealthservice_profile_module.rb +481 -0
- data/lib/latest/modules/advisor_profile_module.rb +153 -0
- data/lib/latest/modules/alertsmanagement_profile_module.rb +259 -0
- data/lib/latest/modules/analysisservices_profile_module.rb +159 -0
- data/lib/latest/modules/anomalydetector_profile_module.rb +69 -0
- data/lib/latest/modules/apimanagement_profile_module.rb +1163 -0
- data/lib/latest/modules/appconfiguration_profile_module.rb +183 -0
- data/lib/latest/modules/attestation_profile_module.rb +95 -0
- data/lib/latest/modules/authorization_profile_module.rb +167 -0
- data/lib/latest/modules/automation_profile_module.rb +663 -0
- data/lib/latest/modules/autosuggest_profile_module.rb +121 -0
- data/lib/latest/modules/azurestack_profile_module.rb +187 -0
- data/lib/latest/modules/batch_profile_module.rb +417 -0
- data/lib/latest/modules/batchai_profile_module.rb +425 -0
- data/lib/latest/modules/billing_profile_module.rb +107 -0
- data/lib/latest/modules/botservice_profile_module.rb +293 -0
- data/lib/latest/modules/cdn_profile_module.rb +723 -0
- data/lib/latest/modules/cognitiveservices_profile_module.rb +289 -0
- data/lib/latest/modules/commerce_profile_module.rb +99 -0
- data/lib/latest/modules/compute_profile_module.rb +1295 -0
- data/lib/latest/modules/computervision_profile_module.rb +233 -0
- data/lib/latest/modules/consumption_profile_module.rb +345 -0
- data/lib/latest/modules/containerinstance_profile_module.rb +291 -0
- data/lib/latest/modules/containerregistry_profile_module.rb +575 -0
- data/lib/latest/modules/containerservice_profile_module.rb +459 -0
- data/lib/latest/modules/contentmoderator_profile_module.rb +287 -0
- data/lib/latest/modules/cosmosdb_profile_module.rb +679 -0
- data/lib/latest/modules/costmanagement_profile_module.rb +207 -0
- data/lib/latest/modules/customerinsights_profile_module.rb +497 -0
- data/lib/latest/modules/customimagesearch_profile_module.rb +143 -0
- data/lib/latest/modules/customsearch_profile_module.rb +123 -0
- data/lib/latest/modules/customvisionprediction_profile_module.rb +69 -0
- data/lib/latest/modules/customvisiontraining_profile_module.rb +241 -0
- data/lib/latest/modules/databox_profile_module.rb +309 -0
- data/lib/latest/modules/datafactory_profile_module.rb +2809 -0
- data/lib/latest/modules/datalakeanalytics_profile_module.rb +253 -0
- data/lib/latest/modules/datalakestore_profile_module.rb +247 -0
- data/lib/latest/modules/datamigration_profile_module.rb +1307 -0
- data/lib/latest/modules/datashare_profile_module.rb +399 -0
- data/lib/latest/modules/deploymentmanager_profile_module.rb +261 -0
- data/lib/latest/modules/devspaces_profile_module.rb +119 -0
- data/lib/latest/modules/devtestlabs_profile_module.rb +849 -0
- data/lib/latest/modules/dns_profile_module.rb +143 -0
- data/lib/latest/modules/edgegateway_profile_module.rb +463 -0
- data/lib/latest/modules/entitysearch_profile_module.rb +231 -0
- data/lib/latest/modules/eventgrid_profile_module.rb +719 -0
- data/lib/latest/modules/eventhub_profile_module.rb +195 -0
- data/lib/latest/modules/face_profile_module.rb +297 -0
- data/lib/latest/modules/features_profile_module.rb +73 -0
- data/lib/latest/modules/formrecognizer_profile_module.rb +169 -0
- data/lib/latest/modules/graphrbac_profile_module.rb +225 -0
- data/lib/latest/modules/hanaonazure_profile_module.rb +137 -0
- data/lib/latest/modules/hdinsight_profile_module.rb +441 -0
- data/lib/latest/modules/imagesearch_profile_module.rb +279 -0
- data/lib/latest/modules/importexport_profile_module.rb +135 -0
- data/lib/latest/modules/iotcentral_profile_module.rb +107 -0
- data/lib/latest/modules/iothub_profile_module.rb +377 -0
- data/lib/latest/modules/keyvault_profile_module.rb +623 -0
- data/lib/latest/modules/kubernetesconfiguration_profile_module.rb +123 -0
- data/lib/latest/modules/kusto_profile_module.rb +365 -0
- data/lib/latest/modules/labservices_profile_module.rb +357 -0
- data/lib/latest/modules/links_profile_module.rb +83 -0
- data/lib/latest/modules/localsearch_profile_module.rb +151 -0
- data/lib/latest/modules/locks_profile_module.rb +79 -0
- data/lib/latest/modules/logic_profile_module.rb +787 -0
- data/lib/latest/modules/luisauthoring_profile_module.rb +505 -0
- data/lib/latest/modules/luisruntime_profile_module.rb +91 -0
- data/lib/latest/modules/machinelearning_profile_module.rb +211 -0
- data/lib/latest/modules/machinelearningservices_profile_module.rb +293 -0
- data/lib/latest/modules/maintenance_profile_module.rb +121 -0
- data/lib/latest/modules/managedapplications_profile_module.rb +123 -0
- data/lib/latest/modules/managedserviceidentity_profile_module.rb +75 -0
- data/lib/latest/modules/mariadb_profile_module.rb +233 -0
- data/lib/latest/modules/marketplaceordering_profile_module.rb +79 -0
- data/lib/latest/modules/mediaservices_profile_module.rb +871 -0
- data/lib/latest/modules/migrate_profile_module.rb +243 -0
- data/lib/latest/modules/mixedreality_profile_module.rb +169 -0
- data/lib/latest/modules/monitor_profile_module.rb +723 -0
- data/lib/latest/modules/mysql_profile_module.rb +233 -0
- data/lib/latest/modules/netapp_profile_module.rb +207 -0
- data/lib/latest/modules/network_profile_module.rb +2937 -0
- data/lib/latest/modules/newssearch_profile_module.rb +143 -0
- data/lib/latest/modules/notificationhubs_profile_module.rb +189 -0
- data/lib/latest/modules/operationalinsights_profile_module.rb +405 -0
- data/lib/latest/modules/operationsmanagement_profile_module.rb +123 -0
- data/lib/latest/modules/peering_profile_module.rb +259 -0
- data/lib/latest/modules/personalizer_profile_module.rb +83 -0
- data/lib/latest/modules/policy_profile_module.rb +105 -0
- data/lib/latest/modules/policyinsights_profile_module.rb +223 -0
- data/lib/latest/modules/portal_profile_module.rb +95 -0
- data/lib/latest/modules/postgresql_profile_module.rb +233 -0
- data/lib/latest/modules/powerbidedicated_profile_module.rb +123 -0
- data/lib/latest/modules/powerbiembedded_profile_module.rb +127 -0
- data/lib/latest/modules/privatedns_profile_module.rb +137 -0
- data/lib/latest/modules/qnamaker_profile_module.rb +215 -0
- data/lib/latest/modules/qnamakerruntime_profile_module.rb +123 -0
- data/lib/latest/modules/recoveryservices_profile_module.rb +253 -0
- data/lib/latest/modules/recoveryservicesbackup_profile_module.rb +1343 -0
- data/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +1465 -0
- data/lib/latest/modules/redis_profile_module.rb +209 -0
- data/lib/latest/modules/relay_profile_module.rb +163 -0
- data/lib/latest/modules/reservations_profile_module.rb +347 -0
- data/lib/latest/modules/resourcegraph_profile_module.rb +129 -0
- data/lib/latest/modules/resourcehealth_profile_module.rb +111 -0
- data/lib/latest/modules/resources_profile_module.rb +321 -0
- data/lib/latest/modules/resourcesmanagement_profile_module.rb +163 -0
- data/lib/latest/modules/scheduler_profile_module.rb +227 -0
- data/lib/latest/modules/search_profile_module.rb +127 -0
- data/lib/latest/modules/security_profile_module.rb +841 -0
- data/lib/latest/modules/serialconsole_profile_module.rb +73 -0
- data/lib/latest/modules/servicebus_profile_module.rb +309 -0
- data/lib/latest/modules/servicefabric_profile_module.rb +2711 -0
- data/lib/latest/modules/signalr_profile_module.rb +233 -0
- data/lib/latest/modules/spellcheck_profile_module.rb +101 -0
- data/lib/latest/modules/sql_profile_module.rb +1765 -0
- data/lib/latest/modules/sqlvirtualmachine_profile_module.rb +235 -0
- data/lib/latest/modules/storage_profile_module.rb +693 -0
- data/lib/latest/modules/storagecache_profile_module.rb +217 -0
- data/lib/latest/modules/storagesync_profile_module.rb +275 -0
- data/lib/latest/modules/storsimple8000series_profile_module.rb +715 -0
- data/lib/latest/modules/streamanalytics_profile_module.rb +349 -0
- data/lib/latest/modules/subscriptions_profile_module.rb +235 -0
- data/lib/latest/modules/support_profile_module.rb +177 -0
- data/lib/latest/modules/synapse_profile_module.rb +827 -0
- data/lib/latest/modules/textanalytics_profile_module.rb +125 -0
- data/lib/latest/modules/timeseriesinsights_profile_module.rb +309 -0
- data/lib/latest/modules/trafficmanager_profile_module.rb +173 -0
- data/lib/latest/modules/videosearch_profile_module.rb +175 -0
- data/lib/latest/modules/visualsearch_profile_module.rb +235 -0
- data/lib/latest/modules/vmwarecloudsimple_profile_module.rb +247 -0
- data/lib/latest/modules/web_profile_module.rb +1419 -0
- data/lib/latest/modules/websearch_profile_module.rb +211 -0
- data/lib/v2017_03_09/module_definition.rb +7 -0
- data/lib/v2017_03_09/modules/authorization_profile_module.rb +141 -0
- data/lib/v2017_03_09/modules/compute_profile_module.rb +469 -0
- data/lib/v2017_03_09/modules/dns_profile_module.rb +139 -0
- data/lib/v2017_03_09/modules/features_profile_module.rb +73 -0
- data/lib/v2017_03_09/modules/keyvault_profile_module.rb +559 -0
- data/lib/v2017_03_09/modules/links_profile_module.rb +83 -0
- data/lib/v2017_03_09/modules/locks_profile_module.rb +61 -0
- data/lib/v2017_03_09/modules/network_profile_module.rb +555 -0
- data/lib/v2017_03_09/modules/policy_profile_module.rb +71 -0
- data/lib/v2017_03_09/modules/resources_profile_module.rb +255 -0
- data/lib/v2017_03_09/modules/storage_profile_module.rb +163 -0
- data/lib/v2017_03_09/modules/subscriptions_profile_module.rb +101 -0
- data/lib/v2017_03_09/v2017_03_09_profile_client.rb +170 -0
- data/lib/v2018_03_01/module_definition.rb +7 -0
- data/lib/v2018_03_01/modules/authorization_profile_module.rb +133 -0
- data/lib/v2018_03_01/modules/compute_profile_module.rb +755 -0
- data/lib/v2018_03_01/modules/dns_profile_module.rb +139 -0
- data/lib/v2018_03_01/modules/keyvault_profile_module.rb +559 -0
- data/lib/v2018_03_01/modules/locks_profile_module.rb +79 -0
- data/lib/v2018_03_01/modules/network_profile_module.rb +1321 -0
- data/lib/v2018_03_01/modules/policy_profile_module.rb +75 -0
- data/lib/v2018_03_01/modules/resources_profile_module.rb +271 -0
- data/lib/v2018_03_01/modules/storage_profile_module.rb +163 -0
- data/lib/v2018_03_01/modules/subscriptions_profile_module.rb +101 -0
- data/lib/v2018_03_01/modules/web_profile_module.rb +1223 -0
- data/lib/v2018_03_01/v2018_03_01_profile_client.rb +160 -0
- data/lib/v2019_03_01_hybrid/module_definition.rb +7 -0
- data/lib/v2019_03_01_hybrid/modules/authorization_profile_module.rb +133 -0
- data/lib/v2019_03_01_hybrid/modules/compute_profile_module.rb +855 -0
- data/lib/v2019_03_01_hybrid/modules/dns_profile_module.rb +139 -0
- data/lib/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +559 -0
- data/lib/v2019_03_01_hybrid/modules/locks_profile_module.rb +79 -0
- data/lib/v2019_03_01_hybrid/modules/monitor_profile_module.rb +285 -0
- data/lib/v2019_03_01_hybrid/modules/network_profile_module.rb +1261 -0
- data/lib/v2019_03_01_hybrid/modules/policy_profile_module.rb +75 -0
- data/lib/v2019_03_01_hybrid/modules/resources_profile_module.rb +289 -0
- data/lib/v2019_03_01_hybrid/modules/storage_profile_module.rb +283 -0
- data/lib/v2019_03_01_hybrid/modules/subscriptions_profile_module.rb +101 -0
- data/lib/v2019_03_01_hybrid/modules/web_profile_module.rb +1457 -0
- data/lib/v2019_03_01_hybrid/v2019_03_01_hybrid_profile_client.rb +170 -0
- metadata +2187 -0
@@ -0,0 +1,105 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_policy'
|
6
|
+
|
7
|
+
module Azure::Profiles::Latest
|
8
|
+
module Policy
|
9
|
+
module Mgmt
|
10
|
+
PolicyAssignments = Azure::Policy::Mgmt::V2019_06_01::PolicyAssignments
|
11
|
+
PolicyDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicyDefinitions
|
12
|
+
PolicySetDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicySetDefinitions
|
13
|
+
|
14
|
+
module Models
|
15
|
+
PolicyDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
|
16
|
+
PolicySku = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
|
17
|
+
PolicyDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
|
18
|
+
PolicyAssignment = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
|
19
|
+
PolicyDefinitionReference = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
|
20
|
+
ErrorResponse = Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
|
21
|
+
PolicySetDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
|
22
|
+
PolicyAssignmentListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
|
23
|
+
PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
|
24
|
+
Identity = Azure::Policy::Mgmt::V2019_06_01::Models::Identity
|
25
|
+
EnforcementMode = Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
|
26
|
+
ResourceIdentityType = Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
|
27
|
+
PolicyType = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
|
28
|
+
end
|
29
|
+
|
30
|
+
class PolicyManagementClass
|
31
|
+
attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes
|
32
|
+
|
33
|
+
def initialize(configurable, base_url=nil, options=nil)
|
34
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
35
|
+
|
36
|
+
@client_0 = Azure::Policy::Mgmt::V2019_06_01::PolicyClient.new(configurable.credentials, base_url, options)
|
37
|
+
if(@client_0.respond_to?(:subscription_id))
|
38
|
+
@client_0.subscription_id = configurable.subscription_id
|
39
|
+
end
|
40
|
+
add_telemetry(@client_0)
|
41
|
+
@policy_assignments = @client_0.policy_assignments
|
42
|
+
@policy_definitions = @client_0.policy_definitions
|
43
|
+
@policy_set_definitions = @client_0.policy_set_definitions
|
44
|
+
|
45
|
+
@model_classes = ModelClasses.new
|
46
|
+
end
|
47
|
+
|
48
|
+
def add_telemetry(client)
|
49
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Policy/Mgmt"
|
50
|
+
client.add_user_agent_information(profile_information)
|
51
|
+
end
|
52
|
+
|
53
|
+
def method_missing(method, *args)
|
54
|
+
if @client_0.respond_to?method
|
55
|
+
@client_0.send(method, *args)
|
56
|
+
else
|
57
|
+
super
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class ModelClasses
|
62
|
+
def policy_definition
|
63
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
|
64
|
+
end
|
65
|
+
def policy_sku
|
66
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
|
67
|
+
end
|
68
|
+
def policy_definition_list_result
|
69
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
|
70
|
+
end
|
71
|
+
def policy_assignment
|
72
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
|
73
|
+
end
|
74
|
+
def policy_definition_reference
|
75
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
|
76
|
+
end
|
77
|
+
def error_response
|
78
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
|
79
|
+
end
|
80
|
+
def policy_set_definition
|
81
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
|
82
|
+
end
|
83
|
+
def policy_assignment_list_result
|
84
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
|
85
|
+
end
|
86
|
+
def policy_set_definition_list_result
|
87
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
|
88
|
+
end
|
89
|
+
def identity
|
90
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::Identity
|
91
|
+
end
|
92
|
+
def enforcement_mode
|
93
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
|
94
|
+
end
|
95
|
+
def resource_identity_type
|
96
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
|
97
|
+
end
|
98
|
+
def policy_type
|
99
|
+
Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,223 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_policy_insights'
|
6
|
+
|
7
|
+
module Azure::Profiles::Latest
|
8
|
+
module PolicyInsights
|
9
|
+
module Mgmt
|
10
|
+
PolicyMetadataOperations = Azure::PolicyInsights::Mgmt::V2019_10_01::PolicyMetadataOperations
|
11
|
+
PolicyEvents = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyEvents
|
12
|
+
PolicyTrackedResources = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyTrackedResources
|
13
|
+
Remediations = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Remediations
|
14
|
+
PolicyStates = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyStates
|
15
|
+
Operations = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Operations
|
16
|
+
|
17
|
+
module Models
|
18
|
+
PolicyGroupSummary = Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyGroupSummary
|
19
|
+
PolicyMetadata = Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyMetadata
|
20
|
+
SlimPolicyMetadata = Azure::PolicyInsights::Mgmt::V2019_10_01::Models::SlimPolicyMetadata
|
21
|
+
PolicyMetadataCollection = Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyMetadataCollection
|
22
|
+
ComplianceDetail = Azure::PolicyInsights::Mgmt::V2019_10_01::Models::ComplianceDetail
|
23
|
+
PolicyEventsQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults
|
24
|
+
PolicyEvent = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent
|
25
|
+
ErrorResponse = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
|
26
|
+
ExpressionEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ExpressionEvaluationDetails
|
27
|
+
TrackedResourceModificationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
|
28
|
+
IfNotExistsEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::IfNotExistsEvaluationDetails
|
29
|
+
PolicyTrackedResourcesQueryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
|
30
|
+
PolicyEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyEvaluationDetails
|
31
|
+
QueryFailure = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
|
32
|
+
PolicyState = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyState
|
33
|
+
RemediationDeploymentSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
|
34
|
+
PolicyStatesQueryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesQueryResults
|
35
|
+
RemediationListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
|
36
|
+
SummaryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummaryResults
|
37
|
+
ErrorDefinition = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
|
38
|
+
PolicyDefinitionSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDefinitionSummary
|
39
|
+
RemediationDeploymentsListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
|
40
|
+
PolicyAssignmentSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyAssignmentSummary
|
41
|
+
PolicyTrackedResource = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
|
42
|
+
Summary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Summary
|
43
|
+
RemediationFilters = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
|
44
|
+
SummarizeResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummarizeResults
|
45
|
+
TypedErrorInfo = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
|
46
|
+
OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationDisplay
|
47
|
+
PolicyDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
|
48
|
+
Operation = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Operation
|
49
|
+
Remediation = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
|
50
|
+
OperationsListResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationsListResults
|
51
|
+
QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
|
52
|
+
QueryOptions = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
|
53
|
+
RemediationDeployment = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
|
54
|
+
PolicyStatesResource = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesResource
|
55
|
+
end
|
56
|
+
|
57
|
+
class PolicyInsightsManagementClass
|
58
|
+
attr_reader :policy_metadata_operations, :policy_events, :policy_tracked_resources, :remediations, :policy_states, :operations, :configurable, :base_url, :options, :model_classes
|
59
|
+
|
60
|
+
def initialize(configurable, base_url=nil, options=nil)
|
61
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
62
|
+
|
63
|
+
@client_0 = Azure::PolicyInsights::Mgmt::V2019_10_01::PolicyInsightsClient.new(configurable.credentials, base_url, options)
|
64
|
+
if(@client_0.respond_to?(:subscription_id))
|
65
|
+
@client_0.subscription_id = configurable.subscription_id
|
66
|
+
end
|
67
|
+
add_telemetry(@client_0)
|
68
|
+
@policy_metadata_operations = @client_0.policy_metadata_operations
|
69
|
+
|
70
|
+
@client_1 = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyInsightsClient.new(configurable.credentials, base_url, options)
|
71
|
+
if(@client_1.respond_to?(:subscription_id))
|
72
|
+
@client_1.subscription_id = configurable.subscription_id
|
73
|
+
end
|
74
|
+
add_telemetry(@client_1)
|
75
|
+
@policy_events = @client_1.policy_events
|
76
|
+
|
77
|
+
@client_2 = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyInsightsClient.new(configurable.credentials, base_url, options)
|
78
|
+
if(@client_2.respond_to?(:subscription_id))
|
79
|
+
@client_2.subscription_id = configurable.subscription_id
|
80
|
+
end
|
81
|
+
add_telemetry(@client_2)
|
82
|
+
@policy_tracked_resources = @client_2.policy_tracked_resources
|
83
|
+
@remediations = @client_2.remediations
|
84
|
+
@policy_states = @client_2.policy_states
|
85
|
+
@operations = @client_2.operations
|
86
|
+
|
87
|
+
@model_classes = ModelClasses.new
|
88
|
+
end
|
89
|
+
|
90
|
+
def add_telemetry(client)
|
91
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/PolicyInsights/Mgmt"
|
92
|
+
client.add_user_agent_information(profile_information)
|
93
|
+
end
|
94
|
+
|
95
|
+
def method_missing(method, *args)
|
96
|
+
if @client_2.respond_to?method
|
97
|
+
@client_2.send(method, *args)
|
98
|
+
elsif @client_1.respond_to?method
|
99
|
+
@client_1.send(method, *args)
|
100
|
+
elsif @client_0.respond_to?method
|
101
|
+
@client_0.send(method, *args)
|
102
|
+
else
|
103
|
+
super
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class ModelClasses
|
108
|
+
def policy_group_summary
|
109
|
+
Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyGroupSummary
|
110
|
+
end
|
111
|
+
def policy_metadata
|
112
|
+
Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyMetadata
|
113
|
+
end
|
114
|
+
def slim_policy_metadata
|
115
|
+
Azure::PolicyInsights::Mgmt::V2019_10_01::Models::SlimPolicyMetadata
|
116
|
+
end
|
117
|
+
def policy_metadata_collection
|
118
|
+
Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyMetadataCollection
|
119
|
+
end
|
120
|
+
def compliance_detail
|
121
|
+
Azure::PolicyInsights::Mgmt::V2019_10_01::Models::ComplianceDetail
|
122
|
+
end
|
123
|
+
def policy_events_query_results
|
124
|
+
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults
|
125
|
+
end
|
126
|
+
def policy_event
|
127
|
+
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent
|
128
|
+
end
|
129
|
+
def error_response
|
130
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
|
131
|
+
end
|
132
|
+
def expression_evaluation_details
|
133
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ExpressionEvaluationDetails
|
134
|
+
end
|
135
|
+
def tracked_resource_modification_details
|
136
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
|
137
|
+
end
|
138
|
+
def if_not_exists_evaluation_details
|
139
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::IfNotExistsEvaluationDetails
|
140
|
+
end
|
141
|
+
def policy_tracked_resources_query_results
|
142
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
|
143
|
+
end
|
144
|
+
def policy_evaluation_details
|
145
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyEvaluationDetails
|
146
|
+
end
|
147
|
+
def query_failure
|
148
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
|
149
|
+
end
|
150
|
+
def policy_state
|
151
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyState
|
152
|
+
end
|
153
|
+
def remediation_deployment_summary
|
154
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
|
155
|
+
end
|
156
|
+
def policy_states_query_results
|
157
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesQueryResults
|
158
|
+
end
|
159
|
+
def remediation_list_result
|
160
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
|
161
|
+
end
|
162
|
+
def summary_results
|
163
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummaryResults
|
164
|
+
end
|
165
|
+
def error_definition
|
166
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
|
167
|
+
end
|
168
|
+
def policy_definition_summary
|
169
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDefinitionSummary
|
170
|
+
end
|
171
|
+
def remediation_deployments_list_result
|
172
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
|
173
|
+
end
|
174
|
+
def policy_assignment_summary
|
175
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyAssignmentSummary
|
176
|
+
end
|
177
|
+
def policy_tracked_resource
|
178
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
|
179
|
+
end
|
180
|
+
def summary
|
181
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Summary
|
182
|
+
end
|
183
|
+
def remediation_filters
|
184
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
|
185
|
+
end
|
186
|
+
def summarize_results
|
187
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummarizeResults
|
188
|
+
end
|
189
|
+
def typed_error_info
|
190
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
|
191
|
+
end
|
192
|
+
def operation_display
|
193
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationDisplay
|
194
|
+
end
|
195
|
+
def policy_details
|
196
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
|
197
|
+
end
|
198
|
+
def operation
|
199
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Operation
|
200
|
+
end
|
201
|
+
def remediation
|
202
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
|
203
|
+
end
|
204
|
+
def operations_list_results
|
205
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationsListResults
|
206
|
+
end
|
207
|
+
def query_failure_error
|
208
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
|
209
|
+
end
|
210
|
+
def query_options
|
211
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
|
212
|
+
end
|
213
|
+
def remediation_deployment
|
214
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
|
215
|
+
end
|
216
|
+
def policy_states_resource
|
217
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesResource
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_portal'
|
6
|
+
|
7
|
+
module Azure::Profiles::Latest
|
8
|
+
module Portal
|
9
|
+
module Mgmt
|
10
|
+
Operations = Azure::Portal::Mgmt::V2019_01_01_preview::Operations
|
11
|
+
Dashboards = Azure::Portal::Mgmt::V2019_01_01_preview::Dashboards
|
12
|
+
|
13
|
+
module Models
|
14
|
+
PatchableDashboard = Azure::Portal::Mgmt::V2019_01_01_preview::Models::PatchableDashboard
|
15
|
+
ResourceProviderOperationDisplay = Azure::Portal::Mgmt::V2019_01_01_preview::Models::ResourceProviderOperationDisplay
|
16
|
+
DashboardParts = Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardParts
|
17
|
+
ResourceProviderOperation = Azure::Portal::Mgmt::V2019_01_01_preview::Models::ResourceProviderOperation
|
18
|
+
Dashboard = Azure::Portal::Mgmt::V2019_01_01_preview::Models::Dashboard
|
19
|
+
ResourceProviderOperationList = Azure::Portal::Mgmt::V2019_01_01_preview::Models::ResourceProviderOperationList
|
20
|
+
DashboardPartsPosition = Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardPartsPosition
|
21
|
+
ErrorDefinition = Azure::Portal::Mgmt::V2019_01_01_preview::Models::ErrorDefinition
|
22
|
+
DashboardListResult = Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardListResult
|
23
|
+
ErrorResponse = Azure::Portal::Mgmt::V2019_01_01_preview::Models::ErrorResponse
|
24
|
+
DashboardLens = Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardLens
|
25
|
+
end
|
26
|
+
|
27
|
+
class PortalManagementClass
|
28
|
+
attr_reader :operations, :dashboards, :configurable, :base_url, :options, :model_classes
|
29
|
+
|
30
|
+
def initialize(configurable, base_url=nil, options=nil)
|
31
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
32
|
+
|
33
|
+
@client_0 = Azure::Portal::Mgmt::V2019_01_01_preview::PortalClient.new(configurable.credentials, base_url, options)
|
34
|
+
if(@client_0.respond_to?(:subscription_id))
|
35
|
+
@client_0.subscription_id = configurable.subscription_id
|
36
|
+
end
|
37
|
+
add_telemetry(@client_0)
|
38
|
+
@operations = @client_0.operations
|
39
|
+
@dashboards = @client_0.dashboards
|
40
|
+
|
41
|
+
@model_classes = ModelClasses.new
|
42
|
+
end
|
43
|
+
|
44
|
+
def add_telemetry(client)
|
45
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Portal/Mgmt"
|
46
|
+
client.add_user_agent_information(profile_information)
|
47
|
+
end
|
48
|
+
|
49
|
+
def method_missing(method, *args)
|
50
|
+
if @client_0.respond_to?method
|
51
|
+
@client_0.send(method, *args)
|
52
|
+
else
|
53
|
+
super
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class ModelClasses
|
58
|
+
def patchable_dashboard
|
59
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::PatchableDashboard
|
60
|
+
end
|
61
|
+
def resource_provider_operation_display
|
62
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::ResourceProviderOperationDisplay
|
63
|
+
end
|
64
|
+
def dashboard_parts
|
65
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardParts
|
66
|
+
end
|
67
|
+
def resource_provider_operation
|
68
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::ResourceProviderOperation
|
69
|
+
end
|
70
|
+
def dashboard
|
71
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::Dashboard
|
72
|
+
end
|
73
|
+
def resource_provider_operation_list
|
74
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::ResourceProviderOperationList
|
75
|
+
end
|
76
|
+
def dashboard_parts_position
|
77
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardPartsPosition
|
78
|
+
end
|
79
|
+
def error_definition
|
80
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::ErrorDefinition
|
81
|
+
end
|
82
|
+
def dashboard_list_result
|
83
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardListResult
|
84
|
+
end
|
85
|
+
def error_response
|
86
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::ErrorResponse
|
87
|
+
end
|
88
|
+
def dashboard_lens
|
89
|
+
Azure::Portal::Mgmt::V2019_01_01_preview::Models::DashboardLens
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,233 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_postgresql'
|
6
|
+
|
7
|
+
module Azure::Profiles::Latest
|
8
|
+
module Postgresql
|
9
|
+
module Mgmt
|
10
|
+
Servers = Azure::Postgresql::Mgmt::V2017_12_01::Servers
|
11
|
+
Replicas = Azure::Postgresql::Mgmt::V2017_12_01::Replicas
|
12
|
+
FirewallRules = Azure::Postgresql::Mgmt::V2017_12_01::FirewallRules
|
13
|
+
VirtualNetworkRules = Azure::Postgresql::Mgmt::V2017_12_01::VirtualNetworkRules
|
14
|
+
Databases = Azure::Postgresql::Mgmt::V2017_12_01::Databases
|
15
|
+
Configurations = Azure::Postgresql::Mgmt::V2017_12_01::Configurations
|
16
|
+
LogFiles = Azure::Postgresql::Mgmt::V2017_12_01::LogFiles
|
17
|
+
LocationBasedPerformanceTier = Azure::Postgresql::Mgmt::V2017_12_01::LocationBasedPerformanceTier
|
18
|
+
CheckNameAvailability = Azure::Postgresql::Mgmt::V2017_12_01::CheckNameAvailability
|
19
|
+
ServerSecurityAlertPolicies = Azure::Postgresql::Mgmt::V2017_12_01::ServerSecurityAlertPolicies
|
20
|
+
Operations = Azure::Postgresql::Mgmt::V2017_12_01::Operations
|
21
|
+
|
22
|
+
module Models
|
23
|
+
VirtualNetworkRuleListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::VirtualNetworkRuleListResult
|
24
|
+
FirewallRuleListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::FirewallRuleListResult
|
25
|
+
NameAvailabilityRequest = Azure::Postgresql::Mgmt::V2017_12_01::Models::NameAvailabilityRequest
|
26
|
+
StorageProfile = Azure::Postgresql::Mgmt::V2017_12_01::Models::StorageProfile
|
27
|
+
ProxyResource = Azure::Postgresql::Mgmt::V2017_12_01::Models::ProxyResource
|
28
|
+
NameAvailability = Azure::Postgresql::Mgmt::V2017_12_01::Models::NameAvailability
|
29
|
+
PerformanceTierListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::PerformanceTierListResult
|
30
|
+
Operation = Azure::Postgresql::Mgmt::V2017_12_01::Models::Operation
|
31
|
+
PerformanceTierServiceLevelObjectives = Azure::Postgresql::Mgmt::V2017_12_01::Models::PerformanceTierServiceLevelObjectives
|
32
|
+
ServerPropertiesForCreate = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForCreate
|
33
|
+
LogFileListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::LogFileListResult
|
34
|
+
OperationListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::OperationListResult
|
35
|
+
ServerUpdateParameters = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerUpdateParameters
|
36
|
+
PerformanceTierProperties = Azure::Postgresql::Mgmt::V2017_12_01::Models::PerformanceTierProperties
|
37
|
+
DatabaseListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::DatabaseListResult
|
38
|
+
ServerForCreate = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerForCreate
|
39
|
+
Sku = Azure::Postgresql::Mgmt::V2017_12_01::Models::Sku
|
40
|
+
ConfigurationListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::ConfigurationListResult
|
41
|
+
ServerListResult = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerListResult
|
42
|
+
OperationDisplay = Azure::Postgresql::Mgmt::V2017_12_01::Models::OperationDisplay
|
43
|
+
TrackedResource = Azure::Postgresql::Mgmt::V2017_12_01::Models::TrackedResource
|
44
|
+
ServerPropertiesForDefaultCreate = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForDefaultCreate
|
45
|
+
ServerPropertiesForRestore = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForRestore
|
46
|
+
ServerPropertiesForGeoRestore = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForGeoRestore
|
47
|
+
ServerPropertiesForReplica = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForReplica
|
48
|
+
Server = Azure::Postgresql::Mgmt::V2017_12_01::Models::Server
|
49
|
+
FirewallRule = Azure::Postgresql::Mgmt::V2017_12_01::Models::FirewallRule
|
50
|
+
VirtualNetworkRule = Azure::Postgresql::Mgmt::V2017_12_01::Models::VirtualNetworkRule
|
51
|
+
Database = Azure::Postgresql::Mgmt::V2017_12_01::Models::Database
|
52
|
+
Configuration = Azure::Postgresql::Mgmt::V2017_12_01::Models::Configuration
|
53
|
+
LogFile = Azure::Postgresql::Mgmt::V2017_12_01::Models::LogFile
|
54
|
+
ServerSecurityAlertPolicy = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerSecurityAlertPolicy
|
55
|
+
ServerVersion = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerVersion
|
56
|
+
SslEnforcementEnum = Azure::Postgresql::Mgmt::V2017_12_01::Models::SslEnforcementEnum
|
57
|
+
ServerState = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerState
|
58
|
+
GeoRedundantBackup = Azure::Postgresql::Mgmt::V2017_12_01::Models::GeoRedundantBackup
|
59
|
+
StorageAutogrow = Azure::Postgresql::Mgmt::V2017_12_01::Models::StorageAutogrow
|
60
|
+
SkuTier = Azure::Postgresql::Mgmt::V2017_12_01::Models::SkuTier
|
61
|
+
VirtualNetworkRuleState = Azure::Postgresql::Mgmt::V2017_12_01::Models::VirtualNetworkRuleState
|
62
|
+
OperationOrigin = Azure::Postgresql::Mgmt::V2017_12_01::Models::OperationOrigin
|
63
|
+
ServerSecurityAlertPolicyState = Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerSecurityAlertPolicyState
|
64
|
+
end
|
65
|
+
|
66
|
+
class PostgresqlManagementClass
|
67
|
+
attr_reader :servers, :replicas, :firewall_rules, :virtual_network_rules, :databases, :configurations, :log_files, :location_based_performance_tier, :check_name_availability, :server_security_alert_policies, :operations, :configurable, :base_url, :options, :model_classes
|
68
|
+
|
69
|
+
def initialize(configurable, base_url=nil, options=nil)
|
70
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
71
|
+
|
72
|
+
@client_0 = Azure::Postgresql::Mgmt::V2017_12_01::PostgreSQLManagementClient.new(configurable.credentials, base_url, options)
|
73
|
+
if(@client_0.respond_to?(:subscription_id))
|
74
|
+
@client_0.subscription_id = configurable.subscription_id
|
75
|
+
end
|
76
|
+
add_telemetry(@client_0)
|
77
|
+
@servers = @client_0.servers
|
78
|
+
@replicas = @client_0.replicas
|
79
|
+
@firewall_rules = @client_0.firewall_rules
|
80
|
+
@virtual_network_rules = @client_0.virtual_network_rules
|
81
|
+
@databases = @client_0.databases
|
82
|
+
@configurations = @client_0.configurations
|
83
|
+
@log_files = @client_0.log_files
|
84
|
+
@location_based_performance_tier = @client_0.location_based_performance_tier
|
85
|
+
@check_name_availability = @client_0.check_name_availability
|
86
|
+
@server_security_alert_policies = @client_0.server_security_alert_policies
|
87
|
+
@operations = @client_0.operations
|
88
|
+
|
89
|
+
@model_classes = ModelClasses.new
|
90
|
+
end
|
91
|
+
|
92
|
+
def add_telemetry(client)
|
93
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Postgresql/Mgmt"
|
94
|
+
client.add_user_agent_information(profile_information)
|
95
|
+
end
|
96
|
+
|
97
|
+
def method_missing(method, *args)
|
98
|
+
if @client_0.respond_to?method
|
99
|
+
@client_0.send(method, *args)
|
100
|
+
else
|
101
|
+
super
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class ModelClasses
|
106
|
+
def virtual_network_rule_list_result
|
107
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::VirtualNetworkRuleListResult
|
108
|
+
end
|
109
|
+
def firewall_rule_list_result
|
110
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::FirewallRuleListResult
|
111
|
+
end
|
112
|
+
def name_availability_request
|
113
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::NameAvailabilityRequest
|
114
|
+
end
|
115
|
+
def storage_profile
|
116
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::StorageProfile
|
117
|
+
end
|
118
|
+
def proxy_resource
|
119
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ProxyResource
|
120
|
+
end
|
121
|
+
def name_availability
|
122
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::NameAvailability
|
123
|
+
end
|
124
|
+
def performance_tier_list_result
|
125
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::PerformanceTierListResult
|
126
|
+
end
|
127
|
+
def operation
|
128
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::Operation
|
129
|
+
end
|
130
|
+
def performance_tier_service_level_objectives
|
131
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::PerformanceTierServiceLevelObjectives
|
132
|
+
end
|
133
|
+
def server_properties_for_create
|
134
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForCreate
|
135
|
+
end
|
136
|
+
def log_file_list_result
|
137
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::LogFileListResult
|
138
|
+
end
|
139
|
+
def operation_list_result
|
140
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::OperationListResult
|
141
|
+
end
|
142
|
+
def server_update_parameters
|
143
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerUpdateParameters
|
144
|
+
end
|
145
|
+
def performance_tier_properties
|
146
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::PerformanceTierProperties
|
147
|
+
end
|
148
|
+
def database_list_result
|
149
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::DatabaseListResult
|
150
|
+
end
|
151
|
+
def server_for_create
|
152
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerForCreate
|
153
|
+
end
|
154
|
+
def sku
|
155
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::Sku
|
156
|
+
end
|
157
|
+
def configuration_list_result
|
158
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ConfigurationListResult
|
159
|
+
end
|
160
|
+
def server_list_result
|
161
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerListResult
|
162
|
+
end
|
163
|
+
def operation_display
|
164
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::OperationDisplay
|
165
|
+
end
|
166
|
+
def tracked_resource
|
167
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::TrackedResource
|
168
|
+
end
|
169
|
+
def server_properties_for_default_create
|
170
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForDefaultCreate
|
171
|
+
end
|
172
|
+
def server_properties_for_restore
|
173
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForRestore
|
174
|
+
end
|
175
|
+
def server_properties_for_geo_restore
|
176
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForGeoRestore
|
177
|
+
end
|
178
|
+
def server_properties_for_replica
|
179
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForReplica
|
180
|
+
end
|
181
|
+
def server
|
182
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::Server
|
183
|
+
end
|
184
|
+
def firewall_rule
|
185
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::FirewallRule
|
186
|
+
end
|
187
|
+
def virtual_network_rule
|
188
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::VirtualNetworkRule
|
189
|
+
end
|
190
|
+
def database
|
191
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::Database
|
192
|
+
end
|
193
|
+
def configuration
|
194
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::Configuration
|
195
|
+
end
|
196
|
+
def log_file
|
197
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::LogFile
|
198
|
+
end
|
199
|
+
def server_security_alert_policy
|
200
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerSecurityAlertPolicy
|
201
|
+
end
|
202
|
+
def server_version
|
203
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerVersion
|
204
|
+
end
|
205
|
+
def ssl_enforcement_enum
|
206
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::SslEnforcementEnum
|
207
|
+
end
|
208
|
+
def server_state
|
209
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerState
|
210
|
+
end
|
211
|
+
def geo_redundant_backup
|
212
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::GeoRedundantBackup
|
213
|
+
end
|
214
|
+
def storage_autogrow
|
215
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::StorageAutogrow
|
216
|
+
end
|
217
|
+
def sku_tier
|
218
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::SkuTier
|
219
|
+
end
|
220
|
+
def virtual_network_rule_state
|
221
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::VirtualNetworkRuleState
|
222
|
+
end
|
223
|
+
def operation_origin
|
224
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::OperationOrigin
|
225
|
+
end
|
226
|
+
def server_security_alert_policy_state
|
227
|
+
Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerSecurityAlertPolicyState
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|