azure_mgmt_service_bus 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_service_bus.rb +5 -0
- data/lib/generated/azure_mgmt_service_bus.rb +57 -0
- data/lib/generated/azure_mgmt_service_bus/models/access_rights.rb +17 -0
- data/lib/generated/azure_mgmt_service_bus/models/entity_availability_status.rb +19 -0
- data/lib/generated/azure_mgmt_service_bus/models/entity_status.rb +23 -0
- data/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb +86 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_create_or_update_parameters.rb +147 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_resource.rb +165 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_state.rb +27 -0
- data/lib/generated/azure_mgmt_service_bus/models/policykey.rb +16 -0
- data/lib/generated/azure_mgmt_service_bus/models/queue_create_or_update_parameters.rb +301 -0
- data/lib/generated/azure_mgmt_service_bus/models/queue_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_service_bus/models/queue_resource.rb +326 -0
- data/lib/generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_service_bus/models/resource_list_keys.rb +88 -0
- data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb +74 -0
- data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb +97 -0
- data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_resource.rb +97 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku.rb +66 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku_name.rb +17 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb +17 -0
- data/lib/generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb +232 -0
- data/lib/generated/azure_mgmt_service_bus/models/subscription_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_service_bus/models/subscription_resource.rb +257 -0
- data/lib/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +288 -0
- data/lib/generated/azure_mgmt_service_bus/models/topic_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_service_bus/models/topic_resource.rb +313 -0
- data/lib/generated/azure_mgmt_service_bus/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_service_bus/namespaces.rb +1494 -0
- data/lib/generated/azure_mgmt_service_bus/queues.rb +1236 -0
- data/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +144 -0
- data/lib/generated/azure_mgmt_service_bus/subscriptions.rb +533 -0
- data/lib/generated/azure_mgmt_service_bus/topics.rb +1236 -0
- data/lib/generated/azure_mgmt_service_bus/version.rb +8 -0
- metadata +150 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ca343fc691549dcba38f5e9e35bc34f63d7328f6
|
4
|
+
data.tar.gz: fb55cd85bd72d66d0410ac61b70754203f43955a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0523dd17464d1bc1c962b7a3ac79e5a2dd1b568d7bf441f9c1b2a4aac1056a7d0701283d3d4ee63c6afcbe7e84d447eda9e8da627b0f9aeff812e9eb42aad493
|
7
|
+
data.tar.gz: 4f45b6353b3ea04ca9b071801cd7d06ac5c94fa6b772e839fca7d0ebce4bc58a13c0ab5d8352947a3c475a033a8616531a74b42b10f444bff6e42579e779b142
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Microsoft Corporation
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
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 'generated/azure_mgmt_service_bus/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ARM::ServiceBus
|
23
|
+
autoload :Namespaces, 'generated/azure_mgmt_service_bus/namespaces.rb'
|
24
|
+
autoload :Queues, 'generated/azure_mgmt_service_bus/queues.rb'
|
25
|
+
autoload :Topics, 'generated/azure_mgmt_service_bus/topics.rb'
|
26
|
+
autoload :Subscriptions, 'generated/azure_mgmt_service_bus/subscriptions.rb'
|
27
|
+
autoload :ServiceBusManagementClient, 'generated/azure_mgmt_service_bus/service_bus_management_client.rb'
|
28
|
+
|
29
|
+
module Models
|
30
|
+
autoload :QueueCreateOrUpdateParameters, 'generated/azure_mgmt_service_bus/models/queue_create_or_update_parameters.rb'
|
31
|
+
autoload :MessageCountDetails, 'generated/azure_mgmt_service_bus/models/message_count_details.rb'
|
32
|
+
autoload :Sku, 'generated/azure_mgmt_service_bus/models/sku.rb'
|
33
|
+
autoload :QueueListResult, 'generated/azure_mgmt_service_bus/models/queue_list_result.rb'
|
34
|
+
autoload :NamespaceCreateOrUpdateParameters, 'generated/azure_mgmt_service_bus/models/namespace_create_or_update_parameters.rb'
|
35
|
+
autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, 'generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb'
|
36
|
+
autoload :NamespaceListResult, 'generated/azure_mgmt_service_bus/models/namespace_list_result.rb'
|
37
|
+
autoload :SubscriptionListResult, 'generated/azure_mgmt_service_bus/models/subscription_list_result.rb'
|
38
|
+
autoload :RegenerateKeysParameters, 'generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb'
|
39
|
+
autoload :SubscriptionCreateOrUpdateParameters, 'generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb'
|
40
|
+
autoload :ResourceListKeys, 'generated/azure_mgmt_service_bus/models/resource_list_keys.rb'
|
41
|
+
autoload :TopicCreateOrUpdateParameters, 'generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb'
|
42
|
+
autoload :SharedAccessAuthorizationRuleListResult, 'generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb'
|
43
|
+
autoload :TopicListResult, 'generated/azure_mgmt_service_bus/models/topic_list_result.rb'
|
44
|
+
autoload :NamespaceResource, 'generated/azure_mgmt_service_bus/models/namespace_resource.rb'
|
45
|
+
autoload :SharedAccessAuthorizationRuleResource, 'generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_resource.rb'
|
46
|
+
autoload :QueueResource, 'generated/azure_mgmt_service_bus/models/queue_resource.rb'
|
47
|
+
autoload :TopicResource, 'generated/azure_mgmt_service_bus/models/topic_resource.rb'
|
48
|
+
autoload :SubscriptionResource, 'generated/azure_mgmt_service_bus/models/subscription_resource.rb'
|
49
|
+
autoload :SkuName, 'generated/azure_mgmt_service_bus/models/sku_name.rb'
|
50
|
+
autoload :SkuTier, 'generated/azure_mgmt_service_bus/models/sku_tier.rb'
|
51
|
+
autoload :NamespaceState, 'generated/azure_mgmt_service_bus/models/namespace_state.rb'
|
52
|
+
autoload :AccessRights, 'generated/azure_mgmt_service_bus/models/access_rights.rb'
|
53
|
+
autoload :Policykey, 'generated/azure_mgmt_service_bus/models/policykey.rb'
|
54
|
+
autoload :EntityAvailabilityStatus, 'generated/azure_mgmt_service_bus/models/entity_availability_status.rb'
|
55
|
+
autoload :EntityStatus, 'generated/azure_mgmt_service_bus/models/entity_status.rb'
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for AccessRights
|
10
|
+
#
|
11
|
+
module AccessRights
|
12
|
+
Manage = "Manage"
|
13
|
+
Send = "Send"
|
14
|
+
Listen = "Listen"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for EntityAvailabilityStatus
|
10
|
+
#
|
11
|
+
module EntityAvailabilityStatus
|
12
|
+
Available = "Available"
|
13
|
+
Limited = "Limited"
|
14
|
+
Renaming = "Renaming"
|
15
|
+
Restoring = "Restoring"
|
16
|
+
Unknown = "Unknown"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for EntityStatus
|
10
|
+
#
|
11
|
+
module EntityStatus
|
12
|
+
Active = "Active"
|
13
|
+
Creating = "Creating"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Disabled = "Disabled"
|
16
|
+
ReceiveDisabled = "ReceiveDisabled"
|
17
|
+
Renaming = "Renaming"
|
18
|
+
Restoring = "Restoring"
|
19
|
+
SendDisabled = "SendDisabled"
|
20
|
+
Unknown = "Unknown"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Message Count Details.
|
10
|
+
#
|
11
|
+
class MessageCountDetails
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Number of active messages in the queue, topic, or
|
16
|
+
# subscription.
|
17
|
+
attr_accessor :active_message_count
|
18
|
+
|
19
|
+
# @return [Integer] Number of messages that are dead lettered.
|
20
|
+
attr_accessor :dead_letter_message_count
|
21
|
+
|
22
|
+
# @return [Integer] Number of scheduled messages.
|
23
|
+
attr_accessor :scheduled_message_count
|
24
|
+
|
25
|
+
# @return [Integer] Number of messages transferred into dead letters.
|
26
|
+
attr_accessor :transfer_dead_letter_message_count
|
27
|
+
|
28
|
+
# @return [Integer] Number of messages transferred to another queue,
|
29
|
+
# topic, or subscription.
|
30
|
+
attr_accessor :transfer_message_count
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for MessageCountDetails class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'MessageCountDetails',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'MessageCountDetails',
|
44
|
+
model_properties: {
|
45
|
+
active_message_count: {
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'activeMessageCount',
|
48
|
+
type: {
|
49
|
+
name: 'Number'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
dead_letter_message_count: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'deadLetterMessageCount',
|
55
|
+
type: {
|
56
|
+
name: 'Number'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
scheduled_message_count: {
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'scheduledMessageCount',
|
62
|
+
type: {
|
63
|
+
name: 'Number'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
transfer_dead_letter_message_count: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'transferDeadLetterMessageCount',
|
69
|
+
type: {
|
70
|
+
name: 'Number'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
transfer_message_count: {
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'transferMessageCount',
|
76
|
+
type: {
|
77
|
+
name: 'Number'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,147 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to the Create Or Update Namespace operation.
|
10
|
+
#
|
11
|
+
class NamespaceCreateOrUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Namespace location.
|
16
|
+
attr_accessor :location
|
17
|
+
|
18
|
+
# @return [Sku]
|
19
|
+
attr_accessor :sku
|
20
|
+
|
21
|
+
# @return [Hash{String => String}] Namespace tags.
|
22
|
+
attr_accessor :tags
|
23
|
+
|
24
|
+
# @return [String] Provisioning state of the namespace.
|
25
|
+
attr_accessor :provisioning_state
|
26
|
+
|
27
|
+
# @return [NamespaceState] State of the namespace. Possible values
|
28
|
+
# include: 'Unknown', 'Creating', 'Created', 'Activating', 'Enabling',
|
29
|
+
# 'Active', 'Disabling', 'Disabled', 'SoftDeleting', 'SoftDeleted',
|
30
|
+
# 'Removing', 'Removed', 'Failed'
|
31
|
+
attr_accessor :status
|
32
|
+
|
33
|
+
# @return [DateTime] The time the namespace was created.
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
|
+
# @return [DateTime] The time the namespace was updated.
|
37
|
+
attr_accessor :updated_at
|
38
|
+
|
39
|
+
# @return [String] Endpoint you can use to perform Service Bus
|
40
|
+
# operations.
|
41
|
+
attr_accessor :service_bus_endpoint
|
42
|
+
|
43
|
+
# @return [Boolean] Indicates whether to create an ACS namespace.
|
44
|
+
attr_accessor :create_acsnamespace
|
45
|
+
|
46
|
+
# @return [Boolean] Specifies whether this instance is enabled.
|
47
|
+
attr_accessor :enabled
|
48
|
+
|
49
|
+
|
50
|
+
#
|
51
|
+
# Mapper for NamespaceCreateOrUpdateParameters class as Ruby Hash.
|
52
|
+
# This will be used for serialization/deserialization.
|
53
|
+
#
|
54
|
+
def self.mapper()
|
55
|
+
{
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'NamespaceCreateOrUpdateParameters',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'NamespaceCreateOrUpdateParameters',
|
61
|
+
model_properties: {
|
62
|
+
location: {
|
63
|
+
required: true,
|
64
|
+
serialized_name: 'location',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
sku: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'sku',
|
72
|
+
type: {
|
73
|
+
name: 'Composite',
|
74
|
+
class_name: 'Sku'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
tags: {
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'tags',
|
80
|
+
type: {
|
81
|
+
name: 'Dictionary',
|
82
|
+
value: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'StringElementType',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
},
|
91
|
+
provisioning_state: {
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'properties.provisioningState',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
status: {
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'properties.status',
|
101
|
+
type: {
|
102
|
+
name: 'Enum',
|
103
|
+
module: 'NamespaceState'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
created_at: {
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'properties.createdAt',
|
109
|
+
type: {
|
110
|
+
name: 'DateTime'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
updated_at: {
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'properties.updatedAt',
|
116
|
+
type: {
|
117
|
+
name: 'DateTime'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
service_bus_endpoint: {
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'properties.serviceBusEndpoint',
|
123
|
+
type: {
|
124
|
+
name: 'String'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
create_acsnamespace: {
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'properties.createACSNamespace',
|
130
|
+
type: {
|
131
|
+
name: 'Boolean'
|
132
|
+
}
|
133
|
+
},
|
134
|
+
enabled: {
|
135
|
+
required: false,
|
136
|
+
serialized_name: 'properties.enabled',
|
137
|
+
type: {
|
138
|
+
name: 'Boolean'
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of the List Namespace operation.
|
10
|
+
#
|
11
|
+
class NamespaceListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<NamespaceResource>] Result of the List Namespace
|
16
|
+
# operation.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Link to the next set of results. Not empty if Value
|
20
|
+
# contains incomplete list of Namespaces.
|
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<NamespaceResource>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil 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 [NamespaceListResult] 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 NamespaceListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'NamespaceListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'NamespaceListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'value',
|
70
|
+
type: {
|
71
|
+
name: 'Sequence',
|
72
|
+
element: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'NamespaceResourceElementType',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'NamespaceResource'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
next_link: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'nextLink',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|