azure_mgmt_portal 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2015-08-01-preview/generated/azure_mgmt_portal.rb +40 -0
  4. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/dashboards.rb +830 -0
  5. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/dashboard.rb +140 -0
  6. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/dashboard_lens.rb +85 -0
  7. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/dashboard_list_result.rb +99 -0
  8. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/dashboard_parts.rb +66 -0
  9. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/dashboard_parts_position.rb +98 -0
  10. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/error_definition.rb +81 -0
  11. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/error_response.rb +47 -0
  12. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/patchable_dashboard.rb +93 -0
  13. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation.rb +71 -0
  14. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation_display.rb +79 -0
  15. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation_list.rb +99 -0
  16. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/module_definition.rb +9 -0
  17. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/operations.rb +219 -0
  18. data/lib/2015-08-01-preview/generated/azure_mgmt_portal/portal_client.rb +136 -0
  19. data/lib/2018-10-01-preview/generated/azure_mgmt_portal.rb +40 -0
  20. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/dashboards.rb +830 -0
  21. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/dashboard.rb +140 -0
  22. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/dashboard_lens.rb +85 -0
  23. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/dashboard_list_result.rb +99 -0
  24. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/dashboard_parts.rb +66 -0
  25. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/dashboard_parts_position.rb +98 -0
  26. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/error_definition.rb +81 -0
  27. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/error_response.rb +47 -0
  28. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/patchable_dashboard.rb +93 -0
  29. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation.rb +71 -0
  30. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation_display.rb +79 -0
  31. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation_list.rb +99 -0
  32. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/module_definition.rb +9 -0
  33. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/operations.rb +219 -0
  34. data/lib/2018-10-01-preview/generated/azure_mgmt_portal/portal_client.rb +136 -0
  35. data/lib/2019-01-01-preview/generated/azure_mgmt_portal.rb +40 -0
  36. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/dashboards.rb +830 -0
  37. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/dashboard.rb +140 -0
  38. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/dashboard_lens.rb +85 -0
  39. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/dashboard_list_result.rb +99 -0
  40. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/dashboard_parts.rb +66 -0
  41. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/dashboard_parts_position.rb +98 -0
  42. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/error_definition.rb +81 -0
  43. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/error_response.rb +47 -0
  44. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/patchable_dashboard.rb +93 -0
  45. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation.rb +71 -0
  46. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation_display.rb +79 -0
  47. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/models/resource_provider_operation_list.rb +99 -0
  48. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/module_definition.rb +9 -0
  49. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/operations.rb +219 -0
  50. data/lib/2019-01-01-preview/generated/azure_mgmt_portal/portal_client.rb +136 -0
  51. data/lib/azure_mgmt_portal.rb +7 -0
  52. data/lib/module_definition.rb +7 -0
  53. data/lib/version.rb +7 -0
  54. metadata +169 -0
@@ -0,0 +1,140 @@
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::Portal::Mgmt::V2019_01_01_preview
7
+ module Models
8
+ #
9
+ # The shared dashboard resource definition.
10
+ #
11
+ class Dashboard
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => DashboardLens}] The dashboard lenses.
16
+ attr_accessor :lenses
17
+
18
+ # @return The dashboard metadata.
19
+ attr_accessor :metadata
20
+
21
+ # @return [String] Resource Id
22
+ attr_accessor :id
23
+
24
+ # @return [String] Resource name
25
+ attr_accessor :name
26
+
27
+ # @return [String] Resource type
28
+ attr_accessor :type
29
+
30
+ # @return [String] Resource location
31
+ attr_accessor :location
32
+
33
+ # @return [Hash{String => String}] Resource tags
34
+ attr_accessor :tags
35
+
36
+
37
+ #
38
+ # Mapper for Dashboard class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'Dashboard',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'Dashboard',
49
+ model_properties: {
50
+ lenses: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'properties.lenses',
54
+ type: {
55
+ name: 'Dictionary',
56
+ value: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'DashboardLensElementType',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'DashboardLens'
63
+ }
64
+ }
65
+ }
66
+ },
67
+ metadata: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'properties.metadata',
71
+ type: {
72
+ name: 'Dictionary',
73
+ value: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'ObjectElementType',
77
+ type: {
78
+ name: 'Object'
79
+ }
80
+ }
81
+ }
82
+ },
83
+ id: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'id',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ name: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'name',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ type: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'type',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ location: {
111
+ client_side_validation: true,
112
+ required: true,
113
+ serialized_name: 'location',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ tags: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'tags',
122
+ type: {
123
+ name: 'Dictionary',
124
+ value: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ serialized_name: 'StringElementType',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ end
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,85 @@
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::Portal::Mgmt::V2019_01_01_preview
7
+ module Models
8
+ #
9
+ # A dashboard lens.
10
+ #
11
+ class DashboardLens
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The lens order.
16
+ attr_accessor :order
17
+
18
+ # @return [Hash{String => DashboardParts}] The dashboard parts.
19
+ attr_accessor :parts
20
+
21
+ # @return The dashboard len's metadata.
22
+ attr_accessor :metadata
23
+
24
+
25
+ #
26
+ # Mapper for DashboardLens class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'DashboardLens',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'DashboardLens',
37
+ model_properties: {
38
+ order: {
39
+ client_side_validation: true,
40
+ required: true,
41
+ serialized_name: 'order',
42
+ type: {
43
+ name: 'Number'
44
+ }
45
+ },
46
+ parts: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: 'parts',
50
+ type: {
51
+ name: 'Dictionary',
52
+ value: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'DashboardPartsElementType',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'DashboardParts'
59
+ }
60
+ }
61
+ }
62
+ },
63
+ metadata: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'metadata',
67
+ type: {
68
+ name: 'Dictionary',
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'ObjectElementType',
73
+ type: {
74
+ name: 'Object'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,99 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Portal::Mgmt::V2019_01_01_preview
7
+ module Models
8
+ #
9
+ # List of dashboards.
10
+ #
11
+ class DashboardListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Dashboard>] The array of custom resource provider
17
+ # manifests.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The URL to use for getting the next set of results.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<Dashboard>] 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 [DashboardListResult] 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 DashboardListResult 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: 'DashboardListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'DashboardListResult',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'DashboardElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'Dashboard'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,66 @@
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::Portal::Mgmt::V2019_01_01_preview
7
+ module Models
8
+ #
9
+ # A dashboard part.
10
+ #
11
+ class DashboardParts
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DashboardPartsPosition] The dashboard's part position.
16
+ attr_accessor :position
17
+
18
+ # @return The dashboard part's metadata.
19
+ attr_accessor :metadata
20
+
21
+
22
+ #
23
+ # Mapper for DashboardParts 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: 'DashboardParts',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'DashboardParts',
34
+ model_properties: {
35
+ position: {
36
+ client_side_validation: true,
37
+ required: true,
38
+ serialized_name: 'position',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'DashboardPartsPosition'
42
+ }
43
+ },
44
+ metadata: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'metadata',
48
+ type: {
49
+ name: 'Dictionary',
50
+ value: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'ObjectElementType',
54
+ type: {
55
+ name: 'Object'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,98 @@
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::Portal::Mgmt::V2019_01_01_preview
7
+ module Models
8
+ #
9
+ # The dashboard's part position.
10
+ #
11
+ class DashboardPartsPosition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Float] The dashboard's part x coordinate.
16
+ attr_accessor :x
17
+
18
+ # @return [Float] The dashboard's part y coordinate.
19
+ attr_accessor :y
20
+
21
+ # @return [Float] The dashboard's part row span.
22
+ attr_accessor :row_span
23
+
24
+ # @return [Float] The dashboard's part column span.
25
+ attr_accessor :col_span
26
+
27
+ # @return The dashboard part's metadata.
28
+ attr_accessor :metadata
29
+
30
+
31
+ #
32
+ # Mapper for DashboardPartsPosition class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'DashboardParts_position',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'DashboardPartsPosition',
43
+ model_properties: {
44
+ x: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'x',
48
+ type: {
49
+ name: 'Double'
50
+ }
51
+ },
52
+ y: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'y',
56
+ type: {
57
+ name: 'Double'
58
+ }
59
+ },
60
+ row_span: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'rowSpan',
64
+ type: {
65
+ name: 'Double'
66
+ }
67
+ },
68
+ col_span: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'colSpan',
72
+ type: {
73
+ name: 'Double'
74
+ }
75
+ },
76
+ metadata: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'metadata',
80
+ type: {
81
+ name: 'Dictionary',
82
+ value: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'ObjectElementType',
86
+ type: {
87
+ name: 'Object'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end