azure_mgmt_security 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security.rb +48 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/auto_provisioning_settings.rb +407 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/compliances.rb +325 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/alert_notifications.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/alerts_to_admins.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/auto_provisioning_setting.rb +75 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/auto_provisioning_setting_list.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance.rb +111 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance_list.rb +99 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance_segment.rb +60 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing.rb +74 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing_list.rb +99 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing_tier.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/provisioning_setting.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/resource.rb +71 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact.rb +109 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact_list.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting.rb +86 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting_list.rb +99 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/pricings.rb +822 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_contacts.rb +585 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_management_client.rb +146 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/workspace_settings.rb +588 -0
- data/lib/azure_mgmt_security.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/security_profile_module.rb +133 -0
- data/lib/profiles/latest/security_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/security_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +150 -0
@@ -0,0 +1,6 @@
|
|
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 '2017-08-01-preview/generated/azure_mgmt_security'
|
6
|
+
require 'profiles/latest/security_latest_profile_client'
|
@@ -0,0 +1,133 @@
|
|
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_security'
|
6
|
+
|
7
|
+
module Azure::Security::Profiles::Latest
|
8
|
+
module Mgmt
|
9
|
+
Pricings = Azure::Security::Mgmt::V2017_08_01_preview::Pricings
|
10
|
+
SecurityContacts = Azure::Security::Mgmt::V2017_08_01_preview::SecurityContacts
|
11
|
+
WorkspaceSettings = Azure::Security::Mgmt::V2017_08_01_preview::WorkspaceSettings
|
12
|
+
AutoProvisioningSettings = Azure::Security::Mgmt::V2017_08_01_preview::AutoProvisioningSettings
|
13
|
+
Compliances = Azure::Security::Mgmt::V2017_08_01_preview::Compliances
|
14
|
+
|
15
|
+
module Models
|
16
|
+
AutoProvisioningSettingList = Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvisioningSettingList
|
17
|
+
PricingList = Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingList
|
18
|
+
ComplianceSegment = Azure::Security::Mgmt::V2017_08_01_preview::Models::ComplianceSegment
|
19
|
+
SecurityContactList = Azure::Security::Mgmt::V2017_08_01_preview::Models::SecurityContactList
|
20
|
+
ComplianceList = Azure::Security::Mgmt::V2017_08_01_preview::Models::ComplianceList
|
21
|
+
Resource = Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource
|
22
|
+
WorkspaceSettingList = Azure::Security::Mgmt::V2017_08_01_preview::Models::WorkspaceSettingList
|
23
|
+
SecurityContact = Azure::Security::Mgmt::V2017_08_01_preview::Models::SecurityContact
|
24
|
+
Pricing = Azure::Security::Mgmt::V2017_08_01_preview::Models::Pricing
|
25
|
+
WorkspaceSetting = Azure::Security::Mgmt::V2017_08_01_preview::Models::WorkspaceSetting
|
26
|
+
AutoProvisioningSetting = Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvisioningSetting
|
27
|
+
Compliance = Azure::Security::Mgmt::V2017_08_01_preview::Models::Compliance
|
28
|
+
AlertNotifications = Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertNotifications
|
29
|
+
AlertsToAdmins = Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertsToAdmins
|
30
|
+
PricingTier = Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingTier
|
31
|
+
ProvisioningSetting = Azure::Security::Mgmt::V2017_08_01_preview::Models::ProvisioningSetting
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
# SecurityManagementClass
|
36
|
+
#
|
37
|
+
class SecurityManagementClass
|
38
|
+
attr_reader :pricings, :security_contacts, :workspace_settings, :auto_provisioning_settings, :compliances, :configurable, :base_url, :options, :model_classes
|
39
|
+
|
40
|
+
def initialize(options = {})
|
41
|
+
if options.is_a?(Hash) && options.length == 0
|
42
|
+
@options = setup_default_options
|
43
|
+
else
|
44
|
+
@options = options
|
45
|
+
end
|
46
|
+
|
47
|
+
reset!(options)
|
48
|
+
|
49
|
+
@configurable = self
|
50
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
51
|
+
@options = options[:options].nil? ? nil:options[:options]
|
52
|
+
|
53
|
+
@client_0 = Azure::Security::Mgmt::V2017_08_01_preview::SecurityManagementClient.new(configurable.credentials, base_url, options)
|
54
|
+
if(@client_0.respond_to?(:subscription_id))
|
55
|
+
@client_0.subscription_id = configurable.subscription_id
|
56
|
+
end
|
57
|
+
add_telemetry(@client_0)
|
58
|
+
@pricings = @client_0.pricings
|
59
|
+
@security_contacts = @client_0.security_contacts
|
60
|
+
@workspace_settings = @client_0.workspace_settings
|
61
|
+
@auto_provisioning_settings = @client_0.auto_provisioning_settings
|
62
|
+
@compliances = @client_0.compliances
|
63
|
+
|
64
|
+
@model_classes = ModelClasses.new
|
65
|
+
end
|
66
|
+
|
67
|
+
def add_telemetry(client)
|
68
|
+
profile_information = 'Profiles/Latest/Security/Mgmt'
|
69
|
+
client.add_user_agent_information(profile_information)
|
70
|
+
end
|
71
|
+
|
72
|
+
def method_missing(method, *args)
|
73
|
+
if @client_0.respond_to?method
|
74
|
+
@client_0.send(method, *args)
|
75
|
+
else
|
76
|
+
super
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
|
82
|
+
class ModelClasses
|
83
|
+
def auto_provisioning_setting_list
|
84
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvisioningSettingList
|
85
|
+
end
|
86
|
+
def pricing_list
|
87
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingList
|
88
|
+
end
|
89
|
+
def compliance_segment
|
90
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::ComplianceSegment
|
91
|
+
end
|
92
|
+
def security_contact_list
|
93
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::SecurityContactList
|
94
|
+
end
|
95
|
+
def compliance_list
|
96
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::ComplianceList
|
97
|
+
end
|
98
|
+
def resource
|
99
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource
|
100
|
+
end
|
101
|
+
def workspace_setting_list
|
102
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::WorkspaceSettingList
|
103
|
+
end
|
104
|
+
def security_contact
|
105
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::SecurityContact
|
106
|
+
end
|
107
|
+
def pricing
|
108
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::Pricing
|
109
|
+
end
|
110
|
+
def workspace_setting
|
111
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::WorkspaceSetting
|
112
|
+
end
|
113
|
+
def auto_provisioning_setting
|
114
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvisioningSetting
|
115
|
+
end
|
116
|
+
def compliance
|
117
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::Compliance
|
118
|
+
end
|
119
|
+
def alert_notifications
|
120
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertNotifications
|
121
|
+
end
|
122
|
+
def alerts_to_admins
|
123
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertsToAdmins
|
124
|
+
end
|
125
|
+
def pricing_tier
|
126
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingTier
|
127
|
+
end
|
128
|
+
def provisioning_setting
|
129
|
+
Azure::Security::Mgmt::V2017_08_01_preview::Models::ProvisioningSetting
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,40 @@
|
|
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 'profiles/latest/security_module_definition'
|
6
|
+
require 'profiles/latest/modules/security_profile_module'
|
7
|
+
|
8
|
+
module Azure::Security::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < SecurityManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
15
|
+
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,8 @@
|
|
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
|
+
module Azure end
|
6
|
+
module Azure::Security end
|
7
|
+
module Azure::Security::Profiles end
|
8
|
+
module Azure::Security::Profiles::Latest end
|
data/lib/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: azure_mgmt_security
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.16.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Microsoft Corporation
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ms_rest_azure
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.10.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.10.0
|
83
|
+
description: Microsoft Azure Security Management Client Library for Ruby
|
84
|
+
email: azrubyteam@microsoft.com
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files: []
|
88
|
+
files:
|
89
|
+
- LICENSE.txt
|
90
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security.rb
|
91
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/auto_provisioning_settings.rb
|
92
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/compliances.rb
|
93
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/alert_notifications.rb
|
94
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/alerts_to_admins.rb
|
95
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/auto_provisioning_setting.rb
|
96
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/auto_provisioning_setting_list.rb
|
97
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance.rb
|
98
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance_list.rb
|
99
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance_segment.rb
|
100
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing.rb
|
101
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing_list.rb
|
102
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing_tier.rb
|
103
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/provisioning_setting.rb
|
104
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/resource.rb
|
105
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact.rb
|
106
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact_list.rb
|
107
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting.rb
|
108
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting_list.rb
|
109
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/module_definition.rb
|
110
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/pricings.rb
|
111
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/security_contacts.rb
|
112
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/security_management_client.rb
|
113
|
+
- lib/2017-08-01-preview/generated/azure_mgmt_security/workspace_settings.rb
|
114
|
+
- lib/azure_mgmt_security.rb
|
115
|
+
- lib/module_definition.rb
|
116
|
+
- lib/profiles/latest/modules/security_profile_module.rb
|
117
|
+
- lib/profiles/latest/security_latest_profile_client.rb
|
118
|
+
- lib/profiles/latest/security_module_definition.rb
|
119
|
+
- lib/version.rb
|
120
|
+
homepage: https://aka.ms/azure-sdk-for-ruby
|
121
|
+
licenses:
|
122
|
+
- MIT
|
123
|
+
metadata:
|
124
|
+
bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
|
125
|
+
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
126
|
+
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
127
|
+
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
128
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_security
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 2.0.0
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubyforge_project:
|
145
|
+
rubygems_version: 2.5.1
|
146
|
+
signing_key:
|
147
|
+
specification_version: 4
|
148
|
+
summary: Official Ruby client library to consume Microsoft Azure Security Management
|
149
|
+
services.
|
150
|
+
test_files: []
|