azure_mgmt_monitor 0.17.6 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +11 -8
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +24 -19
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_trigger.rb +35 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +9 -9
  6. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
  7. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +1 -1
  8. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension.rb +80 -0
  9. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension_operation_type.rb +16 -0
  10. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +1 -0
  11. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +1 -1
  12. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  13. data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  14. data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +14 -14
  15. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +21 -21
  16. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
  17. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  18. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  19. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +16 -11
  20. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +19 -5
  21. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +1 -1
  22. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource.rb +150 -0
  23. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource_collection.rb +57 -0
  24. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_log_settings.rb +59 -0
  25. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_proxy_only_resource.rb +82 -0
  26. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +10 -5
  27. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/subscription_diagnostic_settings_operations.rb +405 -0
  28. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  29. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +1 -1
  30. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +1 -1
  31. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  32. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +1 -1
  33. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  34. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +2 -1
  35. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +3 -2
  36. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +3 -4
  37. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +1 -1
  38. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +4 -0
  39. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  40. data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +25 -17
  41. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +10 -10
  42. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_metric_criteria.rb +175 -0
  43. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_failing_periods.rb +61 -0
  44. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_operator.rb +17 -0
  45. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_sensitivity.rb +17 -0
  46. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +3 -3
  47. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +2 -0
  48. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_multiple_resource_multiple_metric_criteria.rb +90 -0
  49. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +27 -1
  50. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +27 -1
  51. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +56 -31
  52. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +2 -1
  53. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/multi_metric_criteria.rb +142 -0
  54. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/operator.rb +20 -0
  55. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webtest_location_availability_criteria.rb +98 -0
  56. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
  57. data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +8 -5
  58. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +1 -0
  59. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +2 -2
  60. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +1 -1
  61. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/criteria.rb +66 -0
  62. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/dimension.rb +79 -0
  63. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +4 -3
  64. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_to_metric_action.rb +71 -0
  65. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +3 -2
  66. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  67. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  68. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  69. data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  70. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  71. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +1 -1
  72. data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +18 -9
  73. data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +1 -1
  74. data/lib/2019-03-01/generated/azure_mgmt_monitor/baselines.rb +186 -0
  75. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_metadata.rb +57 -0
  76. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_sensitivity.rb +17 -0
  77. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_baselines_response.rb +55 -0
  78. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_single_dimension.rb +57 -0
  79. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  80. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_baseline.rb +85 -0
  81. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_metric_baseline.rb +129 -0
  82. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/time_series_baseline.rb +127 -0
  83. data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -1
  84. data/lib/2019-06-01/generated/azure_mgmt_monitor.rb +45 -0
  85. data/lib/2019-06-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
  86. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
  87. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  88. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
  89. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
  90. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
  91. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  92. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
  93. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
  94. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
  95. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  96. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  97. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
  98. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
  99. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
  100. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
  101. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
  102. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +115 -0
  103. data/lib/2019-06-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  104. data/lib/2019-06-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
  105. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor.rb +49 -0
  106. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope.rb +123 -0
  107. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope_list_result.rb +102 -0
  108. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_additional_info.rb +59 -0
  109. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  110. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response_common.rb +93 -0
  111. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/operation_status.rb +102 -0
  112. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection.rb +100 -0
  113. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection_list_result.rb +100 -0
  114. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_property.rb +46 -0
  115. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource.rb +95 -0
  116. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource_list_result.rb +100 -0
  117. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_scopes_resource.rb +101 -0
  118. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_service_connection_state_property.rb +71 -0
  119. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
  120. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource.rb +85 -0
  121. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource_list_result.rb +100 -0
  122. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
  123. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  124. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +148 -0
  125. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_endpoint_connections.rb +641 -0
  126. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_resources.rb +346 -0
  127. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scope_operation_status.rb +122 -0
  128. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scoped_resources.rb +638 -0
  129. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scopes.rb +889 -0
  130. data/lib/azure_mgmt_monitor.rb +13 -11
  131. data/lib/profiles/latest/modules/monitor_profile_module.rb +322 -132
  132. data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +65 -35
  133. data/lib/version.rb +1 -1
  134. metadata +77 -3
@@ -0,0 +1,59 @@
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::Monitor::Mgmt::V2019_10_17_preview
7
+ module Models
8
+ #
9
+ # The resource management error additional info.
10
+ #
11
+ class ErrorAdditionalInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The additional info type.
16
+ attr_accessor :type
17
+
18
+ # @return The additional info.
19
+ attr_accessor :info
20
+
21
+
22
+ #
23
+ # Mapper for ErrorAdditionalInfo class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ErrorAdditionalInfo',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorAdditionalInfo',
34
+ model_properties: {
35
+ type: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'type',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ info: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'info',
49
+ type: {
50
+ name: 'Object'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,57 @@
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::Monitor::Mgmt::V2019_10_17_preview
7
+ module Models
8
+ #
9
+ # Describes the format of Error response.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Error code
16
+ attr_accessor :code
17
+
18
+ # @return [String] Error message indicating why the operation failed.
19
+ attr_accessor :message
20
+
21
+
22
+ #
23
+ # Mapper for ErrorResponse class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ErrorResponse',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorResponse',
34
+ model_properties: {
35
+ code: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'code',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ message: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'message',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,93 @@
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::Monitor::Mgmt::V2019_10_17_preview
7
+ module Models
8
+ #
9
+ # The resource management error response.
10
+ #
11
+ class ErrorResponseCommon < ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ErrorResponseCommon>] The error details.
16
+ attr_accessor :details
17
+
18
+ # @return [Array<ErrorAdditionalInfo>] The error additional info.
19
+ attr_accessor :additional_info
20
+
21
+
22
+ #
23
+ # Mapper for ErrorResponseCommon class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ErrorResponseCommon',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorResponseCommon',
34
+ model_properties: {
35
+ code: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'code',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ message: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'message',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ details: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'details',
56
+ type: {
57
+ name: 'Sequence',
58
+ element: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'ErrorResponseCommonElementType',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ErrorResponseCommon'
65
+ }
66
+ }
67
+ }
68
+ },
69
+ additional_info: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'additionalInfo',
74
+ type: {
75
+ name: 'Sequence',
76
+ element: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'ErrorAdditionalInfoElementType',
80
+ type: {
81
+ name: 'Composite',
82
+ class_name: 'ErrorAdditionalInfo'
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,102 @@
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::Monitor::Mgmt::V2019_10_17_preview
7
+ module Models
8
+ #
9
+ # The status of operation.
10
+ #
11
+ class OperationStatus
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The operation Id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The operation name.
19
+ attr_accessor :name
20
+
21
+ # @return [DateTime] Start time of the job in standard ISO8601 format.
22
+ attr_accessor :start_time
23
+
24
+ # @return [DateTime] End time of the job in standard ISO8601 format.
25
+ attr_accessor :end_time
26
+
27
+ # @return [String] The status of the operation.
28
+ attr_accessor :status
29
+
30
+ # @return [ErrorResponseCommon] The error detail of the operation if any.
31
+ attr_accessor :error
32
+
33
+
34
+ #
35
+ # Mapper for OperationStatus class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'OperationStatus',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'OperationStatus',
46
+ model_properties: {
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'id',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ name: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'name',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ start_time: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'startTime',
67
+ type: {
68
+ name: 'DateTime'
69
+ }
70
+ },
71
+ end_time: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'endTime',
75
+ type: {
76
+ name: 'DateTime'
77
+ }
78
+ },
79
+ status: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'status',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ error: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'error',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'ErrorResponseCommon'
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,100 @@
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::Monitor::Mgmt::V2019_10_17_preview
7
+ module Models
8
+ #
9
+ # A private endpoint connection
10
+ #
11
+ class PrivateEndpointConnection < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [PrivateEndpointProperty] Private endpoint which the connection
16
+ # belongs to.
17
+ attr_accessor :private_endpoint
18
+
19
+ # @return [PrivateLinkServiceConnectionStateProperty] Connection state of
20
+ # the private endpoint connection.
21
+ attr_accessor :private_link_service_connection_state
22
+
23
+ # @return [String] State of the private endpoint connection.
24
+ attr_accessor :provisioning_state
25
+
26
+
27
+ #
28
+ # Mapper for PrivateEndpointConnection 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: 'PrivateEndpointConnection',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'PrivateEndpointConnection',
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
+ private_endpoint: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'properties.privateEndpoint',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'PrivateEndpointProperty'
74
+ }
75
+ },
76
+ private_link_service_connection_state: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'properties.privateLinkServiceConnectionState',
80
+ type: {
81
+ name: 'Composite',
82
+ class_name: 'PrivateLinkServiceConnectionStateProperty'
83
+ }
84
+ },
85
+ provisioning_state: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'properties.provisioningState',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,100 @@
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::Monitor::Mgmt::V2019_10_17_preview
7
+ module Models
8
+ #
9
+ # A list of private endpoint connections.
10
+ #
11
+ class PrivateEndpointConnectionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<PrivateEndpointConnection>] Array of results.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Link to retrieve next page of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<PrivateEndpointConnection>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [PrivateEndpointConnectionListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for PrivateEndpointConnectionListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'PrivateEndpointConnectionListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'PrivateEndpointConnectionListResult',
66
+ model_properties: {
67
+ value: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'PrivateEndpointConnectionElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'PrivateEndpointConnection'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end