azure_mgmt_datashare 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2018-11-01-preview/generated/azure_mgmt_datashare/data_share_management_client.rb +1 -1
- data/lib/2019-11-01/generated/azure_mgmt_datashare.rb +121 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/accounts.rb +981 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/consumer_invitations.rb +442 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/consumer_source_data_sets.rb +254 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/data_set_mappings.rb +603 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/data_sets.rb +631 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/data_share_management_client.rb +175 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/invitations.rb +587 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/account.rb +147 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/account_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/account_update_parameters.rb +54 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen1file_data_set.rb +144 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen1folder_data_set.rb +133 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen2file_data_set.rb +144 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen2file_data_set_mapping.rb +182 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen2file_system_data_set.rb +133 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen2file_system_data_set_mapping.rb +159 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen2folder_data_set.rb +144 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/adlsgen2folder_data_set_mapping.rb +170 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/blob_container_data_set.rb +133 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/blob_container_data_set_mapping.rb +159 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/blob_data_set.rb +144 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/blob_data_set_mapping.rb +182 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/blob_folder_data_set.rb +144 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/blob_folder_data_set_mapping.rb +170 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/consumer_invitation.rb +230 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/consumer_invitation_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/consumer_source_data_set.rb +125 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/consumer_source_data_set_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_set.rb +71 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_set_list.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_set_mapping.rb +71 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_set_mapping_list.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_set_mapping_status.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_set_type.rb +26 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_share_error.rb +47 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/data_share_error_info.rb +88 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/default_dto.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/dimension_properties.rb +57 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/identity.rb +70 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/invitation.rb +171 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/invitation_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/invitation_status.rb +18 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/kusto_cluster_data_set.rb +126 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/kusto_cluster_data_set_mapping.rb +138 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/kusto_database_data_set.rb +126 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/kusto_database_data_set_mapping.rb +138 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/operation_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/operation_meta_log_specification.rb +68 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/operation_meta_metric_specification.rb +181 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/operation_meta_service_specification.rb +77 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/operation_model.rb +81 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/operation_model_properties.rb +79 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/operation_response.rb +82 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/output_type.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/provider_share_subscription.rb +175 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/provider_share_subscription_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/provisioning_state.rb +19 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/proxy_dto.rb +71 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/recurrence_interval.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/scheduled_source_synchronization_setting.rb +73 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/scheduled_synchronization_setting.rb +140 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/scheduled_trigger.rb +162 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share.rb +146 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_kind.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_list.rb +98 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_subscription.rb +233 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_subscription_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_subscription_status.rb +18 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_subscription_synchronization.rb +119 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_subscription_synchronization_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_synchronization.rb +148 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_synchronization_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/source_share_synchronization_setting.rb +46 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/source_share_synchronization_setting_list.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/sql_dbtable_data_set.rb +133 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/sql_dbtable_data_set_mapping.rb +159 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/sql_dwtable_data_set.rb +133 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/sql_dwtable_data_set_mapping.rb +159 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/status.rb +20 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/synchronization_details.rb +221 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/synchronization_details_list.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/synchronization_mode.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/synchronization_setting.rb +71 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/synchronization_setting_list.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/synchronize.rb +48 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/trigger.rb +71 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/trigger_list.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/trigger_status.rb +17 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/models/type.rb +15 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/module_definition.rb +9 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/operations.rb +232 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/provider_share_subscriptions.rb +636 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb +1685 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/shares.rb +1101 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/synchronization_settings.rb +664 -0
- data/lib/2019-11-01/generated/azure_mgmt_datashare/triggers.rb +701 -0
- data/lib/azure_mgmt_datashare.rb +1 -0
- data/lib/profiles/latest/modules/datashare_profile_module.rb +212 -196
- data/lib/version.rb +1 -1
- metadata +99 -2
@@ -0,0 +1,16 @@
|
|
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::DataShare::Mgmt::V2019_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ShareKind
|
10
|
+
#
|
11
|
+
module ShareKind
|
12
|
+
CopyBased = "CopyBased"
|
13
|
+
InPlace = "InPlace"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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::DataShare::Mgmt::V2019_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List response for get Shares.
|
10
|
+
#
|
11
|
+
class ShareList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The Url of next result page.
|
17
|
+
attr_accessor :next_link
|
18
|
+
|
19
|
+
# @return [Array<Share>] Collection of items of type DataTransferObjects.
|
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<Share>] 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 [ShareList] 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 ShareList 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: 'ShareList',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ShareList',
|
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: true,
|
78
|
+
serialized_name: 'value',
|
79
|
+
type: {
|
80
|
+
name: 'Sequence',
|
81
|
+
element: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'ShareElementType',
|
85
|
+
type: {
|
86
|
+
name: 'Composite',
|
87
|
+
class_name: 'Share'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,233 @@
|
|
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::DataShare::Mgmt::V2019_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A share subscription data transfer object.
|
10
|
+
#
|
11
|
+
class ShareSubscription < ProxyDto
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DateTime] Time at which the share subscription was created.
|
16
|
+
attr_accessor :created_at
|
17
|
+
|
18
|
+
# @return [String] The invitation id.
|
19
|
+
attr_accessor :invitation_id
|
20
|
+
|
21
|
+
# @return [String] Email of the provider who created the resource
|
22
|
+
attr_accessor :provider_email
|
23
|
+
|
24
|
+
# @return [String] Name of the provider who created the resource
|
25
|
+
attr_accessor :provider_name
|
26
|
+
|
27
|
+
# @return [String] Tenant name of the provider who created the resource
|
28
|
+
attr_accessor :provider_tenant_name
|
29
|
+
|
30
|
+
# @return [ProvisioningState] Provisioning state of the share
|
31
|
+
# subscription. Possible values include: 'Succeeded', 'Creating',
|
32
|
+
# 'Deleting', 'Moving', 'Failed'
|
33
|
+
attr_accessor :provisioning_state
|
34
|
+
|
35
|
+
# @return [String] Description of share
|
36
|
+
attr_accessor :share_description
|
37
|
+
|
38
|
+
# @return [ShareKind] Kind of share. Possible values include:
|
39
|
+
# 'CopyBased', 'InPlace'
|
40
|
+
attr_accessor :share_kind
|
41
|
+
|
42
|
+
# @return [String] Name of the share
|
43
|
+
attr_accessor :share_name
|
44
|
+
|
45
|
+
# @return [ShareSubscriptionStatus] Gets the current status of share
|
46
|
+
# subscription. Possible values include: 'Active', 'Revoked',
|
47
|
+
# 'SourceDeleted', 'Revoking'
|
48
|
+
attr_accessor :share_subscription_status
|
49
|
+
|
50
|
+
# @return [String] Terms of a share
|
51
|
+
attr_accessor :share_terms
|
52
|
+
|
53
|
+
# @return [String] Source share location.
|
54
|
+
attr_accessor :source_share_location
|
55
|
+
|
56
|
+
# @return [String] Email of the user who created the resource
|
57
|
+
attr_accessor :user_email
|
58
|
+
|
59
|
+
# @return [String] Name of the user who created the resource
|
60
|
+
attr_accessor :user_name
|
61
|
+
|
62
|
+
|
63
|
+
#
|
64
|
+
# Mapper for ShareSubscription class as Ruby Hash.
|
65
|
+
# This will be used for serialization/deserialization.
|
66
|
+
#
|
67
|
+
def self.mapper()
|
68
|
+
{
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'ShareSubscription',
|
72
|
+
type: {
|
73
|
+
name: 'Composite',
|
74
|
+
class_name: 'ShareSubscription',
|
75
|
+
model_properties: {
|
76
|
+
id: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
read_only: true,
|
80
|
+
serialized_name: 'id',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
name: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
read_only: true,
|
89
|
+
serialized_name: 'name',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
type: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
read_only: true,
|
98
|
+
serialized_name: 'type',
|
99
|
+
type: {
|
100
|
+
name: 'String'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
created_at: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
read_only: true,
|
107
|
+
serialized_name: 'properties.createdAt',
|
108
|
+
type: {
|
109
|
+
name: 'DateTime'
|
110
|
+
}
|
111
|
+
},
|
112
|
+
invitation_id: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: true,
|
115
|
+
serialized_name: 'properties.invitationId',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
provider_email: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: false,
|
123
|
+
read_only: true,
|
124
|
+
serialized_name: 'properties.providerEmail',
|
125
|
+
type: {
|
126
|
+
name: 'String'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
provider_name: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: false,
|
132
|
+
read_only: true,
|
133
|
+
serialized_name: 'properties.providerName',
|
134
|
+
type: {
|
135
|
+
name: 'String'
|
136
|
+
}
|
137
|
+
},
|
138
|
+
provider_tenant_name: {
|
139
|
+
client_side_validation: true,
|
140
|
+
required: false,
|
141
|
+
read_only: true,
|
142
|
+
serialized_name: 'properties.providerTenantName',
|
143
|
+
type: {
|
144
|
+
name: 'String'
|
145
|
+
}
|
146
|
+
},
|
147
|
+
provisioning_state: {
|
148
|
+
client_side_validation: true,
|
149
|
+
required: false,
|
150
|
+
read_only: true,
|
151
|
+
serialized_name: 'properties.provisioningState',
|
152
|
+
type: {
|
153
|
+
name: 'String'
|
154
|
+
}
|
155
|
+
},
|
156
|
+
share_description: {
|
157
|
+
client_side_validation: true,
|
158
|
+
required: false,
|
159
|
+
read_only: true,
|
160
|
+
serialized_name: 'properties.shareDescription',
|
161
|
+
type: {
|
162
|
+
name: 'String'
|
163
|
+
}
|
164
|
+
},
|
165
|
+
share_kind: {
|
166
|
+
client_side_validation: true,
|
167
|
+
required: false,
|
168
|
+
read_only: true,
|
169
|
+
serialized_name: 'properties.shareKind',
|
170
|
+
type: {
|
171
|
+
name: 'String'
|
172
|
+
}
|
173
|
+
},
|
174
|
+
share_name: {
|
175
|
+
client_side_validation: true,
|
176
|
+
required: false,
|
177
|
+
read_only: true,
|
178
|
+
serialized_name: 'properties.shareName',
|
179
|
+
type: {
|
180
|
+
name: 'String'
|
181
|
+
}
|
182
|
+
},
|
183
|
+
share_subscription_status: {
|
184
|
+
client_side_validation: true,
|
185
|
+
required: false,
|
186
|
+
read_only: true,
|
187
|
+
serialized_name: 'properties.shareSubscriptionStatus',
|
188
|
+
type: {
|
189
|
+
name: 'String'
|
190
|
+
}
|
191
|
+
},
|
192
|
+
share_terms: {
|
193
|
+
client_side_validation: true,
|
194
|
+
required: false,
|
195
|
+
read_only: true,
|
196
|
+
serialized_name: 'properties.shareTerms',
|
197
|
+
type: {
|
198
|
+
name: 'String'
|
199
|
+
}
|
200
|
+
},
|
201
|
+
source_share_location: {
|
202
|
+
client_side_validation: true,
|
203
|
+
required: true,
|
204
|
+
serialized_name: 'properties.sourceShareLocation',
|
205
|
+
type: {
|
206
|
+
name: 'String'
|
207
|
+
}
|
208
|
+
},
|
209
|
+
user_email: {
|
210
|
+
client_side_validation: true,
|
211
|
+
required: false,
|
212
|
+
read_only: true,
|
213
|
+
serialized_name: 'properties.userEmail',
|
214
|
+
type: {
|
215
|
+
name: 'String'
|
216
|
+
}
|
217
|
+
},
|
218
|
+
user_name: {
|
219
|
+
client_side_validation: true,
|
220
|
+
required: false,
|
221
|
+
read_only: true,
|
222
|
+
serialized_name: 'properties.userName',
|
223
|
+
type: {
|
224
|
+
name: 'String'
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
@@ -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::DataShare::Mgmt::V2019_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List response for get ShareSubscription.
|
10
|
+
#
|
11
|
+
class ShareSubscriptionList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The Url of next result page.
|
17
|
+
attr_accessor :next_link
|
18
|
+
|
19
|
+
# @return [Array<ShareSubscription>] Collection of items of type
|
20
|
+
# DataTransferObjects.
|
21
|
+
attr_accessor :value
|
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<ShareSubscription>] 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 [ShareSubscriptionList] 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 ShareSubscriptionList 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: 'ShareSubscriptionList',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'ShareSubscriptionList',
|
67
|
+
model_properties: {
|
68
|
+
next_link: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'nextLink',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
value: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: true,
|
79
|
+
serialized_name: 'value',
|
80
|
+
type: {
|
81
|
+
name: 'Sequence',
|
82
|
+
element: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'ShareSubscriptionElementType',
|
86
|
+
type: {
|
87
|
+
name: 'Composite',
|
88
|
+
class_name: 'ShareSubscription'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|