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,18 @@
|
|
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 ShareSubscriptionStatus
|
10
|
+
#
|
11
|
+
module ShareSubscriptionStatus
|
12
|
+
Active = "Active"
|
13
|
+
Revoked = "Revoked"
|
14
|
+
SourceDeleted = "SourceDeleted"
|
15
|
+
Revoking = "Revoking"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_subscription_synchronization.rb
ADDED
@@ -0,0 +1,119 @@
|
|
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 ShareSubscriptionSynchronization data transfer object.
|
10
|
+
#
|
11
|
+
class ShareSubscriptionSynchronization
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Synchronization duration
|
16
|
+
attr_accessor :duration_ms
|
17
|
+
|
18
|
+
# @return [DateTime] End time of synchronization
|
19
|
+
attr_accessor :end_time
|
20
|
+
|
21
|
+
# @return [String] message of Synchronization
|
22
|
+
attr_accessor :message
|
23
|
+
|
24
|
+
# @return [DateTime] start time of synchronization
|
25
|
+
attr_accessor :start_time
|
26
|
+
|
27
|
+
# @return [String] Raw Status
|
28
|
+
attr_accessor :status
|
29
|
+
|
30
|
+
# @return [String] Synchronization id
|
31
|
+
attr_accessor :synchronization_id
|
32
|
+
|
33
|
+
# @return [SynchronizationMode] Synchronization Mode. Possible values
|
34
|
+
# include: 'Incremental', 'FullSync'
|
35
|
+
attr_accessor :synchronization_mode
|
36
|
+
|
37
|
+
|
38
|
+
#
|
39
|
+
# Mapper for ShareSubscriptionSynchronization 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: 'ShareSubscriptionSynchronization',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'ShareSubscriptionSynchronization',
|
50
|
+
model_properties: {
|
51
|
+
duration_ms: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'durationMs',
|
56
|
+
type: {
|
57
|
+
name: 'Number'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
end_time: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'endTime',
|
65
|
+
type: {
|
66
|
+
name: 'DateTime'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
message: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'message',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
start_time: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'startTime',
|
83
|
+
type: {
|
84
|
+
name: 'DateTime'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
status: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
read_only: true,
|
91
|
+
serialized_name: 'status',
|
92
|
+
type: {
|
93
|
+
name: 'String'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
synchronization_id: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: true,
|
99
|
+
serialized_name: 'synchronizationId',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
},
|
104
|
+
synchronization_mode: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
read_only: true,
|
108
|
+
serialized_name: 'synchronizationMode',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
data/lib/2019-11-01/generated/azure_mgmt_datashare/models/share_subscription_synchronization_list.rb
ADDED
@@ -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
|
+
# A consumer side list of share subscription synchronizations
|
10
|
+
#
|
11
|
+
class ShareSubscriptionSynchronizationList
|
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<ShareSubscriptionSynchronization>] Collection of items
|
20
|
+
# of type 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<ShareSubscriptionSynchronization>] 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 [ShareSubscriptionSynchronizationList] 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 ShareSubscriptionSynchronizationList 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: 'ShareSubscriptionSynchronizationList',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'ShareSubscriptionSynchronizationList',
|
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: 'ShareSubscriptionSynchronizationElementType',
|
86
|
+
type: {
|
87
|
+
name: 'Composite',
|
88
|
+
class_name: 'ShareSubscriptionSynchronization'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,148 @@
|
|
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 ShareSynchronization data transfer object.
|
10
|
+
#
|
11
|
+
class ShareSynchronization
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Email of the user who created the synchronization
|
16
|
+
attr_accessor :consumer_email
|
17
|
+
|
18
|
+
# @return [String] Name of the user who created the synchronization
|
19
|
+
attr_accessor :consumer_name
|
20
|
+
|
21
|
+
# @return [String] Tenant name of the consumer who created the
|
22
|
+
# synchronization
|
23
|
+
attr_accessor :consumer_tenant_name
|
24
|
+
|
25
|
+
# @return [Integer] synchronization duration
|
26
|
+
attr_accessor :duration_ms
|
27
|
+
|
28
|
+
# @return [DateTime] End time of synchronization
|
29
|
+
attr_accessor :end_time
|
30
|
+
|
31
|
+
# @return [String] message of synchronization
|
32
|
+
attr_accessor :message
|
33
|
+
|
34
|
+
# @return [DateTime] start time of synchronization
|
35
|
+
attr_accessor :start_time
|
36
|
+
|
37
|
+
# @return [String] Raw Status
|
38
|
+
attr_accessor :status
|
39
|
+
|
40
|
+
# @return [String] Synchronization id
|
41
|
+
attr_accessor :synchronization_id
|
42
|
+
|
43
|
+
# @return [SynchronizationMode] Synchronization mode. Possible values
|
44
|
+
# include: 'Incremental', 'FullSync'
|
45
|
+
attr_accessor :synchronization_mode
|
46
|
+
|
47
|
+
|
48
|
+
#
|
49
|
+
# Mapper for ShareSynchronization class as Ruby Hash.
|
50
|
+
# This will be used for serialization/deserialization.
|
51
|
+
#
|
52
|
+
def self.mapper()
|
53
|
+
{
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'ShareSynchronization',
|
57
|
+
type: {
|
58
|
+
name: 'Composite',
|
59
|
+
class_name: 'ShareSynchronization',
|
60
|
+
model_properties: {
|
61
|
+
consumer_email: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'consumerEmail',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
consumer_name: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'consumerName',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
consumer_tenant_name: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'consumerTenantName',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
duration_ms: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'durationMs',
|
89
|
+
type: {
|
90
|
+
name: 'Number'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
end_time: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'endTime',
|
97
|
+
type: {
|
98
|
+
name: 'DateTime'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
message: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
serialized_name: 'message',
|
105
|
+
type: {
|
106
|
+
name: 'String'
|
107
|
+
}
|
108
|
+
},
|
109
|
+
start_time: {
|
110
|
+
client_side_validation: true,
|
111
|
+
required: false,
|
112
|
+
serialized_name: 'startTime',
|
113
|
+
type: {
|
114
|
+
name: 'DateTime'
|
115
|
+
}
|
116
|
+
},
|
117
|
+
status: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
serialized_name: 'status',
|
121
|
+
type: {
|
122
|
+
name: 'String'
|
123
|
+
}
|
124
|
+
},
|
125
|
+
synchronization_id: {
|
126
|
+
client_side_validation: true,
|
127
|
+
required: false,
|
128
|
+
serialized_name: 'synchronizationId',
|
129
|
+
type: {
|
130
|
+
name: 'String'
|
131
|
+
}
|
132
|
+
},
|
133
|
+
synchronization_mode: {
|
134
|
+
client_side_validation: true,
|
135
|
+
required: false,
|
136
|
+
read_only: true,
|
137
|
+
serialized_name: 'synchronizationMode',
|
138
|
+
type: {
|
139
|
+
name: 'String'
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
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 ShareSynchronization.
|
10
|
+
#
|
11
|
+
class ShareSynchronizationList
|
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<ShareSynchronization>] 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<ShareSynchronization>] 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 [ShareSynchronizationList] 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 ShareSynchronizationList 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: 'ShareSynchronizationList',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'ShareSynchronizationList',
|
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: 'ShareSynchronizationElementType',
|
86
|
+
type: {
|
87
|
+
name: 'Composite',
|
88
|
+
class_name: 'ShareSynchronization'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|