Class: Azure::ARM::SQL::Models::SyncGroup

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_sql/models/sync_group.rb

Overview

An Azure SQL Database sync group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#conflict_resolution_policySyncConflictResolutionPolicy

the sync group. Possible values include: ‘HubWin’, ‘MemberWin’

Returns:



24
25
26
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 24

def conflict_resolution_policy
  @conflict_resolution_policy
end

#hub_database_passwordString

Returns Password for the sync group hub database credential.

Returns:

  • (String)

    Password for the sync group hub database credential.



34
35
36
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 34

def hub_database_password
  @hub_database_password
end

#hub_database_user_nameString

Returns User name for the sync group hub database credential.

Returns:

  • (String)

    User name for the sync group hub database credential.



31
32
33
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 31

def hub_database_user_name
  @hub_database_user_name
end

#intervalInteger

Returns Sync interval of the sync group.

Returns:

  • (Integer)

    Sync interval of the sync group.



17
18
19
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 17

def interval
  @interval
end

#last_sync_timeDateTime

Returns Last sync time of the sync group.

Returns:

  • (DateTime)

    Last sync time of the sync group.



20
21
22
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 20

def last_sync_time
  @last_sync_time
end

#schemaSyncGroupSchema

Returns Sync schema of the sync group.

Returns:



41
42
43
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 41

def schema
  @schema
end

#sync_database_idString

group.

Returns:

  • (String)

    ARM resource id of the sync database in the sync



28
29
30
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 28

def sync_database_id
  @sync_database_id
end

#sync_stateSyncGroupState

include: ‘NotReady’, ‘Error’, ‘Warning’, ‘Progressing’, ‘Good’

Returns:



38
39
40
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 38

def sync_state
  @sync_state
end

Class Method Details

.mapperObject

Mapper for SyncGroup class as Ruby Hash. This will be used for serialization/deserialization.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/generated/azure_mgmt_sql/models/sync_group.rb', line 48

def self.mapper()
  {
    required: false,
    serialized_name: 'SyncGroup',
    type: {
      name: 'Composite',
      class_name: 'SyncGroup',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        interval: {
          required: false,
          serialized_name: 'properties.interval',
          type: {
            name: 'Number'
          }
        },
        last_sync_time: {
          required: false,
          read_only: true,
          serialized_name: 'properties.lastSyncTime',
          type: {
            name: 'DateTime'
          }
        },
        conflict_resolution_policy: {
          required: false,
          serialized_name: 'properties.conflictResolutionPolicy',
          type: {
            name: 'String'
          }
        },
        sync_database_id: {
          required: false,
          serialized_name: 'properties.syncDatabaseId',
          type: {
            name: 'String'
          }
        },
        hub_database_user_name: {
          required: false,
          serialized_name: 'properties.hubDatabaseUserName',
          type: {
            name: 'String'
          }
        },
        hub_database_password: {
          required: false,
          serialized_name: 'properties.hubDatabasePassword',
          type: {
            name: 'String'
          }
        },
        sync_state: {
          required: false,
          read_only: true,
          serialized_name: 'properties.syncState',
          type: {
            name: 'String'
          }
        },
        schema: {
          required: false,
          serialized_name: 'properties.schema',
          type: {
            name: 'Composite',
            class_name: 'SyncGroupSchema'
          }
        }
      }
    }
  }
end