azure_mgmt_subscriptions 0.17.3 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/operations.rb +4 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb +8 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb +4 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions.rb +10 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_client.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_operation_metadata.rb +4 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions.rb +3 -7
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +2 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +2 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -5
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +2 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_operations.rb +2 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions.rb +38 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +47 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb +129 -0
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation.rb +1 -1
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_display.rb +1 -1
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +1 -1
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +47 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb +69 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb} +10 -9
- data/lib/{2015-11-01 → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/module_definition.rb +1 -1
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +134 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +189 -0
- data/lib/{2018-03-01-preview/generated/azure_mgmt_subscriptions/operations.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_operation_operations.rb} +26 -16
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions.rb +35 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb +47 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb +69 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +68 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb +47 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_name.rb +46 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
- data/lib/{2015-11-01 → 2019-03-01-preview}/generated/azure_mgmt_subscriptions/subscription_client.rb +5 -8
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/subscriptions.rb} +59 -59
- data/lib/azure_mgmt_subscriptions.rb +4 -3
- data/lib/profiles/latest/modules/subscriptions_profile_module.rb +110 -16
- data/lib/version.rb +1 -1
- metadata +30 -21
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions.rb +0 -36
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb +0 -102
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb +0 -92
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +0 -98
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +0 -98
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb +0 -389
@@ -3,16 +3,16 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::Subscriptions::Mgmt::
|
6
|
+
module Azure::Subscriptions::Mgmt::V2018_11_01_preview
|
7
7
|
#
|
8
8
|
# Subscription client provides an interface to create and manage Azure
|
9
9
|
# subscriptions programmatically.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class SubscriptionOperationOperations
|
12
12
|
include MsRestAzure
|
13
13
|
|
14
14
|
#
|
15
|
-
# Creates and initializes a new instance of the
|
15
|
+
# Creates and initializes a new instance of the SubscriptionOperationOperations class.
|
16
16
|
# @param client service class for accessing basic functionality.
|
17
17
|
#
|
18
18
|
def initialize(client)
|
@@ -23,39 +23,46 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
#
|
26
|
+
# Get the status of the pending Microsoft.Subscription API operations.
|
27
27
|
#
|
28
|
+
# @param operation_id [String] The operation ID, which can be found from the
|
29
|
+
# Location field in the generate recommendation response header.
|
28
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
31
|
# will be added to the HTTP request.
|
30
32
|
#
|
31
|
-
# @return [
|
33
|
+
# @return [SubscriptionCreationResult] operation results.
|
32
34
|
#
|
33
|
-
def
|
34
|
-
response =
|
35
|
+
def get(operation_id, custom_headers:nil)
|
36
|
+
response = get_async(operation_id, custom_headers:custom_headers).value!
|
35
37
|
response.body unless response.nil?
|
36
38
|
end
|
37
39
|
|
38
40
|
#
|
39
|
-
#
|
41
|
+
# Get the status of the pending Microsoft.Subscription API operations.
|
40
42
|
#
|
43
|
+
# @param operation_id [String] The operation ID, which can be found from the
|
44
|
+
# Location field in the generate recommendation response header.
|
41
45
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
46
|
# will be added to the HTTP request.
|
43
47
|
#
|
44
48
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
45
49
|
#
|
46
|
-
def
|
47
|
-
|
50
|
+
def get_with_http_info(operation_id, custom_headers:nil)
|
51
|
+
get_async(operation_id, custom_headers:custom_headers).value!
|
48
52
|
end
|
49
53
|
|
50
54
|
#
|
51
|
-
#
|
55
|
+
# Get the status of the pending Microsoft.Subscription API operations.
|
52
56
|
#
|
57
|
+
# @param operation_id [String] The operation ID, which can be found from the
|
58
|
+
# Location field in the generate recommendation response header.
|
53
59
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
54
60
|
# to the HTTP request.
|
55
61
|
#
|
56
62
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
57
63
|
#
|
58
|
-
def
|
64
|
+
def get_async(operation_id, custom_headers:nil)
|
65
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
59
66
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
60
67
|
|
61
68
|
|
@@ -65,12 +72,13 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
|
|
65
72
|
# Set Headers
|
66
73
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
67
74
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
68
|
-
path_template = 'providers/Microsoft.Subscription/
|
75
|
+
path_template = 'providers/Microsoft.Subscription/subscriptionOperations/{operationId}'
|
69
76
|
|
70
77
|
request_url = @base_url || @client.base_url
|
71
78
|
|
72
79
|
options = {
|
73
80
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
81
|
+
path_params: {'operationId' => operation_id},
|
74
82
|
query_params: {'api-version' => @client.api_version},
|
75
83
|
headers: request_headers.merge(custom_headers || {}),
|
76
84
|
base_url: request_url
|
@@ -81,17 +89,19 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
|
|
81
89
|
http_response = result.response
|
82
90
|
status_code = http_response.status
|
83
91
|
response_content = http_response.body
|
84
|
-
unless status_code == 200
|
92
|
+
unless status_code == 200 || status_code == 202
|
85
93
|
error_model = JSON.load(response_content)
|
86
|
-
fail
|
94
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
87
95
|
end
|
88
96
|
|
89
97
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
98
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
99
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
90
100
|
# Deserialize Response
|
91
101
|
if status_code == 200
|
92
102
|
begin
|
93
103
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
94
|
-
result_mapper = Azure::Subscriptions::Mgmt::
|
104
|
+
result_mapper = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionCreationResult.mapper()
|
95
105
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
96
106
|
rescue Exception => e
|
97
107
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -0,0 +1,35 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2019-03-01-preview/generated/azure_mgmt_subscriptions/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Subscriptions::Mgmt::V2019_03_01_preview
|
23
|
+
autoload :Subscriptions, '2019-03-01-preview/generated/azure_mgmt_subscriptions/subscriptions.rb'
|
24
|
+
autoload :SubscriptionClient, '2019-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb'
|
25
|
+
|
26
|
+
module Models
|
27
|
+
autoload :SubscriptionName, '2019-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_name.rb'
|
28
|
+
autoload :OperationDisplay, '2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb'
|
29
|
+
autoload :CanceledSubscriptionId, '2019-03-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb'
|
30
|
+
autoload :Operation, '2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb'
|
31
|
+
autoload :ErrorResponse, '2019-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb'
|
32
|
+
autoload :OperationListResult, '2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb'
|
33
|
+
autoload :RenamedSubscriptionId, '2019-03-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb'
|
34
|
+
end
|
35
|
+
end
|
data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb
ADDED
@@ -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::Subscriptions::Mgmt::V2019_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The ID of the canceled subscription
|
10
|
+
#
|
11
|
+
class CanceledSubscriptionId
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The ID of the canceled subscription
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for CanceledSubscriptionId 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: 'CanceledSubscriptionId',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'CanceledSubscriptionId',
|
31
|
+
model_properties: {
|
32
|
+
value: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -3,47 +3,47 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::Subscriptions::Mgmt::
|
6
|
+
module Azure::Subscriptions::Mgmt::V2019_03_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Describes the format of Error response.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class ErrorResponse
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
16
|
-
attr_accessor :
|
15
|
+
# @return [String] Error code
|
16
|
+
attr_accessor :code
|
17
17
|
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :
|
18
|
+
# @return [String] Error message indicating why the operation failed.
|
19
|
+
attr_accessor :message
|
20
20
|
|
21
21
|
|
22
22
|
#
|
23
|
-
# Mapper for
|
23
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
24
24
|
# This will be used for serialization/deserialization.
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
28
|
client_side_validation: true,
|
29
29
|
required: false,
|
30
|
-
serialized_name: '
|
30
|
+
serialized_name: 'ErrorResponse',
|
31
31
|
type: {
|
32
32
|
name: 'Composite',
|
33
|
-
class_name: '
|
33
|
+
class_name: 'ErrorResponse',
|
34
34
|
model_properties: {
|
35
|
-
|
35
|
+
code: {
|
36
36
|
client_side_validation: true,
|
37
37
|
required: false,
|
38
|
-
serialized_name: '
|
38
|
+
serialized_name: 'code',
|
39
39
|
type: {
|
40
40
|
name: 'String'
|
41
41
|
}
|
42
42
|
},
|
43
|
-
|
43
|
+
message: {
|
44
44
|
client_side_validation: true,
|
45
45
|
required: false,
|
46
|
-
serialized_name: '
|
46
|
+
serialized_name: 'message',
|
47
47
|
type: {
|
48
48
|
name: 'String'
|
49
49
|
}
|
@@ -0,0 +1,58 @@
|
|
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::Subscriptions::Mgmt::V2019_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# 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
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
display: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'display',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'OperationDisplay'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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::Subscriptions::Mgmt::V2019_03_01_preview
|
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.Subscription
|
16
|
+
attr_accessor :provider
|
17
|
+
|
18
|
+
# @return [String] Resource on which the operation is performed: Profile,
|
19
|
+
# endpoint, etc.
|
20
|
+
attr_accessor :resource
|
21
|
+
|
22
|
+
# @return [String] Operation type: Read, write, 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
|
+
serialized_name: 'provider',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
resource: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'resource',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
operation: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'operation',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb
ADDED
@@ -0,0 +1,68 @@
|
|
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::Subscriptions::Mgmt::V2019_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list operations. It contains a list of
|
10
|
+
# operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<Operation>] List of operations.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] URL to get the next set of operation list results if
|
20
|
+
# there are any.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'OperationListResult',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'OperationListResult',
|
36
|
+
model_properties: {
|
37
|
+
value: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'value',
|
41
|
+
type: {
|
42
|
+
name: 'Sequence',
|
43
|
+
element: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'OperationElementType',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'Operation'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
next_link: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'nextLink',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|