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,141 @@
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_preview
7
+ module Models
8
+ #
9
+ # Information about the security control.
10
+ #
11
+ class SecureScoreControlDefinitionItem < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] User friendly display name of the control
16
+ attr_accessor :display_name
17
+
18
+ # @return [String] User friendly description of the control
19
+ attr_accessor :description
20
+
21
+ # @return [Integer] Maximum control score (0..10)
22
+ attr_accessor :max_score
23
+
24
+ # @return [SecureScoreControlDefinitionSource] Source object from which
25
+ # the control was created
26
+ attr_accessor :source
27
+
28
+ # @return [Array<AzureResourceLink>] Array of assessments metadata IDs
29
+ # that are included in this security control
30
+ attr_accessor :assessment_definitions
31
+
32
+
33
+ #
34
+ # Mapper for SecureScoreControlDefinitionItem class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'SecureScoreControlDefinitionItem',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'SecureScoreControlDefinitionItem',
45
+ model_properties: {
46
+ id: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'id',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ name: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'name',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'type',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ display_name: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'properties.displayName',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ description: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ read_only: true,
86
+ serialized_name: 'properties.description',
87
+ constraints: {
88
+ MaxLength: 256
89
+ },
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ max_score: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'properties.maxScore',
99
+ constraints: {
100
+ InclusiveMaximum: 10,
101
+ InclusiveMinimum: 0
102
+ },
103
+ type: {
104
+ name: 'Number'
105
+ }
106
+ },
107
+ source: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ read_only: true,
111
+ serialized_name: 'properties.source',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'SecureScoreControlDefinitionSource'
115
+ }
116
+ },
117
+ assessment_definitions: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'properties.assessmentDefinitions',
122
+ type: {
123
+ name: 'Sequence',
124
+ element: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ serialized_name: 'AzureResourceLinkElementType',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'AzureResourceLink'
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ end
139
+ end
140
+ end
141
+ end
@@ -0,0 +1,101 @@
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_preview
7
+ module Models
8
+ #
9
+ # List of security controls definition
10
+ #
11
+ class SecureScoreControlDefinitionList
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SecureScoreControlDefinitionItem>] Collection of
17
+ # security controls definition in this page
18
+ attr_accessor :value
19
+
20
+ # @return [String] The URI to fetch the next page.
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<SecureScoreControlDefinitionItem>] 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 [SecureScoreControlDefinitionList] 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 SecureScoreControlDefinitionList 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: 'secureScoreControlDefinitionList',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'SecureScoreControlDefinitionList',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'SecureScoreControlDefinitionItemElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'SecureScoreControlDefinitionItem'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,47 @@
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_preview
7
+ module Models
8
+ #
9
+ # The type of the security control (For example, BuiltIn)
10
+ #
11
+ class SecureScoreControlDefinitionSource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ControlType] The type of security control (for example,
16
+ # BuiltIn). Possible values include: 'BuiltIn', 'Custom'
17
+ attr_accessor :source_type
18
+
19
+
20
+ #
21
+ # Mapper for SecureScoreControlDefinitionSource class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'SecureScoreControlDefinitionSource',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'SecureScoreControlDefinitionSource',
32
+ model_properties: {
33
+ source_type: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'sourceType',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,153 @@
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_preview
7
+ module Models
8
+ #
9
+ # Details of the security control, its score, and the health status of the
10
+ # relevant resources.
11
+ #
12
+ class SecureScoreControlDetails < Resource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] User friendly display name of the control
17
+ attr_accessor :display_name
18
+
19
+ # @return [Integer] Maximum score available
20
+ attr_accessor :max
21
+
22
+ # @return [Float] Current score
23
+ attr_accessor :current
24
+
25
+ # @return [Integer] Number of healthy resources in the control
26
+ attr_accessor :healthy_resource_count
27
+
28
+ # @return [Integer] Number of unhealthy resources in the control
29
+ attr_accessor :unhealthy_resource_count
30
+
31
+ # @return [Integer] Number of not applicable resources in the control
32
+ attr_accessor :not_applicable_resource_count
33
+
34
+ # @return [SecureScoreControlDefinitionItem]
35
+ attr_accessor :definition
36
+
37
+
38
+ #
39
+ # Mapper for SecureScoreControlDetails class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'SecureScoreControlDetails',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'SecureScoreControlDetails',
50
+ model_properties: {
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ type: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ display_name: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'properties.displayName',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ max: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ read_only: true,
91
+ serialized_name: 'properties.score.max',
92
+ constraints: {
93
+ InclusiveMinimum: 0
94
+ },
95
+ type: {
96
+ name: 'Number'
97
+ }
98
+ },
99
+ current: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'properties.score.current',
104
+ constraints: {
105
+ InclusiveMinimum: 0
106
+ },
107
+ type: {
108
+ name: 'Double'
109
+ }
110
+ },
111
+ healthy_resource_count: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'properties.healthyResourceCount',
116
+ type: {
117
+ name: 'Number'
118
+ }
119
+ },
120
+ unhealthy_resource_count: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'properties.unhealthyResourceCount',
125
+ type: {
126
+ name: 'Number'
127
+ }
128
+ },
129
+ not_applicable_resource_count: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'properties.notApplicableResourceCount',
134
+ type: {
135
+ name: 'Number'
136
+ }
137
+ },
138
+ definition: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ serialized_name: 'properties.definition',
142
+ type: {
143
+ name: 'Composite',
144
+ class_name: 'SecureScoreControlDefinitionItem'
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ end
151
+ end
152
+ end
153
+ end
@@ -0,0 +1,101 @@
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_preview
7
+ module Models
8
+ #
9
+ # List of security controls
10
+ #
11
+ class SecureScoreControlList
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SecureScoreControlDetails>] Collection of security
17
+ # controls in this page
18
+ attr_accessor :value
19
+
20
+ # @return [String] The URI to fetch the next page.
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<SecureScoreControlDetails>] 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 [SecureScoreControlList] 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 SecureScoreControlList 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: 'SecureScoreControlList',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'SecureScoreControlList',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'SecureScoreControlDetailsElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'SecureScoreControlDetails'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end