azure_mgmt_security 0.18.1 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2017-08-01/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2019-01-01/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2019-08-01/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2020-01-01-preview/generated/azure_mgmt_security.rb +48 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/azure_resource_link.rb +47 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/control_type.rb +16 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/expand_controls_enum.rb +15 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/location.rb +47 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_item.rb +141 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_source.rb +47 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_details.rb +153 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_score.rb +69 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_item.rb +104 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_scores_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +126 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_control_definitions.rb +423 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_controls.rb +444 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_scores.rb +326 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/security_center.rb +139 -0
- data/lib/2020-01-01/generated/azure_mgmt_security.rb +121 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_application_controls.rb +394 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_network_hardenings.rb +539 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/allowed_connections.rb +535 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/assessments.rb +555 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/assessments_metadata.rb +799 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/discovered_security_solutions.rb +532 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/external_security_solutions.rb +525 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/jit_network_access_policies.rb +1295 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state1.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_external_security_solution.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_solution_properties.rb +83 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening.rb +116 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening_enforce_request.rb +77 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardenings_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_list.rb +100 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_resource.rb +118 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/app_whitelisting_group.rb +207 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/app_whitelisting_groups.rb +56 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/app_whitelisting_issue_summary.rb +61 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_links.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status.rb +71 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status_code.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_type.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_external_security_solution.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_solution_properties.rb +87 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_resource_details.rb +62 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/category.rb +19 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_external_security_solution.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_solution_properties.rb +109 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connectable_resource.rb +91 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_resource.rb +71 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_workspace.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connection_type.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/direction.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution.rb +129 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/effective_network_security_groups.rb +66 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/expand_enum.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind1.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_properties.rb +88 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/implementation_effort.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policies_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy.rb +149 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb +70 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +68 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb +70 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_virtual_machine.rb +81 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_port_rule.rb +103 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request.rb +89 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_port.rb +128 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb +69 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/location.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/on_premise_resource_details.rb +95 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/path_recommendation.rb +156 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/protocol.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/publisher_info.rb +84 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/resource_details.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/rule.rb +111 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment.rb +156 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata.rb +221 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb +100 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_partner_data.rb +70 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_properties.rb +194 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_partner_data.rb +57 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_family.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessment.rb +76 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessments_list.rb +55 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/severity.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/status.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/status_reason.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/threats.rb +22 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_list.rb +100 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_resource.rb +118 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb +154 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_child.rb +49 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_parent.rb +49 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +126 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/transport_protocol.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/user_impact.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/user_recommendation.rb +58 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/vm_recommendation.rb +81 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/security_center.rb +172 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/server_vulnerability_assessment_operations.rb +462 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/topology.rb +530 -0
- data/lib/azure_mgmt_security.rb +2 -0
- data/lib/profiles/latest/modules/security_profile_module.rb +366 -258
- data/lib/version.rb +1 -1
- metadata +123 -2
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Security::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for AadConnectivityState
|
10
|
+
#
|
11
|
+
module AadConnectivityState
|
12
|
+
Discovered = "Discovered"
|
13
|
+
NotLicensed = "NotLicensed"
|
14
|
+
Connected = "Connected"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Security::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes an Azure resource with kind
|
10
|
+
#
|
11
|
+
class AadConnectivityState1
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [AadConnectivityState] The connectivity state of the external
|
16
|
+
# AAD solution . Possible values include: 'Discovered', 'NotLicensed',
|
17
|
+
# 'Connected'
|
18
|
+
attr_accessor :connectivity_state
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for AadConnectivityState1 class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
client_side_validation: true,
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'AadConnectivityState',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'AadConnectivityState1',
|
33
|
+
model_properties: {
|
34
|
+
connectivity_state: {
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'connectivityState',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Security::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents an AAD identity protection solution which sends logs to an OMS
|
10
|
+
# workspace.
|
11
|
+
#
|
12
|
+
class AadExternalSecuritySolution < ExternalSecuritySolution
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@kind = "AAD"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :kind
|
22
|
+
|
23
|
+
# @return [AadSolutionProperties]
|
24
|
+
attr_accessor :properties
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for AadExternalSecuritySolution class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'AAD',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'AadExternalSecuritySolution',
|
39
|
+
model_properties: {
|
40
|
+
id: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
read_only: true,
|
44
|
+
serialized_name: 'id',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
name: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'name',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
type: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
read_only: true,
|
62
|
+
serialized_name: 'type',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
location: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
read_only: true,
|
71
|
+
serialized_name: 'location',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
kind: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: true,
|
79
|
+
serialized_name: 'kind',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
properties: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'properties',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'AadSolutionProperties'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Security::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The external security solution properties for AAD solutions
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class AadSolutionProperties
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :device_vendor
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :device_type
|
21
|
+
|
22
|
+
# @return [ConnectedWorkspace]
|
23
|
+
attr_accessor :workspace
|
24
|
+
|
25
|
+
# @return [AadConnectivityState] The connectivity state of the external
|
26
|
+
# AAD solution . Possible values include: 'Discovered', 'NotLicensed',
|
27
|
+
# 'Connected'
|
28
|
+
attr_accessor :connectivity_state
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for AadSolutionProperties class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'AadSolutionProperties',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'AadSolutionProperties',
|
43
|
+
model_properties: {
|
44
|
+
device_vendor: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'deviceVendor',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
device_type: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'deviceType',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
workspace: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'workspace',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'ConnectedWorkspace'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
connectivity_state: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'connectivityState',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Security::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource whose properties describes the Adaptive Network Hardening
|
10
|
+
# settings for some Azure resource
|
11
|
+
#
|
12
|
+
class AdaptiveNetworkHardening < Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<Rule>] The security rules which are recommended to be
|
17
|
+
# effective on the VM
|
18
|
+
attr_accessor :rules
|
19
|
+
|
20
|
+
# @return [DateTime] The UTC time on which the rules were calculated
|
21
|
+
attr_accessor :rules_calculation_time
|
22
|
+
|
23
|
+
# @return [Array<EffectiveNetworkSecurityGroups>] The Network Security
|
24
|
+
# Groups effective on the network interfaces of the protected resource
|
25
|
+
attr_accessor :effective_network_security_groups
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for AdaptiveNetworkHardening class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'AdaptiveNetworkHardening',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'AdaptiveNetworkHardening',
|
40
|
+
model_properties: {
|
41
|
+
id: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'id',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
name: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'name',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
type: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'type',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
rules: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'properties.rules',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'RuleElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'Rule'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
rules_calculation_time: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'properties.rulesCalculationTime',
|
89
|
+
type: {
|
90
|
+
name: 'DateTime'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
effective_network_security_groups: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'properties.effectiveNetworkSecurityGroups',
|
97
|
+
type: {
|
98
|
+
name: 'Sequence',
|
99
|
+
element: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'EffectiveNetworkSecurityGroupsElementType',
|
103
|
+
type: {
|
104
|
+
name: 'Composite',
|
105
|
+
class_name: 'EffectiveNetworkSecurityGroups'
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Security::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class AdaptiveNetworkHardeningEnforceRequest
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<Rule>] The rules to enforce
|
17
|
+
attr_accessor :rules
|
18
|
+
|
19
|
+
# @return [Array<String>] The Azure resource IDs of the effective network
|
20
|
+
# security groups that will be updated with the created security rules
|
21
|
+
# from the Adaptive Network Hardening rules
|
22
|
+
attr_accessor :network_security_groups
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for AdaptiveNetworkHardeningEnforceRequest class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'AdaptiveNetworkHardeningEnforceRequest',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'AdaptiveNetworkHardeningEnforceRequest',
|
37
|
+
model_properties: {
|
38
|
+
rules: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: true,
|
41
|
+
serialized_name: 'rules',
|
42
|
+
type: {
|
43
|
+
name: 'Sequence',
|
44
|
+
element: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'RuleElementType',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'Rule'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
network_security_groups: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: true,
|
58
|
+
serialized_name: 'networkSecurityGroups',
|
59
|
+
type: {
|
60
|
+
name: 'Sequence',
|
61
|
+
element: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'StringElementType',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Security::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Response for ListAdaptiveNetworkHardenings API service call
|
10
|
+
#
|
11
|
+
class AdaptiveNetworkHardeningsList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<AdaptiveNetworkHardening>] A list of Adaptive Network
|
17
|
+
# Hardenings resources
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] The URL to get the next set of results
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<AdaptiveNetworkHardening>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [AdaptiveNetworkHardeningsList] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for AdaptiveNetworkHardeningsList class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'AdaptiveNetworkHardeningsList',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'AdaptiveNetworkHardeningsList',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'AdaptiveNetworkHardeningElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'AdaptiveNetworkHardening'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
next_link: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'nextLink',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|