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
data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb
ADDED
@@ -0,0 +1,70 @@
|
|
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 JitNetworkAccessPolicyInitiatePort
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Integer]
|
17
|
+
attr_accessor :number
|
18
|
+
|
19
|
+
# @return [String] Source of the allowed traffic. If omitted, the request
|
20
|
+
# will be for the source IP address of the initiate request.
|
21
|
+
attr_accessor :allowed_source_address_prefix
|
22
|
+
|
23
|
+
# @return [DateTime] The time to close the request in UTC
|
24
|
+
attr_accessor :end_time_utc
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for JitNetworkAccessPolicyInitiatePort 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: 'JitNetworkAccessPolicyInitiatePort',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'JitNetworkAccessPolicyInitiatePort',
|
39
|
+
model_properties: {
|
40
|
+
number: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: true,
|
43
|
+
serialized_name: 'number',
|
44
|
+
type: {
|
45
|
+
name: 'Number'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
allowed_source_address_prefix: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'allowedSourceAddressPrefix',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
end_time_utc: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: true,
|
59
|
+
serialized_name: 'endTimeUtc',
|
60
|
+
type: {
|
61
|
+
name: 'DateTime'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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 JitNetworkAccessPolicyInitiateRequest
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<JitNetworkAccessPolicyInitiateVirtualMachine>] A list of
|
17
|
+
# virtual machines & ports to open access for
|
18
|
+
attr_accessor :virtual_machines
|
19
|
+
|
20
|
+
# @return [String] The justification for making the initiate request
|
21
|
+
attr_accessor :justification
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for JitNetworkAccessPolicyInitiateRequest class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'JitNetworkAccessPolicyInitiateRequest',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'JitNetworkAccessPolicyInitiateRequest',
|
36
|
+
model_properties: {
|
37
|
+
virtual_machines: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: true,
|
40
|
+
serialized_name: 'virtualMachines',
|
41
|
+
type: {
|
42
|
+
name: 'Sequence',
|
43
|
+
element: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'JitNetworkAccessPolicyInitiateVirtualMachineElementType',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'JitNetworkAccessPolicyInitiateVirtualMachine'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
justification: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'justification',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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 JitNetworkAccessPolicyInitiateVirtualMachine
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Resource ID of the virtual machine that is linked to
|
17
|
+
# this policy
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# @return [Array<JitNetworkAccessPolicyInitiatePort>] The ports to open
|
21
|
+
# for the resource with the `id`
|
22
|
+
attr_accessor :ports
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for JitNetworkAccessPolicyInitiateVirtualMachine class as Ruby
|
27
|
+
# Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'JitNetworkAccessPolicyInitiateVirtualMachine',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'JitNetworkAccessPolicyInitiateVirtualMachine',
|
38
|
+
model_properties: {
|
39
|
+
id: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: true,
|
42
|
+
serialized_name: 'id',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
ports: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'ports',
|
51
|
+
type: {
|
52
|
+
name: 'Sequence',
|
53
|
+
element: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'JitNetworkAccessPolicyInitiatePortElementType',
|
57
|
+
type: {
|
58
|
+
name: 'Composite',
|
59
|
+
class_name: 'JitNetworkAccessPolicyInitiatePort'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,81 @@
|
|
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 JitNetworkAccessPolicyVirtualMachine
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Resource ID of the virtual machine that is linked to
|
17
|
+
# this policy
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# @return [Array<JitNetworkAccessPortRule>] Port configurations for the
|
21
|
+
# virtual machine
|
22
|
+
attr_accessor :ports
|
23
|
+
|
24
|
+
# @return [String] Public IP address of the Azure Firewall that is linked
|
25
|
+
# to this policy, if applicable
|
26
|
+
attr_accessor :public_ip_address
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for JitNetworkAccessPolicyVirtualMachine class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'JitNetworkAccessPolicyVirtualMachine',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'JitNetworkAccessPolicyVirtualMachine',
|
41
|
+
model_properties: {
|
42
|
+
id: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: true,
|
45
|
+
serialized_name: 'id',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
ports: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: true,
|
53
|
+
serialized_name: 'ports',
|
54
|
+
type: {
|
55
|
+
name: 'Sequence',
|
56
|
+
element: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'JitNetworkAccessPortRuleElementType',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'JitNetworkAccessPortRule'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
public_ip_address: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'publicIpAddress',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,103 @@
|
|
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 JitNetworkAccessPortRule
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Integer]
|
17
|
+
attr_accessor :number
|
18
|
+
|
19
|
+
# @return [Protocol] Possible values include: 'TCP', 'UDP', 'All'
|
20
|
+
attr_accessor :protocol
|
21
|
+
|
22
|
+
# @return [String] Mutually exclusive with the
|
23
|
+
# "allowedSourceAddressPrefixes" parameter. Should be an IP address or
|
24
|
+
# CIDR, for example "192.168.0.3" or "192.168.0.0/16".
|
25
|
+
attr_accessor :allowed_source_address_prefix
|
26
|
+
|
27
|
+
# @return [Array<String>] Mutually exclusive with the
|
28
|
+
# "allowedSourceAddressPrefix" parameter.
|
29
|
+
attr_accessor :allowed_source_address_prefixes
|
30
|
+
|
31
|
+
# @return [String] Maximum duration requests can be made for. In ISO 8601
|
32
|
+
# duration format. Minimum 5 minutes, maximum 1 day
|
33
|
+
attr_accessor :max_request_access_duration
|
34
|
+
|
35
|
+
|
36
|
+
#
|
37
|
+
# Mapper for JitNetworkAccessPortRule class as Ruby Hash.
|
38
|
+
# This will be used for serialization/deserialization.
|
39
|
+
#
|
40
|
+
def self.mapper()
|
41
|
+
{
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'JitNetworkAccessPortRule',
|
45
|
+
type: {
|
46
|
+
name: 'Composite',
|
47
|
+
class_name: 'JitNetworkAccessPortRule',
|
48
|
+
model_properties: {
|
49
|
+
number: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: true,
|
52
|
+
serialized_name: 'number',
|
53
|
+
type: {
|
54
|
+
name: 'Number'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
protocol: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: true,
|
60
|
+
serialized_name: 'protocol',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
allowed_source_address_prefix: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'allowedSourceAddressPrefix',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
allowed_source_address_prefixes: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'allowedSourceAddressPrefixes',
|
77
|
+
type: {
|
78
|
+
name: 'Sequence',
|
79
|
+
element: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'StringElementType',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
},
|
89
|
+
max_request_access_duration: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: true,
|
92
|
+
serialized_name: 'maxRequestAccessDuration',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,89 @@
|
|
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 JitNetworkAccessRequest
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<JitNetworkAccessRequestVirtualMachine>]
|
17
|
+
attr_accessor :virtual_machines
|
18
|
+
|
19
|
+
# @return [DateTime] The start time of the request in UTC
|
20
|
+
attr_accessor :start_time_utc
|
21
|
+
|
22
|
+
# @return [String] The identity of the person who made the request
|
23
|
+
attr_accessor :requestor
|
24
|
+
|
25
|
+
# @return [String] The justification for making the initiate request
|
26
|
+
attr_accessor :justification
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for JitNetworkAccessRequest class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'JitNetworkAccessRequest',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'JitNetworkAccessRequest',
|
41
|
+
model_properties: {
|
42
|
+
virtual_machines: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: true,
|
45
|
+
serialized_name: 'virtualMachines',
|
46
|
+
type: {
|
47
|
+
name: 'Sequence',
|
48
|
+
element: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'JitNetworkAccessRequestVirtualMachineElementType',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'JitNetworkAccessRequestVirtualMachine'
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
start_time_utc: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: true,
|
62
|
+
serialized_name: 'startTimeUtc',
|
63
|
+
type: {
|
64
|
+
name: 'DateTime'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
requestor: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: true,
|
70
|
+
serialized_name: 'requestor',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
justification: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'justification',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|