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.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
  3. data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
  4. data/lib/2017-08-01/generated/azure_mgmt_security/security_center.rb +1 -1
  5. data/lib/2018-06-01/generated/azure_mgmt_security/security_center.rb +1 -1
  6. data/lib/2019-01-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
  7. data/lib/2019-01-01/generated/azure_mgmt_security/security_center.rb +1 -1
  8. data/lib/2019-08-01/generated/azure_mgmt_security/security_center.rb +1 -1
  9. data/lib/2020-01-01-preview/generated/azure_mgmt_security.rb +48 -0
  10. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  11. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/azure_resource_link.rb +47 -0
  12. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/control_type.rb +16 -0
  13. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
  14. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/expand_controls_enum.rb +15 -0
  15. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  16. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/location.rb +47 -0
  17. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  18. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_item.rb +141 -0
  19. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_list.rb +101 -0
  20. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_source.rb +47 -0
  21. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_details.rb +153 -0
  22. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_list.rb +101 -0
  23. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_score.rb +69 -0
  24. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_item.rb +104 -0
  25. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_scores_list.rb +101 -0
  26. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
  27. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +126 -0
  28. data/lib/2020-01-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  29. data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_control_definitions.rb +423 -0
  30. data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_controls.rb +444 -0
  31. data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_scores.rb +326 -0
  32. data/lib/2020-01-01-preview/generated/azure_mgmt_security/security_center.rb +139 -0
  33. data/lib/2020-01-01/generated/azure_mgmt_security.rb +121 -0
  34. data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_application_controls.rb +394 -0
  35. data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_network_hardenings.rb +539 -0
  36. data/lib/2020-01-01/generated/azure_mgmt_security/allowed_connections.rb +535 -0
  37. data/lib/2020-01-01/generated/azure_mgmt_security/assessments.rb +555 -0
  38. data/lib/2020-01-01/generated/azure_mgmt_security/assessments_metadata.rb +799 -0
  39. data/lib/2020-01-01/generated/azure_mgmt_security/discovered_security_solutions.rb +532 -0
  40. data/lib/2020-01-01/generated/azure_mgmt_security/external_security_solutions.rb +525 -0
  41. data/lib/2020-01-01/generated/azure_mgmt_security/jit_network_access_policies.rb +1295 -0
  42. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state.rb +17 -0
  43. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state1.rb +48 -0
  44. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_external_security_solution.rb +99 -0
  45. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_solution_properties.rb +83 -0
  46. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening.rb +116 -0
  47. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening_enforce_request.rb +77 -0
  48. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardenings_list.rb +99 -0
  49. data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_list.rb +100 -0
  50. data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_resource.rb +118 -0
  51. data/lib/2020-01-01/generated/azure_mgmt_security/models/app_whitelisting_group.rb +207 -0
  52. data/lib/2020-01-01/generated/azure_mgmt_security/models/app_whitelisting_groups.rb +56 -0
  53. data/lib/2020-01-01/generated/azure_mgmt_security/models/app_whitelisting_issue_summary.rb +61 -0
  54. data/lib/2020-01-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  55. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_links.rb +47 -0
  56. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status.rb +71 -0
  57. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status_code.rb +17 -0
  58. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_type.rb +18 -0
  59. data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_external_security_solution.rb +98 -0
  60. data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_solution_properties.rb +87 -0
  61. data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_resource_details.rb +62 -0
  62. data/lib/2020-01-01/generated/azure_mgmt_security/models/category.rb +19 -0
  63. data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_external_security_solution.rb +98 -0
  64. data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_solution_properties.rb +109 -0
  65. data/lib/2020-01-01/generated/azure_mgmt_security/models/connectable_resource.rb +91 -0
  66. data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_resource.rb +71 -0
  67. data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_workspace.rb +47 -0
  68. data/lib/2020-01-01/generated/azure_mgmt_security/models/connection_type.rb +16 -0
  69. data/lib/2020-01-01/generated/azure_mgmt_security/models/direction.rb +16 -0
  70. data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution.rb +129 -0
  71. data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution_list.rb +99 -0
  72. data/lib/2020-01-01/generated/azure_mgmt_security/models/effective_network_security_groups.rb +66 -0
  73. data/lib/2020-01-01/generated/azure_mgmt_security/models/etag.rb +48 -0
  74. data/lib/2020-01-01/generated/azure_mgmt_security/models/expand_enum.rb +16 -0
  75. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution.rb +98 -0
  76. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind.rb +17 -0
  77. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind1.rb +47 -0
  78. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_list.rb +101 -0
  79. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_properties.rb +88 -0
  80. data/lib/2020-01-01/generated/azure_mgmt_security/models/implementation_effort.rb +17 -0
  81. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policies_list.rb +99 -0
  82. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy.rb +149 -0
  83. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb +70 -0
  84. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +68 -0
  85. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb +70 -0
  86. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_virtual_machine.rb +81 -0
  87. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_port_rule.rb +103 -0
  88. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request.rb +89 -0
  89. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_port.rb +128 -0
  90. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb +69 -0
  91. data/lib/2020-01-01/generated/azure_mgmt_security/models/kind.rb +46 -0
  92. data/lib/2020-01-01/generated/azure_mgmt_security/models/location.rb +47 -0
  93. data/lib/2020-01-01/generated/azure_mgmt_security/models/on_premise_resource_details.rb +95 -0
  94. data/lib/2020-01-01/generated/azure_mgmt_security/models/path_recommendation.rb +156 -0
  95. data/lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb +80 -0
  96. data/lib/2020-01-01/generated/azure_mgmt_security/models/protocol.rb +17 -0
  97. data/lib/2020-01-01/generated/azure_mgmt_security/models/publisher_info.rb +84 -0
  98. data/lib/2020-01-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  99. data/lib/2020-01-01/generated/azure_mgmt_security/models/resource_details.rb +47 -0
  100. data/lib/2020-01-01/generated/azure_mgmt_security/models/rule.rb +111 -0
  101. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment.rb +156 -0
  102. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_list.rb +101 -0
  103. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata.rb +221 -0
  104. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb +100 -0
  105. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_partner_data.rb +70 -0
  106. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_properties.rb +194 -0
  107. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_partner_data.rb +57 -0
  108. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_family.rb +18 -0
  109. data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessment.rb +76 -0
  110. data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessments_list.rb +55 -0
  111. data/lib/2020-01-01/generated/azure_mgmt_security/models/severity.rb +17 -0
  112. data/lib/2020-01-01/generated/azure_mgmt_security/models/status.rb +16 -0
  113. data/lib/2020-01-01/generated/azure_mgmt_security/models/status_reason.rb +17 -0
  114. data/lib/2020-01-01/generated/azure_mgmt_security/models/tags.rb +55 -0
  115. data/lib/2020-01-01/generated/azure_mgmt_security/models/threats.rb +22 -0
  116. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_list.rb +100 -0
  117. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_resource.rb +118 -0
  118. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb +154 -0
  119. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_child.rb +49 -0
  120. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_parent.rb +49 -0
  121. data/lib/2020-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +126 -0
  122. data/lib/2020-01-01/generated/azure_mgmt_security/models/transport_protocol.rb +16 -0
  123. data/lib/2020-01-01/generated/azure_mgmt_security/models/user_impact.rb +17 -0
  124. data/lib/2020-01-01/generated/azure_mgmt_security/models/user_recommendation.rb +58 -0
  125. data/lib/2020-01-01/generated/azure_mgmt_security/models/vm_recommendation.rb +81 -0
  126. data/lib/2020-01-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  127. data/lib/2020-01-01/generated/azure_mgmt_security/security_center.rb +172 -0
  128. data/lib/2020-01-01/generated/azure_mgmt_security/server_vulnerability_assessment_operations.rb +462 -0
  129. data/lib/2020-01-01/generated/azure_mgmt_security/topology.rb +530 -0
  130. data/lib/azure_mgmt_security.rb +2 -0
  131. data/lib/profiles/latest/modules/security_profile_module.rb +366 -258
  132. data/lib/version.rb +1 -1
  133. metadata +123 -2
@@ -0,0 +1,49 @@
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 TopologySingleResourceChild
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Azure resource id which serves as child resource in
17
+ # topology view
18
+ attr_accessor :resource_id
19
+
20
+
21
+ #
22
+ # Mapper for TopologySingleResourceChild 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: 'TopologySingleResourceChild',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'TopologySingleResourceChild',
33
+ model_properties: {
34
+ resource_id: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ read_only: true,
38
+ serialized_name: 'resourceId',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
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 TopologySingleResourceParent
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Azure resource id which serves as parent resource in
17
+ # topology view
18
+ attr_accessor :resource_id
19
+
20
+
21
+ #
22
+ # Mapper for TopologySingleResourceParent 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: 'TopologySingleResourceParent',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'TopologySingleResourceParent',
33
+ model_properties: {
34
+ resource_id: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ read_only: true,
38
+ serialized_name: 'resourceId',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,126 @@
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 tracked resource.
10
+ #
11
+ class TrackedResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource Id
16
+ attr_accessor :id
17
+
18
+ # @return [String] Resource name
19
+ attr_accessor :name
20
+
21
+ # @return [String] Resource type
22
+ attr_accessor :type
23
+
24
+ # @return [String] Location where the resource is stored
25
+ attr_accessor :location
26
+
27
+ # @return [String] Kind of the resource
28
+ attr_accessor :kind
29
+
30
+ # @return [String] Entity tag is used for comparing two or more entities
31
+ # from the same requested resource.
32
+ attr_accessor :etag
33
+
34
+ # @return [Hash{String => String}] A list of key value pairs that
35
+ # describe the resource.
36
+ attr_accessor :tags
37
+
38
+
39
+ #
40
+ # Mapper for TrackedResource class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'TrackedResource',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'TrackedResource',
51
+ model_properties: {
52
+ id: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'id',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ name: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'name',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ type: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'type',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ location: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'location',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ kind: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'kind',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ etag: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'etag',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ tags: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'tags',
108
+ type: {
109
+ name: 'Dictionary',
110
+ value: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'StringElementType',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,16 @@
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 TransportProtocol
10
+ #
11
+ module TransportProtocol
12
+ TCP = "TCP"
13
+ UDP = "UDP"
14
+ end
15
+ end
16
+ end
@@ -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 UserImpact
10
+ #
11
+ module UserImpact
12
+ Low = "Low"
13
+ Moderate = "Moderate"
14
+ High = "High"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,58 @@
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 a user that is recommended to be allowed for a certain rule
10
+ #
11
+ class UserRecommendation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Represents a user that is recommended to be allowed
16
+ # for a certain rule
17
+ attr_accessor :username
18
+
19
+ # @return [Enum] Possible values include: 'Recommended', 'Add', 'Remove'
20
+ attr_accessor :recommendation_action
21
+
22
+
23
+ #
24
+ # Mapper for UserRecommendation class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'UserRecommendation',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'UserRecommendation',
35
+ model_properties: {
36
+ username: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'username',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ recommendation_action: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'recommendationAction',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ 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
+ # Represents a machine that is part of a VM/server group
10
+ #
11
+ class VmRecommendation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Enum] Possible values include: 'Configured', 'NotConfigured',
16
+ # 'InProgress', 'Failed', 'NoStatus'
17
+ attr_accessor :configuration_status
18
+
19
+ # @return [Enum] Possible values include: 'Recommended', 'Add', 'Remove'
20
+ attr_accessor :recommendation_action
21
+
22
+ # @return [String]
23
+ attr_accessor :resource_id
24
+
25
+ # @return [Enum] Possible values include: 'Supported', 'NotSupported',
26
+ # 'Unknown'
27
+ attr_accessor :enforcement_support
28
+
29
+
30
+ #
31
+ # Mapper for VmRecommendation class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'VmRecommendation',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'VmRecommendation',
42
+ model_properties: {
43
+ configuration_status: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'configurationStatus',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ recommendation_action: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'recommendationAction',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ resource_id: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'resourceId',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ enforcement_support: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'enforcementSupport',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::Security end
8
+ module Azure::Security::Mgmt end
9
+ module Azure::Security::Mgmt::V2020_01_01 end
@@ -0,0 +1,172 @@
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
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class SecurityCenter < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] API version for the operation
21
+ attr_reader :api_version
22
+
23
+ # @return [String] Azure subscription ID
24
+ attr_accessor :subscription_id
25
+
26
+ # @return [String] The location where ASC stores the data of the
27
+ # subscription. can be retrieved from Get locations
28
+ attr_accessor :asc_location
29
+
30
+ # @return [String] The preferred language for the response.
31
+ attr_accessor :accept_language
32
+
33
+ # @return [Integer] The retry timeout in seconds for Long Running
34
+ # Operations. Default value is 30.
35
+ attr_accessor :long_running_operation_retry_timeout
36
+
37
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
38
+ # generated. When set to true a unique x-ms-client-request-id value is
39
+ # generated and included in each request. Default is true.
40
+ attr_accessor :generate_client_request_id
41
+
42
+ # @return [AdaptiveNetworkHardenings] adaptive_network_hardenings
43
+ attr_reader :adaptive_network_hardenings
44
+
45
+ # @return [AllowedConnections] allowed_connections
46
+ attr_reader :allowed_connections
47
+
48
+ # @return [AdaptiveApplicationControls] adaptive_application_controls
49
+ attr_reader :adaptive_application_controls
50
+
51
+ # @return [AssessmentsMetadata] assessments_metadata
52
+ attr_reader :assessments_metadata
53
+
54
+ # @return [Assessments] assessments
55
+ attr_reader :assessments
56
+
57
+ # @return [DiscoveredSecuritySolutions] discovered_security_solutions
58
+ attr_reader :discovered_security_solutions
59
+
60
+ # @return [ExternalSecuritySolutions] external_security_solutions
61
+ attr_reader :external_security_solutions
62
+
63
+ # @return [JitNetworkAccessPolicies] jit_network_access_policies
64
+ attr_reader :jit_network_access_policies
65
+
66
+ # @return [ServerVulnerabilityAssessmentOperations]
67
+ # server_vulnerability_assessment_operations
68
+ attr_reader :server_vulnerability_assessment_operations
69
+
70
+ # @return [Topology] topology
71
+ attr_reader :topology
72
+
73
+ #
74
+ # Creates initializes a new instance of the SecurityCenter class.
75
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
76
+ # @param base_url [String] the base URI of the service.
77
+ # @param options [Array] filters to be applied to the HTTP requests.
78
+ #
79
+ def initialize(credentials = nil, base_url = nil, options = nil)
80
+ super(credentials, options)
81
+ @base_url = base_url || 'https://management.azure.com'
82
+
83
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
84
+ @credentials = credentials
85
+
86
+ @adaptive_network_hardenings = AdaptiveNetworkHardenings.new(self)
87
+ @allowed_connections = AllowedConnections.new(self)
88
+ @adaptive_application_controls = AdaptiveApplicationControls.new(self)
89
+ @assessments_metadata = AssessmentsMetadata.new(self)
90
+ @assessments = Assessments.new(self)
91
+ @discovered_security_solutions = DiscoveredSecuritySolutions.new(self)
92
+ @external_security_solutions = ExternalSecuritySolutions.new(self)
93
+ @jit_network_access_policies = JitNetworkAccessPolicies.new(self)
94
+ @server_vulnerability_assessment_operations = ServerVulnerabilityAssessmentOperations.new(self)
95
+ @topology = Topology.new(self)
96
+ @api_version = '2020-01-01'
97
+ @accept_language = 'en-US'
98
+ @long_running_operation_retry_timeout = 30
99
+ @generate_client_request_id = true
100
+ add_telemetry
101
+ end
102
+
103
+ #
104
+ # Makes a request and returns the body of the response.
105
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
106
+ # @param path [String] the path, relative to {base_url}.
107
+ # @param options [Hash{String=>String}] specifying any request options like :body.
108
+ # @return [Hash{String=>String}] containing the body of the response.
109
+ # Example:
110
+ #
111
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
112
+ # path = "/path"
113
+ # options = {
114
+ # body: request_content,
115
+ # query_params: {'api-version' => '2016-02-01'}
116
+ # }
117
+ # result = @client.make_request(:put, path, options)
118
+ #
119
+ def make_request(method, path, options = {})
120
+ result = make_request_with_http_info(method, path, options)
121
+ result.body unless result.nil?
122
+ end
123
+
124
+ #
125
+ # Makes a request and returns the operation response.
126
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
127
+ # @param path [String] the path, relative to {base_url}.
128
+ # @param options [Hash{String=>String}] specifying any request options like :body.
129
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
130
+ #
131
+ def make_request_with_http_info(method, path, options = {})
132
+ result = make_request_async(method, path, options).value!
133
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
134
+ result
135
+ end
136
+
137
+ #
138
+ # Makes a request asynchronously.
139
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
140
+ # @param path [String] the path, relative to {base_url}.
141
+ # @param options [Hash{String=>String}] specifying any request options like :body.
142
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
+ #
144
+ def make_request_async(method, path, options = {})
145
+ fail ArgumentError, 'method is nil' if method.nil?
146
+ fail ArgumentError, 'path is nil' if path.nil?
147
+
148
+ request_url = options[:base_url] || @base_url
149
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
150
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
151
+ end
152
+
153
+ request_headers = @request_headers
154
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
155
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
156
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
157
+
158
+ super(request_url, method, path, options)
159
+ end
160
+
161
+
162
+ private
163
+ #
164
+ # Adds telemetry information.
165
+ #
166
+ def add_telemetry
167
+ sdk_information = 'azure_mgmt_security'
168
+ sdk_information = "#{sdk_information}/0.18.2"
169
+ add_user_agent_information(sdk_information)
170
+ end
171
+ end
172
+ end