azure_mgmt_powerbi_dedicated 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated.rb +47 -0
  4. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/capacities.rb +1423 -0
  5. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/check_capacity_name_availability_parameters.rb +64 -0
  6. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/check_capacity_name_availability_result.rb +68 -0
  7. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacities.rb +56 -0
  8. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacity.rb +140 -0
  9. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacity_administrators.rb +54 -0
  10. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacity_update_parameters.rb +80 -0
  11. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/error_response.rb +57 -0
  12. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/operation.rb +59 -0
  13. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/operation_display.rb +72 -0
  14. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/operation_list_result.rb +103 -0
  15. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/provisioning_state.rb +26 -0
  16. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/resource.rb +124 -0
  17. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/resource_sku.rb +59 -0
  18. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_details_for_existing_resource.rb +47 -0
  19. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_enumeration_for_existing_resource_result.rb +56 -0
  20. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_enumeration_for_new_resource_result.rb +56 -0
  21. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_tier.rb +15 -0
  22. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/state.rb +26 -0
  23. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/module_definition.rb +9 -0
  24. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/operations.rb +221 -0
  25. data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/power_bidedicated_management_client.rb +136 -0
  26. data/lib/azure_mgmt_powerbi_dedicated.rb +6 -0
  27. data/lib/module_definition.rb +7 -0
  28. data/lib/profiles/latest/modules/powerbidedicated_profile_module.rb +135 -0
  29. data/lib/profiles/latest/powerbidedicated_latest_profile_client.rb +40 -0
  30. data/lib/profiles/latest/powerbidedicated_module_definition.rb +8 -0
  31. data/lib/version.rb +7 -0
  32. metadata +147 -0
@@ -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::PowerBiDedicated::Mgmt::V2017_10_01
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,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::PowerBiDedicated::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # Capacities REST API operation.
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}.
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] The object that represents the operation.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for Operation 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: 'Operation',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Operation',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ display: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'display',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'OperationDisplay'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,72 @@
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::PowerBiDedicated::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # The object that represents the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service provider: Microsoft.PowerBIDedicated.
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed:
19
+ # capacity, etc.
20
+ attr_accessor :resource
21
+
22
+ # @return [String] Operation type: create, update, delete, etc.
23
+ attr_accessor :operation
24
+
25
+
26
+ #
27
+ # Mapper for OperationDisplay 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: 'Operation_display',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'OperationDisplay',
38
+ model_properties: {
39
+ provider: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'provider',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ resource: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'resource',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ operation: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'operation',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,103 @@
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::PowerBiDedicated::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # Result listing capacities. It contains a list of operations and a URL
10
+ # link to get the next set of results.
11
+ #
12
+ class OperationListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<Operation>] List of capacities supported by the
18
+ # Microsoft.PowerBIDedicated resource provider.
19
+ attr_accessor :value
20
+
21
+ # @return [String] URL to get the next set of operation list results if
22
+ # there are any.
23
+ attr_accessor :next_link
24
+
25
+ # return [Proc] with next page method call.
26
+ attr_accessor :next_method
27
+
28
+ #
29
+ # Gets the rest of the items for the request, enabling auto-pagination.
30
+ #
31
+ # @return [Array<Operation>] operation results.
32
+ #
33
+ def get_all_items
34
+ items = @value
35
+ page = self
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
+ page = page.get_next_page
38
+ items.concat(page.value)
39
+ end
40
+ items
41
+ end
42
+
43
+ #
44
+ # Gets the next page of results.
45
+ #
46
+ # @return [OperationListResult] with next page content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
56
+
57
+ #
58
+ # Mapper for OperationListResult class as Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'OperationListResult',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'OperationListResult',
69
+ model_properties: {
70
+ value: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'value',
75
+ type: {
76
+ name: 'Sequence',
77
+ element: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'OperationElementType',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'Operation'
84
+ }
85
+ }
86
+ }
87
+ },
88
+ next_link: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'nextLink',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,26 @@
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::PowerBiDedicated::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # Defines values for ProvisioningState
10
+ #
11
+ module ProvisioningState
12
+ Deleting = "Deleting"
13
+ Succeeded = "Succeeded"
14
+ Failed = "Failed"
15
+ Paused = "Paused"
16
+ Suspended = "Suspended"
17
+ Provisioning = "Provisioning"
18
+ Updating = "Updating"
19
+ Suspending = "Suspending"
20
+ Pausing = "Pausing"
21
+ Resuming = "Resuming"
22
+ Preparing = "Preparing"
23
+ Scaling = "Scaling"
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,124 @@
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::PowerBiDedicated::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # Represents an instance of an PowerBI Dedicated resource.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] An identifier that represents the PowerBI Dedicated
16
+ # resource.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The name of the PowerBI Dedicated resource.
20
+ attr_accessor :name
21
+
22
+ # @return [String] The type of the PowerBI Dedicated resource.
23
+ attr_accessor :type
24
+
25
+ # @return [String] Location of the PowerBI Dedicated resource.
26
+ attr_accessor :location
27
+
28
+ # @return [ResourceSku] The SKU of the PowerBI Dedicated resource.
29
+ attr_accessor :sku
30
+
31
+ # @return [Hash{String => String}] Key-value pairs of additional resource
32
+ # provisioning properties.
33
+ attr_accessor :tags
34
+
35
+
36
+ # @return [String] the name of the resource group of the resource.
37
+ def resource_group
38
+ unless self.id.nil?
39
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
40
+ groups.captures[0].strip if groups
41
+ end
42
+ end
43
+
44
+
45
+ #
46
+ # Mapper for Resource class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'Resource',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'Resource',
57
+ model_properties: {
58
+ id: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'id',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ name: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'name',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ type: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'type',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ location: {
86
+ client_side_validation: true,
87
+ required: true,
88
+ serialized_name: 'location',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ sku: {
94
+ client_side_validation: true,
95
+ required: true,
96
+ serialized_name: 'sku',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'ResourceSku'
100
+ }
101
+ },
102
+ tags: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'tags',
106
+ type: {
107
+ name: 'Dictionary',
108
+ value: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'StringElementType',
112
+ type: {
113
+ name: 'String'
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ end
122
+ end
123
+ end
124
+ end