azure_mgmt_support 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2020-04-01/generated/azure_mgmt_support.rb +62 -0
  4. data/lib/2020-04-01/generated/azure_mgmt_support/communications.rb +661 -0
  5. data/lib/2020-04-01/generated/azure_mgmt_support/microsoft_support.rb +147 -0
  6. data/lib/2020-04-01/generated/azure_mgmt_support/models/check_name_availability_input.rb +59 -0
  7. data/lib/2020-04-01/generated/azure_mgmt_support/models/check_name_availability_output.rb +72 -0
  8. data/lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb +145 -0
  9. data/lib/2020-04-01/generated/azure_mgmt_support/models/communication_direction.rb +16 -0
  10. data/lib/2020-04-01/generated/azure_mgmt_support/models/communication_type.rb +16 -0
  11. data/lib/2020-04-01/generated/azure_mgmt_support/models/communications_list_result.rb +99 -0
  12. data/lib/2020-04-01/generated/azure_mgmt_support/models/contact_profile.rb +156 -0
  13. data/lib/2020-04-01/generated/azure_mgmt_support/models/exception_response.rb +47 -0
  14. data/lib/2020-04-01/generated/azure_mgmt_support/models/operation.rb +59 -0
  15. data/lib/2020-04-01/generated/azure_mgmt_support/models/operation_display.rb +84 -0
  16. data/lib/2020-04-01/generated/azure_mgmt_support/models/operations_list_result.rb +56 -0
  17. data/lib/2020-04-01/generated/azure_mgmt_support/models/preferred_contact_method.rb +16 -0
  18. data/lib/2020-04-01/generated/azure_mgmt_support/models/problem_classification.rb +83 -0
  19. data/lib/2020-04-01/generated/azure_mgmt_support/models/problem_classifications_list_result.rb +56 -0
  20. data/lib/2020-04-01/generated/azure_mgmt_support/models/quota_change_request.rb +58 -0
  21. data/lib/2020-04-01/generated/azure_mgmt_support/models/quota_ticket_details.rb +82 -0
  22. data/lib/2020-04-01/generated/azure_mgmt_support/models/service.rb +101 -0
  23. data/lib/2020-04-01/generated/azure_mgmt_support/models/service_error.rb +89 -0
  24. data/lib/2020-04-01/generated/azure_mgmt_support/models/service_error_detail.rb +70 -0
  25. data/lib/2020-04-01/generated/azure_mgmt_support/models/service_level_agreement.rb +73 -0
  26. data/lib/2020-04-01/generated/azure_mgmt_support/models/services_list_result.rb +55 -0
  27. data/lib/2020-04-01/generated/azure_mgmt_support/models/severity_level.rb +18 -0
  28. data/lib/2020-04-01/generated/azure_mgmt_support/models/status.rb +16 -0
  29. data/lib/2020-04-01/generated/azure_mgmt_support/models/support_engineer.rb +48 -0
  30. data/lib/2020-04-01/generated/azure_mgmt_support/models/support_ticket_details.rb +321 -0
  31. data/lib/2020-04-01/generated/azure_mgmt_support/models/support_tickets_list_result.rb +99 -0
  32. data/lib/2020-04-01/generated/azure_mgmt_support/models/technical_ticket_details.rb +48 -0
  33. data/lib/2020-04-01/generated/azure_mgmt_support/models/type.rb +16 -0
  34. data/lib/2020-04-01/generated/azure_mgmt_support/models/update_contact_profile.rb +156 -0
  35. data/lib/2020-04-01/generated/azure_mgmt_support/models/update_support_ticket.rb +73 -0
  36. data/lib/2020-04-01/generated/azure_mgmt_support/module_definition.rb +9 -0
  37. data/lib/2020-04-01/generated/azure_mgmt_support/operations.rb +109 -0
  38. data/lib/2020-04-01/generated/azure_mgmt_support/problem_classifications.rb +219 -0
  39. data/lib/2020-04-01/generated/azure_mgmt_support/services.rb +222 -0
  40. data/lib/2020-04-01/generated/azure_mgmt_support/support_tickets.rb +854 -0
  41. data/lib/azure_mgmt_support.rb +6 -0
  42. data/lib/module_definition.rb +7 -0
  43. data/lib/profiles/latest/modules/support_profile_module.rb +189 -0
  44. data/lib/profiles/latest/support_latest_profile_client.rb +40 -0
  45. data/lib/profiles/latest/support_module_definition.rb +8 -0
  46. data/lib/version.rb +7 -0
  47. metadata +162 -0
@@ -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::Support::Mgmt::V2020_04_01
7
+ module Models
8
+ #
9
+ # Collection of Communication resources.
10
+ #
11
+ class CommunicationsListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<CommunicationDetails>] List of Communication resources.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URI to fetch the next page of Communication
20
+ # resources.
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<CommunicationDetails>] 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 [CommunicationsListResult] 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 CommunicationsListResult 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: 'CommunicationsListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'CommunicationsListResult',
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: 'CommunicationDetailsElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'CommunicationDetails'
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,156 @@
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::Support::Mgmt::V2020_04_01
7
+ module Models
8
+ #
9
+ # Contact information associated with the support ticket.
10
+ #
11
+ class ContactProfile
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] First name.
16
+ attr_accessor :first_name
17
+
18
+ # @return [String] Last name.
19
+ attr_accessor :last_name
20
+
21
+ # @return [PreferredContactMethod] Preferred contact method. Possible
22
+ # values include: 'email', 'phone'
23
+ attr_accessor :preferred_contact_method
24
+
25
+ # @return [String] Primary email address.
26
+ attr_accessor :primary_email_address
27
+
28
+ # @return [Array<String>] Additional email addresses listed will be
29
+ # copied on any correspondence about the support ticket.
30
+ attr_accessor :additional_email_addresses
31
+
32
+ # @return [String] Phone number. This is required if preferred contact
33
+ # method is phone.
34
+ attr_accessor :phone_number
35
+
36
+ # @return [String] Time zone of the user. This is the name of the time
37
+ # zone from [Microsoft Time Zone Index
38
+ # Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values).
39
+ attr_accessor :preferred_time_zone
40
+
41
+ # @return [String] Country of the user. This is the ISO 3166-1 alpha-3
42
+ # code.
43
+ attr_accessor :country
44
+
45
+ # @return [String] Preferred language of support from Azure. Support
46
+ # languages vary based on the severity you choose for your support
47
+ # ticket. Learn more at [Azure Severity and
48
+ # responsiveness](https://azure.microsoft.com/support/plans/response).
49
+ # Use the standard language-country code. Valid values are 'en-us' for
50
+ # English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for
51
+ # French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian,
52
+ # 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and
53
+ # 'de-de' for German.
54
+ attr_accessor :preferred_support_language
55
+
56
+
57
+ #
58
+ # Mapper for ContactProfile 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: 'ContactProfile',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'ContactProfile',
69
+ model_properties: {
70
+ first_name: {
71
+ client_side_validation: true,
72
+ required: true,
73
+ serialized_name: 'firstName',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ last_name: {
79
+ client_side_validation: true,
80
+ required: true,
81
+ serialized_name: 'lastName',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ preferred_contact_method: {
87
+ client_side_validation: true,
88
+ required: true,
89
+ serialized_name: 'preferredContactMethod',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ primary_email_address: {
95
+ client_side_validation: true,
96
+ required: true,
97
+ serialized_name: 'primaryEmailAddress',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ additional_email_addresses: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'additionalEmailAddresses',
106
+ type: {
107
+ name: 'Sequence',
108
+ element: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'StringElementType',
112
+ type: {
113
+ name: 'String'
114
+ }
115
+ }
116
+ }
117
+ },
118
+ phone_number: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'phoneNumber',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ preferred_time_zone: {
127
+ client_side_validation: true,
128
+ required: true,
129
+ serialized_name: 'preferredTimeZone',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ },
134
+ country: {
135
+ client_side_validation: true,
136
+ required: true,
137
+ serialized_name: 'country',
138
+ type: {
139
+ name: 'String'
140
+ }
141
+ },
142
+ preferred_support_language: {
143
+ client_side_validation: true,
144
+ required: true,
145
+ serialized_name: 'preferredSupportLanguage',
146
+ type: {
147
+ name: 'String'
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+ end
154
+ end
155
+ end
156
+ 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::Support::Mgmt::V2020_04_01
7
+ module Models
8
+ #
9
+ # The API error.
10
+ #
11
+ class ExceptionResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ServiceError] The API error details.
16
+ attr_accessor :error
17
+
18
+
19
+ #
20
+ # Mapper for ExceptionResponse 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: 'ExceptionResponse',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ExceptionResponse',
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: 'ServiceError'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ 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::Support::Mgmt::V2020_04_01
7
+ module Models
8
+ #
9
+ # The operation supported by Microsoft Support resource provider.
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 describes 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,84 @@
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::Support::Mgmt::V2020_04_01
7
+ module Models
8
+ #
9
+ # The object that describes the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The description of the operation.
16
+ attr_accessor :description
17
+
18
+ # @return [String] The action that users can perform, based on their
19
+ # permission level.
20
+ attr_accessor :operation
21
+
22
+ # @return [String] Service provider: Microsoft Support.
23
+ attr_accessor :provider
24
+
25
+ # @return [String] Resource on which the operation is performed.
26
+ attr_accessor :resource
27
+
28
+
29
+ #
30
+ # Mapper for OperationDisplay 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: 'Operation_display',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'OperationDisplay',
41
+ model_properties: {
42
+ description: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'description',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ operation: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'operation',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ provider: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'provider',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ resource: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'resource',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end