strongdm 1.0.34 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. checksums.yaml +4 -4
  2. data/.git/ORIG_HEAD +1 -1
  3. data/.git/config +0 -3
  4. data/.git/index +0 -0
  5. data/.git/logs/HEAD +3 -4
  6. data/.git/logs/refs/heads/master +2 -2
  7. data/.git/logs/refs/remotes/origin/HEAD +1 -1
  8. data/.git/objects/pack/pack-ae9c31d15ecb69c51d515e053295673b38840788.idx +0 -0
  9. data/.git/objects/pack/{pack-802051e74a1de9449b3bc69f695b0b5e55e448e5.pack → pack-ae9c31d15ecb69c51d515e053295673b38840788.pack} +0 -0
  10. data/.git/packed-refs +5 -2
  11. data/.git/refs/heads/master +1 -1
  12. data/.yardopts +9 -0
  13. data/README.md +18 -6
  14. data/lib/errors/errors.rb +1 -1
  15. data/lib/grpc/account_attachments_services_pb.rb +1 -1
  16. data/lib/grpc/accounts_services_pb.rb +2 -2
  17. data/lib/grpc/drivers_pb.rb +41 -0
  18. data/lib/grpc/nodes_services_pb.rb +1 -1
  19. data/lib/grpc/options_pb.rb +35 -41
  20. data/lib/grpc/plumbing.rb +1235 -982
  21. data/lib/grpc/resources_services_pb.rb +3 -1
  22. data/lib/grpc/role_attachments_services_pb.rb +10 -0
  23. data/lib/grpc/role_grants_services_pb.rb +10 -0
  24. data/lib/grpc/roles_services_pb.rb +4 -6
  25. data/lib/grpc/secret_store_types_pb.rb +17 -0
  26. data/lib/grpc/secret_stores_services_pb.rb +1 -1
  27. data/lib/models/porcelain.rb +1255 -2961
  28. data/lib/strongdm.rb +53 -16
  29. data/lib/svc.rb +163 -14
  30. data/lib/version +1 -1
  31. data/lib/version.rb +1 -1
  32. metadata +5 -224
  33. data/.git/FETCH_HEAD +0 -2
  34. data/.git/logs/refs/heads/development +0 -1
  35. data/.git/objects/pack/pack-802051e74a1de9449b3bc69f695b0b5e55e448e5.idx +0 -0
  36. data/.git/refs/heads/development +0 -1
  37. data/doc/LICENSE.html +0 -187
  38. data/doc/Object.html +0 -114
  39. data/doc/README_md.html +0 -146
  40. data/doc/SDM/AKS.html +0 -352
  41. data/doc/SDM/AKSBasicAuth.html +0 -337
  42. data/doc/SDM/AKSServiceAccount.html +0 -322
  43. data/doc/SDM/AKSServiceAccountUserImpersonation.html +0 -322
  44. data/doc/SDM/AKSUserImpersonation.html +0 -352
  45. data/doc/SDM/AWS.html +0 -337
  46. data/doc/SDM/AWSStore.html +0 -232
  47. data/doc/SDM/AccountAttachment.html +0 -219
  48. data/doc/SDM/AccountAttachmentCreateResponse.html +0 -219
  49. data/doc/SDM/AccountAttachmentDeleteResponse.html +0 -204
  50. data/doc/SDM/AccountAttachmentGetResponse.html +0 -219
  51. data/doc/SDM/AccountAttachments.html +0 -354
  52. data/doc/SDM/AccountCreateResponse.html +0 -234
  53. data/doc/SDM/AccountDeleteResponse.html +0 -204
  54. data/doc/SDM/AccountGetResponse.html +0 -219
  55. data/doc/SDM/AccountGrant.html +0 -249
  56. data/doc/SDM/AccountGrantCreateResponse.html +0 -219
  57. data/doc/SDM/AccountGrantDeleteResponse.html +0 -204
  58. data/doc/SDM/AccountGrantGetResponse.html +0 -219
  59. data/doc/SDM/AccountGrants.html +0 -354
  60. data/doc/SDM/AccountUpdateResponse.html +0 -219
  61. data/doc/SDM/Accounts.html +0 -409
  62. data/doc/SDM/AlreadyExistsError.html +0 -140
  63. data/doc/SDM/AmazonEKS.html +0 -397
  64. data/doc/SDM/AmazonEKSUserImpersonation.html +0 -397
  65. data/doc/SDM/AmazonES.html +0 -367
  66. data/doc/SDM/AmazonMQAMQP091.html +0 -352
  67. data/doc/SDM/Athena.html +0 -367
  68. data/doc/SDM/AuroraMysql.html +0 -352
  69. data/doc/SDM/AuroraPostgres.html +0 -367
  70. data/doc/SDM/AuthenticationError.html +0 -140
  71. data/doc/SDM/Azure.html +0 -307
  72. data/doc/SDM/AzureCertificate.html +0 -307
  73. data/doc/SDM/AzurePostgres.html +0 -367
  74. data/doc/SDM/AzureStore.html +0 -232
  75. data/doc/SDM/BadRequestError.html +0 -140
  76. data/doc/SDM/BigQuery.html +0 -337
  77. data/doc/SDM/Cassandra.html +0 -352
  78. data/doc/SDM/Citus.html +0 -367
  79. data/doc/SDM/Client.html +0 -443
  80. data/doc/SDM/Clustrix.html +0 -352
  81. data/doc/SDM/Cockroach.html +0 -367
  82. data/doc/SDM/ControlPanel.html +0 -248
  83. data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +0 -219
  84. data/doc/SDM/ControlPanelVerifyJWTResponse.html +0 -219
  85. data/doc/SDM/CreateResponseMetadata.html +0 -169
  86. data/doc/SDM/DB2LUW.html +0 -352
  87. data/doc/SDM/DB2i.html +0 -352
  88. data/doc/SDM/DeadlineExceededError.html +0 -140
  89. data/doc/SDM/DeleteResponseMetadata.html +0 -169
  90. data/doc/SDM/DocumentDBHost.html +0 -352
  91. data/doc/SDM/DocumentDBReplicaSet.html +0 -367
  92. data/doc/SDM/Druid.html +0 -337
  93. data/doc/SDM/DynamoDB.html +0 -367
  94. data/doc/SDM/Elastic.html +0 -352
  95. data/doc/SDM/ElasticacheRedis.html +0 -337
  96. data/doc/SDM/GCP.html +0 -292
  97. data/doc/SDM/Gateway.html +0 -279
  98. data/doc/SDM/GetResponseMetadata.html +0 -169
  99. data/doc/SDM/GoogleGKE.html +0 -322
  100. data/doc/SDM/GoogleGKEUserImpersonation.html +0 -322
  101. data/doc/SDM/Greenplum.html +0 -367
  102. data/doc/SDM/HTTPAuth.html +0 -352
  103. data/doc/SDM/HTTPBasicAuth.html +0 -367
  104. data/doc/SDM/HTTPNoAuth.html +0 -337
  105. data/doc/SDM/InternalError.html +0 -140
  106. data/doc/SDM/Kubernetes.html +0 -352
  107. data/doc/SDM/KubernetesBasicAuth.html +0 -337
  108. data/doc/SDM/KubernetesServiceAccount.html +0 -322
  109. data/doc/SDM/KubernetesServiceAccountUserImpersonation.html +0 -322
  110. data/doc/SDM/KubernetesUserImpersonation.html +0 -352
  111. data/doc/SDM/Maria.html +0 -352
  112. data/doc/SDM/Memcached.html +0 -307
  113. data/doc/SDM/Memsql.html +0 -352
  114. data/doc/SDM/MongoHost.html +0 -367
  115. data/doc/SDM/MongoLegacyHost.html +0 -382
  116. data/doc/SDM/MongoLegacyReplicaset.html +0 -397
  117. data/doc/SDM/MongoReplicaSet.html +0 -397
  118. data/doc/SDM/MongoShardedCluster.html +0 -352
  119. data/doc/SDM/Mysql.html +0 -352
  120. data/doc/SDM/Neptune.html +0 -307
  121. data/doc/SDM/NeptuneIAM.html +0 -382
  122. data/doc/SDM/NodeCreateResponse.html +0 -234
  123. data/doc/SDM/NodeDeleteResponse.html +0 -204
  124. data/doc/SDM/NodeGetResponse.html +0 -219
  125. data/doc/SDM/NodeUpdateResponse.html +0 -219
  126. data/doc/SDM/Nodes.html +0 -409
  127. data/doc/SDM/NotFoundError.html +0 -140
  128. data/doc/SDM/Oracle.html +0 -367
  129. data/doc/SDM/PermissionError.html +0 -140
  130. data/doc/SDM/Plumbing.html +0 -16086
  131. data/doc/SDM/Postgres.html +0 -367
  132. data/doc/SDM/Presto.html +0 -367
  133. data/doc/SDM/RDP.html +0 -352
  134. data/doc/SDM/RPCError.html +0 -157
  135. data/doc/SDM/RabbitMQAMQP091.html +0 -352
  136. data/doc/SDM/RateLimitError.html +0 -157
  137. data/doc/SDM/RateLimitMetadata.html +0 -234
  138. data/doc/SDM/RawTCP.html +0 -307
  139. data/doc/SDM/Redis.html +0 -322
  140. data/doc/SDM/Redshift.html +0 -367
  141. data/doc/SDM/Relay.html +0 -249
  142. data/doc/SDM/ResourceCreateResponse.html +0 -219
  143. data/doc/SDM/ResourceDeleteResponse.html +0 -204
  144. data/doc/SDM/ResourceGetResponse.html +0 -219
  145. data/doc/SDM/ResourceUpdateResponse.html +0 -219
  146. data/doc/SDM/Resources.html +0 -456
  147. data/doc/SDM/Role.html +0 -249
  148. data/doc/SDM/RoleAttachment.html +0 -219
  149. data/doc/SDM/RoleAttachmentCreateResponse.html +0 -219
  150. data/doc/SDM/RoleAttachmentDeleteResponse.html +0 -204
  151. data/doc/SDM/RoleAttachmentGetResponse.html +0 -219
  152. data/doc/SDM/RoleAttachments.html +0 -354
  153. data/doc/SDM/RoleCreateResponse.html +0 -219
  154. data/doc/SDM/RoleDeleteResponse.html +0 -204
  155. data/doc/SDM/RoleGetResponse.html +0 -219
  156. data/doc/SDM/RoleGrant.html +0 -219
  157. data/doc/SDM/RoleGrantCreateResponse.html +0 -219
  158. data/doc/SDM/RoleGrantDeleteResponse.html +0 -204
  159. data/doc/SDM/RoleGrantGetResponse.html +0 -219
  160. data/doc/SDM/RoleGrants.html +0 -354
  161. data/doc/SDM/RoleUpdateResponse.html +0 -219
  162. data/doc/SDM/Roles.html +0 -403
  163. data/doc/SDM/SQLServer.html +0 -382
  164. data/doc/SDM/SSH.html +0 -352
  165. data/doc/SDM/SSHCert.html +0 -337
  166. data/doc/SDM/SSHCustomerKey.html +0 -352
  167. data/doc/SDM/SecretStoreCreateResponse.html +0 -219
  168. data/doc/SDM/SecretStoreDeleteResponse.html +0 -204
  169. data/doc/SDM/SecretStoreGetResponse.html +0 -219
  170. data/doc/SDM/SecretStoreUpdateResponse.html +0 -219
  171. data/doc/SDM/SecretStores.html +0 -403
  172. data/doc/SDM/Service.html +0 -234
  173. data/doc/SDM/SingleStore.html +0 -352
  174. data/doc/SDM/Snowflake.html +0 -352
  175. data/doc/SDM/Sybase.html +0 -337
  176. data/doc/SDM/SybaseIQ.html +0 -337
  177. data/doc/SDM/Tag.html +0 -202
  178. data/doc/SDM/Teradata.html +0 -337
  179. data/doc/SDM/UpdateResponseMetadata.html +0 -169
  180. data/doc/SDM/User.html +0 -264
  181. data/doc/SDM/VaultTLSStore.html +0 -292
  182. data/doc/SDM/VaultTokenStore.html +0 -247
  183. data/doc/SDM.html +0 -122
  184. data/doc/V1/AccountAttachments/Service.html +0 -107
  185. data/doc/V1/AccountAttachments.html +0 -100
  186. data/doc/V1/AccountGrants/Service.html +0 -107
  187. data/doc/V1/AccountGrants.html +0 -100
  188. data/doc/V1/Accounts/Service.html +0 -112
  189. data/doc/V1/Accounts.html +0 -100
  190. data/doc/V1/ControlPanel/Service.html +0 -107
  191. data/doc/V1/ControlPanel.html +0 -100
  192. data/doc/V1/Nodes/Service.html +0 -112
  193. data/doc/V1/Nodes.html +0 -100
  194. data/doc/V1/Resources/Service.html +0 -105
  195. data/doc/V1/Resources.html +0 -100
  196. data/doc/V1/RoleAttachments/Service.html +0 -107
  197. data/doc/V1/RoleAttachments.html +0 -100
  198. data/doc/V1/RoleGrants/Service.html +0 -107
  199. data/doc/V1/RoleGrants.html +0 -100
  200. data/doc/V1/Roles/Service.html +0 -107
  201. data/doc/V1/Roles.html +0 -100
  202. data/doc/V1/SecretStores/Service.html +0 -107
  203. data/doc/V1/SecretStores.html +0 -100
  204. data/doc/V1/Tags.html +0 -100
  205. data/doc/V1.html +0 -506
  206. data/doc/created.rid +0 -37
  207. data/doc/css/fonts.css +0 -167
  208. data/doc/css/rdoc.css +0 -639
  209. data/doc/examples/Gemfile.html +0 -89
  210. data/doc/fonts/Lato-Light.ttf +0 -0
  211. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  212. data/doc/fonts/Lato-Regular.ttf +0 -0
  213. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  214. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  215. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  216. data/doc/images/add.png +0 -0
  217. data/doc/images/arrow_up.png +0 -0
  218. data/doc/images/brick.png +0 -0
  219. data/doc/images/brick_link.png +0 -0
  220. data/doc/images/bug.png +0 -0
  221. data/doc/images/bullet_black.png +0 -0
  222. data/doc/images/bullet_toggle_minus.png +0 -0
  223. data/doc/images/bullet_toggle_plus.png +0 -0
  224. data/doc/images/date.png +0 -0
  225. data/doc/images/delete.png +0 -0
  226. data/doc/images/find.png +0 -0
  227. data/doc/images/loadingAnimation.gif +0 -0
  228. data/doc/images/macFFBgHack.png +0 -0
  229. data/doc/images/package.png +0 -0
  230. data/doc/images/page_green.png +0 -0
  231. data/doc/images/page_white_text.png +0 -0
  232. data/doc/images/page_white_width.png +0 -0
  233. data/doc/images/plugin.png +0 -0
  234. data/doc/images/ruby.png +0 -0
  235. data/doc/images/tag_blue.png +0 -0
  236. data/doc/images/tag_green.png +0 -0
  237. data/doc/images/transparent.png +0 -0
  238. data/doc/images/wrench.png +0 -0
  239. data/doc/images/wrench_orange.png +0 -0
  240. data/doc/images/zoom.png +0 -0
  241. data/doc/index.html +0 -257
  242. data/doc/js/darkfish.js +0 -84
  243. data/doc/js/navigation.js +0 -105
  244. data/doc/js/navigation.js.gz +0 -0
  245. data/doc/js/search.js +0 -110
  246. data/doc/js/search_index.js +0 -1
  247. data/doc/js/search_index.js.gz +0 -0
  248. data/doc/js/searcher.js +0 -229
  249. data/doc/js/searcher.js.gz +0 -0
  250. data/doc/lib/version.html +0 -92
  251. data/doc/table_of_contents.html +0 -4680
  252. data/examples/Gemfile +0 -3
  253. data/examples/listUsers.rb +0 -21
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
  #
15
15
 
16
- # This file was generated by protogen. DO NOT EDIT.
16
+ # @internal This file was generated by protogen. DO NOT EDIT.
17
17
 
18
18
  module SDM
19
19
  class AKS
@@ -55,42 +55,18 @@ module SDM
55
55
  secret_store_id: nil,
56
56
  tags: nil
57
57
  )
58
- if certificate_authority != nil
59
- @certificate_authority = certificate_authority
60
- end
61
- if client_certificate != nil
62
- @client_certificate = client_certificate
63
- end
64
- if client_key != nil
65
- @client_key = client_key
66
- end
67
- if egress_filter != nil
68
- @egress_filter = egress_filter
69
- end
70
- if healthcheck_namespace != nil
71
- @healthcheck_namespace = healthcheck_namespace
72
- end
73
- if healthy != nil
74
- @healthy = healthy
75
- end
76
- if hostname != nil
77
- @hostname = hostname
78
- end
79
- if id != nil
80
- @id = id
81
- end
82
- if name != nil
83
- @name = name
84
- end
85
- if port != nil
86
- @port = port
87
- end
88
- if secret_store_id != nil
89
- @secret_store_id = secret_store_id
90
- end
91
- if tags != nil
92
- @tags = tags
93
- end
58
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
59
+ @client_certificate = client_certificate == nil ? "" : client_certificate
60
+ @client_key = client_key == nil ? "" : client_key
61
+ @egress_filter = egress_filter == nil ? "" : egress_filter
62
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
63
+ @healthy = healthy == nil ? false : healthy
64
+ @hostname = hostname == nil ? "" : hostname
65
+ @id = id == nil ? "" : id
66
+ @name = name == nil ? "" : name
67
+ @port = port == nil ? 0 : port
68
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
69
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
94
70
  end
95
71
 
96
72
  def to_json(options = {})
@@ -139,39 +115,17 @@ module SDM
139
115
  tags: nil,
140
116
  username: nil
141
117
  )
142
- if egress_filter != nil
143
- @egress_filter = egress_filter
144
- end
145
- if healthcheck_namespace != nil
146
- @healthcheck_namespace = healthcheck_namespace
147
- end
148
- if healthy != nil
149
- @healthy = healthy
150
- end
151
- if hostname != nil
152
- @hostname = hostname
153
- end
154
- if id != nil
155
- @id = id
156
- end
157
- if name != nil
158
- @name = name
159
- end
160
- if password != nil
161
- @password = password
162
- end
163
- if port != nil
164
- @port = port
165
- end
166
- if secret_store_id != nil
167
- @secret_store_id = secret_store_id
168
- end
169
- if tags != nil
170
- @tags = tags
171
- end
172
- if username != nil
173
- @username = username
174
- end
118
+ @egress_filter = egress_filter == nil ? "" : egress_filter
119
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
120
+ @healthy = healthy == nil ? false : healthy
121
+ @hostname = hostname == nil ? "" : hostname
122
+ @id = id == nil ? "" : id
123
+ @name = name == nil ? "" : name
124
+ @password = password == nil ? "" : password
125
+ @port = port == nil ? 0 : port
126
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
127
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
128
+ @username = username == nil ? "" : username
175
129
  end
176
130
 
177
131
  def to_json(options = {})
@@ -217,36 +171,16 @@ module SDM
217
171
  tags: nil,
218
172
  token: nil
219
173
  )
220
- if egress_filter != nil
221
- @egress_filter = egress_filter
222
- end
223
- if healthcheck_namespace != nil
224
- @healthcheck_namespace = healthcheck_namespace
225
- end
226
- if healthy != nil
227
- @healthy = healthy
228
- end
229
- if hostname != nil
230
- @hostname = hostname
231
- end
232
- if id != nil
233
- @id = id
234
- end
235
- if name != nil
236
- @name = name
237
- end
238
- if port != nil
239
- @port = port
240
- end
241
- if secret_store_id != nil
242
- @secret_store_id = secret_store_id
243
- end
244
- if tags != nil
245
- @tags = tags
246
- end
247
- if token != nil
248
- @token = token
249
- end
174
+ @egress_filter = egress_filter == nil ? "" : egress_filter
175
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
176
+ @healthy = healthy == nil ? false : healthy
177
+ @hostname = hostname == nil ? "" : hostname
178
+ @id = id == nil ? "" : id
179
+ @name = name == nil ? "" : name
180
+ @port = port == nil ? 0 : port
181
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
182
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
183
+ @token = token == nil ? "" : token
250
184
  end
251
185
 
252
186
  def to_json(options = {})
@@ -292,36 +226,16 @@ module SDM
292
226
  tags: nil,
293
227
  token: nil
294
228
  )
295
- if egress_filter != nil
296
- @egress_filter = egress_filter
297
- end
298
- if healthcheck_namespace != nil
299
- @healthcheck_namespace = healthcheck_namespace
300
- end
301
- if healthy != nil
302
- @healthy = healthy
303
- end
304
- if hostname != nil
305
- @hostname = hostname
306
- end
307
- if id != nil
308
- @id = id
309
- end
310
- if name != nil
311
- @name = name
312
- end
313
- if port != nil
314
- @port = port
315
- end
316
- if secret_store_id != nil
317
- @secret_store_id = secret_store_id
318
- end
319
- if tags != nil
320
- @tags = tags
321
- end
322
- if token != nil
323
- @token = token
324
- end
229
+ @egress_filter = egress_filter == nil ? "" : egress_filter
230
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
231
+ @healthy = healthy == nil ? false : healthy
232
+ @hostname = hostname == nil ? "" : hostname
233
+ @id = id == nil ? "" : id
234
+ @name = name == nil ? "" : name
235
+ @port = port == nil ? 0 : port
236
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
237
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
238
+ @token = token == nil ? "" : token
325
239
  end
326
240
 
327
241
  def to_json(options = {})
@@ -372,42 +286,18 @@ module SDM
372
286
  secret_store_id: nil,
373
287
  tags: nil
374
288
  )
375
- if certificate_authority != nil
376
- @certificate_authority = certificate_authority
377
- end
378
- if client_certificate != nil
379
- @client_certificate = client_certificate
380
- end
381
- if client_key != nil
382
- @client_key = client_key
383
- end
384
- if egress_filter != nil
385
- @egress_filter = egress_filter
386
- end
387
- if healthcheck_namespace != nil
388
- @healthcheck_namespace = healthcheck_namespace
389
- end
390
- if healthy != nil
391
- @healthy = healthy
392
- end
393
- if hostname != nil
394
- @hostname = hostname
395
- end
396
- if id != nil
397
- @id = id
398
- end
399
- if name != nil
400
- @name = name
401
- end
402
- if port != nil
403
- @port = port
404
- end
405
- if secret_store_id != nil
406
- @secret_store_id = secret_store_id
407
- end
408
- if tags != nil
409
- @tags = tags
410
- end
289
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
290
+ @client_certificate = client_certificate == nil ? "" : client_certificate
291
+ @client_key = client_key == nil ? "" : client_key
292
+ @egress_filter = egress_filter == nil ? "" : egress_filter
293
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
294
+ @healthy = healthy == nil ? false : healthy
295
+ @hostname = hostname == nil ? "" : hostname
296
+ @id = id == nil ? "" : id
297
+ @name = name == nil ? "" : name
298
+ @port = port == nil ? 0 : port
299
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
300
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
411
301
  end
412
302
 
413
303
  def to_json(options = {})
@@ -455,39 +345,17 @@ module SDM
455
345
  secret_store_id: nil,
456
346
  tags: nil
457
347
  )
458
- if access_key != nil
459
- @access_key = access_key
460
- end
461
- if egress_filter != nil
462
- @egress_filter = egress_filter
463
- end
464
- if healthcheck_region != nil
465
- @healthcheck_region = healthcheck_region
466
- end
467
- if healthy != nil
468
- @healthy = healthy
469
- end
470
- if id != nil
471
- @id = id
472
- end
473
- if name != nil
474
- @name = name
475
- end
476
- if role_arn != nil
477
- @role_arn = role_arn
478
- end
479
- if role_external_id != nil
480
- @role_external_id = role_external_id
481
- end
482
- if secret_access_key != nil
483
- @secret_access_key = secret_access_key
484
- end
485
- if secret_store_id != nil
486
- @secret_store_id = secret_store_id
487
- end
488
- if tags != nil
489
- @tags = tags
490
- end
348
+ @access_key = access_key == nil ? "" : access_key
349
+ @egress_filter = egress_filter == nil ? "" : egress_filter
350
+ @healthcheck_region = healthcheck_region == nil ? "" : healthcheck_region
351
+ @healthy = healthy == nil ? false : healthy
352
+ @id = id == nil ? "" : id
353
+ @name = name == nil ? "" : name
354
+ @role_arn = role_arn == nil ? "" : role_arn
355
+ @role_external_id = role_external_id == nil ? "" : role_external_id
356
+ @secret_access_key = secret_access_key == nil ? "" : secret_access_key
357
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
358
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
491
359
  end
492
360
 
493
361
  def to_json(options = {})
@@ -515,18 +383,10 @@ module SDM
515
383
  region: nil,
516
384
  tags: nil
517
385
  )
518
- if id != nil
519
- @id = id
520
- end
521
- if name != nil
522
- @name = name
523
- end
524
- if region != nil
525
- @region = region
526
- end
527
- if tags != nil
528
- @tags = tags
529
- end
386
+ @id = id == nil ? "" : id
387
+ @name = name == nil ? "" : name
388
+ @region = region == nil ? "" : region
389
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
530
390
  end
531
391
 
532
392
  def to_json(options = {})
@@ -538,7 +398,7 @@ module SDM
538
398
  end
539
399
  end
540
400
 
541
- # AccountAttachments assign an account to a role or composite role.
401
+ # AccountAttachments assign an account to a role.
542
402
  class AccountAttachment
543
403
  # The id of the account of this AccountAttachment.
544
404
  attr_accessor :account_id
@@ -552,15 +412,9 @@ module SDM
552
412
  id: nil,
553
413
  role_id: nil
554
414
  )
555
- if account_id != nil
556
- @account_id = account_id
557
- end
558
- if id != nil
559
- @id = id
560
- end
561
- if role_id != nil
562
- @role_id = role_id
563
- end
415
+ @account_id = account_id == nil ? "" : account_id
416
+ @id = id == nil ? "" : id
417
+ @role_id = role_id == nil ? "" : role_id
564
418
  end
565
419
 
566
420
  def to_json(options = {})
@@ -586,15 +440,9 @@ module SDM
586
440
  meta: nil,
587
441
  rate_limit: nil
588
442
  )
589
- if account_attachment != nil
590
- @account_attachment = account_attachment
591
- end
592
- if meta != nil
593
- @meta = meta
594
- end
595
- if rate_limit != nil
596
- @rate_limit = rate_limit
597
- end
443
+ @account_attachment = account_attachment == nil ? nil : account_attachment
444
+ @meta = meta == nil ? nil : meta
445
+ @rate_limit = rate_limit == nil ? nil : rate_limit
598
446
  end
599
447
 
600
448
  def to_json(options = {})
@@ -617,12 +465,8 @@ module SDM
617
465
  meta: nil,
618
466
  rate_limit: nil
619
467
  )
620
- if meta != nil
621
- @meta = meta
622
- end
623
- if rate_limit != nil
624
- @rate_limit = rate_limit
625
- end
468
+ @meta = meta == nil ? nil : meta
469
+ @rate_limit = rate_limit == nil ? nil : rate_limit
626
470
  end
627
471
 
628
472
  def to_json(options = {})
@@ -648,15 +492,9 @@ module SDM
648
492
  meta: nil,
649
493
  rate_limit: nil
650
494
  )
651
- if account_attachment != nil
652
- @account_attachment = account_attachment
653
- end
654
- if meta != nil
655
- @meta = meta
656
- end
657
- if rate_limit != nil
658
- @rate_limit = rate_limit
659
- end
495
+ @account_attachment = account_attachment == nil ? nil : account_attachment
496
+ @meta = meta == nil ? nil : meta
497
+ @rate_limit = rate_limit == nil ? nil : rate_limit
660
498
  end
661
499
 
662
500
  def to_json(options = {})
@@ -686,18 +524,10 @@ module SDM
686
524
  rate_limit: nil,
687
525
  token: nil
688
526
  )
689
- if account != nil
690
- @account = account
691
- end
692
- if meta != nil
693
- @meta = meta
694
- end
695
- if rate_limit != nil
696
- @rate_limit = rate_limit
697
- end
698
- if token != nil
699
- @token = token
700
- end
527
+ @account = account == nil ? nil : account
528
+ @meta = meta == nil ? nil : meta
529
+ @rate_limit = rate_limit == nil ? nil : rate_limit
530
+ @token = token == nil ? "" : token
701
531
  end
702
532
 
703
533
  def to_json(options = {})
@@ -720,12 +550,8 @@ module SDM
720
550
  meta: nil,
721
551
  rate_limit: nil
722
552
  )
723
- if meta != nil
724
- @meta = meta
725
- end
726
- if rate_limit != nil
727
- @rate_limit = rate_limit
728
- end
553
+ @meta = meta == nil ? nil : meta
554
+ @rate_limit = rate_limit == nil ? nil : rate_limit
729
555
  end
730
556
 
731
557
  def to_json(options = {})
@@ -751,15 +577,9 @@ module SDM
751
577
  meta: nil,
752
578
  rate_limit: nil
753
579
  )
754
- if account != nil
755
- @account = account
756
- end
757
- if meta != nil
758
- @meta = meta
759
- end
760
- if rate_limit != nil
761
- @rate_limit = rate_limit
762
- end
580
+ @account = account == nil ? nil : account
581
+ @meta = meta == nil ? nil : meta
582
+ @rate_limit = rate_limit == nil ? nil : rate_limit
763
583
  end
764
584
 
765
585
  def to_json(options = {})
@@ -793,21 +613,11 @@ module SDM
793
613
  start_from: nil,
794
614
  valid_until: nil
795
615
  )
796
- if account_id != nil
797
- @account_id = account_id
798
- end
799
- if id != nil
800
- @id = id
801
- end
802
- if resource_id != nil
803
- @resource_id = resource_id
804
- end
805
- if start_from != nil
806
- @start_from = start_from
807
- end
808
- if valid_until != nil
809
- @valid_until = valid_until
810
- end
616
+ @account_id = account_id == nil ? "" : account_id
617
+ @id = id == nil ? "" : id
618
+ @resource_id = resource_id == nil ? "" : resource_id
619
+ @start_from = start_from == nil ? nil : start_from
620
+ @valid_until = valid_until == nil ? nil : valid_until
811
621
  end
812
622
 
813
623
  def to_json(options = {})
@@ -833,15 +643,9 @@ module SDM
833
643
  meta: nil,
834
644
  rate_limit: nil
835
645
  )
836
- if account_grant != nil
837
- @account_grant = account_grant
838
- end
839
- if meta != nil
840
- @meta = meta
841
- end
842
- if rate_limit != nil
843
- @rate_limit = rate_limit
844
- end
646
+ @account_grant = account_grant == nil ? nil : account_grant
647
+ @meta = meta == nil ? nil : meta
648
+ @rate_limit = rate_limit == nil ? nil : rate_limit
845
649
  end
846
650
 
847
651
  def to_json(options = {})
@@ -864,12 +668,8 @@ module SDM
864
668
  meta: nil,
865
669
  rate_limit: nil
866
670
  )
867
- if meta != nil
868
- @meta = meta
869
- end
870
- if rate_limit != nil
871
- @rate_limit = rate_limit
872
- end
671
+ @meta = meta == nil ? nil : meta
672
+ @rate_limit = rate_limit == nil ? nil : rate_limit
873
673
  end
874
674
 
875
675
  def to_json(options = {})
@@ -895,15 +695,9 @@ module SDM
895
695
  meta: nil,
896
696
  rate_limit: nil
897
697
  )
898
- if account_grant != nil
899
- @account_grant = account_grant
900
- end
901
- if meta != nil
902
- @meta = meta
903
- end
904
- if rate_limit != nil
905
- @rate_limit = rate_limit
906
- end
698
+ @account_grant = account_grant == nil ? nil : account_grant
699
+ @meta = meta == nil ? nil : meta
700
+ @rate_limit = rate_limit == nil ? nil : rate_limit
907
701
  end
908
702
 
909
703
  def to_json(options = {})
@@ -930,15 +724,9 @@ module SDM
930
724
  meta: nil,
931
725
  rate_limit: nil
932
726
  )
933
- if account != nil
934
- @account = account
935
- end
936
- if meta != nil
937
- @meta = meta
938
- end
939
- if rate_limit != nil
940
- @rate_limit = rate_limit
941
- end
727
+ @account = account == nil ? nil : account
728
+ @meta = meta == nil ? nil : meta
729
+ @rate_limit = rate_limit == nil ? nil : rate_limit
942
730
  end
943
731
 
944
732
  def to_json(options = {})
@@ -998,51 +786,21 @@ module SDM
998
786
  secret_store_id: nil,
999
787
  tags: nil
1000
788
  )
1001
- if access_key != nil
1002
- @access_key = access_key
1003
- end
1004
- if certificate_authority != nil
1005
- @certificate_authority = certificate_authority
1006
- end
1007
- if cluster_name != nil
1008
- @cluster_name = cluster_name
1009
- end
1010
- if egress_filter != nil
1011
- @egress_filter = egress_filter
1012
- end
1013
- if endpoint != nil
1014
- @endpoint = endpoint
1015
- end
1016
- if healthcheck_namespace != nil
1017
- @healthcheck_namespace = healthcheck_namespace
1018
- end
1019
- if healthy != nil
1020
- @healthy = healthy
1021
- end
1022
- if id != nil
1023
- @id = id
1024
- end
1025
- if name != nil
1026
- @name = name
1027
- end
1028
- if region != nil
1029
- @region = region
1030
- end
1031
- if role_arn != nil
1032
- @role_arn = role_arn
1033
- end
1034
- if role_external_id != nil
1035
- @role_external_id = role_external_id
1036
- end
1037
- if secret_access_key != nil
1038
- @secret_access_key = secret_access_key
1039
- end
1040
- if secret_store_id != nil
1041
- @secret_store_id = secret_store_id
1042
- end
1043
- if tags != nil
1044
- @tags = tags
1045
- end
789
+ @access_key = access_key == nil ? "" : access_key
790
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
791
+ @cluster_name = cluster_name == nil ? "" : cluster_name
792
+ @egress_filter = egress_filter == nil ? "" : egress_filter
793
+ @endpoint = endpoint == nil ? "" : endpoint
794
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
795
+ @healthy = healthy == nil ? false : healthy
796
+ @id = id == nil ? "" : id
797
+ @name = name == nil ? "" : name
798
+ @region = region == nil ? "" : region
799
+ @role_arn = role_arn == nil ? "" : role_arn
800
+ @role_external_id = role_external_id == nil ? "" : role_external_id
801
+ @secret_access_key = secret_access_key == nil ? "" : secret_access_key
802
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
803
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1046
804
  end
1047
805
 
1048
806
  def to_json(options = {})
@@ -1102,51 +860,21 @@ module SDM
1102
860
  secret_store_id: nil,
1103
861
  tags: nil
1104
862
  )
1105
- if access_key != nil
1106
- @access_key = access_key
1107
- end
1108
- if certificate_authority != nil
1109
- @certificate_authority = certificate_authority
1110
- end
1111
- if cluster_name != nil
1112
- @cluster_name = cluster_name
1113
- end
1114
- if egress_filter != nil
1115
- @egress_filter = egress_filter
1116
- end
1117
- if endpoint != nil
1118
- @endpoint = endpoint
1119
- end
1120
- if healthcheck_namespace != nil
1121
- @healthcheck_namespace = healthcheck_namespace
1122
- end
1123
- if healthy != nil
1124
- @healthy = healthy
1125
- end
1126
- if id != nil
1127
- @id = id
1128
- end
1129
- if name != nil
1130
- @name = name
1131
- end
1132
- if region != nil
1133
- @region = region
1134
- end
1135
- if role_arn != nil
1136
- @role_arn = role_arn
1137
- end
1138
- if role_external_id != nil
1139
- @role_external_id = role_external_id
1140
- end
1141
- if secret_access_key != nil
1142
- @secret_access_key = secret_access_key
1143
- end
1144
- if secret_store_id != nil
1145
- @secret_store_id = secret_store_id
1146
- end
1147
- if tags != nil
1148
- @tags = tags
1149
- end
863
+ @access_key = access_key == nil ? "" : access_key
864
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
865
+ @cluster_name = cluster_name == nil ? "" : cluster_name
866
+ @egress_filter = egress_filter == nil ? "" : egress_filter
867
+ @endpoint = endpoint == nil ? "" : endpoint
868
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
869
+ @healthy = healthy == nil ? false : healthy
870
+ @id = id == nil ? "" : id
871
+ @name = name == nil ? "" : name
872
+ @region = region == nil ? "" : region
873
+ @role_arn = role_arn == nil ? "" : role_arn
874
+ @role_external_id = role_external_id == nil ? "" : role_external_id
875
+ @secret_access_key = secret_access_key == nil ? "" : secret_access_key
876
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
877
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1150
878
  end
1151
879
 
1152
880
  def to_json(options = {})
@@ -1200,45 +928,19 @@ module SDM
1200
928
  secret_store_id: nil,
1201
929
  tags: nil
1202
930
  )
1203
- if access_key != nil
1204
- @access_key = access_key
1205
- end
1206
- if egress_filter != nil
1207
- @egress_filter = egress_filter
1208
- end
1209
- if endpoint != nil
1210
- @endpoint = endpoint
1211
- end
1212
- if healthy != nil
1213
- @healthy = healthy
1214
- end
1215
- if id != nil
1216
- @id = id
1217
- end
1218
- if name != nil
1219
- @name = name
1220
- end
1221
- if port_override != nil
1222
- @port_override = port_override
1223
- end
1224
- if region != nil
1225
- @region = region
1226
- end
1227
- if role_arn != nil
1228
- @role_arn = role_arn
1229
- end
1230
- if role_external_id != nil
1231
- @role_external_id = role_external_id
1232
- end
1233
- if secret_access_key != nil
1234
- @secret_access_key = secret_access_key
1235
- end
1236
- if secret_store_id != nil
1237
- @secret_store_id = secret_store_id
1238
- end
1239
- if tags != nil
1240
- @tags = tags
1241
- end
931
+ @access_key = access_key == nil ? "" : access_key
932
+ @egress_filter = egress_filter == nil ? "" : egress_filter
933
+ @endpoint = endpoint == nil ? "" : endpoint
934
+ @healthy = healthy == nil ? false : healthy
935
+ @id = id == nil ? "" : id
936
+ @name = name == nil ? "" : name
937
+ @port_override = port_override == nil ? 0 : port_override
938
+ @region = region == nil ? "" : region
939
+ @role_arn = role_arn == nil ? "" : role_arn
940
+ @role_external_id = role_external_id == nil ? "" : role_external_id
941
+ @secret_access_key = secret_access_key == nil ? "" : secret_access_key
942
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
943
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1242
944
  end
1243
945
 
1244
946
  def to_json(options = {})
@@ -1290,42 +992,18 @@ module SDM
1290
992
  tls_required: nil,
1291
993
  username: nil
1292
994
  )
1293
- if egress_filter != nil
1294
- @egress_filter = egress_filter
1295
- end
1296
- if healthy != nil
1297
- @healthy = healthy
1298
- end
1299
- if hostname != nil
1300
- @hostname = hostname
1301
- end
1302
- if id != nil
1303
- @id = id
1304
- end
1305
- if name != nil
1306
- @name = name
1307
- end
1308
- if password != nil
1309
- @password = password
1310
- end
1311
- if port != nil
1312
- @port = port
1313
- end
1314
- if port_override != nil
1315
- @port_override = port_override
1316
- end
1317
- if secret_store_id != nil
1318
- @secret_store_id = secret_store_id
1319
- end
1320
- if tags != nil
1321
- @tags = tags
1322
- end
1323
- if tls_required != nil
1324
- @tls_required = tls_required
1325
- end
1326
- if username != nil
1327
- @username = username
1328
- end
995
+ @egress_filter = egress_filter == nil ? "" : egress_filter
996
+ @healthy = healthy == nil ? false : healthy
997
+ @hostname = hostname == nil ? "" : hostname
998
+ @id = id == nil ? "" : id
999
+ @name = name == nil ? "" : name
1000
+ @password = password == nil ? "" : password
1001
+ @port = port == nil ? 0 : port
1002
+ @port_override = port_override == nil ? 0 : port_override
1003
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1004
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1005
+ @tls_required = tls_required == nil ? false : tls_required
1006
+ @username = username == nil ? "" : username
1329
1007
  end
1330
1008
 
1331
1009
  def to_json(options = {})
@@ -1379,45 +1057,19 @@ module SDM
1379
1057
  secret_store_id: nil,
1380
1058
  tags: nil
1381
1059
  )
1382
- if access_key != nil
1383
- @access_key = access_key
1384
- end
1385
- if egress_filter != nil
1386
- @egress_filter = egress_filter
1387
- end
1388
- if healthy != nil
1389
- @healthy = healthy
1390
- end
1391
- if id != nil
1392
- @id = id
1393
- end
1394
- if name != nil
1395
- @name = name
1396
- end
1397
- if output != nil
1398
- @output = output
1399
- end
1400
- if port_override != nil
1401
- @port_override = port_override
1402
- end
1403
- if region != nil
1404
- @region = region
1405
- end
1406
- if role_arn != nil
1407
- @role_arn = role_arn
1408
- end
1409
- if role_external_id != nil
1410
- @role_external_id = role_external_id
1411
- end
1412
- if secret_access_key != nil
1413
- @secret_access_key = secret_access_key
1414
- end
1415
- if secret_store_id != nil
1416
- @secret_store_id = secret_store_id
1417
- end
1418
- if tags != nil
1419
- @tags = tags
1420
- end
1060
+ @access_key = access_key == nil ? "" : access_key
1061
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1062
+ @healthy = healthy == nil ? false : healthy
1063
+ @id = id == nil ? "" : id
1064
+ @name = name == nil ? "" : name
1065
+ @output = output == nil ? "" : output
1066
+ @port_override = port_override == nil ? 0 : port_override
1067
+ @region = region == nil ? "" : region
1068
+ @role_arn = role_arn == nil ? "" : role_arn
1069
+ @role_external_id = role_external_id == nil ? "" : role_external_id
1070
+ @secret_access_key = secret_access_key == nil ? "" : secret_access_key
1071
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1072
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1421
1073
  end
1422
1074
 
1423
1075
  def to_json(options = {})
@@ -1468,42 +1120,18 @@ module SDM
1468
1120
  tags: nil,
1469
1121
  username: nil
1470
1122
  )
1471
- if database != nil
1472
- @database = database
1473
- end
1474
- if egress_filter != nil
1475
- @egress_filter = egress_filter
1476
- end
1477
- if healthy != nil
1478
- @healthy = healthy
1479
- end
1480
- if hostname != nil
1481
- @hostname = hostname
1482
- end
1483
- if id != nil
1484
- @id = id
1485
- end
1486
- if name != nil
1487
- @name = name
1488
- end
1489
- if password != nil
1490
- @password = password
1491
- end
1492
- if port != nil
1493
- @port = port
1494
- end
1495
- if port_override != nil
1496
- @port_override = port_override
1497
- end
1498
- if secret_store_id != nil
1499
- @secret_store_id = secret_store_id
1500
- end
1501
- if tags != nil
1502
- @tags = tags
1503
- end
1504
- if username != nil
1505
- @username = username
1506
- end
1123
+ @database = database == nil ? "" : database
1124
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1125
+ @healthy = healthy == nil ? false : healthy
1126
+ @hostname = hostname == nil ? "" : hostname
1127
+ @id = id == nil ? "" : id
1128
+ @name = name == nil ? "" : name
1129
+ @password = password == nil ? "" : password
1130
+ @port = port == nil ? 0 : port
1131
+ @port_override = port_override == nil ? 0 : port_override
1132
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1133
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1134
+ @username = username == nil ? "" : username
1507
1135
  end
1508
1136
 
1509
1137
  def to_json(options = {})
@@ -1557,45 +1185,19 @@ module SDM
1557
1185
  tags: nil,
1558
1186
  username: nil
1559
1187
  )
1560
- if database != nil
1561
- @database = database
1562
- end
1563
- if egress_filter != nil
1564
- @egress_filter = egress_filter
1565
- end
1566
- if healthy != nil
1567
- @healthy = healthy
1568
- end
1569
- if hostname != nil
1570
- @hostname = hostname
1571
- end
1572
- if id != nil
1573
- @id = id
1574
- end
1575
- if name != nil
1576
- @name = name
1577
- end
1578
- if override_database != nil
1579
- @override_database = override_database
1580
- end
1581
- if password != nil
1582
- @password = password
1583
- end
1584
- if port != nil
1585
- @port = port
1586
- end
1587
- if port_override != nil
1588
- @port_override = port_override
1589
- end
1590
- if secret_store_id != nil
1591
- @secret_store_id = secret_store_id
1592
- end
1593
- if tags != nil
1594
- @tags = tags
1595
- end
1596
- if username != nil
1597
- @username = username
1598
- end
1188
+ @database = database == nil ? "" : database
1189
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1190
+ @healthy = healthy == nil ? false : healthy
1191
+ @hostname = hostname == nil ? "" : hostname
1192
+ @id = id == nil ? "" : id
1193
+ @name = name == nil ? "" : name
1194
+ @override_database = override_database == nil ? false : override_database
1195
+ @password = password == nil ? "" : password
1196
+ @port = port == nil ? 0 : port
1197
+ @port_override = port_override == nil ? 0 : port_override
1198
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1199
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1200
+ @username = username == nil ? "" : username
1599
1201
  end
1600
1202
 
1601
1203
  def to_json(options = {})
@@ -1637,33 +1239,15 @@ module SDM
1637
1239
  tags: nil,
1638
1240
  tenant_id: nil
1639
1241
  )
1640
- if app_id != nil
1641
- @app_id = app_id
1642
- end
1643
- if egress_filter != nil
1644
- @egress_filter = egress_filter
1645
- end
1646
- if healthy != nil
1647
- @healthy = healthy
1648
- end
1649
- if id != nil
1650
- @id = id
1651
- end
1652
- if name != nil
1653
- @name = name
1654
- end
1655
- if password != nil
1656
- @password = password
1657
- end
1658
- if secret_store_id != nil
1659
- @secret_store_id = secret_store_id
1660
- end
1661
- if tags != nil
1662
- @tags = tags
1663
- end
1664
- if tenant_id != nil
1665
- @tenant_id = tenant_id
1666
- end
1242
+ @app_id = app_id == nil ? "" : app_id
1243
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1244
+ @healthy = healthy == nil ? false : healthy
1245
+ @id = id == nil ? "" : id
1246
+ @name = name == nil ? "" : name
1247
+ @password = password == nil ? "" : password
1248
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1249
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1250
+ @tenant_id = tenant_id == nil ? "" : tenant_id
1667
1251
  end
1668
1252
 
1669
1253
  def to_json(options = {})
@@ -1705,33 +1289,15 @@ module SDM
1705
1289
  tags: nil,
1706
1290
  tenant_id: nil
1707
1291
  )
1708
- if app_id != nil
1709
- @app_id = app_id
1710
- end
1711
- if client_certificate != nil
1712
- @client_certificate = client_certificate
1713
- end
1714
- if egress_filter != nil
1715
- @egress_filter = egress_filter
1716
- end
1717
- if healthy != nil
1718
- @healthy = healthy
1719
- end
1720
- if id != nil
1721
- @id = id
1722
- end
1723
- if name != nil
1724
- @name = name
1725
- end
1726
- if secret_store_id != nil
1727
- @secret_store_id = secret_store_id
1728
- end
1729
- if tags != nil
1730
- @tags = tags
1731
- end
1732
- if tenant_id != nil
1733
- @tenant_id = tenant_id
1734
- end
1292
+ @app_id = app_id == nil ? "" : app_id
1293
+ @client_certificate = client_certificate == nil ? "" : client_certificate
1294
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1295
+ @healthy = healthy == nil ? false : healthy
1296
+ @id = id == nil ? "" : id
1297
+ @name = name == nil ? "" : name
1298
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1299
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1300
+ @tenant_id = tenant_id == nil ? "" : tenant_id
1735
1301
  end
1736
1302
 
1737
1303
  def to_json(options = {})
@@ -1785,45 +1351,19 @@ module SDM
1785
1351
  tags: nil,
1786
1352
  username: nil
1787
1353
  )
1788
- if database != nil
1789
- @database = database
1790
- end
1791
- if egress_filter != nil
1792
- @egress_filter = egress_filter
1793
- end
1794
- if healthy != nil
1795
- @healthy = healthy
1796
- end
1797
- if hostname != nil
1798
- @hostname = hostname
1799
- end
1800
- if id != nil
1801
- @id = id
1802
- end
1803
- if name != nil
1804
- @name = name
1805
- end
1806
- if override_database != nil
1807
- @override_database = override_database
1808
- end
1809
- if password != nil
1810
- @password = password
1811
- end
1812
- if port != nil
1813
- @port = port
1814
- end
1815
- if port_override != nil
1816
- @port_override = port_override
1817
- end
1818
- if secret_store_id != nil
1819
- @secret_store_id = secret_store_id
1820
- end
1821
- if tags != nil
1822
- @tags = tags
1823
- end
1824
- if username != nil
1825
- @username = username
1826
- end
1354
+ @database = database == nil ? "" : database
1355
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1356
+ @healthy = healthy == nil ? false : healthy
1357
+ @hostname = hostname == nil ? "" : hostname
1358
+ @id = id == nil ? "" : id
1359
+ @name = name == nil ? "" : name
1360
+ @override_database = override_database == nil ? false : override_database
1361
+ @password = password == nil ? "" : password
1362
+ @port = port == nil ? 0 : port
1363
+ @port_override = port_override == nil ? 0 : port_override
1364
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1365
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1366
+ @username = username == nil ? "" : username
1827
1367
  end
1828
1368
 
1829
1369
  def to_json(options = {})
@@ -1851,18 +1391,10 @@ module SDM
1851
1391
  tags: nil,
1852
1392
  vault_uri: nil
1853
1393
  )
1854
- if id != nil
1855
- @id = id
1856
- end
1857
- if name != nil
1858
- @name = name
1859
- end
1860
- if tags != nil
1861
- @tags = tags
1862
- end
1863
- if vault_uri != nil
1864
- @vault_uri = vault_uri
1865
- end
1394
+ @id = id == nil ? "" : id
1395
+ @name = name == nil ? "" : name
1396
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1397
+ @vault_uri = vault_uri == nil ? "" : vault_uri
1866
1398
  end
1867
1399
 
1868
1400
  def to_json(options = {})
@@ -1911,39 +1443,17 @@ module SDM
1911
1443
  tags: nil,
1912
1444
  username: nil
1913
1445
  )
1914
- if egress_filter != nil
1915
- @egress_filter = egress_filter
1916
- end
1917
- if endpoint != nil
1918
- @endpoint = endpoint
1919
- end
1920
- if healthy != nil
1921
- @healthy = healthy
1922
- end
1923
- if id != nil
1924
- @id = id
1925
- end
1926
- if name != nil
1927
- @name = name
1928
- end
1929
- if port_override != nil
1930
- @port_override = port_override
1931
- end
1932
- if private_key != nil
1933
- @private_key = private_key
1934
- end
1935
- if project != nil
1936
- @project = project
1937
- end
1938
- if secret_store_id != nil
1939
- @secret_store_id = secret_store_id
1940
- end
1941
- if tags != nil
1942
- @tags = tags
1943
- end
1944
- if username != nil
1945
- @username = username
1946
- end
1446
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1447
+ @endpoint = endpoint == nil ? "" : endpoint
1448
+ @healthy = healthy == nil ? false : healthy
1449
+ @id = id == nil ? "" : id
1450
+ @name = name == nil ? "" : name
1451
+ @port_override = port_override == nil ? 0 : port_override
1452
+ @private_key = private_key == nil ? "" : private_key
1453
+ @project = project == nil ? "" : project
1454
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1455
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1456
+ @username = username == nil ? "" : username
1947
1457
  end
1948
1458
 
1949
1459
  def to_json(options = {})
@@ -1995,48 +1505,24 @@ module SDM
1995
1505
  tls_required: nil,
1996
1506
  username: nil
1997
1507
  )
1998
- if egress_filter != nil
1999
- @egress_filter = egress_filter
2000
- end
2001
- if healthy != nil
2002
- @healthy = healthy
2003
- end
2004
- if hostname != nil
2005
- @hostname = hostname
2006
- end
2007
- if id != nil
2008
- @id = id
2009
- end
2010
- if name != nil
2011
- @name = name
2012
- end
2013
- if password != nil
2014
- @password = password
2015
- end
2016
- if port != nil
2017
- @port = port
2018
- end
2019
- if port_override != nil
2020
- @port_override = port_override
2021
- end
2022
- if secret_store_id != nil
2023
- @secret_store_id = secret_store_id
2024
- end
2025
- if tags != nil
2026
- @tags = tags
2027
- end
2028
- if tls_required != nil
2029
- @tls_required = tls_required
2030
- end
2031
- if username != nil
2032
- @username = username
2033
- end
2034
- end
2035
-
2036
- def to_json(options = {})
2037
- hash = {}
2038
- self.instance_variables.each do |var|
2039
- hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
1508
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1509
+ @healthy = healthy == nil ? false : healthy
1510
+ @hostname = hostname == nil ? "" : hostname
1511
+ @id = id == nil ? "" : id
1512
+ @name = name == nil ? "" : name
1513
+ @password = password == nil ? "" : password
1514
+ @port = port == nil ? 0 : port
1515
+ @port_override = port_override == nil ? 0 : port_override
1516
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1517
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1518
+ @tls_required = tls_required == nil ? false : tls_required
1519
+ @username = username == nil ? "" : username
1520
+ end
1521
+
1522
+ def to_json(options = {})
1523
+ hash = {}
1524
+ self.instance_variables.each do |var|
1525
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
2040
1526
  end
2041
1527
  hash.to_json
2042
1528
  end
@@ -2084,45 +1570,19 @@ module SDM
2084
1570
  tags: nil,
2085
1571
  username: nil
2086
1572
  )
2087
- if database != nil
2088
- @database = database
2089
- end
2090
- if egress_filter != nil
2091
- @egress_filter = egress_filter
2092
- end
2093
- if healthy != nil
2094
- @healthy = healthy
2095
- end
2096
- if hostname != nil
2097
- @hostname = hostname
2098
- end
2099
- if id != nil
2100
- @id = id
2101
- end
2102
- if name != nil
2103
- @name = name
2104
- end
2105
- if override_database != nil
2106
- @override_database = override_database
2107
- end
2108
- if password != nil
2109
- @password = password
2110
- end
2111
- if port != nil
2112
- @port = port
2113
- end
2114
- if port_override != nil
2115
- @port_override = port_override
2116
- end
2117
- if secret_store_id != nil
2118
- @secret_store_id = secret_store_id
2119
- end
2120
- if tags != nil
2121
- @tags = tags
2122
- end
2123
- if username != nil
2124
- @username = username
2125
- end
1573
+ @database = database == nil ? "" : database
1574
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1575
+ @healthy = healthy == nil ? false : healthy
1576
+ @hostname = hostname == nil ? "" : hostname
1577
+ @id = id == nil ? "" : id
1578
+ @name = name == nil ? "" : name
1579
+ @override_database = override_database == nil ? false : override_database
1580
+ @password = password == nil ? "" : password
1581
+ @port = port == nil ? 0 : port
1582
+ @port_override = port_override == nil ? 0 : port_override
1583
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1584
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1585
+ @username = username == nil ? "" : username
2126
1586
  end
2127
1587
 
2128
1588
  def to_json(options = {})
@@ -2173,42 +1633,18 @@ module SDM
2173
1633
  tags: nil,
2174
1634
  username: nil
2175
1635
  )
2176
- if database != nil
2177
- @database = database
2178
- end
2179
- if egress_filter != nil
2180
- @egress_filter = egress_filter
2181
- end
2182
- if healthy != nil
2183
- @healthy = healthy
2184
- end
2185
- if hostname != nil
2186
- @hostname = hostname
2187
- end
2188
- if id != nil
2189
- @id = id
2190
- end
2191
- if name != nil
2192
- @name = name
2193
- end
2194
- if password != nil
2195
- @password = password
2196
- end
2197
- if port != nil
2198
- @port = port
2199
- end
2200
- if port_override != nil
2201
- @port_override = port_override
2202
- end
2203
- if secret_store_id != nil
2204
- @secret_store_id = secret_store_id
2205
- end
2206
- if tags != nil
2207
- @tags = tags
2208
- end
2209
- if username != nil
2210
- @username = username
2211
- end
1636
+ @database = database == nil ? "" : database
1637
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1638
+ @healthy = healthy == nil ? false : healthy
1639
+ @hostname = hostname == nil ? "" : hostname
1640
+ @id = id == nil ? "" : id
1641
+ @name = name == nil ? "" : name
1642
+ @password = password == nil ? "" : password
1643
+ @port = port == nil ? 0 : port
1644
+ @port_override = port_override == nil ? 0 : port_override
1645
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1646
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1647
+ @username = username == nil ? "" : username
2212
1648
  end
2213
1649
 
2214
1650
  def to_json(options = {})
@@ -2262,45 +1698,19 @@ module SDM
2262
1698
  tags: nil,
2263
1699
  username: nil
2264
1700
  )
2265
- if database != nil
2266
- @database = database
2267
- end
2268
- if egress_filter != nil
2269
- @egress_filter = egress_filter
2270
- end
2271
- if healthy != nil
2272
- @healthy = healthy
2273
- end
2274
- if hostname != nil
2275
- @hostname = hostname
2276
- end
2277
- if id != nil
2278
- @id = id
2279
- end
2280
- if name != nil
2281
- @name = name
2282
- end
2283
- if override_database != nil
2284
- @override_database = override_database
2285
- end
2286
- if password != nil
2287
- @password = password
2288
- end
2289
- if port != nil
2290
- @port = port
2291
- end
2292
- if port_override != nil
2293
- @port_override = port_override
2294
- end
2295
- if secret_store_id != nil
2296
- @secret_store_id = secret_store_id
2297
- end
2298
- if tags != nil
2299
- @tags = tags
2300
- end
2301
- if username != nil
2302
- @username = username
2303
- end
1701
+ @database = database == nil ? "" : database
1702
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1703
+ @healthy = healthy == nil ? false : healthy
1704
+ @hostname = hostname == nil ? "" : hostname
1705
+ @id = id == nil ? "" : id
1706
+ @name = name == nil ? "" : name
1707
+ @override_database = override_database == nil ? false : override_database
1708
+ @password = password == nil ? "" : password
1709
+ @port = port == nil ? 0 : port
1710
+ @port_override = port_override == nil ? 0 : port_override
1711
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1712
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1713
+ @username = username == nil ? "" : username
2304
1714
  end
2305
1715
 
2306
1716
  def to_json(options = {})
@@ -2328,15 +1738,9 @@ module SDM
2328
1738
  public_key: nil,
2329
1739
  rate_limit: nil
2330
1740
  )
2331
- if meta != nil
2332
- @meta = meta
2333
- end
2334
- if public_key != nil
2335
- @public_key = public_key
2336
- end
2337
- if rate_limit != nil
2338
- @rate_limit = rate_limit
2339
- end
1741
+ @meta = meta == nil ? nil : meta
1742
+ @public_key = public_key == nil ? "" : public_key
1743
+ @rate_limit = rate_limit == nil ? nil : rate_limit
2340
1744
  end
2341
1745
 
2342
1746
  def to_json(options = {})
@@ -2362,15 +1766,9 @@ module SDM
2362
1766
  rate_limit: nil,
2363
1767
  valid: nil
2364
1768
  )
2365
- if meta != nil
2366
- @meta = meta
2367
- end
2368
- if rate_limit != nil
2369
- @rate_limit = rate_limit
2370
- end
2371
- if valid != nil
2372
- @valid = valid
2373
- end
1769
+ @meta = meta == nil ? nil : meta
1770
+ @rate_limit = rate_limit == nil ? nil : rate_limit
1771
+ @valid = valid == nil ? false : valid
2374
1772
  end
2375
1773
 
2376
1774
  def to_json(options = {})
@@ -2436,42 +1834,18 @@ module SDM
2436
1834
  tls_required: nil,
2437
1835
  username: nil
2438
1836
  )
2439
- if egress_filter != nil
2440
- @egress_filter = egress_filter
2441
- end
2442
- if healthy != nil
2443
- @healthy = healthy
2444
- end
2445
- if hostname != nil
2446
- @hostname = hostname
2447
- end
2448
- if id != nil
2449
- @id = id
2450
- end
2451
- if name != nil
2452
- @name = name
2453
- end
2454
- if password != nil
2455
- @password = password
2456
- end
2457
- if port != nil
2458
- @port = port
2459
- end
2460
- if port_override != nil
2461
- @port_override = port_override
2462
- end
2463
- if secret_store_id != nil
2464
- @secret_store_id = secret_store_id
2465
- end
2466
- if tags != nil
2467
- @tags = tags
2468
- end
2469
- if tls_required != nil
2470
- @tls_required = tls_required
2471
- end
2472
- if username != nil
2473
- @username = username
2474
- end
1837
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1838
+ @healthy = healthy == nil ? false : healthy
1839
+ @hostname = hostname == nil ? "" : hostname
1840
+ @id = id == nil ? "" : id
1841
+ @name = name == nil ? "" : name
1842
+ @password = password == nil ? "" : password
1843
+ @port = port == nil ? 0 : port
1844
+ @port_override = port_override == nil ? 0 : port_override
1845
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1846
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1847
+ @tls_required = tls_required == nil ? false : tls_required
1848
+ @username = username == nil ? "" : username
2475
1849
  end
2476
1850
 
2477
1851
  def to_json(options = {})
@@ -2522,42 +1896,18 @@ module SDM
2522
1896
  tags: nil,
2523
1897
  username: nil
2524
1898
  )
2525
- if database != nil
2526
- @database = database
2527
- end
2528
- if egress_filter != nil
2529
- @egress_filter = egress_filter
2530
- end
2531
- if healthy != nil
2532
- @healthy = healthy
2533
- end
2534
- if hostname != nil
2535
- @hostname = hostname
2536
- end
2537
- if id != nil
2538
- @id = id
2539
- end
2540
- if name != nil
2541
- @name = name
2542
- end
2543
- if password != nil
2544
- @password = password
2545
- end
2546
- if port != nil
2547
- @port = port
2548
- end
2549
- if port_override != nil
2550
- @port_override = port_override
2551
- end
2552
- if secret_store_id != nil
2553
- @secret_store_id = secret_store_id
2554
- end
2555
- if tags != nil
2556
- @tags = tags
2557
- end
2558
- if username != nil
2559
- @username = username
2560
- end
1899
+ @database = database == nil ? "" : database
1900
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1901
+ @healthy = healthy == nil ? false : healthy
1902
+ @hostname = hostname == nil ? "" : hostname
1903
+ @id = id == nil ? "" : id
1904
+ @name = name == nil ? "" : name
1905
+ @password = password == nil ? "" : password
1906
+ @port = port == nil ? 0 : port
1907
+ @port_override = port_override == nil ? 0 : port_override
1908
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1909
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1910
+ @username = username == nil ? "" : username
2561
1911
  end
2562
1912
 
2563
1913
  def to_json(options = {})
@@ -2622,42 +1972,18 @@ module SDM
2622
1972
  tags: nil,
2623
1973
  username: nil
2624
1974
  )
2625
- if auth_database != nil
2626
- @auth_database = auth_database
2627
- end
2628
- if egress_filter != nil
2629
- @egress_filter = egress_filter
2630
- end
2631
- if healthy != nil
2632
- @healthy = healthy
2633
- end
2634
- if hostname != nil
2635
- @hostname = hostname
2636
- end
2637
- if id != nil
2638
- @id = id
2639
- end
2640
- if name != nil
2641
- @name = name
2642
- end
2643
- if password != nil
2644
- @password = password
2645
- end
2646
- if port != nil
2647
- @port = port
2648
- end
2649
- if port_override != nil
2650
- @port_override = port_override
2651
- end
2652
- if secret_store_id != nil
2653
- @secret_store_id = secret_store_id
2654
- end
2655
- if tags != nil
2656
- @tags = tags
2657
- end
2658
- if username != nil
2659
- @username = username
2660
- end
1975
+ @auth_database = auth_database == nil ? "" : auth_database
1976
+ @egress_filter = egress_filter == nil ? "" : egress_filter
1977
+ @healthy = healthy == nil ? false : healthy
1978
+ @hostname = hostname == nil ? "" : hostname
1979
+ @id = id == nil ? "" : id
1980
+ @name = name == nil ? "" : name
1981
+ @password = password == nil ? "" : password
1982
+ @port = port == nil ? 0 : port
1983
+ @port_override = port_override == nil ? 0 : port_override
1984
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
1985
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
1986
+ @username = username == nil ? "" : username
2661
1987
  end
2662
1988
 
2663
1989
  def to_json(options = {})
@@ -2711,45 +2037,19 @@ module SDM
2711
2037
  tags: nil,
2712
2038
  username: nil
2713
2039
  )
2714
- if auth_database != nil
2715
- @auth_database = auth_database
2716
- end
2717
- if connect_to_replica != nil
2718
- @connect_to_replica = connect_to_replica
2719
- end
2720
- if egress_filter != nil
2721
- @egress_filter = egress_filter
2722
- end
2723
- if healthy != nil
2724
- @healthy = healthy
2725
- end
2726
- if hostname != nil
2727
- @hostname = hostname
2728
- end
2729
- if id != nil
2730
- @id = id
2731
- end
2732
- if name != nil
2733
- @name = name
2734
- end
2735
- if password != nil
2736
- @password = password
2737
- end
2738
- if port_override != nil
2739
- @port_override = port_override
2740
- end
2741
- if replica_set != nil
2742
- @replica_set = replica_set
2743
- end
2744
- if secret_store_id != nil
2745
- @secret_store_id = secret_store_id
2746
- end
2747
- if tags != nil
2748
- @tags = tags
2749
- end
2750
- if username != nil
2751
- @username = username
2752
- end
2040
+ @auth_database = auth_database == nil ? "" : auth_database
2041
+ @connect_to_replica = connect_to_replica == nil ? false : connect_to_replica
2042
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2043
+ @healthy = healthy == nil ? false : healthy
2044
+ @hostname = hostname == nil ? "" : hostname
2045
+ @id = id == nil ? "" : id
2046
+ @name = name == nil ? "" : name
2047
+ @password = password == nil ? "" : password
2048
+ @port_override = port_override == nil ? 0 : port_override
2049
+ @replica_set = replica_set == nil ? "" : replica_set
2050
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2051
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2052
+ @username = username == nil ? "" : username
2753
2053
  end
2754
2054
 
2755
2055
  def to_json(options = {})
@@ -2798,39 +2098,17 @@ module SDM
2798
2098
  tags: nil,
2799
2099
  username: nil
2800
2100
  )
2801
- if egress_filter != nil
2802
- @egress_filter = egress_filter
2803
- end
2804
- if healthy != nil
2805
- @healthy = healthy
2806
- end
2807
- if hostname != nil
2808
- @hostname = hostname
2809
- end
2810
- if id != nil
2811
- @id = id
2812
- end
2813
- if name != nil
2814
- @name = name
2815
- end
2816
- if password != nil
2817
- @password = password
2818
- end
2819
- if port != nil
2820
- @port = port
2821
- end
2822
- if port_override != nil
2823
- @port_override = port_override
2824
- end
2825
- if secret_store_id != nil
2826
- @secret_store_id = secret_store_id
2827
- end
2828
- if tags != nil
2829
- @tags = tags
2830
- end
2831
- if username != nil
2832
- @username = username
2833
- end
2101
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2102
+ @healthy = healthy == nil ? false : healthy
2103
+ @hostname = hostname == nil ? "" : hostname
2104
+ @id = id == nil ? "" : id
2105
+ @name = name == nil ? "" : name
2106
+ @password = password == nil ? "" : password
2107
+ @port = port == nil ? 0 : port
2108
+ @port_override = port_override == nil ? 0 : port_override
2109
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2110
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2111
+ @username = username == nil ? "" : username
2834
2112
  end
2835
2113
 
2836
2114
  def to_json(options = {})
@@ -2884,45 +2162,19 @@ module SDM
2884
2162
  secret_store_id: nil,
2885
2163
  tags: nil
2886
2164
  )
2887
- if access_key != nil
2888
- @access_key = access_key
2889
- end
2890
- if egress_filter != nil
2891
- @egress_filter = egress_filter
2892
- end
2893
- if endpoint != nil
2894
- @endpoint = endpoint
2895
- end
2896
- if healthy != nil
2897
- @healthy = healthy
2898
- end
2899
- if id != nil
2900
- @id = id
2901
- end
2902
- if name != nil
2903
- @name = name
2904
- end
2905
- if port_override != nil
2906
- @port_override = port_override
2907
- end
2908
- if region != nil
2909
- @region = region
2910
- end
2911
- if role_arn != nil
2912
- @role_arn = role_arn
2913
- end
2914
- if role_external_id != nil
2915
- @role_external_id = role_external_id
2916
- end
2917
- if secret_access_key != nil
2918
- @secret_access_key = secret_access_key
2919
- end
2920
- if secret_store_id != nil
2921
- @secret_store_id = secret_store_id
2922
- end
2923
- if tags != nil
2924
- @tags = tags
2925
- end
2165
+ @access_key = access_key == nil ? "" : access_key
2166
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2167
+ @endpoint = endpoint == nil ? "" : endpoint
2168
+ @healthy = healthy == nil ? false : healthy
2169
+ @id = id == nil ? "" : id
2170
+ @name = name == nil ? "" : name
2171
+ @port_override = port_override == nil ? 0 : port_override
2172
+ @region = region == nil ? "" : region
2173
+ @role_arn = role_arn == nil ? "" : role_arn
2174
+ @role_external_id = role_external_id == nil ? "" : role_external_id
2175
+ @secret_access_key = secret_access_key == nil ? "" : secret_access_key
2176
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2177
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2926
2178
  end
2927
2179
 
2928
2180
  def to_json(options = {})
@@ -2974,42 +2226,18 @@ module SDM
2974
2226
  tls_required: nil,
2975
2227
  username: nil
2976
2228
  )
2977
- if egress_filter != nil
2978
- @egress_filter = egress_filter
2979
- end
2980
- if healthy != nil
2981
- @healthy = healthy
2982
- end
2983
- if hostname != nil
2984
- @hostname = hostname
2985
- end
2986
- if id != nil
2987
- @id = id
2988
- end
2989
- if name != nil
2990
- @name = name
2991
- end
2992
- if password != nil
2993
- @password = password
2994
- end
2995
- if port != nil
2996
- @port = port
2997
- end
2998
- if port_override != nil
2999
- @port_override = port_override
3000
- end
3001
- if secret_store_id != nil
3002
- @secret_store_id = secret_store_id
3003
- end
3004
- if tags != nil
3005
- @tags = tags
3006
- end
3007
- if tls_required != nil
3008
- @tls_required = tls_required
3009
- end
3010
- if username != nil
3011
- @username = username
3012
- end
2229
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2230
+ @healthy = healthy == nil ? false : healthy
2231
+ @hostname = hostname == nil ? "" : hostname
2232
+ @id = id == nil ? "" : id
2233
+ @name = name == nil ? "" : name
2234
+ @password = password == nil ? "" : password
2235
+ @port = port == nil ? 0 : port
2236
+ @port_override = port_override == nil ? 0 : port_override
2237
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2238
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2239
+ @tls_required = tls_required == nil ? false : tls_required
2240
+ @username = username == nil ? "" : username
3013
2241
  end
3014
2242
 
3015
2243
  def to_json(options = {})
@@ -3058,39 +2286,17 @@ module SDM
3058
2286
  tags: nil,
3059
2287
  tls_required: nil
3060
2288
  )
3061
- if egress_filter != nil
3062
- @egress_filter = egress_filter
3063
- end
3064
- if healthy != nil
3065
- @healthy = healthy
3066
- end
3067
- if hostname != nil
3068
- @hostname = hostname
3069
- end
3070
- if id != nil
3071
- @id = id
3072
- end
3073
- if name != nil
3074
- @name = name
3075
- end
3076
- if password != nil
3077
- @password = password
3078
- end
3079
- if port != nil
3080
- @port = port
3081
- end
3082
- if port_override != nil
3083
- @port_override = port_override
3084
- end
3085
- if secret_store_id != nil
3086
- @secret_store_id = secret_store_id
3087
- end
3088
- if tags != nil
3089
- @tags = tags
3090
- end
3091
- if tls_required != nil
3092
- @tls_required = tls_required
3093
- end
2289
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2290
+ @healthy = healthy == nil ? false : healthy
2291
+ @hostname = hostname == nil ? "" : hostname
2292
+ @id = id == nil ? "" : id
2293
+ @name = name == nil ? "" : name
2294
+ @password = password == nil ? "" : password
2295
+ @port = port == nil ? 0 : port
2296
+ @port_override = port_override == nil ? 0 : port_override
2297
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2298
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2299
+ @tls_required = tls_required == nil ? false : tls_required
3094
2300
  end
3095
2301
 
3096
2302
  def to_json(options = {})
@@ -3130,30 +2336,45 @@ module SDM
3130
2336
  secret_store_id: nil,
3131
2337
  tags: nil
3132
2338
  )
3133
- if egress_filter != nil
3134
- @egress_filter = egress_filter
3135
- end
3136
- if healthy != nil
3137
- @healthy = healthy
3138
- end
3139
- if id != nil
3140
- @id = id
3141
- end
3142
- if keyfile != nil
3143
- @keyfile = keyfile
3144
- end
3145
- if name != nil
3146
- @name = name
3147
- end
3148
- if scopes != nil
3149
- @scopes = scopes
3150
- end
3151
- if secret_store_id != nil
3152
- @secret_store_id = secret_store_id
3153
- end
3154
- if tags != nil
3155
- @tags = tags
2339
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2340
+ @healthy = healthy == nil ? false : healthy
2341
+ @id = id == nil ? "" : id
2342
+ @keyfile = keyfile == nil ? "" : keyfile
2343
+ @name = name == nil ? "" : name
2344
+ @scopes = scopes == nil ? "" : scopes
2345
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2346
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2347
+ end
2348
+
2349
+ def to_json(options = {})
2350
+ hash = {}
2351
+ self.instance_variables.each do |var|
2352
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
3156
2353
  end
2354
+ hash.to_json
2355
+ end
2356
+ end
2357
+
2358
+ class GCPStore
2359
+ # Unique identifier of the SecretStore.
2360
+ attr_accessor :id
2361
+ # Unique human-readable name of the SecretStore.
2362
+ attr_accessor :name
2363
+
2364
+ attr_accessor :projectid
2365
+ # Tags is a map of key, value pairs.
2366
+ attr_accessor :tags
2367
+
2368
+ def initialize(
2369
+ id: nil,
2370
+ name: nil,
2371
+ projectid: nil,
2372
+ tags: nil
2373
+ )
2374
+ @id = id == nil ? "" : id
2375
+ @name = name == nil ? "" : name
2376
+ @projectid = projectid == nil ? "" : projectid
2377
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3157
2378
  end
3158
2379
 
3159
2380
  def to_json(options = {})
@@ -3168,7 +2389,7 @@ module SDM
3168
2389
  # Gateway represents a StrongDM CLI installation running in gateway mode.
3169
2390
  class Gateway
3170
2391
  # The hostname/port tuple which the gateway daemon will bind to.
3171
- # If not provided on create, set to "0.0.0.0:<listen_address_port>".
2392
+ # If not provided on create, set to "0.0.0.0:listen_address_port".
3172
2393
  attr_accessor :bind_address
3173
2394
  # GatewayFilter can be used to restrict the peering between relays and
3174
2395
  # gateways.
@@ -3194,27 +2415,13 @@ module SDM
3194
2415
  state: nil,
3195
2416
  tags: nil
3196
2417
  )
3197
- if bind_address != nil
3198
- @bind_address = bind_address
3199
- end
3200
- if gateway_filter != nil
3201
- @gateway_filter = gateway_filter
3202
- end
3203
- if id != nil
3204
- @id = id
3205
- end
3206
- if listen_address != nil
3207
- @listen_address = listen_address
3208
- end
3209
- if name != nil
3210
- @name = name
3211
- end
3212
- if state != nil
3213
- @state = state
3214
- end
3215
- if tags != nil
3216
- @tags = tags
3217
- end
2418
+ @bind_address = bind_address == nil ? "" : bind_address
2419
+ @gateway_filter = gateway_filter == nil ? "" : gateway_filter
2420
+ @id = id == nil ? "" : id
2421
+ @listen_address = listen_address == nil ? "" : listen_address
2422
+ @name = name == nil ? "" : name
2423
+ @state = state == nil ? "" : state
2424
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3218
2425
  end
3219
2426
 
3220
2427
  def to_json(options = {})
@@ -3273,36 +2480,16 @@ module SDM
3273
2480
  service_account_key: nil,
3274
2481
  tags: nil
3275
2482
  )
3276
- if certificate_authority != nil
3277
- @certificate_authority = certificate_authority
3278
- end
3279
- if egress_filter != nil
3280
- @egress_filter = egress_filter
3281
- end
3282
- if endpoint != nil
3283
- @endpoint = endpoint
3284
- end
3285
- if healthcheck_namespace != nil
3286
- @healthcheck_namespace = healthcheck_namespace
3287
- end
3288
- if healthy != nil
3289
- @healthy = healthy
3290
- end
3291
- if id != nil
3292
- @id = id
3293
- end
3294
- if name != nil
3295
- @name = name
3296
- end
3297
- if secret_store_id != nil
3298
- @secret_store_id = secret_store_id
3299
- end
3300
- if service_account_key != nil
3301
- @service_account_key = service_account_key
3302
- end
3303
- if tags != nil
3304
- @tags = tags
3305
- end
2483
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
2484
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2485
+ @endpoint = endpoint == nil ? "" : endpoint
2486
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
2487
+ @healthy = healthy == nil ? false : healthy
2488
+ @id = id == nil ? "" : id
2489
+ @name = name == nil ? "" : name
2490
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2491
+ @service_account_key = service_account_key == nil ? "" : service_account_key
2492
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3306
2493
  end
3307
2494
 
3308
2495
  def to_json(options = {})
@@ -3347,36 +2534,16 @@ module SDM
3347
2534
  service_account_key: nil,
3348
2535
  tags: nil
3349
2536
  )
3350
- if certificate_authority != nil
3351
- @certificate_authority = certificate_authority
3352
- end
3353
- if egress_filter != nil
3354
- @egress_filter = egress_filter
3355
- end
3356
- if endpoint != nil
3357
- @endpoint = endpoint
3358
- end
3359
- if healthcheck_namespace != nil
3360
- @healthcheck_namespace = healthcheck_namespace
3361
- end
3362
- if healthy != nil
3363
- @healthy = healthy
3364
- end
3365
- if id != nil
3366
- @id = id
3367
- end
3368
- if name != nil
3369
- @name = name
3370
- end
3371
- if secret_store_id != nil
3372
- @secret_store_id = secret_store_id
3373
- end
3374
- if service_account_key != nil
3375
- @service_account_key = service_account_key
3376
- end
3377
- if tags != nil
3378
- @tags = tags
3379
- end
2537
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
2538
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2539
+ @endpoint = endpoint == nil ? "" : endpoint
2540
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
2541
+ @healthy = healthy == nil ? false : healthy
2542
+ @id = id == nil ? "" : id
2543
+ @name = name == nil ? "" : name
2544
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2545
+ @service_account_key = service_account_key == nil ? "" : service_account_key
2546
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3380
2547
  end
3381
2548
 
3382
2549
  def to_json(options = {})
@@ -3430,45 +2597,19 @@ module SDM
3430
2597
  tags: nil,
3431
2598
  username: nil
3432
2599
  )
3433
- if database != nil
3434
- @database = database
3435
- end
3436
- if egress_filter != nil
3437
- @egress_filter = egress_filter
3438
- end
3439
- if healthy != nil
3440
- @healthy = healthy
3441
- end
3442
- if hostname != nil
3443
- @hostname = hostname
3444
- end
3445
- if id != nil
3446
- @id = id
3447
- end
3448
- if name != nil
3449
- @name = name
3450
- end
3451
- if override_database != nil
3452
- @override_database = override_database
3453
- end
3454
- if password != nil
3455
- @password = password
3456
- end
3457
- if port != nil
3458
- @port = port
3459
- end
3460
- if port_override != nil
3461
- @port_override = port_override
3462
- end
3463
- if secret_store_id != nil
3464
- @secret_store_id = secret_store_id
3465
- end
3466
- if tags != nil
3467
- @tags = tags
3468
- end
3469
- if username != nil
3470
- @username = username
3471
- end
2600
+ @database = database == nil ? "" : database
2601
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2602
+ @healthy = healthy == nil ? false : healthy
2603
+ @hostname = hostname == nil ? "" : hostname
2604
+ @id = id == nil ? "" : id
2605
+ @name = name == nil ? "" : name
2606
+ @override_database = override_database == nil ? false : override_database
2607
+ @password = password == nil ? "" : password
2608
+ @port = port == nil ? 0 : port
2609
+ @port_override = port_override == nil ? 0 : port_override
2610
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2611
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2612
+ @username = username == nil ? "" : username
3472
2613
  end
3473
2614
 
3474
2615
  def to_json(options = {})
@@ -3519,42 +2660,18 @@ module SDM
3519
2660
  tags: nil,
3520
2661
  url: nil
3521
2662
  )
3522
- if auth_header != nil
3523
- @auth_header = auth_header
3524
- end
3525
- if default_path != nil
3526
- @default_path = default_path
3527
- end
3528
- if egress_filter != nil
3529
- @egress_filter = egress_filter
3530
- end
3531
- if headers_blacklist != nil
3532
- @headers_blacklist = headers_blacklist
3533
- end
3534
- if healthcheck_path != nil
3535
- @healthcheck_path = healthcheck_path
3536
- end
3537
- if healthy != nil
3538
- @healthy = healthy
3539
- end
3540
- if id != nil
3541
- @id = id
3542
- end
3543
- if name != nil
3544
- @name = name
3545
- end
3546
- if secret_store_id != nil
3547
- @secret_store_id = secret_store_id
3548
- end
3549
- if subdomain != nil
3550
- @subdomain = subdomain
3551
- end
3552
- if tags != nil
3553
- @tags = tags
3554
- end
3555
- if url != nil
3556
- @url = url
3557
- end
2663
+ @auth_header = auth_header == nil ? "" : auth_header
2664
+ @default_path = default_path == nil ? "" : default_path
2665
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2666
+ @headers_blacklist = headers_blacklist == nil ? "" : headers_blacklist
2667
+ @healthcheck_path = healthcheck_path == nil ? "" : healthcheck_path
2668
+ @healthy = healthy == nil ? false : healthy
2669
+ @id = id == nil ? "" : id
2670
+ @name = name == nil ? "" : name
2671
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2672
+ @subdomain = subdomain == nil ? "" : subdomain
2673
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2674
+ @url = url == nil ? "" : url
3558
2675
  end
3559
2676
 
3560
2677
  def to_json(options = {})
@@ -3608,45 +2725,19 @@ module SDM
3608
2725
  url: nil,
3609
2726
  username: nil
3610
2727
  )
3611
- if default_path != nil
3612
- @default_path = default_path
3613
- end
3614
- if egress_filter != nil
3615
- @egress_filter = egress_filter
3616
- end
3617
- if headers_blacklist != nil
3618
- @headers_blacklist = headers_blacklist
3619
- end
3620
- if healthcheck_path != nil
3621
- @healthcheck_path = healthcheck_path
3622
- end
3623
- if healthy != nil
3624
- @healthy = healthy
3625
- end
3626
- if id != nil
3627
- @id = id
3628
- end
3629
- if name != nil
3630
- @name = name
3631
- end
3632
- if password != nil
3633
- @password = password
3634
- end
3635
- if secret_store_id != nil
3636
- @secret_store_id = secret_store_id
3637
- end
3638
- if subdomain != nil
3639
- @subdomain = subdomain
3640
- end
3641
- if tags != nil
3642
- @tags = tags
3643
- end
3644
- if url != nil
3645
- @url = url
3646
- end
3647
- if username != nil
3648
- @username = username
3649
- end
2728
+ @default_path = default_path == nil ? "" : default_path
2729
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2730
+ @headers_blacklist = headers_blacklist == nil ? "" : headers_blacklist
2731
+ @healthcheck_path = healthcheck_path == nil ? "" : healthcheck_path
2732
+ @healthy = healthy == nil ? false : healthy
2733
+ @id = id == nil ? "" : id
2734
+ @name = name == nil ? "" : name
2735
+ @password = password == nil ? "" : password
2736
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2737
+ @subdomain = subdomain == nil ? "" : subdomain
2738
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2739
+ @url = url == nil ? "" : url
2740
+ @username = username == nil ? "" : username
3650
2741
  end
3651
2742
 
3652
2743
  def to_json(options = {})
@@ -3694,45 +2785,23 @@ module SDM
3694
2785
  tags: nil,
3695
2786
  url: nil
3696
2787
  )
3697
- if default_path != nil
3698
- @default_path = default_path
3699
- end
3700
- if egress_filter != nil
3701
- @egress_filter = egress_filter
3702
- end
3703
- if headers_blacklist != nil
3704
- @headers_blacklist = headers_blacklist
3705
- end
3706
- if healthcheck_path != nil
3707
- @healthcheck_path = healthcheck_path
3708
- end
3709
- if healthy != nil
3710
- @healthy = healthy
3711
- end
3712
- if id != nil
3713
- @id = id
3714
- end
3715
- if name != nil
3716
- @name = name
3717
- end
3718
- if secret_store_id != nil
3719
- @secret_store_id = secret_store_id
3720
- end
3721
- if subdomain != nil
3722
- @subdomain = subdomain
3723
- end
3724
- if tags != nil
3725
- @tags = tags
3726
- end
3727
- if url != nil
3728
- @url = url
3729
- end
3730
- end
3731
-
3732
- def to_json(options = {})
3733
- hash = {}
3734
- self.instance_variables.each do |var|
3735
- hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
2788
+ @default_path = default_path == nil ? "" : default_path
2789
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2790
+ @headers_blacklist = headers_blacklist == nil ? "" : headers_blacklist
2791
+ @healthcheck_path = healthcheck_path == nil ? "" : healthcheck_path
2792
+ @healthy = healthy == nil ? false : healthy
2793
+ @id = id == nil ? "" : id
2794
+ @name = name == nil ? "" : name
2795
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2796
+ @subdomain = subdomain == nil ? "" : subdomain
2797
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2798
+ @url = url == nil ? "" : url
2799
+ end
2800
+
2801
+ def to_json(options = {})
2802
+ hash = {}
2803
+ self.instance_variables.each do |var|
2804
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
3736
2805
  end
3737
2806
  hash.to_json
3738
2807
  end
@@ -3777,42 +2846,18 @@ module SDM
3777
2846
  secret_store_id: nil,
3778
2847
  tags: nil
3779
2848
  )
3780
- if certificate_authority != nil
3781
- @certificate_authority = certificate_authority
3782
- end
3783
- if client_certificate != nil
3784
- @client_certificate = client_certificate
3785
- end
3786
- if client_key != nil
3787
- @client_key = client_key
3788
- end
3789
- if egress_filter != nil
3790
- @egress_filter = egress_filter
3791
- end
3792
- if healthcheck_namespace != nil
3793
- @healthcheck_namespace = healthcheck_namespace
3794
- end
3795
- if healthy != nil
3796
- @healthy = healthy
3797
- end
3798
- if hostname != nil
3799
- @hostname = hostname
3800
- end
3801
- if id != nil
3802
- @id = id
3803
- end
3804
- if name != nil
3805
- @name = name
3806
- end
3807
- if port != nil
3808
- @port = port
3809
- end
3810
- if secret_store_id != nil
3811
- @secret_store_id = secret_store_id
3812
- end
3813
- if tags != nil
3814
- @tags = tags
3815
- end
2849
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
2850
+ @client_certificate = client_certificate == nil ? "" : client_certificate
2851
+ @client_key = client_key == nil ? "" : client_key
2852
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2853
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
2854
+ @healthy = healthy == nil ? false : healthy
2855
+ @hostname = hostname == nil ? "" : hostname
2856
+ @id = id == nil ? "" : id
2857
+ @name = name == nil ? "" : name
2858
+ @port = port == nil ? 0 : port
2859
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2860
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3816
2861
  end
3817
2862
 
3818
2863
  def to_json(options = {})
@@ -3861,39 +2906,17 @@ module SDM
3861
2906
  tags: nil,
3862
2907
  username: nil
3863
2908
  )
3864
- if egress_filter != nil
3865
- @egress_filter = egress_filter
3866
- end
3867
- if healthcheck_namespace != nil
3868
- @healthcheck_namespace = healthcheck_namespace
3869
- end
3870
- if healthy != nil
3871
- @healthy = healthy
3872
- end
3873
- if hostname != nil
3874
- @hostname = hostname
3875
- end
3876
- if id != nil
3877
- @id = id
3878
- end
3879
- if name != nil
3880
- @name = name
3881
- end
3882
- if password != nil
3883
- @password = password
3884
- end
3885
- if port != nil
3886
- @port = port
3887
- end
3888
- if secret_store_id != nil
3889
- @secret_store_id = secret_store_id
3890
- end
3891
- if tags != nil
3892
- @tags = tags
3893
- end
3894
- if username != nil
3895
- @username = username
3896
- end
2909
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2910
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
2911
+ @healthy = healthy == nil ? false : healthy
2912
+ @hostname = hostname == nil ? "" : hostname
2913
+ @id = id == nil ? "" : id
2914
+ @name = name == nil ? "" : name
2915
+ @password = password == nil ? "" : password
2916
+ @port = port == nil ? 0 : port
2917
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2918
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2919
+ @username = username == nil ? "" : username
3897
2920
  end
3898
2921
 
3899
2922
  def to_json(options = {})
@@ -3939,36 +2962,16 @@ module SDM
3939
2962
  tags: nil,
3940
2963
  token: nil
3941
2964
  )
3942
- if egress_filter != nil
3943
- @egress_filter = egress_filter
3944
- end
3945
- if healthcheck_namespace != nil
3946
- @healthcheck_namespace = healthcheck_namespace
3947
- end
3948
- if healthy != nil
3949
- @healthy = healthy
3950
- end
3951
- if hostname != nil
3952
- @hostname = hostname
3953
- end
3954
- if id != nil
3955
- @id = id
3956
- end
3957
- if name != nil
3958
- @name = name
3959
- end
3960
- if port != nil
3961
- @port = port
3962
- end
3963
- if secret_store_id != nil
3964
- @secret_store_id = secret_store_id
3965
- end
3966
- if tags != nil
3967
- @tags = tags
3968
- end
3969
- if token != nil
3970
- @token = token
3971
- end
2965
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2966
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
2967
+ @healthy = healthy == nil ? false : healthy
2968
+ @hostname = hostname == nil ? "" : hostname
2969
+ @id = id == nil ? "" : id
2970
+ @name = name == nil ? "" : name
2971
+ @port = port == nil ? 0 : port
2972
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2973
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2974
+ @token = token == nil ? "" : token
3972
2975
  end
3973
2976
 
3974
2977
  def to_json(options = {})
@@ -4014,36 +3017,16 @@ module SDM
4014
3017
  tags: nil,
4015
3018
  token: nil
4016
3019
  )
4017
- if egress_filter != nil
4018
- @egress_filter = egress_filter
4019
- end
4020
- if healthcheck_namespace != nil
4021
- @healthcheck_namespace = healthcheck_namespace
4022
- end
4023
- if healthy != nil
4024
- @healthy = healthy
4025
- end
4026
- if hostname != nil
4027
- @hostname = hostname
4028
- end
4029
- if id != nil
4030
- @id = id
4031
- end
4032
- if name != nil
4033
- @name = name
4034
- end
4035
- if port != nil
4036
- @port = port
4037
- end
4038
- if secret_store_id != nil
4039
- @secret_store_id = secret_store_id
4040
- end
4041
- if tags != nil
4042
- @tags = tags
4043
- end
4044
- if token != nil
4045
- @token = token
4046
- end
3020
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3021
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
3022
+ @healthy = healthy == nil ? false : healthy
3023
+ @hostname = hostname == nil ? "" : hostname
3024
+ @id = id == nil ? "" : id
3025
+ @name = name == nil ? "" : name
3026
+ @port = port == nil ? 0 : port
3027
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3028
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3029
+ @token = token == nil ? "" : token
4047
3030
  end
4048
3031
 
4049
3032
  def to_json(options = {})
@@ -4094,42 +3077,178 @@ module SDM
4094
3077
  secret_store_id: nil,
4095
3078
  tags: nil
4096
3079
  )
4097
- if certificate_authority != nil
4098
- @certificate_authority = certificate_authority
4099
- end
4100
- if client_certificate != nil
4101
- @client_certificate = client_certificate
4102
- end
4103
- if client_key != nil
4104
- @client_key = client_key
4105
- end
4106
- if egress_filter != nil
4107
- @egress_filter = egress_filter
4108
- end
4109
- if healthcheck_namespace != nil
4110
- @healthcheck_namespace = healthcheck_namespace
4111
- end
4112
- if healthy != nil
4113
- @healthy = healthy
4114
- end
4115
- if hostname != nil
4116
- @hostname = hostname
4117
- end
4118
- if id != nil
4119
- @id = id
4120
- end
4121
- if name != nil
4122
- @name = name
4123
- end
4124
- if port != nil
4125
- @port = port
4126
- end
4127
- if secret_store_id != nil
4128
- @secret_store_id = secret_store_id
3080
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
3081
+ @client_certificate = client_certificate == nil ? "" : client_certificate
3082
+ @client_key = client_key == nil ? "" : client_key
3083
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3084
+ @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
3085
+ @healthy = healthy == nil ? false : healthy
3086
+ @hostname = hostname == nil ? "" : hostname
3087
+ @id = id == nil ? "" : id
3088
+ @name = name == nil ? "" : name
3089
+ @port = port == nil ? 0 : port
3090
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3091
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3092
+ end
3093
+
3094
+ def to_json(options = {})
3095
+ hash = {}
3096
+ self.instance_variables.each do |var|
3097
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
4129
3098
  end
4130
- if tags != nil
4131
- @tags = tags
3099
+ hash.to_json
3100
+ end
3101
+ end
3102
+
3103
+ class MTLSMysql
3104
+ attr_accessor :certificate_authority
3105
+
3106
+ attr_accessor :client_certificate
3107
+
3108
+ attr_accessor :client_key
3109
+
3110
+ attr_accessor :database
3111
+ # A filter applied to the routing logic to pin datasource to nodes.
3112
+ attr_accessor :egress_filter
3113
+ # True if the datasource is reachable and the credentials are valid.
3114
+ attr_accessor :healthy
3115
+
3116
+ attr_accessor :hostname
3117
+ # Unique identifier of the Resource.
3118
+ attr_accessor :id
3119
+ # Unique human-readable name of the Resource.
3120
+ attr_accessor :name
3121
+
3122
+ attr_accessor :password
3123
+
3124
+ attr_accessor :port
3125
+
3126
+ attr_accessor :port_override
3127
+ # ID of the secret store containing credentials for this resource, if any.
3128
+ attr_accessor :secret_store_id
3129
+
3130
+ attr_accessor :server_name
3131
+ # Tags is a map of key, value pairs.
3132
+ attr_accessor :tags
3133
+
3134
+ attr_accessor :username
3135
+
3136
+ def initialize(
3137
+ certificate_authority: nil,
3138
+ client_certificate: nil,
3139
+ client_key: nil,
3140
+ database: nil,
3141
+ egress_filter: nil,
3142
+ healthy: nil,
3143
+ hostname: nil,
3144
+ id: nil,
3145
+ name: nil,
3146
+ password: nil,
3147
+ port: nil,
3148
+ port_override: nil,
3149
+ secret_store_id: nil,
3150
+ server_name: nil,
3151
+ tags: nil,
3152
+ username: nil
3153
+ )
3154
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
3155
+ @client_certificate = client_certificate == nil ? "" : client_certificate
3156
+ @client_key = client_key == nil ? "" : client_key
3157
+ @database = database == nil ? "" : database
3158
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3159
+ @healthy = healthy == nil ? false : healthy
3160
+ @hostname = hostname == nil ? "" : hostname
3161
+ @id = id == nil ? "" : id
3162
+ @name = name == nil ? "" : name
3163
+ @password = password == nil ? "" : password
3164
+ @port = port == nil ? 0 : port
3165
+ @port_override = port_override == nil ? 0 : port_override
3166
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3167
+ @server_name = server_name == nil ? "" : server_name
3168
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3169
+ @username = username == nil ? "" : username
3170
+ end
3171
+
3172
+ def to_json(options = {})
3173
+ hash = {}
3174
+ self.instance_variables.each do |var|
3175
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
4132
3176
  end
3177
+ hash.to_json
3178
+ end
3179
+ end
3180
+
3181
+ class MTLSPostgres
3182
+ attr_accessor :certificate_authority
3183
+
3184
+ attr_accessor :client_certificate
3185
+
3186
+ attr_accessor :client_key
3187
+
3188
+ attr_accessor :database
3189
+ # A filter applied to the routing logic to pin datasource to nodes.
3190
+ attr_accessor :egress_filter
3191
+ # True if the datasource is reachable and the credentials are valid.
3192
+ attr_accessor :healthy
3193
+
3194
+ attr_accessor :hostname
3195
+ # Unique identifier of the Resource.
3196
+ attr_accessor :id
3197
+ # Unique human-readable name of the Resource.
3198
+ attr_accessor :name
3199
+
3200
+ attr_accessor :override_database
3201
+
3202
+ attr_accessor :password
3203
+
3204
+ attr_accessor :port
3205
+
3206
+ attr_accessor :port_override
3207
+ # ID of the secret store containing credentials for this resource, if any.
3208
+ attr_accessor :secret_store_id
3209
+
3210
+ attr_accessor :server_name
3211
+ # Tags is a map of key, value pairs.
3212
+ attr_accessor :tags
3213
+
3214
+ attr_accessor :username
3215
+
3216
+ def initialize(
3217
+ certificate_authority: nil,
3218
+ client_certificate: nil,
3219
+ client_key: nil,
3220
+ database: nil,
3221
+ egress_filter: nil,
3222
+ healthy: nil,
3223
+ hostname: nil,
3224
+ id: nil,
3225
+ name: nil,
3226
+ override_database: nil,
3227
+ password: nil,
3228
+ port: nil,
3229
+ port_override: nil,
3230
+ secret_store_id: nil,
3231
+ server_name: nil,
3232
+ tags: nil,
3233
+ username: nil
3234
+ )
3235
+ @certificate_authority = certificate_authority == nil ? "" : certificate_authority
3236
+ @client_certificate = client_certificate == nil ? "" : client_certificate
3237
+ @client_key = client_key == nil ? "" : client_key
3238
+ @database = database == nil ? "" : database
3239
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3240
+ @healthy = healthy == nil ? false : healthy
3241
+ @hostname = hostname == nil ? "" : hostname
3242
+ @id = id == nil ? "" : id
3243
+ @name = name == nil ? "" : name
3244
+ @override_database = override_database == nil ? false : override_database
3245
+ @password = password == nil ? "" : password
3246
+ @port = port == nil ? 0 : port
3247
+ @port_override = port_override == nil ? 0 : port_override
3248
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3249
+ @server_name = server_name == nil ? "" : server_name
3250
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3251
+ @username = username == nil ? "" : username
4133
3252
  end
4134
3253
 
4135
3254
  def to_json(options = {})
@@ -4180,42 +3299,18 @@ module SDM
4180
3299
  tags: nil,
4181
3300
  username: nil
4182
3301
  )
4183
- if database != nil
4184
- @database = database
4185
- end
4186
- if egress_filter != nil
4187
- @egress_filter = egress_filter
4188
- end
4189
- if healthy != nil
4190
- @healthy = healthy
4191
- end
4192
- if hostname != nil
4193
- @hostname = hostname
4194
- end
4195
- if id != nil
4196
- @id = id
4197
- end
4198
- if name != nil
4199
- @name = name
4200
- end
4201
- if password != nil
4202
- @password = password
4203
- end
4204
- if port != nil
4205
- @port = port
4206
- end
4207
- if port_override != nil
4208
- @port_override = port_override
4209
- end
4210
- if secret_store_id != nil
4211
- @secret_store_id = secret_store_id
4212
- end
4213
- if tags != nil
4214
- @tags = tags
4215
- end
4216
- if username != nil
4217
- @username = username
4218
- end
3302
+ @database = database == nil ? "" : database
3303
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3304
+ @healthy = healthy == nil ? false : healthy
3305
+ @hostname = hostname == nil ? "" : hostname
3306
+ @id = id == nil ? "" : id
3307
+ @name = name == nil ? "" : name
3308
+ @password = password == nil ? "" : password
3309
+ @port = port == nil ? 0 : port
3310
+ @port_override = port_override == nil ? 0 : port_override
3311
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3312
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3313
+ @username = username == nil ? "" : username
4219
3314
  end
4220
3315
 
4221
3316
  def to_json(options = {})
@@ -4258,33 +3353,15 @@ module SDM
4258
3353
  secret_store_id: nil,
4259
3354
  tags: nil
4260
3355
  )
4261
- if egress_filter != nil
4262
- @egress_filter = egress_filter
4263
- end
4264
- if healthy != nil
4265
- @healthy = healthy
4266
- end
4267
- if hostname != nil
4268
- @hostname = hostname
4269
- end
4270
- if id != nil
4271
- @id = id
4272
- end
4273
- if name != nil
4274
- @name = name
4275
- end
4276
- if port != nil
4277
- @port = port
4278
- end
4279
- if port_override != nil
4280
- @port_override = port_override
4281
- end
4282
- if secret_store_id != nil
4283
- @secret_store_id = secret_store_id
4284
- end
4285
- if tags != nil
4286
- @tags = tags
4287
- end
3356
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3357
+ @healthy = healthy == nil ? false : healthy
3358
+ @hostname = hostname == nil ? "" : hostname
3359
+ @id = id == nil ? "" : id
3360
+ @name = name == nil ? "" : name
3361
+ @port = port == nil ? 0 : port
3362
+ @port_override = port_override == nil ? 0 : port_override
3363
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3364
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
4288
3365
  end
4289
3366
 
4290
3367
  def to_json(options = {})
@@ -4335,42 +3412,18 @@ module SDM
4335
3412
  tags: nil,
4336
3413
  username: nil
4337
3414
  )
4338
- if database != nil
4339
- @database = database
4340
- end
4341
- if egress_filter != nil
4342
- @egress_filter = egress_filter
4343
- end
4344
- if healthy != nil
4345
- @healthy = healthy
4346
- end
4347
- if hostname != nil
4348
- @hostname = hostname
4349
- end
4350
- if id != nil
4351
- @id = id
4352
- end
4353
- if name != nil
4354
- @name = name
4355
- end
4356
- if password != nil
4357
- @password = password
4358
- end
4359
- if port != nil
4360
- @port = port
4361
- end
4362
- if port_override != nil
4363
- @port_override = port_override
4364
- end
4365
- if secret_store_id != nil
4366
- @secret_store_id = secret_store_id
4367
- end
4368
- if tags != nil
4369
- @tags = tags
4370
- end
4371
- if username != nil
4372
- @username = username
4373
- end
3415
+ @database = database == nil ? "" : database
3416
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3417
+ @healthy = healthy == nil ? false : healthy
3418
+ @hostname = hostname == nil ? "" : hostname
3419
+ @id = id == nil ? "" : id
3420
+ @name = name == nil ? "" : name
3421
+ @password = password == nil ? "" : password
3422
+ @port = port == nil ? 0 : port
3423
+ @port_override = port_override == nil ? 0 : port_override
3424
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3425
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3426
+ @username = username == nil ? "" : username
4374
3427
  end
4375
3428
 
4376
3429
  def to_json(options = {})
@@ -4424,45 +3477,19 @@ module SDM
4424
3477
  tls_required: nil,
4425
3478
  username: nil
4426
3479
  )
4427
- if auth_database != nil
4428
- @auth_database = auth_database
4429
- end
4430
- if egress_filter != nil
4431
- @egress_filter = egress_filter
4432
- end
4433
- if healthy != nil
4434
- @healthy = healthy
4435
- end
4436
- if hostname != nil
4437
- @hostname = hostname
4438
- end
4439
- if id != nil
4440
- @id = id
4441
- end
4442
- if name != nil
4443
- @name = name
4444
- end
4445
- if password != nil
4446
- @password = password
4447
- end
4448
- if port != nil
4449
- @port = port
4450
- end
4451
- if port_override != nil
4452
- @port_override = port_override
4453
- end
4454
- if secret_store_id != nil
4455
- @secret_store_id = secret_store_id
4456
- end
4457
- if tags != nil
4458
- @tags = tags
4459
- end
4460
- if tls_required != nil
4461
- @tls_required = tls_required
4462
- end
4463
- if username != nil
4464
- @username = username
4465
- end
3480
+ @auth_database = auth_database == nil ? "" : auth_database
3481
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3482
+ @healthy = healthy == nil ? false : healthy
3483
+ @hostname = hostname == nil ? "" : hostname
3484
+ @id = id == nil ? "" : id
3485
+ @name = name == nil ? "" : name
3486
+ @password = password == nil ? "" : password
3487
+ @port = port == nil ? 0 : port
3488
+ @port_override = port_override == nil ? 0 : port_override
3489
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3490
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3491
+ @tls_required = tls_required == nil ? false : tls_required
3492
+ @username = username == nil ? "" : username
4466
3493
  end
4467
3494
 
4468
3495
  def to_json(options = {})
@@ -4519,48 +3546,20 @@ module SDM
4519
3546
  tls_required: nil,
4520
3547
  username: nil
4521
3548
  )
4522
- if auth_database != nil
4523
- @auth_database = auth_database
4524
- end
4525
- if egress_filter != nil
4526
- @egress_filter = egress_filter
4527
- end
4528
- if healthy != nil
4529
- @healthy = healthy
4530
- end
4531
- if hostname != nil
4532
- @hostname = hostname
4533
- end
4534
- if id != nil
4535
- @id = id
4536
- end
4537
- if name != nil
4538
- @name = name
4539
- end
4540
- if password != nil
4541
- @password = password
4542
- end
4543
- if port != nil
4544
- @port = port
4545
- end
4546
- if port_override != nil
4547
- @port_override = port_override
4548
- end
4549
- if replica_set != nil
4550
- @replica_set = replica_set
4551
- end
4552
- if secret_store_id != nil
4553
- @secret_store_id = secret_store_id
4554
- end
4555
- if tags != nil
4556
- @tags = tags
4557
- end
4558
- if tls_required != nil
4559
- @tls_required = tls_required
4560
- end
4561
- if username != nil
4562
- @username = username
4563
- end
3549
+ @auth_database = auth_database == nil ? "" : auth_database
3550
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3551
+ @healthy = healthy == nil ? false : healthy
3552
+ @hostname = hostname == nil ? "" : hostname
3553
+ @id = id == nil ? "" : id
3554
+ @name = name == nil ? "" : name
3555
+ @password = password == nil ? "" : password
3556
+ @port = port == nil ? 0 : port
3557
+ @port_override = port_override == nil ? 0 : port_override
3558
+ @replica_set = replica_set == nil ? "" : replica_set
3559
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3560
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3561
+ @tls_required = tls_required == nil ? false : tls_required
3562
+ @username = username == nil ? "" : username
4564
3563
  end
4565
3564
 
4566
3565
  def to_json(options = {})
@@ -4620,51 +3619,21 @@ module SDM
4620
3619
  tls_required: nil,
4621
3620
  username: nil
4622
3621
  )
4623
- if auth_database != nil
4624
- @auth_database = auth_database
4625
- end
4626
- if connect_to_replica != nil
4627
- @connect_to_replica = connect_to_replica
4628
- end
4629
- if egress_filter != nil
4630
- @egress_filter = egress_filter
4631
- end
4632
- if healthy != nil
4633
- @healthy = healthy
4634
- end
4635
- if hostname != nil
4636
- @hostname = hostname
4637
- end
4638
- if id != nil
4639
- @id = id
4640
- end
4641
- if name != nil
4642
- @name = name
4643
- end
4644
- if password != nil
4645
- @password = password
4646
- end
4647
- if port != nil
4648
- @port = port
4649
- end
4650
- if port_override != nil
4651
- @port_override = port_override
4652
- end
4653
- if replica_set != nil
4654
- @replica_set = replica_set
4655
- end
4656
- if secret_store_id != nil
4657
- @secret_store_id = secret_store_id
4658
- end
4659
- if tags != nil
4660
- @tags = tags
4661
- end
4662
- if tls_required != nil
4663
- @tls_required = tls_required
4664
- end
4665
- if username != nil
4666
- @username = username
4667
- end
3622
+ @auth_database = auth_database == nil ? "" : auth_database
3623
+ @connect_to_replica = connect_to_replica == nil ? false : connect_to_replica
3624
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3625
+ @healthy = healthy == nil ? false : healthy
3626
+ @hostname = hostname == nil ? "" : hostname
3627
+ @id = id == nil ? "" : id
3628
+ @name = name == nil ? "" : name
3629
+ @password = password == nil ? "" : password
3630
+ @port = port == nil ? 0 : port
3631
+ @port_override = port_override == nil ? 0 : port_override
3632
+ @replica_set = replica_set == nil ? "" : replica_set
3633
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3634
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3635
+ @tls_required = tls_required == nil ? false : tls_required
3636
+ @username = username == nil ? "" : username
4668
3637
  end
4669
3638
 
4670
3639
  def to_json(options = {})
@@ -4724,51 +3693,21 @@ module SDM
4724
3693
  tls_required: nil,
4725
3694
  username: nil
4726
3695
  )
4727
- if auth_database != nil
4728
- @auth_database = auth_database
4729
- end
4730
- if connect_to_replica != nil
4731
- @connect_to_replica = connect_to_replica
4732
- end
4733
- if egress_filter != nil
4734
- @egress_filter = egress_filter
4735
- end
4736
- if healthy != nil
4737
- @healthy = healthy
4738
- end
4739
- if hostname != nil
4740
- @hostname = hostname
4741
- end
4742
- if id != nil
4743
- @id = id
4744
- end
4745
- if name != nil
4746
- @name = name
4747
- end
4748
- if password != nil
4749
- @password = password
4750
- end
4751
- if port != nil
4752
- @port = port
4753
- end
4754
- if port_override != nil
4755
- @port_override = port_override
4756
- end
4757
- if replica_set != nil
4758
- @replica_set = replica_set
4759
- end
4760
- if secret_store_id != nil
4761
- @secret_store_id = secret_store_id
4762
- end
4763
- if tags != nil
4764
- @tags = tags
4765
- end
4766
- if tls_required != nil
4767
- @tls_required = tls_required
4768
- end
4769
- if username != nil
4770
- @username = username
4771
- end
3696
+ @auth_database = auth_database == nil ? "" : auth_database
3697
+ @connect_to_replica = connect_to_replica == nil ? false : connect_to_replica
3698
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3699
+ @healthy = healthy == nil ? false : healthy
3700
+ @hostname = hostname == nil ? "" : hostname
3701
+ @id = id == nil ? "" : id
3702
+ @name = name == nil ? "" : name
3703
+ @password = password == nil ? "" : password
3704
+ @port = port == nil ? 0 : port
3705
+ @port_override = port_override == nil ? 0 : port_override
3706
+ @replica_set = replica_set == nil ? "" : replica_set
3707
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3708
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3709
+ @tls_required = tls_required == nil ? false : tls_required
3710
+ @username = username == nil ? "" : username
4772
3711
  end
4773
3712
 
4774
3713
  def to_json(options = {})
@@ -4819,42 +3758,18 @@ module SDM
4819
3758
  tls_required: nil,
4820
3759
  username: nil
4821
3760
  )
4822
- if auth_database != nil
4823
- @auth_database = auth_database
4824
- end
4825
- if egress_filter != nil
4826
- @egress_filter = egress_filter
4827
- end
4828
- if healthy != nil
4829
- @healthy = healthy
4830
- end
4831
- if hostname != nil
4832
- @hostname = hostname
4833
- end
4834
- if id != nil
4835
- @id = id
4836
- end
4837
- if name != nil
4838
- @name = name
4839
- end
4840
- if password != nil
4841
- @password = password
4842
- end
4843
- if port_override != nil
4844
- @port_override = port_override
4845
- end
4846
- if secret_store_id != nil
4847
- @secret_store_id = secret_store_id
4848
- end
4849
- if tags != nil
4850
- @tags = tags
4851
- end
4852
- if tls_required != nil
4853
- @tls_required = tls_required
4854
- end
4855
- if username != nil
4856
- @username = username
4857
- end
3761
+ @auth_database = auth_database == nil ? "" : auth_database
3762
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3763
+ @healthy = healthy == nil ? false : healthy
3764
+ @hostname = hostname == nil ? "" : hostname
3765
+ @id = id == nil ? "" : id
3766
+ @name = name == nil ? "" : name
3767
+ @password = password == nil ? "" : password
3768
+ @port_override = port_override == nil ? 0 : port_override
3769
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3770
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3771
+ @tls_required = tls_required == nil ? false : tls_required
3772
+ @username = username == nil ? "" : username
4858
3773
  end
4859
3774
 
4860
3775
  def to_json(options = {})
@@ -4905,42 +3820,18 @@ module SDM
4905
3820
  tags: nil,
4906
3821
  username: nil
4907
3822
  )
4908
- if database != nil
4909
- @database = database
4910
- end
4911
- if egress_filter != nil
4912
- @egress_filter = egress_filter
4913
- end
4914
- if healthy != nil
4915
- @healthy = healthy
4916
- end
4917
- if hostname != nil
4918
- @hostname = hostname
4919
- end
4920
- if id != nil
4921
- @id = id
4922
- end
4923
- if name != nil
4924
- @name = name
4925
- end
4926
- if password != nil
4927
- @password = password
4928
- end
4929
- if port != nil
4930
- @port = port
4931
- end
4932
- if port_override != nil
4933
- @port_override = port_override
4934
- end
4935
- if secret_store_id != nil
4936
- @secret_store_id = secret_store_id
4937
- end
4938
- if tags != nil
4939
- @tags = tags
4940
- end
4941
- if username != nil
4942
- @username = username
4943
- end
3823
+ @database = database == nil ? "" : database
3824
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3825
+ @healthy = healthy == nil ? false : healthy
3826
+ @hostname = hostname == nil ? "" : hostname
3827
+ @id = id == nil ? "" : id
3828
+ @name = name == nil ? "" : name
3829
+ @password = password == nil ? "" : password
3830
+ @port = port == nil ? 0 : port
3831
+ @port_override = port_override == nil ? 0 : port_override
3832
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3833
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3834
+ @username = username == nil ? "" : username
4944
3835
  end
4945
3836
 
4946
3837
  def to_json(options = {})
@@ -4983,33 +3874,15 @@ module SDM
4983
3874
  secret_store_id: nil,
4984
3875
  tags: nil
4985
3876
  )
4986
- if egress_filter != nil
4987
- @egress_filter = egress_filter
4988
- end
4989
- if endpoint != nil
4990
- @endpoint = endpoint
4991
- end
4992
- if healthy != nil
4993
- @healthy = healthy
4994
- end
4995
- if id != nil
4996
- @id = id
4997
- end
4998
- if name != nil
4999
- @name = name
5000
- end
5001
- if port != nil
5002
- @port = port
5003
- end
5004
- if port_override != nil
5005
- @port_override = port_override
5006
- end
5007
- if secret_store_id != nil
5008
- @secret_store_id = secret_store_id
5009
- end
5010
- if tags != nil
5011
- @tags = tags
5012
- end
3877
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3878
+ @endpoint = endpoint == nil ? "" : endpoint
3879
+ @healthy = healthy == nil ? false : healthy
3880
+ @id = id == nil ? "" : id
3881
+ @name = name == nil ? "" : name
3882
+ @port = port == nil ? 0 : port
3883
+ @port_override = port_override == nil ? 0 : port_override
3884
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3885
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5013
3886
  end
5014
3887
 
5015
3888
  def to_json(options = {})
@@ -5066,48 +3939,20 @@ module SDM
5066
3939
  secret_store_id: nil,
5067
3940
  tags: nil
5068
3941
  )
5069
- if access_key != nil
5070
- @access_key = access_key
5071
- end
5072
- if egress_filter != nil
5073
- @egress_filter = egress_filter
5074
- end
5075
- if endpoint != nil
5076
- @endpoint = endpoint
5077
- end
5078
- if healthy != nil
5079
- @healthy = healthy
5080
- end
5081
- if id != nil
5082
- @id = id
5083
- end
5084
- if name != nil
5085
- @name = name
5086
- end
5087
- if port != nil
5088
- @port = port
5089
- end
5090
- if port_override != nil
5091
- @port_override = port_override
5092
- end
5093
- if region != nil
5094
- @region = region
5095
- end
5096
- if role_arn != nil
5097
- @role_arn = role_arn
5098
- end
5099
- if role_external_id != nil
5100
- @role_external_id = role_external_id
5101
- end
5102
- if secret_access_key != nil
5103
- @secret_access_key = secret_access_key
5104
- end
5105
- if secret_store_id != nil
5106
- @secret_store_id = secret_store_id
5107
- end
5108
- if tags != nil
5109
- @tags = tags
5110
- end
3942
+ @access_key = access_key == nil ? "" : access_key
3943
+ @egress_filter = egress_filter == nil ? "" : egress_filter
3944
+ @endpoint = endpoint == nil ? "" : endpoint
3945
+ @healthy = healthy == nil ? false : healthy
3946
+ @id = id == nil ? "" : id
3947
+ @name = name == nil ? "" : name
3948
+ @port = port == nil ? 0 : port
3949
+ @port_override = port_override == nil ? 0 : port_override
3950
+ @region = region == nil ? "" : region
3951
+ @role_arn = role_arn == nil ? "" : role_arn
3952
+ @role_external_id = role_external_id == nil ? "" : role_external_id
3953
+ @secret_access_key = secret_access_key == nil ? "" : secret_access_key
3954
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3955
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5111
3956
  end
5112
3957
 
5113
3958
  def to_json(options = {})
@@ -5137,18 +3982,10 @@ module SDM
5137
3982
  rate_limit: nil,
5138
3983
  token: nil
5139
3984
  )
5140
- if meta != nil
5141
- @meta = meta
5142
- end
5143
- if node != nil
5144
- @node = node
5145
- end
5146
- if rate_limit != nil
5147
- @rate_limit = rate_limit
5148
- end
5149
- if token != nil
5150
- @token = token
5151
- end
3985
+ @meta = meta == nil ? nil : meta
3986
+ @node = node == nil ? nil : node
3987
+ @rate_limit = rate_limit == nil ? nil : rate_limit
3988
+ @token = token == nil ? "" : token
5152
3989
  end
5153
3990
 
5154
3991
  def to_json(options = {})
@@ -5171,12 +4008,8 @@ module SDM
5171
4008
  meta: nil,
5172
4009
  rate_limit: nil
5173
4010
  )
5174
- if meta != nil
5175
- @meta = meta
5176
- end
5177
- if rate_limit != nil
5178
- @rate_limit = rate_limit
5179
- end
4011
+ @meta = meta == nil ? nil : meta
4012
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5180
4013
  end
5181
4014
 
5182
4015
  def to_json(options = {})
@@ -5202,15 +4035,9 @@ module SDM
5202
4035
  node: nil,
5203
4036
  rate_limit: nil
5204
4037
  )
5205
- if meta != nil
5206
- @meta = meta
5207
- end
5208
- if node != nil
5209
- @node = node
5210
- end
5211
- if rate_limit != nil
5212
- @rate_limit = rate_limit
5213
- end
4038
+ @meta = meta == nil ? nil : meta
4039
+ @node = node == nil ? nil : node
4040
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5214
4041
  end
5215
4042
 
5216
4043
  def to_json(options = {})
@@ -5237,15 +4064,9 @@ module SDM
5237
4064
  node: nil,
5238
4065
  rate_limit: nil
5239
4066
  )
5240
- if meta != nil
5241
- @meta = meta
5242
- end
5243
- if node != nil
5244
- @node = node
5245
- end
5246
- if rate_limit != nil
5247
- @rate_limit = rate_limit
5248
- end
4067
+ @meta = meta == nil ? nil : meta
4068
+ @node = node == nil ? nil : node
4069
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5249
4070
  end
5250
4071
 
5251
4072
  def to_json(options = {})
@@ -5299,45 +4120,19 @@ module SDM
5299
4120
  tls_required: nil,
5300
4121
  username: nil
5301
4122
  )
5302
- if database != nil
5303
- @database = database
5304
- end
5305
- if egress_filter != nil
5306
- @egress_filter = egress_filter
5307
- end
5308
- if healthy != nil
5309
- @healthy = healthy
5310
- end
5311
- if hostname != nil
5312
- @hostname = hostname
5313
- end
5314
- if id != nil
5315
- @id = id
5316
- end
5317
- if name != nil
5318
- @name = name
5319
- end
5320
- if password != nil
5321
- @password = password
5322
- end
5323
- if port != nil
5324
- @port = port
5325
- end
5326
- if port_override != nil
5327
- @port_override = port_override
5328
- end
5329
- if secret_store_id != nil
5330
- @secret_store_id = secret_store_id
5331
- end
5332
- if tags != nil
5333
- @tags = tags
5334
- end
5335
- if tls_required != nil
5336
- @tls_required = tls_required
5337
- end
5338
- if username != nil
5339
- @username = username
5340
- end
4123
+ @database = database == nil ? "" : database
4124
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4125
+ @healthy = healthy == nil ? false : healthy
4126
+ @hostname = hostname == nil ? "" : hostname
4127
+ @id = id == nil ? "" : id
4128
+ @name = name == nil ? "" : name
4129
+ @password = password == nil ? "" : password
4130
+ @port = port == nil ? 0 : port
4131
+ @port_override = port_override == nil ? 0 : port_override
4132
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4133
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
4134
+ @tls_required = tls_required == nil ? false : tls_required
4135
+ @username = username == nil ? "" : username
5341
4136
  end
5342
4137
 
5343
4138
  def to_json(options = {})
@@ -5391,45 +4186,19 @@ module SDM
5391
4186
  tags: nil,
5392
4187
  username: nil
5393
4188
  )
5394
- if database != nil
5395
- @database = database
5396
- end
5397
- if egress_filter != nil
5398
- @egress_filter = egress_filter
5399
- end
5400
- if healthy != nil
5401
- @healthy = healthy
5402
- end
5403
- if hostname != nil
5404
- @hostname = hostname
5405
- end
5406
- if id != nil
5407
- @id = id
5408
- end
5409
- if name != nil
5410
- @name = name
5411
- end
5412
- if override_database != nil
5413
- @override_database = override_database
5414
- end
5415
- if password != nil
5416
- @password = password
5417
- end
5418
- if port != nil
5419
- @port = port
5420
- end
5421
- if port_override != nil
5422
- @port_override = port_override
5423
- end
5424
- if secret_store_id != nil
5425
- @secret_store_id = secret_store_id
5426
- end
5427
- if tags != nil
5428
- @tags = tags
5429
- end
5430
- if username != nil
5431
- @username = username
5432
- end
4189
+ @database = database == nil ? "" : database
4190
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4191
+ @healthy = healthy == nil ? false : healthy
4192
+ @hostname = hostname == nil ? "" : hostname
4193
+ @id = id == nil ? "" : id
4194
+ @name = name == nil ? "" : name
4195
+ @override_database = override_database == nil ? false : override_database
4196
+ @password = password == nil ? "" : password
4197
+ @port = port == nil ? 0 : port
4198
+ @port_override = port_override == nil ? 0 : port_override
4199
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4200
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
4201
+ @username = username == nil ? "" : username
5433
4202
  end
5434
4203
 
5435
4204
  def to_json(options = {})
@@ -5483,45 +4252,19 @@ module SDM
5483
4252
  tls_required: nil,
5484
4253
  username: nil
5485
4254
  )
5486
- if database != nil
5487
- @database = database
5488
- end
5489
- if egress_filter != nil
5490
- @egress_filter = egress_filter
5491
- end
5492
- if healthy != nil
5493
- @healthy = healthy
5494
- end
5495
- if hostname != nil
5496
- @hostname = hostname
5497
- end
5498
- if id != nil
5499
- @id = id
5500
- end
5501
- if name != nil
5502
- @name = name
5503
- end
5504
- if password != nil
5505
- @password = password
5506
- end
5507
- if port != nil
5508
- @port = port
5509
- end
5510
- if port_override != nil
5511
- @port_override = port_override
5512
- end
5513
- if secret_store_id != nil
5514
- @secret_store_id = secret_store_id
5515
- end
5516
- if tags != nil
5517
- @tags = tags
5518
- end
5519
- if tls_required != nil
5520
- @tls_required = tls_required
5521
- end
5522
- if username != nil
5523
- @username = username
5524
- end
4255
+ @database = database == nil ? "" : database
4256
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4257
+ @healthy = healthy == nil ? false : healthy
4258
+ @hostname = hostname == nil ? "" : hostname
4259
+ @id = id == nil ? "" : id
4260
+ @name = name == nil ? "" : name
4261
+ @password = password == nil ? "" : password
4262
+ @port = port == nil ? 0 : port
4263
+ @port_override = port_override == nil ? 0 : port_override
4264
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4265
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
4266
+ @tls_required = tls_required == nil ? false : tls_required
4267
+ @username = username == nil ? "" : username
5525
4268
  end
5526
4269
 
5527
4270
  def to_json(options = {})
@@ -5572,42 +4315,18 @@ module SDM
5572
4315
  tags: nil,
5573
4316
  username: nil
5574
4317
  )
5575
- if downgrade_nla_connections != nil
5576
- @downgrade_nla_connections = downgrade_nla_connections
5577
- end
5578
- if egress_filter != nil
5579
- @egress_filter = egress_filter
5580
- end
5581
- if healthy != nil
5582
- @healthy = healthy
5583
- end
5584
- if hostname != nil
5585
- @hostname = hostname
5586
- end
5587
- if id != nil
5588
- @id = id
5589
- end
5590
- if name != nil
5591
- @name = name
5592
- end
5593
- if password != nil
5594
- @password = password
5595
- end
5596
- if port != nil
5597
- @port = port
5598
- end
5599
- if port_override != nil
5600
- @port_override = port_override
5601
- end
5602
- if secret_store_id != nil
5603
- @secret_store_id = secret_store_id
5604
- end
5605
- if tags != nil
5606
- @tags = tags
5607
- end
5608
- if username != nil
5609
- @username = username
5610
- end
4318
+ @downgrade_nla_connections = downgrade_nla_connections == nil ? false : downgrade_nla_connections
4319
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4320
+ @healthy = healthy == nil ? false : healthy
4321
+ @hostname = hostname == nil ? "" : hostname
4322
+ @id = id == nil ? "" : id
4323
+ @name = name == nil ? "" : name
4324
+ @password = password == nil ? "" : password
4325
+ @port = port == nil ? 0 : port
4326
+ @port_override = port_override == nil ? 0 : port_override
4327
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4328
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
4329
+ @username = username == nil ? "" : username
5611
4330
  end
5612
4331
 
5613
4332
  def to_json(options = {})
@@ -5659,42 +4378,18 @@ module SDM
5659
4378
  tls_required: nil,
5660
4379
  username: nil
5661
4380
  )
5662
- if egress_filter != nil
5663
- @egress_filter = egress_filter
5664
- end
5665
- if healthy != nil
5666
- @healthy = healthy
5667
- end
5668
- if hostname != nil
5669
- @hostname = hostname
5670
- end
5671
- if id != nil
5672
- @id = id
5673
- end
5674
- if name != nil
5675
- @name = name
5676
- end
5677
- if password != nil
5678
- @password = password
5679
- end
5680
- if port != nil
5681
- @port = port
5682
- end
5683
- if port_override != nil
5684
- @port_override = port_override
5685
- end
5686
- if secret_store_id != nil
5687
- @secret_store_id = secret_store_id
5688
- end
5689
- if tags != nil
5690
- @tags = tags
5691
- end
5692
- if tls_required != nil
5693
- @tls_required = tls_required
5694
- end
5695
- if username != nil
5696
- @username = username
5697
- end
4381
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4382
+ @healthy = healthy == nil ? false : healthy
4383
+ @hostname = hostname == nil ? "" : hostname
4384
+ @id = id == nil ? "" : id
4385
+ @name = name == nil ? "" : name
4386
+ @password = password == nil ? "" : password
4387
+ @port = port == nil ? 0 : port
4388
+ @port_override = port_override == nil ? 0 : port_override
4389
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4390
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
4391
+ @tls_required = tls_required == nil ? false : tls_required
4392
+ @username = username == nil ? "" : username
5698
4393
  end
5699
4394
 
5700
4395
  def to_json(options = {})
@@ -5726,18 +4421,10 @@ module SDM
5726
4421
  remaining: nil,
5727
4422
  reset_at: nil
5728
4423
  )
5729
- if bucket != nil
5730
- @bucket = bucket
5731
- end
5732
- if limit != nil
5733
- @limit = limit
5734
- end
5735
- if remaining != nil
5736
- @remaining = remaining
5737
- end
5738
- if reset_at != nil
5739
- @reset_at = reset_at
5740
- end
4424
+ @bucket = bucket == nil ? "" : bucket
4425
+ @limit = limit == nil ? 0 : limit
4426
+ @remaining = remaining == nil ? 0 : remaining
4427
+ @reset_at = reset_at == nil ? nil : reset_at
5741
4428
  end
5742
4429
 
5743
4430
  def to_json(options = {})
@@ -5773,40 +4460,22 @@ module SDM
5773
4460
  egress_filter: nil,
5774
4461
  healthy: nil,
5775
4462
  hostname: nil,
5776
- id: nil,
5777
- name: nil,
5778
- port: nil,
5779
- port_override: nil,
5780
- secret_store_id: nil,
5781
- tags: nil
5782
- )
5783
- if egress_filter != nil
5784
- @egress_filter = egress_filter
5785
- end
5786
- if healthy != nil
5787
- @healthy = healthy
5788
- end
5789
- if hostname != nil
5790
- @hostname = hostname
5791
- end
5792
- if id != nil
5793
- @id = id
5794
- end
5795
- if name != nil
5796
- @name = name
5797
- end
5798
- if port != nil
5799
- @port = port
5800
- end
5801
- if port_override != nil
5802
- @port_override = port_override
5803
- end
5804
- if secret_store_id != nil
5805
- @secret_store_id = secret_store_id
5806
- end
5807
- if tags != nil
5808
- @tags = tags
5809
- end
4463
+ id: nil,
4464
+ name: nil,
4465
+ port: nil,
4466
+ port_override: nil,
4467
+ secret_store_id: nil,
4468
+ tags: nil
4469
+ )
4470
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4471
+ @healthy = healthy == nil ? false : healthy
4472
+ @hostname = hostname == nil ? "" : hostname
4473
+ @id = id == nil ? "" : id
4474
+ @name = name == nil ? "" : name
4475
+ @port = port == nil ? 0 : port
4476
+ @port_override = port_override == nil ? 0 : port_override
4477
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4478
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5810
4479
  end
5811
4480
 
5812
4481
  def to_json(options = {})
@@ -5852,36 +4521,16 @@ module SDM
5852
4521
  secret_store_id: nil,
5853
4522
  tags: nil
5854
4523
  )
5855
- if egress_filter != nil
5856
- @egress_filter = egress_filter
5857
- end
5858
- if healthy != nil
5859
- @healthy = healthy
5860
- end
5861
- if hostname != nil
5862
- @hostname = hostname
5863
- end
5864
- if id != nil
5865
- @id = id
5866
- end
5867
- if name != nil
5868
- @name = name
5869
- end
5870
- if password != nil
5871
- @password = password
5872
- end
5873
- if port != nil
5874
- @port = port
5875
- end
5876
- if port_override != nil
5877
- @port_override = port_override
5878
- end
5879
- if secret_store_id != nil
5880
- @secret_store_id = secret_store_id
5881
- end
5882
- if tags != nil
5883
- @tags = tags
5884
- end
4524
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4525
+ @healthy = healthy == nil ? false : healthy
4526
+ @hostname = hostname == nil ? "" : hostname
4527
+ @id = id == nil ? "" : id
4528
+ @name = name == nil ? "" : name
4529
+ @password = password == nil ? "" : password
4530
+ @port = port == nil ? 0 : port
4531
+ @port_override = port_override == nil ? 0 : port_override
4532
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4533
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5885
4534
  end
5886
4535
 
5887
4536
  def to_json(options = {})
@@ -5935,45 +4584,19 @@ module SDM
5935
4584
  tags: nil,
5936
4585
  username: nil
5937
4586
  )
5938
- if database != nil
5939
- @database = database
5940
- end
5941
- if egress_filter != nil
5942
- @egress_filter = egress_filter
5943
- end
5944
- if healthy != nil
5945
- @healthy = healthy
5946
- end
5947
- if hostname != nil
5948
- @hostname = hostname
5949
- end
5950
- if id != nil
5951
- @id = id
5952
- end
5953
- if name != nil
5954
- @name = name
5955
- end
5956
- if override_database != nil
5957
- @override_database = override_database
5958
- end
5959
- if password != nil
5960
- @password = password
5961
- end
5962
- if port != nil
5963
- @port = port
5964
- end
5965
- if port_override != nil
5966
- @port_override = port_override
5967
- end
5968
- if secret_store_id != nil
5969
- @secret_store_id = secret_store_id
5970
- end
5971
- if tags != nil
5972
- @tags = tags
5973
- end
5974
- if username != nil
5975
- @username = username
5976
- end
4587
+ @database = database == nil ? "" : database
4588
+ @egress_filter = egress_filter == nil ? "" : egress_filter
4589
+ @healthy = healthy == nil ? false : healthy
4590
+ @hostname = hostname == nil ? "" : hostname
4591
+ @id = id == nil ? "" : id
4592
+ @name = name == nil ? "" : name
4593
+ @override_database = override_database == nil ? false : override_database
4594
+ @password = password == nil ? "" : password
4595
+ @port = port == nil ? 0 : port
4596
+ @port_override = port_override == nil ? 0 : port_override
4597
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
4598
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
4599
+ @username = username == nil ? "" : username
5977
4600
  end
5978
4601
 
5979
4602
  def to_json(options = {})
@@ -6008,21 +4631,11 @@ module SDM
6008
4631
  state: nil,
6009
4632
  tags: nil
6010
4633
  )
6011
- if gateway_filter != nil
6012
- @gateway_filter = gateway_filter
6013
- end
6014
- if id != nil
6015
- @id = id
6016
- end
6017
- if name != nil
6018
- @name = name
6019
- end
6020
- if state != nil
6021
- @state = state
6022
- end
6023
- if tags != nil
6024
- @tags = tags
6025
- end
4634
+ @gateway_filter = gateway_filter == nil ? "" : gateway_filter
4635
+ @id = id == nil ? "" : id
4636
+ @name = name == nil ? "" : name
4637
+ @state = state == nil ? "" : state
4638
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
6026
4639
  end
6027
4640
 
6028
4641
  def to_json(options = {})
@@ -6048,15 +4661,9 @@ module SDM
6048
4661
  rate_limit: nil,
6049
4662
  resource: nil
6050
4663
  )
6051
- if meta != nil
6052
- @meta = meta
6053
- end
6054
- if rate_limit != nil
6055
- @rate_limit = rate_limit
6056
- end
6057
- if resource != nil
6058
- @resource = resource
6059
- end
4664
+ @meta = meta == nil ? nil : meta
4665
+ @rate_limit = rate_limit == nil ? nil : rate_limit
4666
+ @resource = resource == nil ? nil : resource
6060
4667
  end
6061
4668
 
6062
4669
  def to_json(options = {})
@@ -6079,12 +4686,8 @@ module SDM
6079
4686
  meta: nil,
6080
4687
  rate_limit: nil
6081
4688
  )
6082
- if meta != nil
6083
- @meta = meta
6084
- end
6085
- if rate_limit != nil
6086
- @rate_limit = rate_limit
6087
- end
4689
+ @meta = meta == nil ? nil : meta
4690
+ @rate_limit = rate_limit == nil ? nil : rate_limit
6088
4691
  end
6089
4692
 
6090
4693
  def to_json(options = {})
@@ -6110,15 +4713,9 @@ module SDM
6110
4713
  rate_limit: nil,
6111
4714
  resource: nil
6112
4715
  )
6113
- if meta != nil
6114
- @meta = meta
6115
- end
6116
- if rate_limit != nil
6117
- @rate_limit = rate_limit
6118
- end
6119
- if resource != nil
6120
- @resource = resource
6121
- end
4716
+ @meta = meta == nil ? nil : meta
4717
+ @rate_limit = rate_limit == nil ? nil : rate_limit
4718
+ @resource = resource == nil ? nil : resource
6122
4719
  end
6123
4720
 
6124
4721
  def to_json(options = {})
@@ -6145,15 +4742,9 @@ module SDM
6145
4742
  rate_limit: nil,
6146
4743
  resource: nil
6147
4744
  )
6148
- if meta != nil
6149
- @meta = meta
6150
- end
6151
- if rate_limit != nil
6152
- @rate_limit = rate_limit
6153
- end
6154
- if resource != nil
6155
- @resource = resource
6156
- end
4745
+ @meta = meta == nil ? nil : meta
4746
+ @rate_limit = rate_limit == nil ? nil : rate_limit
4747
+ @resource = resource == nil ? nil : resource
6157
4748
  end
6158
4749
 
6159
4750
  def to_json(options = {})
@@ -6165,11 +4756,16 @@ module SDM
6165
4756
  end
6166
4757
  end
6167
4758
 
6168
- # A Role is a collection of access grants, and typically corresponds to a team, Active Directory OU, or other organizational unit. Users are granted access to resources by assigning them to roles.
4759
+ # A Role has a list of access rules which determine which Resources the members
4760
+ # of the Role have access to. An Account can be a member of multiple Roles via
4761
+ # AccountAttachments.
6169
4762
  class Role
6170
- # AccessRules JSON encoded access rules data.
4763
+ # AccessRules is a list of access rules defining the resources this Role has access to.
6171
4764
  attr_accessor :access_rules
6172
- # True if the Role is a composite role.
4765
+ # Composite is true if the Role is a composite role.
4766
+ #
4767
+ # Deprecated: composite roles are deprecated, use multi-role via
4768
+ # AccountAttachments instead.
6173
4769
  attr_accessor :composite
6174
4770
  # Unique identifier of the Role.
6175
4771
  attr_accessor :id
@@ -6185,21 +4781,11 @@ module SDM
6185
4781
  name: nil,
6186
4782
  tags: nil
6187
4783
  )
6188
- if access_rules != nil
6189
- @access_rules = access_rules
6190
- end
6191
- if composite != nil
6192
- @composite = composite
6193
- end
6194
- if id != nil
6195
- @id = id
6196
- end
6197
- if name != nil
6198
- @name = name
6199
- end
6200
- if tags != nil
6201
- @tags = tags
6202
- end
4784
+ @access_rules = access_rules == nil ? SDM::_porcelain_zero_value_access_rules() : access_rules
4785
+ @composite = composite == nil ? false : composite
4786
+ @id = id == nil ? "" : id
4787
+ @name = name == nil ? "" : name
4788
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
6203
4789
  end
6204
4790
 
6205
4791
  def to_json(options = {})
@@ -6212,6 +4798,8 @@ module SDM
6212
4798
  end
6213
4799
 
6214
4800
  # A RoleAttachment assigns a role to a composite role.
4801
+ #
4802
+ # Deprecated: use multi-role via AccountAttachments instead.
6215
4803
  class RoleAttachment
6216
4804
  # The id of the attached role of this RoleAttachment.
6217
4805
  attr_accessor :attached_role_id
@@ -6225,15 +4813,9 @@ module SDM
6225
4813
  composite_role_id: nil,
6226
4814
  id: nil
6227
4815
  )
6228
- if attached_role_id != nil
6229
- @attached_role_id = attached_role_id
6230
- end
6231
- if composite_role_id != nil
6232
- @composite_role_id = composite_role_id
6233
- end
6234
- if id != nil
6235
- @id = id
6236
- end
4816
+ @attached_role_id = attached_role_id == nil ? "" : attached_role_id
4817
+ @composite_role_id = composite_role_id == nil ? "" : composite_role_id
4818
+ @id = id == nil ? "" : id
6237
4819
  end
6238
4820
 
6239
4821
  def to_json(options = {})
@@ -6246,6 +4828,8 @@ module SDM
6246
4828
  end
6247
4829
 
6248
4830
  # RoleAttachmentCreateResponse reports how the RoleAttachments were created in the system.
4831
+ #
4832
+ # Deprecated: use multi-role via AccountAttachments instead.
6249
4833
  class RoleAttachmentCreateResponse
6250
4834
  # Reserved for future use.
6251
4835
  attr_accessor :meta
@@ -6259,15 +4843,9 @@ module SDM
6259
4843
  rate_limit: nil,
6260
4844
  role_attachment: nil
6261
4845
  )
6262
- if meta != nil
6263
- @meta = meta
6264
- end
6265
- if rate_limit != nil
6266
- @rate_limit = rate_limit
6267
- end
6268
- if role_attachment != nil
6269
- @role_attachment = role_attachment
6270
- end
4846
+ @meta = meta == nil ? nil : meta
4847
+ @rate_limit = rate_limit == nil ? nil : rate_limit
4848
+ @role_attachment = role_attachment == nil ? nil : role_attachment
6271
4849
  end
6272
4850
 
6273
4851
  def to_json(options = {})
@@ -6280,6 +4858,8 @@ module SDM
6280
4858
  end
6281
4859
 
6282
4860
  # RoleAttachmentDeleteResponse returns information about a RoleAttachment that was deleted.
4861
+ #
4862
+ # Deprecated: use multi-role via AccountAttachments instead.
6283
4863
  class RoleAttachmentDeleteResponse
6284
4864
  # Reserved for future use.
6285
4865
  attr_accessor :meta
@@ -6290,12 +4870,8 @@ module SDM
6290
4870
  meta: nil,
6291
4871
  rate_limit: nil
6292
4872
  )
6293
- if meta != nil
6294
- @meta = meta
6295
- end
6296
- if rate_limit != nil
6297
- @rate_limit = rate_limit
6298
- end
4873
+ @meta = meta == nil ? nil : meta
4874
+ @rate_limit = rate_limit == nil ? nil : rate_limit
6299
4875
  end
6300
4876
 
6301
4877
  def to_json(options = {})
@@ -6308,6 +4884,8 @@ module SDM
6308
4884
  end
6309
4885
 
6310
4886
  # RoleAttachmentGetResponse returns a requested RoleAttachment.
4887
+ #
4888
+ # Deprecated: use multi-role via AccountAttachments instead.
6311
4889
  class RoleAttachmentGetResponse
6312
4890
  # Reserved for future use.
6313
4891
  attr_accessor :meta
@@ -6321,15 +4899,9 @@ module SDM
6321
4899
  rate_limit: nil,
6322
4900
  role_attachment: nil
6323
4901
  )
6324
- if meta != nil
6325
- @meta = meta
6326
- end
6327
- if rate_limit != nil
6328
- @rate_limit = rate_limit
6329
- end
6330
- if role_attachment != nil
6331
- @role_attachment = role_attachment
6332
- end
4902
+ @meta = meta == nil ? nil : meta
4903
+ @rate_limit = rate_limit == nil ? nil : rate_limit
4904
+ @role_attachment = role_attachment == nil ? nil : role_attachment
6333
4905
  end
6334
4906
 
6335
4907
  def to_json(options = {})
@@ -6356,15 +4928,9 @@ module SDM
6356
4928
  rate_limit: nil,
6357
4929
  role: nil
6358
4930
  )
6359
- if meta != nil
6360
- @meta = meta
6361
- end
6362
- if rate_limit != nil
6363
- @rate_limit = rate_limit
6364
- end
6365
- if role != nil
6366
- @role = role
6367
- end
4931
+ @meta = meta == nil ? nil : meta
4932
+ @rate_limit = rate_limit == nil ? nil : rate_limit
4933
+ @role = role == nil ? nil : role
6368
4934
  end
6369
4935
 
6370
4936
  def to_json(options = {})
@@ -6387,12 +4953,8 @@ module SDM
6387
4953
  meta: nil,
6388
4954
  rate_limit: nil
6389
4955
  )
6390
- if meta != nil
6391
- @meta = meta
6392
- end
6393
- if rate_limit != nil
6394
- @rate_limit = rate_limit
6395
- end
4956
+ @meta = meta == nil ? nil : meta
4957
+ @rate_limit = rate_limit == nil ? nil : rate_limit
6396
4958
  end
6397
4959
 
6398
4960
  def to_json(options = {})
@@ -6418,15 +4980,9 @@ module SDM
6418
4980
  rate_limit: nil,
6419
4981
  role: nil
6420
4982
  )
6421
- if meta != nil
6422
- @meta = meta
6423
- end
6424
- if rate_limit != nil
6425
- @rate_limit = rate_limit
6426
- end
6427
- if role != nil
6428
- @role = role
6429
- end
4983
+ @meta = meta == nil ? nil : meta
4984
+ @rate_limit = rate_limit == nil ? nil : rate_limit
4985
+ @role = role == nil ? nil : role
6430
4986
  end
6431
4987
 
6432
4988
  def to_json(options = {})
@@ -6439,6 +4995,8 @@ module SDM
6439
4995
  end
6440
4996
 
6441
4997
  # A RoleGrant connects a resource to a role, granting members of the role access to that resource.
4998
+ #
4999
+ # Deprecated: use Role access rules instead.
6442
5000
  class RoleGrant
6443
5001
  # Unique identifier of the RoleGrant.
6444
5002
  attr_accessor :id
@@ -6452,15 +5010,9 @@ module SDM
6452
5010
  resource_id: nil,
6453
5011
  role_id: nil
6454
5012
  )
6455
- if id != nil
6456
- @id = id
6457
- end
6458
- if resource_id != nil
6459
- @resource_id = resource_id
6460
- end
6461
- if role_id != nil
6462
- @role_id = role_id
6463
- end
5013
+ @id = id == nil ? "" : id
5014
+ @resource_id = resource_id == nil ? "" : resource_id
5015
+ @role_id = role_id == nil ? "" : role_id
6464
5016
  end
6465
5017
 
6466
5018
  def to_json(options = {})
@@ -6473,6 +5025,8 @@ module SDM
6473
5025
  end
6474
5026
 
6475
5027
  # RoleGrantCreateResponse reports how the RoleGrants were created in the system.
5028
+ #
5029
+ # Deprecated: use Role access rules instead.
6476
5030
  class RoleGrantCreateResponse
6477
5031
  # Reserved for future use.
6478
5032
  attr_accessor :meta
@@ -6486,15 +5040,9 @@ module SDM
6486
5040
  rate_limit: nil,
6487
5041
  role_grant: nil
6488
5042
  )
6489
- if meta != nil
6490
- @meta = meta
6491
- end
6492
- if rate_limit != nil
6493
- @rate_limit = rate_limit
6494
- end
6495
- if role_grant != nil
6496
- @role_grant = role_grant
6497
- end
5043
+ @meta = meta == nil ? nil : meta
5044
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5045
+ @role_grant = role_grant == nil ? nil : role_grant
6498
5046
  end
6499
5047
 
6500
5048
  def to_json(options = {})
@@ -6507,6 +5055,8 @@ module SDM
6507
5055
  end
6508
5056
 
6509
5057
  # RoleGrantDeleteResponse returns information about a RoleGrant that was deleted.
5058
+ #
5059
+ # Deprecated: use Role access rules instead.
6510
5060
  class RoleGrantDeleteResponse
6511
5061
  # Reserved for future use.
6512
5062
  attr_accessor :meta
@@ -6517,12 +5067,8 @@ module SDM
6517
5067
  meta: nil,
6518
5068
  rate_limit: nil
6519
5069
  )
6520
- if meta != nil
6521
- @meta = meta
6522
- end
6523
- if rate_limit != nil
6524
- @rate_limit = rate_limit
6525
- end
5070
+ @meta = meta == nil ? nil : meta
5071
+ @rate_limit = rate_limit == nil ? nil : rate_limit
6526
5072
  end
6527
5073
 
6528
5074
  def to_json(options = {})
@@ -6535,6 +5081,8 @@ module SDM
6535
5081
  end
6536
5082
 
6537
5083
  # RoleGrantGetResponse returns a requested RoleGrant.
5084
+ #
5085
+ # Deprecated: use Role access rules instead.
6538
5086
  class RoleGrantGetResponse
6539
5087
  # Reserved for future use.
6540
5088
  attr_accessor :meta
@@ -6548,15 +5096,9 @@ module SDM
6548
5096
  rate_limit: nil,
6549
5097
  role_grant: nil
6550
5098
  )
6551
- if meta != nil
6552
- @meta = meta
6553
- end
6554
- if rate_limit != nil
6555
- @rate_limit = rate_limit
6556
- end
6557
- if role_grant != nil
6558
- @role_grant = role_grant
6559
- end
5099
+ @meta = meta == nil ? nil : meta
5100
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5101
+ @role_grant = role_grant == nil ? nil : role_grant
6560
5102
  end
6561
5103
 
6562
5104
  def to_json(options = {})
@@ -6583,15 +5125,9 @@ module SDM
6583
5125
  rate_limit: nil,
6584
5126
  role: nil
6585
5127
  )
6586
- if meta != nil
6587
- @meta = meta
6588
- end
6589
- if rate_limit != nil
6590
- @rate_limit = rate_limit
6591
- end
6592
- if role != nil
6593
- @role = role
6594
- end
5128
+ @meta = meta == nil ? nil : meta
5129
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5130
+ @role = role == nil ? nil : role
6595
5131
  end
6596
5132
 
6597
5133
  def to_json(options = {})
@@ -6648,48 +5184,20 @@ module SDM
6648
5184
  tags: nil,
6649
5185
  username: nil
6650
5186
  )
6651
- if database != nil
6652
- @database = database
6653
- end
6654
- if egress_filter != nil
6655
- @egress_filter = egress_filter
6656
- end
6657
- if healthy != nil
6658
- @healthy = healthy
6659
- end
6660
- if hostname != nil
6661
- @hostname = hostname
6662
- end
6663
- if id != nil
6664
- @id = id
6665
- end
6666
- if name != nil
6667
- @name = name
6668
- end
6669
- if override_database != nil
6670
- @override_database = override_database
6671
- end
6672
- if password != nil
6673
- @password = password
6674
- end
6675
- if port != nil
6676
- @port = port
6677
- end
6678
- if port_override != nil
6679
- @port_override = port_override
6680
- end
6681
- if schema != nil
6682
- @schema = schema
6683
- end
6684
- if secret_store_id != nil
6685
- @secret_store_id = secret_store_id
6686
- end
6687
- if tags != nil
6688
- @tags = tags
6689
- end
6690
- if username != nil
6691
- @username = username
6692
- end
5187
+ @database = database == nil ? "" : database
5188
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5189
+ @healthy = healthy == nil ? false : healthy
5190
+ @hostname = hostname == nil ? "" : hostname
5191
+ @id = id == nil ? "" : id
5192
+ @name = name == nil ? "" : name
5193
+ @override_database = override_database == nil ? false : override_database
5194
+ @password = password == nil ? "" : password
5195
+ @port = port == nil ? 0 : port
5196
+ @port_override = port_override == nil ? 0 : port_override
5197
+ @schema = schema == nil ? "" : schema
5198
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5199
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5200
+ @username = username == nil ? "" : username
6693
5201
  end
6694
5202
 
6695
5203
  def to_json(options = {})
@@ -6740,42 +5248,18 @@ module SDM
6740
5248
  tags: nil,
6741
5249
  username: nil
6742
5250
  )
6743
- if allow_deprecated_key_exchanges != nil
6744
- @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges
6745
- end
6746
- if egress_filter != nil
6747
- @egress_filter = egress_filter
6748
- end
6749
- if healthy != nil
6750
- @healthy = healthy
6751
- end
6752
- if hostname != nil
6753
- @hostname = hostname
6754
- end
6755
- if id != nil
6756
- @id = id
6757
- end
6758
- if name != nil
6759
- @name = name
6760
- end
6761
- if port != nil
6762
- @port = port
6763
- end
6764
- if port_forwarding != nil
6765
- @port_forwarding = port_forwarding
6766
- end
6767
- if public_key != nil
6768
- @public_key = public_key
6769
- end
6770
- if secret_store_id != nil
6771
- @secret_store_id = secret_store_id
6772
- end
6773
- if tags != nil
6774
- @tags = tags
6775
- end
6776
- if username != nil
6777
- @username = username
6778
- end
5251
+ @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges == nil ? false : allow_deprecated_key_exchanges
5252
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5253
+ @healthy = healthy == nil ? false : healthy
5254
+ @hostname = hostname == nil ? "" : hostname
5255
+ @id = id == nil ? "" : id
5256
+ @name = name == nil ? "" : name
5257
+ @port = port == nil ? 0 : port
5258
+ @port_forwarding = port_forwarding == nil ? false : port_forwarding
5259
+ @public_key = public_key == nil ? "" : public_key
5260
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5261
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5262
+ @username = username == nil ? "" : username
6779
5263
  end
6780
5264
 
6781
5265
  def to_json(options = {})
@@ -6823,39 +5307,17 @@ module SDM
6823
5307
  tags: nil,
6824
5308
  username: nil
6825
5309
  )
6826
- if allow_deprecated_key_exchanges != nil
6827
- @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges
6828
- end
6829
- if egress_filter != nil
6830
- @egress_filter = egress_filter
6831
- end
6832
- if healthy != nil
6833
- @healthy = healthy
6834
- end
6835
- if hostname != nil
6836
- @hostname = hostname
6837
- end
6838
- if id != nil
6839
- @id = id
6840
- end
6841
- if name != nil
6842
- @name = name
6843
- end
6844
- if port != nil
6845
- @port = port
6846
- end
6847
- if port_forwarding != nil
6848
- @port_forwarding = port_forwarding
6849
- end
6850
- if secret_store_id != nil
6851
- @secret_store_id = secret_store_id
6852
- end
6853
- if tags != nil
6854
- @tags = tags
6855
- end
6856
- if username != nil
6857
- @username = username
6858
- end
5310
+ @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges == nil ? false : allow_deprecated_key_exchanges
5311
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5312
+ @healthy = healthy == nil ? false : healthy
5313
+ @hostname = hostname == nil ? "" : hostname
5314
+ @id = id == nil ? "" : id
5315
+ @name = name == nil ? "" : name
5316
+ @port = port == nil ? 0 : port
5317
+ @port_forwarding = port_forwarding == nil ? false : port_forwarding
5318
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5319
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5320
+ @username = username == nil ? "" : username
6859
5321
  end
6860
5322
 
6861
5323
  def to_json(options = {})
@@ -6906,42 +5368,18 @@ module SDM
6906
5368
  tags: nil,
6907
5369
  username: nil
6908
5370
  )
6909
- if allow_deprecated_key_exchanges != nil
6910
- @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges
6911
- end
6912
- if egress_filter != nil
6913
- @egress_filter = egress_filter
6914
- end
6915
- if healthy != nil
6916
- @healthy = healthy
6917
- end
6918
- if hostname != nil
6919
- @hostname = hostname
6920
- end
6921
- if id != nil
6922
- @id = id
6923
- end
6924
- if name != nil
6925
- @name = name
6926
- end
6927
- if port != nil
6928
- @port = port
6929
- end
6930
- if port_forwarding != nil
6931
- @port_forwarding = port_forwarding
6932
- end
6933
- if private_key != nil
6934
- @private_key = private_key
6935
- end
6936
- if secret_store_id != nil
6937
- @secret_store_id = secret_store_id
6938
- end
6939
- if tags != nil
6940
- @tags = tags
6941
- end
6942
- if username != nil
6943
- @username = username
6944
- end
5371
+ @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges == nil ? false : allow_deprecated_key_exchanges
5372
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5373
+ @healthy = healthy == nil ? false : healthy
5374
+ @hostname = hostname == nil ? "" : hostname
5375
+ @id = id == nil ? "" : id
5376
+ @name = name == nil ? "" : name
5377
+ @port = port == nil ? 0 : port
5378
+ @port_forwarding = port_forwarding == nil ? false : port_forwarding
5379
+ @private_key = private_key == nil ? "" : private_key
5380
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5381
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5382
+ @username = username == nil ? "" : username
6945
5383
  end
6946
5384
 
6947
5385
  def to_json(options = {})
@@ -6967,15 +5405,9 @@ module SDM
6967
5405
  rate_limit: nil,
6968
5406
  secret_store: nil
6969
5407
  )
6970
- if meta != nil
6971
- @meta = meta
6972
- end
6973
- if rate_limit != nil
6974
- @rate_limit = rate_limit
6975
- end
6976
- if secret_store != nil
6977
- @secret_store = secret_store
6978
- end
5408
+ @meta = meta == nil ? nil : meta
5409
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5410
+ @secret_store = secret_store == nil ? nil : secret_store
6979
5411
  end
6980
5412
 
6981
5413
  def to_json(options = {})
@@ -6998,12 +5430,8 @@ module SDM
6998
5430
  meta: nil,
6999
5431
  rate_limit: nil
7000
5432
  )
7001
- if meta != nil
7002
- @meta = meta
7003
- end
7004
- if rate_limit != nil
7005
- @rate_limit = rate_limit
7006
- end
5433
+ @meta = meta == nil ? nil : meta
5434
+ @rate_limit = rate_limit == nil ? nil : rate_limit
7007
5435
  end
7008
5436
 
7009
5437
  def to_json(options = {})
@@ -7029,15 +5457,9 @@ module SDM
7029
5457
  rate_limit: nil,
7030
5458
  secret_store: nil
7031
5459
  )
7032
- if meta != nil
7033
- @meta = meta
7034
- end
7035
- if rate_limit != nil
7036
- @rate_limit = rate_limit
7037
- end
7038
- if secret_store != nil
7039
- @secret_store = secret_store
7040
- end
5460
+ @meta = meta == nil ? nil : meta
5461
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5462
+ @secret_store = secret_store == nil ? nil : secret_store
7041
5463
  end
7042
5464
 
7043
5465
  def to_json(options = {})
@@ -7064,15 +5486,9 @@ module SDM
7064
5486
  rate_limit: nil,
7065
5487
  secret_store: nil
7066
5488
  )
7067
- if meta != nil
7068
- @meta = meta
7069
- end
7070
- if rate_limit != nil
7071
- @rate_limit = rate_limit
7072
- end
7073
- if secret_store != nil
7074
- @secret_store = secret_store
7075
- end
5489
+ @meta = meta == nil ? nil : meta
5490
+ @rate_limit = rate_limit == nil ? nil : rate_limit
5491
+ @secret_store = secret_store == nil ? nil : secret_store
7076
5492
  end
7077
5493
 
7078
5494
  def to_json(options = {})
@@ -7102,18 +5518,10 @@ module SDM
7102
5518
  suspended: nil,
7103
5519
  tags: nil
7104
5520
  )
7105
- if id != nil
7106
- @id = id
7107
- end
7108
- if name != nil
7109
- @name = name
7110
- end
7111
- if suspended != nil
7112
- @suspended = suspended
7113
- end
7114
- if tags != nil
7115
- @tags = tags
7116
- end
5521
+ @id = id == nil ? "" : id
5522
+ @name = name == nil ? "" : name
5523
+ @suspended = suspended == nil ? false : suspended
5524
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
7117
5525
  end
7118
5526
 
7119
5527
  def to_json(options = {})
@@ -7164,42 +5572,18 @@ module SDM
7164
5572
  tags: nil,
7165
5573
  username: nil
7166
5574
  )
7167
- if database != nil
7168
- @database = database
7169
- end
7170
- if egress_filter != nil
7171
- @egress_filter = egress_filter
7172
- end
7173
- if healthy != nil
7174
- @healthy = healthy
7175
- end
7176
- if hostname != nil
7177
- @hostname = hostname
7178
- end
7179
- if id != nil
7180
- @id = id
7181
- end
7182
- if name != nil
7183
- @name = name
7184
- end
7185
- if password != nil
7186
- @password = password
7187
- end
7188
- if port != nil
7189
- @port = port
7190
- end
7191
- if port_override != nil
7192
- @port_override = port_override
7193
- end
7194
- if secret_store_id != nil
7195
- @secret_store_id = secret_store_id
7196
- end
7197
- if tags != nil
7198
- @tags = tags
7199
- end
7200
- if username != nil
7201
- @username = username
7202
- end
5575
+ @database = database == nil ? "" : database
5576
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5577
+ @healthy = healthy == nil ? false : healthy
5578
+ @hostname = hostname == nil ? "" : hostname
5579
+ @id = id == nil ? "" : id
5580
+ @name = name == nil ? "" : name
5581
+ @password = password == nil ? "" : password
5582
+ @port = port == nil ? 0 : port
5583
+ @port_override = port_override == nil ? 0 : port_override
5584
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5585
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5586
+ @username = username == nil ? "" : username
7203
5587
  end
7204
5588
 
7205
5589
  def to_json(options = {})
@@ -7250,42 +5634,18 @@ module SDM
7250
5634
  tags: nil,
7251
5635
  username: nil
7252
5636
  )
7253
- if database != nil
7254
- @database = database
7255
- end
7256
- if egress_filter != nil
7257
- @egress_filter = egress_filter
7258
- end
7259
- if healthy != nil
7260
- @healthy = healthy
7261
- end
7262
- if hostname != nil
7263
- @hostname = hostname
7264
- end
7265
- if id != nil
7266
- @id = id
7267
- end
7268
- if name != nil
7269
- @name = name
7270
- end
7271
- if password != nil
7272
- @password = password
7273
- end
7274
- if port_override != nil
7275
- @port_override = port_override
7276
- end
7277
- if schema != nil
7278
- @schema = schema
7279
- end
7280
- if secret_store_id != nil
7281
- @secret_store_id = secret_store_id
7282
- end
7283
- if tags != nil
7284
- @tags = tags
7285
- end
7286
- if username != nil
7287
- @username = username
7288
- end
5637
+ @database = database == nil ? "" : database
5638
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5639
+ @healthy = healthy == nil ? false : healthy
5640
+ @hostname = hostname == nil ? "" : hostname
5641
+ @id = id == nil ? "" : id
5642
+ @name = name == nil ? "" : name
5643
+ @password = password == nil ? "" : password
5644
+ @port_override = port_override == nil ? 0 : port_override
5645
+ @schema = schema == nil ? "" : schema
5646
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5647
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5648
+ @username = username == nil ? "" : username
7289
5649
  end
7290
5650
 
7291
5651
  def to_json(options = {})
@@ -7334,39 +5694,17 @@ module SDM
7334
5694
  tags: nil,
7335
5695
  username: nil
7336
5696
  )
7337
- if egress_filter != nil
7338
- @egress_filter = egress_filter
7339
- end
7340
- if healthy != nil
7341
- @healthy = healthy
7342
- end
7343
- if hostname != nil
7344
- @hostname = hostname
7345
- end
7346
- if id != nil
7347
- @id = id
7348
- end
7349
- if name != nil
7350
- @name = name
7351
- end
7352
- if password != nil
7353
- @password = password
7354
- end
7355
- if port != nil
7356
- @port = port
7357
- end
7358
- if port_override != nil
7359
- @port_override = port_override
7360
- end
7361
- if secret_store_id != nil
7362
- @secret_store_id = secret_store_id
7363
- end
7364
- if tags != nil
7365
- @tags = tags
7366
- end
7367
- if username != nil
7368
- @username = username
7369
- end
5697
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5698
+ @healthy = healthy == nil ? false : healthy
5699
+ @hostname = hostname == nil ? "" : hostname
5700
+ @id = id == nil ? "" : id
5701
+ @name = name == nil ? "" : name
5702
+ @password = password == nil ? "" : password
5703
+ @port = port == nil ? 0 : port
5704
+ @port_override = port_override == nil ? 0 : port_override
5705
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5706
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5707
+ @username = username == nil ? "" : username
7370
5708
  end
7371
5709
 
7372
5710
  def to_json(options = {})
@@ -7415,39 +5753,17 @@ module SDM
7415
5753
  tags: nil,
7416
5754
  username: nil
7417
5755
  )
7418
- if egress_filter != nil
7419
- @egress_filter = egress_filter
7420
- end
7421
- if healthy != nil
7422
- @healthy = healthy
7423
- end
7424
- if hostname != nil
7425
- @hostname = hostname
7426
- end
7427
- if id != nil
7428
- @id = id
7429
- end
7430
- if name != nil
7431
- @name = name
7432
- end
7433
- if password != nil
7434
- @password = password
7435
- end
7436
- if port != nil
7437
- @port = port
7438
- end
7439
- if port_override != nil
7440
- @port_override = port_override
7441
- end
7442
- if secret_store_id != nil
7443
- @secret_store_id = secret_store_id
7444
- end
7445
- if tags != nil
7446
- @tags = tags
7447
- end
7448
- if username != nil
7449
- @username = username
7450
- end
5756
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5757
+ @healthy = healthy == nil ? false : healthy
5758
+ @hostname = hostname == nil ? "" : hostname
5759
+ @id = id == nil ? "" : id
5760
+ @name = name == nil ? "" : name
5761
+ @password = password == nil ? "" : password
5762
+ @port = port == nil ? 0 : port
5763
+ @port_override = port_override == nil ? 0 : port_override
5764
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5765
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5766
+ @username = username == nil ? "" : username
7451
5767
  end
7452
5768
 
7453
5769
  def to_json(options = {})
@@ -7468,12 +5784,8 @@ module SDM
7468
5784
  name: nil,
7469
5785
  value: nil
7470
5786
  )
7471
- if name != nil
7472
- @name = name
7473
- end
7474
- if value != nil
7475
- @value = value
7476
- end
5787
+ @name = name == nil ? "" : name
5788
+ @value = value == nil ? "" : value
7477
5789
  end
7478
5790
 
7479
5791
  def to_json(options = {})
@@ -7522,39 +5834,17 @@ module SDM
7522
5834
  tags: nil,
7523
5835
  username: nil
7524
5836
  )
7525
- if egress_filter != nil
7526
- @egress_filter = egress_filter
7527
- end
7528
- if healthy != nil
7529
- @healthy = healthy
7530
- end
7531
- if hostname != nil
7532
- @hostname = hostname
7533
- end
7534
- if id != nil
7535
- @id = id
7536
- end
7537
- if name != nil
7538
- @name = name
7539
- end
7540
- if password != nil
7541
- @password = password
7542
- end
7543
- if port != nil
7544
- @port = port
7545
- end
7546
- if port_override != nil
7547
- @port_override = port_override
7548
- end
7549
- if secret_store_id != nil
7550
- @secret_store_id = secret_store_id
7551
- end
7552
- if tags != nil
7553
- @tags = tags
7554
- end
7555
- if username != nil
7556
- @username = username
7557
- end
5837
+ @egress_filter = egress_filter == nil ? "" : egress_filter
5838
+ @healthy = healthy == nil ? false : healthy
5839
+ @hostname = hostname == nil ? "" : hostname
5840
+ @id = id == nil ? "" : id
5841
+ @name = name == nil ? "" : name
5842
+ @password = password == nil ? "" : password
5843
+ @port = port == nil ? 0 : port
5844
+ @port_override = port_override == nil ? 0 : port_override
5845
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
5846
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5847
+ @username = username == nil ? "" : username
7558
5848
  end
7559
5849
 
7560
5850
  def to_json(options = {})
@@ -7604,24 +5894,47 @@ module SDM
7604
5894
  suspended: nil,
7605
5895
  tags: nil
7606
5896
  )
7607
- if email != nil
7608
- @email = email
7609
- end
7610
- if first_name != nil
7611
- @first_name = first_name
7612
- end
7613
- if id != nil
7614
- @id = id
7615
- end
7616
- if last_name != nil
7617
- @last_name = last_name
7618
- end
7619
- if suspended != nil
7620
- @suspended = suspended
7621
- end
7622
- if tags != nil
7623
- @tags = tags
5897
+ @email = email == nil ? "" : email
5898
+ @first_name = first_name == nil ? "" : first_name
5899
+ @id = id == nil ? "" : id
5900
+ @last_name = last_name == nil ? "" : last_name
5901
+ @suspended = suspended == nil ? false : suspended
5902
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
5903
+ end
5904
+
5905
+ def to_json(options = {})
5906
+ hash = {}
5907
+ self.instance_variables.each do |var|
5908
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7624
5909
  end
5910
+ hash.to_json
5911
+ end
5912
+ end
5913
+
5914
+ class VaultAppRoleStore
5915
+ # Unique identifier of the SecretStore.
5916
+ attr_accessor :id
5917
+ # Unique human-readable name of the SecretStore.
5918
+ attr_accessor :name
5919
+
5920
+ attr_accessor :namespace
5921
+
5922
+ attr_accessor :server_address
5923
+ # Tags is a map of key, value pairs.
5924
+ attr_accessor :tags
5925
+
5926
+ def initialize(
5927
+ id: nil,
5928
+ name: nil,
5929
+ namespace: nil,
5930
+ server_address: nil,
5931
+ tags: nil
5932
+ )
5933
+ @id = id == nil ? "" : id
5934
+ @name = name == nil ? "" : name
5935
+ @namespace = namespace == nil ? "" : namespace
5936
+ @server_address = server_address == nil ? "" : server_address
5937
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
7625
5938
  end
7626
5939
 
7627
5940
  def to_json(options = {})
@@ -7660,30 +5973,14 @@ module SDM
7660
5973
  server_address: nil,
7661
5974
  tags: nil
7662
5975
  )
7663
- if ca_cert_path != nil
7664
- @ca_cert_path = ca_cert_path
7665
- end
7666
- if client_cert_path != nil
7667
- @client_cert_path = client_cert_path
7668
- end
7669
- if client_key_path != nil
7670
- @client_key_path = client_key_path
7671
- end
7672
- if id != nil
7673
- @id = id
7674
- end
7675
- if name != nil
7676
- @name = name
7677
- end
7678
- if namespace != nil
7679
- @namespace = namespace
7680
- end
7681
- if server_address != nil
7682
- @server_address = server_address
7683
- end
7684
- if tags != nil
7685
- @tags = tags
7686
- end
5976
+ @ca_cert_path = ca_cert_path == nil ? "" : ca_cert_path
5977
+ @client_cert_path = client_cert_path == nil ? "" : client_cert_path
5978
+ @client_key_path = client_key_path == nil ? "" : client_key_path
5979
+ @id = id == nil ? "" : id
5980
+ @name = name == nil ? "" : name
5981
+ @namespace = namespace == nil ? "" : namespace
5982
+ @server_address = server_address == nil ? "" : server_address
5983
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
7687
5984
  end
7688
5985
 
7689
5986
  def to_json(options = {})
@@ -7714,21 +6011,11 @@ module SDM
7714
6011
  server_address: nil,
7715
6012
  tags: nil
7716
6013
  )
7717
- if id != nil
7718
- @id = id
7719
- end
7720
- if name != nil
7721
- @name = name
7722
- end
7723
- if namespace != nil
7724
- @namespace = namespace
7725
- end
7726
- if server_address != nil
7727
- @server_address = server_address
7728
- end
7729
- if tags != nil
7730
- @tags = tags
7731
- end
6014
+ @id = id == nil ? "" : id
6015
+ @name = name == nil ? "" : name
6016
+ @namespace = namespace == nil ? "" : namespace
6017
+ @server_address = server_address == nil ? "" : server_address
6018
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
7732
6019
  end
7733
6020
 
7734
6021
  def to_json(options = {})
@@ -7739,4 +6026,11 @@ module SDM
7739
6026
  hash.to_json
7740
6027
  end
7741
6028
  end
6029
+
6030
+ def self._porcelain_zero_value_tags()
6031
+ {}
6032
+ end
6033
+ def self._porcelain_zero_value_access_rules()
6034
+ []
6035
+ end
7742
6036
  end