azure_mgmt_devtestlabs 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs.rb +70 -62
  3. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +21 -18
  4. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +39 -37
  5. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb +27 -25
  6. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb +12 -12
  7. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb +41 -38
  8. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +12 -1
  9. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb +61 -60
  10. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb +41 -38
  11. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb +37 -34
  12. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +15 -13
  13. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +74 -70
  14. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb +113 -109
  15. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +1 -1
  16. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb +56 -0
  17. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +1 -1
  18. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb +57 -0
  19. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb +59 -0
  20. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb +80 -0
  21. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb +82 -0
  22. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb +101 -0
  23. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +45 -44
  24. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb +117 -0
  25. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb +39 -37
  26. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +6 -7
  27. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb +215 -0
  28. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb +64 -59
  29. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb +33 -30
  30. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb +33 -30
  31. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb +43 -41
  32. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +49 -46
  33. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +113 -110
  34. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +47 -45
  35. data/lib/profiles/latest/devtestlabs_latest_profile_client.rb +28 -9
  36. data/lib/profiles/latest/devtestlabs_module_definition.rb +0 -1
  37. data/lib/profiles/latest/modules/devtestlabs_profile_module.rb +589 -542
  38. data/lib/version.rb +1 -1
  39. metadata +10 -2
@@ -83,7 +83,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
83
83
  notification_sent: {
84
84
  client_side_validation: true,
85
85
  required: false,
86
- serialized_name: 'NotificationSent',
86
+ serialized_name: 'notificationSent',
87
87
  type: {
88
88
  name: 'String'
89
89
  }
@@ -0,0 +1,56 @@
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::DevTestLabs::Mgmt::V2016_05_15
7
+ module Models
8
+ #
9
+ # Defines values for HttpStatusCode
10
+ #
11
+ module HttpStatusCode
12
+ Continue = "Continue"
13
+ SwitchingProtocols = "SwitchingProtocols"
14
+ OK = "OK"
15
+ Created = "Created"
16
+ Accepted = "Accepted"
17
+ NonAuthoritativeInformation = "NonAuthoritativeInformation"
18
+ NoContent = "NoContent"
19
+ ResetContent = "ResetContent"
20
+ PartialContent = "PartialContent"
21
+ MultipleChoices = "MultipleChoices"
22
+ MovedPermanently = "MovedPermanently"
23
+ Redirect = "Redirect"
24
+ SeeOther = "SeeOther"
25
+ NotModified = "NotModified"
26
+ UseProxy = "UseProxy"
27
+ Unused = "Unused"
28
+ TemporaryRedirect = "TemporaryRedirect"
29
+ BadRequest = "BadRequest"
30
+ Unauthorized = "Unauthorized"
31
+ PaymentRequired = "PaymentRequired"
32
+ Forbidden = "Forbidden"
33
+ NotFound = "NotFound"
34
+ MethodNotAllowed = "MethodNotAllowed"
35
+ NotAcceptable = "NotAcceptable"
36
+ ProxyAuthenticationRequired = "ProxyAuthenticationRequired"
37
+ RequestTimeout = "RequestTimeout"
38
+ Conflict = "Conflict"
39
+ Gone = "Gone"
40
+ LengthRequired = "LengthRequired"
41
+ PreconditionFailed = "PreconditionFailed"
42
+ RequestEntityTooLarge = "RequestEntityTooLarge"
43
+ RequestUriTooLong = "RequestUriTooLong"
44
+ UnsupportedMediaType = "UnsupportedMediaType"
45
+ RequestedRangeNotSatisfiable = "RequestedRangeNotSatisfiable"
46
+ ExpectationFailed = "ExpectationFailed"
47
+ UpgradeRequired = "UpgradeRequired"
48
+ InternalServerError = "InternalServerError"
49
+ NotImplemented = "NotImplemented"
50
+ BadGateway = "BadGateway"
51
+ ServiceUnavailable = "ServiceUnavailable"
52
+ GatewayTimeout = "GatewayTimeout"
53
+ HttpVersionNotSupported = "HttpVersionNotSupported"
54
+ end
55
+ end
56
+ end
@@ -6,7 +6,7 @@
6
6
  module Azure::DevTestLabs::Mgmt::V2016_05_15
7
7
  module Models
8
8
  #
9
- # IdentityProperties
9
+ # Properties of a managed identity
10
10
  #
11
11
  class IdentityProperties
12
12
 
@@ -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::DevTestLabs::Mgmt::V2016_05_15
7
+ module Models
8
+ #
9
+ # Error details for the operation in case of a failure.
10
+ #
11
+ class OperationError
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The error code of the operation error.
16
+ attr_accessor :code
17
+
18
+ # @return [String] The error message of the operation error.
19
+ attr_accessor :message
20
+
21
+
22
+ #
23
+ # Mapper for OperationError 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: 'OperationError',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'OperationError',
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::DevTestLabs::Mgmt::V2016_05_15
7
+ module Models
8
+ #
9
+ # The REST API operation supported by DevTestLab ResourceProvider.
10
+ #
11
+ class OperationMetadata
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ attr_accessor :name
17
+
18
+ # @return [OperationMetadataDisplay] The object that describes the
19
+ # operations
20
+ attr_accessor :display
21
+
22
+
23
+ #
24
+ # Mapper for OperationMetadata class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'OperationMetadata',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'OperationMetadata',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: false,
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: 'OperationMetadataDisplay'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,80 @@
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::DevTestLabs::Mgmt::V2016_05_15
7
+ module Models
8
+ #
9
+ # The object that describes the operations
10
+ #
11
+ class OperationMetadataDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Friendly name of the resource provider
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource type on which the operation is performed.
19
+ attr_accessor :resource
20
+
21
+ # @return [String] Operation type: read, write, delete, listKeys/action,
22
+ # etc.
23
+ attr_accessor :operation
24
+
25
+ # @return [String] Friendly name of the operation
26
+ attr_accessor :description
27
+
28
+
29
+ #
30
+ # Mapper for OperationMetadataDisplay class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'OperationMetadataDisplay',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'OperationMetadataDisplay',
41
+ model_properties: {
42
+ provider: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'provider',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ resource: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'resource',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ operation: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'operation',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ description: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'description',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,82 @@
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::DevTestLabs::Mgmt::V2016_05_15
7
+ module Models
8
+ #
9
+ # An Operation Result
10
+ #
11
+ class OperationResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The operation status.
16
+ attr_accessor :status
17
+
18
+ # @return [HttpStatusCode] The status code for the operation. Possible
19
+ # values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created',
20
+ # 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent',
21
+ # 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect',
22
+ # 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect',
23
+ # 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden',
24
+ # 'NotFound', 'MethodNotAllowed', 'NotAcceptable',
25
+ # 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone',
26
+ # 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge',
27
+ # 'RequestUriTooLong', 'UnsupportedMediaType',
28
+ # 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired',
29
+ # 'InternalServerError', 'NotImplemented', 'BadGateway',
30
+ # 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported'
31
+ attr_accessor :status_code
32
+
33
+ # @return [OperationError] Error details for the operation in case of a
34
+ # failure.
35
+ attr_accessor :error
36
+
37
+
38
+ #
39
+ # Mapper for OperationResult class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'OperationResult',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'OperationResult',
50
+ model_properties: {
51
+ status: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'status',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ status_code: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'statusCode',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ error: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'error',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'OperationError'
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,101 @@
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::DevTestLabs::Mgmt::V2016_05_15
7
+ module Models
8
+ #
9
+ # Result of the request to list REST API operations
10
+ #
11
+ class ProviderOperationResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<OperationMetadata>] List of operations supported by the
17
+ # resource provider.
18
+ attr_accessor :value
19
+
20
+ # @return [String] URL to get the next set of operation list results if
21
+ # there are any.
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<OperationMetadata>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [ProviderOperationResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for ProviderOperationResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'ProviderOperationResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'ProviderOperationResult',
68
+ model_properties: {
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'OperationMetadataElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'OperationMetadata'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end