azure_mgmt_import_export 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2016-11-01/generated/azure_mgmt_import_export.rb +51 -0
  4. data/lib/2016-11-01/generated/azure_mgmt_import_export/bit_locker_keys.rb +122 -0
  5. data/lib/2016-11-01/generated/azure_mgmt_import_export/jobs.rb +886 -0
  6. data/lib/2016-11-01/generated/azure_mgmt_import_export/locations.rb +207 -0
  7. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/drive_bit_locker_key.rb +57 -0
  8. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/drive_state.rb +21 -0
  9. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/drive_status.rb +175 -0
  10. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/error_response.rb +100 -0
  11. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/error_response_error_details_item.rb +69 -0
  12. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/export.rb +89 -0
  13. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/get_bit_locker_keys_response.rb +55 -0
  14. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/job_details.rb +257 -0
  15. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/job_response.rb +105 -0
  16. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/list_jobs_response.rb +98 -0
  17. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/list_operations_response.rb +55 -0
  18. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/location.rb +207 -0
  19. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/locations_response.rb +55 -0
  20. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/operation.rb +92 -0
  21. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/package_infomation.rb +81 -0
  22. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/put_job_parameters.rb +70 -0
  23. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/return_address.rb +139 -0
  24. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/return_shipping.rb +57 -0
  25. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/shipping_information.rb +129 -0
  26. data/lib/2016-11-01/generated/azure_mgmt_import_export/models/update_job_parameters.rb +156 -0
  27. data/lib/2016-11-01/generated/azure_mgmt_import_export/module_definition.rb +9 -0
  28. data/lib/2016-11-01/generated/azure_mgmt_import_export/operations.rb +112 -0
  29. data/lib/2016-11-01/generated/azure_mgmt_import_export/storage_import_export.rb +142 -0
  30. data/lib/azure_mgmt_import_export.rb +6 -0
  31. data/lib/module_definition.rb +7 -0
  32. data/lib/profiles/latest/importexport_latest_profile_client.rb +40 -0
  33. data/lib/profiles/latest/importexport_module_definition.rb +8 -0
  34. data/lib/profiles/latest/modules/importexport_profile_module.rb +147 -0
  35. data/lib/version.rb +7 -0
  36. metadata +151 -0
@@ -0,0 +1,105 @@
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::ImportExport::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # Contains the job information.
10
+ #
11
+ class JobResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Specifies the resource identifier of the job.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Specifies the name of the job.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Specifies the type of the job resource.
22
+ attr_accessor :type
23
+
24
+ # @return [String] Specifies the Azure location where the job is created.
25
+ attr_accessor :location
26
+
27
+ # @return Specifies the tags that are assigned to the job.
28
+ attr_accessor :tags
29
+
30
+ # @return [JobDetails] Specifies the job properties
31
+ attr_accessor :properties
32
+
33
+
34
+ #
35
+ # Mapper for JobResponse 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: 'JobResponse',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'JobResponse',
46
+ model_properties: {
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ name: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'name',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ type: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'type',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ location: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'location',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ tags: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'tags',
86
+ type: {
87
+ name: 'Object'
88
+ }
89
+ },
90
+ properties: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'properties',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'JobDetails'
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ end
103
+ end
104
+ end
105
+ 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::ImportExport::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # List jobs response
10
+ #
11
+ class ListJobsResponse
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] link to next batch of jobs
17
+ attr_accessor :next_link
18
+
19
+ # @return [Array<JobResponse>] Job list
20
+ attr_accessor :value
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<JobResponse>] 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 [ListJobsResponse] 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 ListJobsResponse 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: 'ListJobsResponse',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'ListJobsResponse',
66
+ model_properties: {
67
+ next_link: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'nextLink',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ value: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'value',
79
+ type: {
80
+ name: 'Sequence',
81
+ element: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'JobResponseElementType',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'JobResponse'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,55 @@
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::ImportExport::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # List operations response
10
+ #
11
+ class ListOperationsResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Operation>] operations
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for ListOperationsResponse 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: 'ListOperationsResponse',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ListOperationsResponse',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'OperationElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'Operation'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,207 @@
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::ImportExport::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # Provides information about an Azure data center location.
10
+ #
11
+ class Location
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Specifies the resource identifier of the location.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Specifies the name of the location. Use List Locations
19
+ # to get all supported locations.
20
+ attr_accessor :name
21
+
22
+ # @return [String] Specifies the type of the location.
23
+ attr_accessor :type
24
+
25
+ # @return [String] The recipient name to use when shipping the drives to
26
+ # the Azure data center.
27
+ attr_accessor :recipient_name
28
+
29
+ # @return [String] The first line of the street address to use when
30
+ # shipping the drives to the Azure data center.
31
+ attr_accessor :street_address1
32
+
33
+ # @return [String] The second line of the street address to use when
34
+ # shipping the drives to the Azure data center.
35
+ attr_accessor :street_address2
36
+
37
+ # @return [String] The city name to use when shipping the drives to the
38
+ # Azure data center.
39
+ attr_accessor :city
40
+
41
+ # @return [String] The state or province to use when shipping the drives
42
+ # to the Azure data center.
43
+ attr_accessor :state_or_province
44
+
45
+ # @return [String] The postal code to use when shipping the drives to the
46
+ # Azure data center.
47
+ attr_accessor :postal_code
48
+
49
+ # @return [String] The country or region to use when shipping the drives
50
+ # to the Azure data center.
51
+ attr_accessor :country_or_region
52
+
53
+ # @return [String] The phone number for the Azure data center.
54
+ attr_accessor :phone
55
+
56
+ # @return [Array<String>] A list of carriers that are supported at this
57
+ # location.
58
+ attr_accessor :supported_carriers
59
+
60
+ # @return [Array<String>] A list of location IDs that should be used to
61
+ # ship shipping drives to for jobs created against the current location.
62
+ # If the current location is active, it will be part of the list. If it
63
+ # is temporarily closed due to maintenance, this list may contain other
64
+ # locations.
65
+ attr_accessor :alternate_locations
66
+
67
+
68
+ #
69
+ # Mapper for Location class as Ruby Hash.
70
+ # This will be used for serialization/deserialization.
71
+ #
72
+ def self.mapper()
73
+ {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'Location',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'Location',
80
+ model_properties: {
81
+ id: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'id',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ name: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'name',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ type: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'type',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ recipient_name: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'properties.recipientName',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ street_address1: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'properties.streetAddress1',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ street_address2: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'properties.streetAddress2',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ city: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ serialized_name: 'properties.city',
133
+ type: {
134
+ name: 'String'
135
+ }
136
+ },
137
+ state_or_province: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'properties.stateOrProvince',
141
+ type: {
142
+ name: 'String'
143
+ }
144
+ },
145
+ postal_code: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'properties.postalCode',
149
+ type: {
150
+ name: 'String'
151
+ }
152
+ },
153
+ country_or_region: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ serialized_name: 'properties.countryOrRegion',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ phone: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ serialized_name: 'properties.phone',
165
+ type: {
166
+ name: 'String'
167
+ }
168
+ },
169
+ supported_carriers: {
170
+ client_side_validation: true,
171
+ required: false,
172
+ serialized_name: 'properties.supportedCarriers',
173
+ type: {
174
+ name: 'Sequence',
175
+ element: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ serialized_name: 'StringElementType',
179
+ type: {
180
+ name: 'String'
181
+ }
182
+ }
183
+ }
184
+ },
185
+ alternate_locations: {
186
+ client_side_validation: true,
187
+ required: false,
188
+ serialized_name: 'properties.alternateLocations',
189
+ type: {
190
+ name: 'Sequence',
191
+ element: {
192
+ client_side_validation: true,
193
+ required: false,
194
+ serialized_name: 'StringElementType',
195
+ type: {
196
+ name: 'String'
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
202
+ }
203
+ }
204
+ end
205
+ end
206
+ end
207
+ end