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,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::Portal::Mgmt::V2018_10_01_preview
7
+ module Models
8
+ #
9
+ # Error definition.
10
+ #
11
+ class ErrorDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service specific error code which serves as the
16
+ # substatus for the HTTP error code.
17
+ attr_accessor :code
18
+
19
+ # @return [String] Description of the error.
20
+ attr_accessor :message
21
+
22
+ # @return [Array<ErrorDefinition>] Internal error details.
23
+ attr_accessor :details
24
+
25
+
26
+ #
27
+ # Mapper for ErrorDefinition class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'ErrorDefinition',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ErrorDefinition',
38
+ model_properties: {
39
+ code: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'code',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ message: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'message',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ details: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'details',
62
+ type: {
63
+ name: 'Sequence',
64
+ element: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'ErrorDefinitionElementType',
68
+ type: {
69
+ name: 'Composite',
70
+ class_name: 'ErrorDefinition'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ end
79
+ end
80
+ end
81
+ 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::Portal::Mgmt::V2018_10_01_preview
7
+ module Models
8
+ #
9
+ # Error response.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ErrorDefinition] The error details.
16
+ attr_accessor :error
17
+
18
+
19
+ #
20
+ # Mapper for ErrorResponse class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ErrorResponse',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ErrorResponse',
31
+ model_properties: {
32
+ error: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'error',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorDefinition'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ 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::Portal::Mgmt::V2018_10_01_preview
7
+ module Models
8
+ #
9
+ # The shared dashboard resource definition.
10
+ #
11
+ class PatchableDashboard
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 [Hash{String => String}] Resource tags
22
+ attr_accessor :tags
23
+
24
+
25
+ #
26
+ # Mapper for PatchableDashboard 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: 'PatchableDashboard',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'PatchableDashboard',
37
+ model_properties: {
38
+ lenses: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'properties.lenses',
42
+ type: {
43
+ name: 'Dictionary',
44
+ value: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'DashboardLensElementType',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'DashboardLens'
51
+ }
52
+ }
53
+ }
54
+ },
55
+ metadata: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'properties.metadata',
59
+ type: {
60
+ name: 'Dictionary',
61
+ value: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'ObjectElementType',
65
+ type: {
66
+ name: 'Object'
67
+ }
68
+ }
69
+ }
70
+ },
71
+ tags: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'tags',
75
+ type: {
76
+ name: 'Dictionary',
77
+ value: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'StringElementType',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,71 @@
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::V2018_10_01_preview
7
+ module Models
8
+ #
9
+ # Supported operations of this resource provider.
10
+ #
11
+ class ResourceProviderOperation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name, in format of
16
+ # {provider}/{resource}/{operation}
17
+ attr_accessor :name
18
+
19
+ # @return [String] Indicates whether the operation applies to data-plane.
20
+ attr_accessor :is_data_action
21
+
22
+ # @return [ResourceProviderOperationDisplay] Display metadata associated
23
+ # with the operation.
24
+ attr_accessor :display
25
+
26
+
27
+ #
28
+ # Mapper for ResourceProviderOperation 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: 'ResourceProviderOperation',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ResourceProviderOperation',
39
+ model_properties: {
40
+ name: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'name',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ is_data_action: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'isDataAction',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ display: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'display',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'ResourceProviderOperationDisplay'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,79 @@
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::V2018_10_01_preview
7
+ module Models
8
+ #
9
+ # Display metadata associated with the operation.
10
+ #
11
+ class ResourceProviderOperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource provider: Microsoft Custom Providers.
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed.
19
+ attr_accessor :resource
20
+
21
+ # @return [String] Type of operation: get, read, delete, etc.
22
+ attr_accessor :operation
23
+
24
+ # @return [String] Description of this operation.
25
+ attr_accessor :description
26
+
27
+
28
+ #
29
+ # Mapper for ResourceProviderOperationDisplay class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'ResourceProviderOperation_display',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ResourceProviderOperationDisplay',
40
+ model_properties: {
41
+ provider: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'provider',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ resource: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'resource',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ operation: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'operation',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ description: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'description',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ 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::V2018_10_01_preview
7
+ module Models
8
+ #
9
+ # Results of the request to list operations.
10
+ #
11
+ class ResourceProviderOperationList
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<ResourceProviderOperation>] List of operations supported
17
+ # by this resource provider.
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<ResourceProviderOperation>] 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 [ResourceProviderOperationList] 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 ResourceProviderOperationList 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: 'ResourceProviderOperationList',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'ResourceProviderOperationList',
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: 'ResourceProviderOperationElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'ResourceProviderOperation'
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